Add Ormin ORM support for BaraDB (Nim client)
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
create table if not exists users(
|
||||
id integer primary key,
|
||||
name varchar(20) not null,
|
||||
password varchar(32) not null,
|
||||
creation timestamp not null default (DATETIME('now')),
|
||||
lastOnline timestamp not null default (DATETIME('now'))
|
||||
);
|
||||
|
||||
/* Names need to be unique: */
|
||||
create unique index if not exists UserNameIx on users(name);
|
||||
|
||||
create table if not exists messages(
|
||||
id integer primary key,
|
||||
author integer not null,
|
||||
content varchar(1000) not null,
|
||||
creation timestamp not null default (DATETIME('now')),
|
||||
|
||||
foreign key (author) references users(id)
|
||||
);
|
||||
Reference in New Issue
Block a user