Skip to content

Commit f2258f3

Browse files
committed
feat(schema): add bot_chats and global_bans tables
- Introduced new tables for managing bot chat records and global bans in the PostgreSQL schema. - The bot_chats table includes fields for chat_id and added_at. - The global_bans table includes fields for user_id, admin_id, reason, and created_at.
1 parent 23b764e commit f2258f3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

schema.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,15 @@ CREATE TABLE IF NOT EXISTS globally_verified_users (
5252
user_id BIGINT PRIMARY KEY,
5353
verified_at TIMESTAMPTZ DEFAULT NOW()
5454
);
55+
56+
CREATE TABLE IF NOT EXISTS bot_chats (
57+
chat_id BIGINT PRIMARY KEY,
58+
added_at TIMESTAMPTZ DEFAULT NOW()
59+
);
60+
61+
CREATE TABLE IF NOT EXISTS global_bans (
62+
user_id BIGINT PRIMARY KEY,
63+
admin_id BIGINT NOT NULL,
64+
reason TEXT,
65+
created_at TIMESTAMPTZ DEFAULT NOW()
66+
);

0 commit comments

Comments
 (0)