database support

Signed-off-by: Alexey Aristov <aav@acm.org>
This commit is contained in:
Alexey Aristov
2025-08-25 17:02:57 +02:00
parent 36b59c78c9
commit deb27df0cf
5 changed files with 213 additions and 47 deletions
+17
View File
@@ -0,0 +1,17 @@
create table blob(
key text not null,
hash text not null
);
create unique index blob_key on blob(key);
create unique index blob_hash on blob(hash);
create table object(
workspace uuid not null,
key text not null,
part int not null,
data jsonb not null,
primary key (workspace, key, part)
)