-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat.sql
86 lines (77 loc) · 2.44 KB
/
chat.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
CREATE TABLE IF NOT EXISTS `%prefix%chat_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`cid` int(11) NOT NULL,
`isBot` tinyint(1) NOT NULL,
`time` datetime NOT NULL,
`message` text NOT NULL,
`isMsg` int(1) NOT NULL,
`msgTo` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_member` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`cid` int(11) NOT NULL,
`mode` varchar(255) NOT NULL,
`lastActiv` datetime NOT NULL,
`isInAktiv` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_name`(
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`isPriv` tinyint(1) NOT NULL,
`title` text NOT NULL,
`members` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_ignore`(
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`ignore` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`nick` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`avatar` varchar(255) NOT NULL,
`ip` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_smylie` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag` varchar(255) NOT NULL,
`url` text NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_plugin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`dir` varchar(255) NOT NULL,
`method` varchar(255) NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_updater` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dir` varchar(255) NOT NULL,
`version` varchar(255) NOT NULL,
`last_check` int(11) NOT NULL,
`owner` varchar(255) NOT NULL,
`repo` varchar(255) NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `%prefix%chat_error` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`errno` int(11) NOT NULL,
`errstr` varchar(255) NOT NULL,
`errfile` varchar(255) NOT NULL,
`errline` int(11) NOT NULL,
`seen` int(1) NOT NULL,
`time` datetime NOT NULL,
PRIMARY KEY(`id`)
) ENGINE=MyISAM;
INSERT INTO `%prefix%chat_name` (`id`,`name`,`isPriv`,`title`) VALUES('1','Bot','".No."','Channel to connect system and user togeter');