initial commit

This commit is contained in:
2025-02-23 12:05:49 +05:00
commit 68b874d791
34 changed files with 566 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
create table admins
(
chat_id INTEGER
primary key,
username TEXT
);
+10
View File
@@ -0,0 +1,10 @@
create table events
(
id INTEGER
primary key autoincrement,
hash TEXT
unique,
data TEXT,
delivered BOOLEAN
);
+8
View File
@@ -0,0 +1,8 @@
create table regions
(
region_id TEXT
primary key,
region_name TEXT,
active BOOLEAN default TRUE
);
+10
View File
@@ -0,0 +1,10 @@
create table subscriptions
(
chat_id INTEGER,
region_id TEXT,
username TEXT,
active BOOLEAN default TRUE,
skip BOOLEAN default FALSE,
unique (chat_id, region_id)
);
+10
View File
@@ -0,0 +1,10 @@
create table user_events
(
id INTEGER
primary key autoincrement,
chat_id INTEGER,
username TEXT,
action TEXT,
timestamp TEXT
);
+8
View File
@@ -0,0 +1,8 @@
create table whitelist
(
chat_id INTEGER
primary key,
username TEXT,
user_email TEXT
);