WIP: v1.0.0
This commit is contained in:
parent
b1efc76c7c
commit
5cbab43a23
7 changed files with 4104 additions and 0 deletions
16
migrations/20250321201214_initial.sql
Normal file
16
migrations/20250321201214_initial.sql
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue