mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-23 21:02:24 +02:00
git-subtree-dir: foundations/hulylake git-subtree-mainline:da88233ddagit-subtree-split:eb911a3bc7
18 lines
341 B
SQL
18 lines
341 B
SQL
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 int4 not null,
|
|
data jsonb not null,
|
|
inline bytea,
|
|
|
|
primary key (workspace, key, part)
|
|
) |