diff --git a/backend/src/api.rs b/backend/src/api.rs index 7ec795d..e05a73b 100644 --- a/backend/src/api.rs +++ b/backend/src/api.rs @@ -141,3 +141,4 @@ pub async fn admin_update_platforms( Ok(Json(json!({ "platforms": saved }))) } + diff --git a/backend/src/db.rs b/backend/src/db.rs index feaabb7..bba6332 100644 --- a/backend/src/db.rs +++ b/backend/src/db.rs @@ -27,6 +27,7 @@ pub fn init(conn: &Connection) -> rusqlite::Result<()> { followers INTEGER NOT NULL DEFAULT 0, updated_at INTEGER NOT NULL ); + "#, )?; seed(conn) @@ -40,6 +41,10 @@ fn seed(conn: &Connection) -> rusqlite::Result<()> { ("about", "I build games and stream the process on Twitch."), ("email", "hello@rython.dev"), ("profile_image_url", "/images/pfp_new_medium.webp"), + ( + "services", + "Sponsored content\nProduct reviews\nLivestream integrations\nSocial media campaigns\nBrand partnerships\nEvent appearances", + ), ]; for (key, value) in content_defaults { @@ -138,3 +143,4 @@ pub fn upsert_platforms(conn: &Connection, platforms: &[PlatformInput]) -> rusql Ok(()) } +