6648cdf1cb
Client External ID * normalizeexternalid * cleanopenapi * cleanopenapi * changingpublic * noprecommit * testing * precommit * processtest * nodb * tests * tests
15 lines
376 B
SQL
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)
|
|
);
|