Files
query-orchestration/database/migrations/00000000000003_clients.up.sql
T
Michael McGuinness 6648cdf1cb Merged in feature/clientexternalid (pull request #99)
Client External ID

* normalizeexternalid

* cleanopenapi

* cleanopenapi

* changingpublic

* noprecommit

* testing

* precommit

* processtest

* nodb

* tests

* tests
2025-03-11 16:31:06 +00:00

15 lines
376 B
SQL

CREATE TABLE clients (
id uuid primary key DEFAULT uuid_generate_v7(),
externalId varchar(255) not null,
name TEXT not null,
UNIQUE (name),
UNIQUE (externalId)
);
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)
);