From 77825c37a93ddb1fb4665f7f0b7611ee01012945 Mon Sep 17 00:00:00 2001 From: Redume Date: Thu, 5 Dec 2024 21:20:22 +0300 Subject: [PATCH] chore: Added sql schemas --- database/data/schema.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 database/data/schema.sql diff --git a/database/data/schema.sql b/database/data/schema.sql new file mode 100644 index 0000000..de0939e --- /dev/null +++ b/database/data/schema.sql @@ -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['⭐'] +); \ No newline at end of file