058f8dba7f
Can Sync Versioning * started * client * jobcansync * tests
13 lines
368 B
SQL
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)
|
|
); |