Initial commit

This commit is contained in:
2022-10-19 10:23:55 +02:00
commit e144a0aecc
13 changed files with 2544 additions and 0 deletions

View 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
);