commit
6357363f3b
3 changed files with 25 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
.idea
|
||||
|
||||
config.yaml
|
||||
|
||||
.DS_Store
|
6
config.sample.yaml
Normal file
6
config.sample.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
database:
|
||||
user: 'DATABASE_USER'
|
||||
password: 'DATABASE_PASSWORD'
|
||||
host: 'DATABASE_HOST'
|
||||
database: 'DATABASE_NAME'
|
||||
token: '6263165538:AAGSbV8cAfL4Gxz08B_VVrxETMhzAez78wc'
|
14
database/data/schema.sql
Normal file
14
database/data/schema.sql
Normal 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['⭐']
|
||||
);
|
Reference in a new issue