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

This commit is contained in:
2026-05-15 21:49:08 +03:00
parent 2e945c1dcb
commit 4e54075078
63 changed files with 9764 additions and 0 deletions
@@ -0,0 +1,60 @@
create table if not exists thread(
id serial primary key,
name varchar(100) not null,
views integer not null,
modified timestamp not null default CURRENT_TIMESTAMP
);
create unique index if not exists ThreadNameIx on thread (name);
create table if not exists person(
id serial primary key,
name varchar(20) not null,
password varchar(32) not null,
email varchar(30) not null,
creation timestamp not null default CURRENT_TIMESTAMP,
salt varchar(128) not null,
status varchar(30) not null,
lastOnline timestamp not null default CURRENT_TIMESTAMP,
ban varchar(128) not null default ''
);
create unique index if not exists UserNameIx on person (name);
create table if not exists post(
id serial primary key,
author integer not null,
ip varchar(20) not null,
header varchar(100) not null,
content varchar(1000) not null,
thread integer not null,
creation timestamp not null default CURRENT_TIMESTAMP,
foreign key (thread) references thread(id),
foreign key (author) references person(id)
);
create table if not exists session(
id serial primary key,
ip varchar(20) not null,
password varchar(32) not null,
userid integer not null,
lastModified timestamp not null default CURRENT_TIMESTAMP,
foreign key (userid) references person(id)
);
create table if not exists antibot(
id serial primary key,
ip varchar(20) not null,
answer varchar(30) not null,
created timestamp not null default CURRENT_TIMESTAMP
);
create table if not exists error(
uuid varchar(36) primary key,
message varchar(1000) not null,
created timestamp not null default CURRENT_TIMESTAMP
);
create index PersonStatusIdx on person(status);
create index PostByAuthorIdx on post(thread, author);