Skip to content

Commit e74f7d0

Browse files
committed
Update structure.sql
1 parent fe4c545 commit e74f7d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

structure.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
2727
`chat_id` bigint COMMENT 'Unique user or chat identifier',
2828

2929
PRIMARY KEY (`user_id`, `chat_id`),
30+
3031
FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
3132
ON DELETE CASCADE ON UPDATE CASCADE,
32-
3333
FOREIGN KEY (`chat_id`) REFERENCES `chat` (`id`)
3434
ON DELETE CASCADE ON UPDATE CASCADE
3535
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
@@ -161,6 +161,7 @@ CREATE TABLE IF NOT EXISTS `edited_message` (
161161
`text` TEXT DEFAULT NULL COMMENT 'For text messages, the actual UTF-8 text of the message max message length 4096 char utf8',
162162
`entities` TEXT DEFAULT NULL COMMENT 'For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text',
163163
`caption` TEXT DEFAULT NULL COMMENT 'For message with caption, the actual UTF-8 text of the caption',
164+
164165
PRIMARY KEY (`id`),
165166
KEY `chat_id` (`chat_id`),
166167
KEY `message_id` (`message_id`),

0 commit comments

Comments
 (0)