forked from bootswithdefer/LogBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.sql
37 lines (35 loc) · 1.05 KB
/
schema.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
CREATE TABLE `blocks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`player` varchar(32) NOT NULL DEFAULT '-',
`replaced` int(11) NOT NULL DEFAULT '0',
`type` int(11) NOT NULL DEFAULT '0',
`x` int(11) NOT NULL DEFAULT '0',
`y` int(11) NOT NULL DEFAULT '0',
`z` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `coords` (`y`,`x`,`z`),
KEY `type` (`type`),
KEY `replaced` (`replaced`),
KEY `player` (`player`)
);
CREATE TABLE `extra` (
`id` int(11) NOT NULL,
`extra` text,
PRIMARY KEY (`id`)
);
CREATE TABLE `events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`category` varchar(32) NOT NULL DEFAULT '-',
`player` varchar(32) NOT NULL DEFAULT '-',
`type` int(11) NOT NULL DEFAULT '0',
`x` int(11) NOT NULL DEFAULT '0',
`y` int(11) NOT NULL DEFAULT '0',
`z` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `coords` (`y`,`x`,`z`),
KEY `type` (`type`),
KEY `category` (`category`),
KEY `player` (`player`)
);