Files
huly-platform/foundations/hulylake/server/etc/migrations/V1__initial.sql
T
Denis Bykhov 64e456e0ec Add 'foundations/hulylake/' from commit 'eb911a3bc7a759ee0642b2698620a2f0f68f7b61'
git-subtree-dir: foundations/hulylake
git-subtree-mainline: da88233dda
git-subtree-split: eb911a3bc7
2025-11-26 22:57:07 +05:00

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)
)