Files
query-orchestration/database/migrations/00000000000003_clients.up.sql
T
Michael McGuinness 058f8dba7f Merged in feature/logVersioning (pull request #40)
Can Sync Versioning

* started

* client

* jobcansync

* tests
2025-01-29 16:26:11 +00:00

13 lines
368 B
SQL

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