8 lines
263 B
SQL
8 lines
263 B
SQL
CREATE TABLE queryDeprecations (
|
|
id uuid primary key DEFAULT gen_random_uuid(),
|
|
queryId uuid not null,
|
|
time timestamp not null DEFAULT NOW(),
|
|
removedAt timestamp,
|
|
foreign key (queryId) references queries(id),
|
|
unique (queryId, removedAt)
|
|
); |