-
Notifications
You must be signed in to change notification settings - Fork 7
/
rtcPong.sql
22 lines (18 loc) · 1 KB
/
rtcPong.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- DESCRIBE rtcPong;
-- +-----------+---------------------+------+-----+---------+----------------+
-- | Field | Type | Null | Key | Default | Extra |
-- +-----------+---------------------+------+-----+---------+----------------+
-- | id | int(4) | NO | PRI | 0 | |
-- | to | enum('alice','bob') | NO | PRI | NULL | |
-- | msg_id | int(4) | NO | PRI | NULL | auto_increment |
-- | timestamp | datetime | NO | | NULL | |
-- | msg | text | NO | | NULL | |
-- +-----------+---------------------+------+-----+---------+----------------+
CREATE TABLE `rtcPong` (
`id` int(4) NOT NULL DEFAULT '0',
`to` enum('alice','bob') NOT NULL,
`msg_id` int(4) NOT NULL AUTO_INCREMENT,
`timestamp` datetime NOT NULL,
`msg` text NOT NULL,
PRIMARY KEY (`id`,`to`,`msg_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;