Files
query-orchestration/database/migrations/20241219161629_create_queryconfig_table.up.sql
T

9 lines
277 B
SQL
Raw Normal View History

2024-12-23 12:26:05 +00:00
CREATE TABLE queryConfigs (
2025-01-03 13:47:19 +00:00
id uuid primary key DEFAULT gen_random_uuid(),
2024-12-23 12:26:05 +00:00
queryId uuid not null,
config jsonb not null,
addedVersion int not null,
removedVersion int,
foreign key (queryId) references queries(id),
unique (queryId, removedVersion)
);