9 lines
277 B
SQL
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)
|
|
); |