Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
e74f7d01
Commit
e74f7d01
authored
May 26, 2016
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update structure.sql
parent
fe4c5455
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
structure.sql
structure.sql
+2
-1
No files found.
structure.sql
View file @
e74f7d01
...
@@ -27,9 +27,9 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
...
@@ -27,9 +27,9 @@ CREATE TABLE IF NOT EXISTS `user_chat` (
`chat_id`
bigint
COMMENT
'Unique user or chat identifier'
,
`chat_id`
bigint
COMMENT
'Unique user or chat identifier'
,
PRIMARY
KEY
(
`user_id`
,
`chat_id`
),
PRIMARY
KEY
(
`user_id`
,
`chat_id`
),
FOREIGN
KEY
(
`user_id`
)
REFERENCES
`user`
(
`id`
)
FOREIGN
KEY
(
`user_id`
)
REFERENCES
`user`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
FOREIGN
KEY
(
`chat_id`
)
REFERENCES
`chat`
(
`id`
)
FOREIGN
KEY
(
`chat_id`
)
REFERENCES
`chat`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_520_ci
;
...
@@ -161,6 +161,7 @@ CREATE TABLE IF NOT EXISTS `edited_message` (
...
@@ -161,6 +161,7 @@ CREATE TABLE IF NOT EXISTS `edited_message` (
`text`
TEXT
DEFAULT
NULL
COMMENT
'For text messages, the actual UTF-8 text of the message max message length 4096 char utf8'
,
`text`
TEXT
DEFAULT
NULL
COMMENT
'For text messages, the actual UTF-8 text of the message max message length 4096 char utf8'
,
`entities`
TEXT
DEFAULT
NULL
COMMENT
'For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text'
,
`entities`
TEXT
DEFAULT
NULL
COMMENT
'For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text'
,
`caption`
TEXT
DEFAULT
NULL
COMMENT
'For message with caption, the actual UTF-8 text of the caption'
,
`caption`
TEXT
DEFAULT
NULL
COMMENT
'For message with caption, the actual UTF-8 text of the caption'
,
PRIMARY
KEY
(
`id`
),
PRIMARY
KEY
(
`id`
),
KEY
`chat_id`
(
`chat_id`
),
KEY
`chat_id`
(
`chat_id`
),
KEY
`message_id`
(
`message_id`
),
KEY
`message_id`
(
`message_id`
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment