This commit is contained in:
2026-03-04 18:23:00 +03:00
parent b81df5866b
commit 205d9cf8b0
15 changed files with 439 additions and 165 deletions

11
scripts/00-init.sql Normal file
View File

@@ -0,0 +1,11 @@
CREATE TABLE users (
id SERIAL PRIMARY KEY,
username TEXT NOT NULL,
password TEXT NOT NULL
);
CREATE UNIQUE INDEX users_uindex ON users(id);
CREATE TABLE user_usage(
user_id INT REFERENCES users(id),
recv INT8 NOT NULL DEFAULT 0,
sent INT8 NOT NULL DEFAULT 0
);