implement bare basic functionality!!!
This commit is contained in:
parent
5f9bb732b8
commit
ed87d3fb51
7 changed files with 238 additions and 13 deletions
|
@ -10,8 +10,10 @@ create table chats (
|
|||
|
||||
create table messages (
|
||||
id uuid default (gen_random_uuid()) primary key,
|
||||
timestamp timestamptz default (now()),
|
||||
timestamp timestamptz not null default (now()),
|
||||
chat_id uuid not null references chats(id),
|
||||
content varchar(2000) not null,
|
||||
from_admin boolean not null
|
||||
)
|
||||
);
|
||||
|
||||
insert into chats (url_path) values ('tstcht');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue