WIP: v1.0.0

This commit is contained in:
Moritz Ruth 2025-03-22 00:49:26 +01:00
parent b1efc76c7c
commit 5cbab43a23
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
7 changed files with 4104 additions and 0 deletions

View file

@ -0,0 +1,16 @@
create table objects
(
hash text not null,
media_type text not null,
creation_date text not null, -- RFC 3339 format
primary key (hash)
) without rowid, strict;
create table object_replicas
(
hash text not null,
bucket_id text not null,
is_present integer not null, -- boolean
primary key (hash, bucket_id),
foreign key (hash) references objects (hash) on delete restrict on update restrict
) strict;