All DB functions, Admin starter, Need auth

This commit is contained in:
2024-06-29 15:23:45 -04:00
Unverified
parent 7161413b18
commit 6061d3e3c1
3 changed files with 238 additions and 37 deletions

View File

@@ -34,7 +34,9 @@ async fn main() -> anyhow::Result<()> {
"CREATE TABLE IF NOT EXISTS room (
id SERIAL,
room_id VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL
name VARCHAR(255) NOT NULL,
admin_only_send BOOL NOT NULL,
admin_only_view BOOL NOT NULL
);"
).execute(&db_pool).await?;
@@ -43,7 +45,8 @@ async fn main() -> anyhow::Result<()> {
id SERIAL,
user_id VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
online BOOL NOT NULL
online BOOL NOT NULL,
admin BOOL NOT NULL
);"
).execute(&db_pool).await?;