From e51f83aa8c0a361b66388b2c364787f4669e0637 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Thu, 5 Nov 2026 22:51:51 +0800 Subject: [PATCH] updated services --- backend/src/api.rs | 1 + backend/src/db.rs | 6 ++++++ 2 files changed, 7 insertions(+) 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(()) } +