-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.sql
29 lines (25 loc) · 850 Bytes
/
tables.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
--
-- Table structure for table `webchat_lines`
--
CREATE TABLE `webchat_lines` (
`id` int(10) unsigned NOT NULL auto_increment,
`author` varchar(16) NOT NULL,
`gravatar` varchar(32) NOT NULL,
`text` varchar(255) NOT NULL,
`ts` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `ts` (`ts`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `webchat_users`
--
CREATE TABLE `webchat_users` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(16) NOT NULL,
`gravatar` varchar(32) NOT NULL,
`last_activity` timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `last_activity` (`last_activity`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;