some initial setup stuff

This commit is contained in:
Schrottkatze 2024-09-23 02:12:56 +02:00
commit aa4036afba
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
15 changed files with 2748 additions and 0 deletions

View 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
)