Initial commit
This commit is contained in:
13
migrations/2022-10-18-144346_create_base_table/up.sql
Normal file
13
migrations/2022-10-18-144346_create_base_table/up.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE chat (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
telegram_id BIGINT UNIQUE NOT NULL,
|
||||
calendar TEXT NOT NULL,
|
||||
next_appointment_start BIGINT,
|
||||
next_appointment_end BIGINT,
|
||||
last_reminder BIGINT,
|
||||
pinned_message_id INTEGER
|
||||
);
|
||||
|
||||
CREATE INDEX chat_telegram_id ON chat (
|
||||
telegram_id
|
||||
);
|
||||
Reference in New Issue
Block a user