some initial setup stuff
This commit is contained in:
commit
aa4036afba
15 changed files with 2748 additions and 0 deletions
16
crates/backend/migrations/20240921175315_init.sql
Normal file
16
crates/backend/migrations/20240921175315_init.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
--============================================================================--
|
||||
-- I HATE DATABASES!!! --
|
||||
--============================================================================--
|
||||
|
||||
create table chats (
|
||||
id uuid default (gen_random_uuid()) primary key,
|
||||
url_path char(6) unique not null,
|
||||
name text
|
||||
);
|
||||
|
||||
create table messages (
|
||||
id uuid default (gen_random_uuid()) primary key,
|
||||
chat_id uuid not null references chats(id),
|
||||
content varchar(2000) not null,
|
||||
from_admin boolean not null
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue