-
Notifications
You must be signed in to change notification settings - Fork 18
/
create_table.SQL
39 lines (36 loc) · 1.11 KB
/
create_table.SQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CREATE TABLE IF NOT EXISTS `BNoteBot_memo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userID` int(11) NOT NULL,
`type` text,
`memo` text,
`file_id` text,
`duration` int(11) NOT NULL DEFAULT '0',
`timestamp` int(11) NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `memo` (`memo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ;
CREATE TABLE IF NOT EXISTS `BNoteBot_reminder` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userID` int(11) NOT NULL,
`memoid` int(11) NOT NULL,
`timestamp` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ;
CREATE TABLE IF NOT EXISTS `BNoteBot_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userID` text,
`username` text,
`name` text,
`status` text,
`lang` text,
`invertmemodata` int(1) NOT NULL DEFAULT '0',
`justwritemode` tinyint(1) NOT NULL DEFAULT '1',
`timezone` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ;
CREATE TABLE IF NOT EXISTS `BNoteBot_sentinline` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`memo_id` int(11) NOT NULL,
`msg_id` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 ;