-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.sql
More file actions
26 lines (22 loc) · 807 Bytes
/
init.sql
File metadata and controls
26 lines (22 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ----------------------------- ACUBOT DATABASE MODEL ----------------------------- */
CREATE TABLE acunetix_auth (
id serial PRIMARY KEY,
email TEXT,
password TEXT,
apikey TEXT
);
-- CREATE TABLE users (
-- id serial PRIMARY KEY,
-- tgid BIGINT NOT NULL UNIQUE,
-- nickname TEXT,
-- first_name TEXT,
-- last_name TEXT,
-- is_banned boolean NOT NULL DEFAULT false,
-- is_admin boolean NOT NULL DEFAULT false,
-- created_at TIMESTAMP NOT NULL DEFAULT NOW()
-- );
-- CREATE TABLE user_settings (
-- id serial PRIMARY KEY,
-- tgid BIGINT NOT NULL UNIQUE,
-- notifyonsuccess boolean NOT NULL DEFAULT 1
-- );