add: channel mutes

This commit is contained in:
trisua 2025-07-18 20:04:26 -04:00
parent 02f3d08926
commit 884a89904e
17 changed files with 149 additions and 7 deletions

View file

@ -1,3 +1,4 @@
pub const VERSION_MIGRATIONS: &str = include_str!("./sql/version_migrations.sql");
pub const CREATE_TABLE_USERS: &str = include_str!("./sql/create_users.sql");
pub const CREATE_TABLE_COMMUNITIES: &str = include_str!("./sql/create_communities.sql");
pub const CREATE_TABLE_POSTS: &str = include_str!("./sql/create_posts.sql");

View file

@ -27,5 +27,6 @@ CREATE TABLE IF NOT EXISTS users (
was_purchased INT NOT NULL,
browser_session TEXT NOT NULL,
seller_data TEXT NOT NULL,
ban_reason TEXT NOT NULL
ban_reason TEXT NOT NULL,
channel_mutes TEXT NOT NULL
)

View file

@ -0,0 +1,3 @@
-- users channel_mutes
ALTER TABLE users
ADD COLUMN IF NOT EXISTS channel_mutes TEXT DEFAULT '[]';