Files
query-orchestration/database/migrations/00000000000003_clients.up.sql
T
Michael McGuinness 90353d8161 Merged in feature/docclean (pull request #55)
Doc Clean Structure

* outline

* isdocclean

* placeholder for clean log

* versionplustesting

* versionplustesting

* testspassed
2025-02-07 12:12:51 +00:00

13 lines
370 B
SQL

CREATE TABLE clients (
id uuid primary key DEFAULT uuid_generate_v7(),
name TEXT not null,
UNIQUE (name)
);
CREATE TABLE clientCanSync (
id uuid primary key DEFAULT uuid_generate_v7(),
clientId uuid not null,
canSync boolean not null,
addedAt timestamp not null default current_timestamp,
foreign key (clientId) references clients(id)
);