-
Notifications
You must be signed in to change notification settings - Fork 14
/
MYSQL
39 lines (36 loc) · 963 Bytes
/
MYSQL
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 `homes` (
`owner` varchar(50) NOT NULL,
`home` varchar(50) NOT NULL,
`world` varchar(50) NOT NULL,
`x` double NOT NULL,
`y` double NOT NULL,
`z` double NOT NULL,
`pitch` float NOT NULL,
`yaw` float NOT NULL,
PRIMARY KEY (`owner`,`home`)
);
CREATE TABLE `invites` (
`source` varchar(50) NOT NULL,
`home` varchar(50) NOT NULL,
`target` varchar(50) NOT NULL,
`expires` datetime DEFAULT NULL,
`reason` varchar(250) DEFAULT NULL,
PRIMARY KEY (`source`,`home`,`target`)
);
CREATE TABLE `warmups` (
`player` varchar(50) NOT NULL,
`expiry` datetime NOT NULL,
`world` varchar(50) NOT NULL,
`x` double NOT NULL,
`y` double NOT NULL,
`z` double NOT NULL,
`pitch` float NOT NULL,
`yaw` float NOT NULL,
`cost` double NOT NULL,
PRIMARY KEY (`player`)
);
CREATE TABLE `cooldowns` (
`player` varchar(50) NOT NULL,
`expiry` datetime NOT NULL,
PRIMARY KEY (`player`)
);