add request verification extractor
This commit is contained in:
parent
7a694623e5
commit
1e53661b0a
18 changed files with 482 additions and 32 deletions
|
@ -14,7 +14,7 @@ create table users (
|
|||
instance_id text not null references identity_instances (id) on delete cascade,
|
||||
remote_user_id text not null,
|
||||
username text not null,
|
||||
|
||||
|
||||
avatar text -- URL, not hash, as this is a remote file
|
||||
);
|
||||
|
||||
|
@ -46,6 +46,14 @@ create table messages (
|
|||
channel_id text not null references channels (id) on delete cascade,
|
||||
author_id text not null,
|
||||
updated_at timestamptz not null default now(),
|
||||
|
||||
|
||||
content text not null
|
||||
);
|
||||
|
||||
create table instance (
|
||||
id integer not null primary key default 1,
|
||||
public_key text not null,
|
||||
private_key text not null,
|
||||
|
||||
constraint singleton check (id = 1)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue