Files
query-orchestration/database/migrations/20241223113819_create_queryconfig_table.up.sql
T
Michael McGuinness 9d3d0baa99 setdefaultidandreturn
2025-01-03 13:47:19 +00:00

9 lines
277 B
SQL

CREATE TABLE queryConfigs (
id uuid primary key DEFAULT gen_random_uuid(),
queryId uuid not null,
config jsonb not null,
addedVersion int not null,
removedVersion int,
foreign key (queryId) references queries(id),
unique (queryId, removedVersion)
);