commit
This commit is contained in:
15
scripts/postgres/08-ban.sql
Normal file
15
scripts/postgres/08-ban.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE h2_hosts(
|
||||
id SERIAL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
url TEXT NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX h2_hosts_uindex ON h2_hosts(id);
|
||||
|
||||
CREATE TABLE h2_users (
|
||||
id SERIAL PRIMARY KEY,
|
||||
tg_id INT8 REFERENCES users(id),
|
||||
username TEXT NOT NULL,
|
||||
password TEXT NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX h2_users_uindex ON h2_users(id);
|
||||
CREATE INDEX h2_users_index ON h2_users(tg_id, username);
|
||||
Reference in New Issue
Block a user