Adds users meta and rights

main
Yasen Pramatarov 2024-09-07 21:49:50 +03:00
parent d64fc5cf56
commit 993474a754
1 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,20 @@ CREATE TABLE users (
username TEXT NOT NULL UNIQUE,
password TEXT NOT NULL
);
CREATE TABLE users_meta (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
name TEXT,
email TEXT,
avatar TEXT,
bio TEXT
);
CREATE TABLE users_rights (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
item TEXT,
rights TEXT
);
CREATE TABLE platforms (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL UNIQUE,