-
Notifications
You must be signed in to change notification settings - Fork 14
/
esx_races.sql
42 lines (37 loc) · 1.13 KB
/
esx_races.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
INSERT INTO `items` (name, label, `limit`) VALUES
('solo_key', 'Cle conte la montre', 10)
;
CREATE TABLE IF NOT EXISTS `solo_race` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(255) NOT NULL,
`record` int(11) NOT NULL,
`race` int(11) NOT NULL,
`vehicle` int(11) NOT NULL,
`record_date` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `items` (name, label, `limit`) VALUES
('multi_key', 'Cle course de rue', 10)
;
CREATE TABLE IF NOT EXISTS `multi_race` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` varchar(255) NOT NULL,
`race` int(11) NOT NULL,
`nb_laps` int(11) NOT NULL,
`nb_pers` int(11) NOT NULL,
`ended` tinyint(1) NOT NULL,
`created_date` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `record_multi` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(255) COLLATE utf8mb4_bin NOT NULL,
`race` int(11) NOT NULL,
`record` int(11) NOT NULL,
`vehicle` int(11) NOT NULL,
`nb_laps` int(11) NOT NULL,
`multi_race_id` int(11) NOT NULL,
`ended` tinyint(1) NOT NULL,
`record_date` int(11) NOT NULL,
PRIMARY KEY (`id`)
);