10 lines
363 B
SQL
10 lines
363 B
SQL
CREATE TABLE requiredQueries (
|
|
id uuid primary key DEFAULT gen_random_uuid(),
|
|
queryId uuid not null,
|
|
requiredQueryId uuid not null,
|
|
addedVersion int not null,
|
|
removedVersion int,
|
|
foreign key (queryId) references queries(id),
|
|
foreign key (requiredQueryId) references queries(id),
|
|
unique (queryId, requiredQueryId, removedVersion)
|
|
); |