chore: Added sql schemas

This commit is contained in:
Danil 2024-12-05 21:20:22 +03:00
parent c3777b8875
commit 77825c37a9

14
database/data/schema.sql Normal file
View file

@ -0,0 +1,14 @@
CREATE TABLE message
(
message_id BIGINT NOT NULL,
chat_id BIGINT NOT NULL,
reaction_count INT DEFAULT 0
);
CREATE TABLE chat
(
chat_id BIGINT NOT NULL,
channel_id BIGINT,
min_reaction_count INT DEFAULT 5,
emoji_list TEXT[] DEFAULT array['']
);