Files
query-orchestration/database/migrations/00000000000003_clients.up.sql
T
Michael McGuinness 750abe1be3 Merged in feature/entitylogs (pull request #67)
Query Version Update
2025-02-14 18:43:26 +00:00

12 lines
312 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,
foreign key (clientId) references clients(id)
);