-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathevent.sql
More file actions
30 lines (28 loc) · 1.09 KB
/
event.sql
File metadata and controls
30 lines (28 loc) · 1.09 KB
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
CREATE TABLE IF NOT EXISTS `phpvms_events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date NOT NULL DEFAULT '0000-00-00',
`time` time NOT NULL DEFAULT '00:00:00',
`title` varchar(50) NOT NULL,
`description` varchar(2000) NOT NULL,
`image` varchar(100) NOT NULL,
`dep` varchar(4) NOT NULL,
`arr` varchar(4) NOT NULL,
`schedule` varchar(5) NOT NULL,
`slot_limit` int(11) NOT NULL DEFAULT '0',
`slot_interval` int(1) NOT NULL,
`active` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `phpvms_events_pilotranks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pilot_id` int(11) NOT NULL,
`ranking` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `phpvms_events_signups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event_id` int(11) NOT NULL,
`pilot_id` int(11) NOT NULL,
`time` time NOT NULL DEFAULT '00:00:00',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;