forked from science-ation/science-ation
900dab702d
- Admin can use the tour manager to add tours - Admin can use the config variables to enable tours, and select the min/max number of tour choices. - Students will see a "Tour Selection" section of registration, which is incomplete until the student has selected at least a minimum number of tours.... actually, this may be broken.. Need to look at it further..
42 lines
1.2 KiB
SQL
42 lines
1.2 KiB
SQL
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `tours` and `tours_choice`
|
|
--
|
|
|
|
CREATE TABLE `tours` (
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
`year` int(10) unsigned NOT NULL default '0',
|
|
`name` tinytext NOT NULL,
|
|
`description` text NOT NULL,
|
|
`capacity` int(11) NOT NULL default '0',
|
|
`grade_min` int(11) NOT NULL default '7',
|
|
`grade_max` int(11) NOT NULL default '12',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM;
|
|
|
|
|
|
CREATE TABLE `tours_choice` (
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
`students_id` int(10) unsigned NOT NULL default '0',
|
|
`registrations_id` int(10) unsigned NOT NULL default '0',
|
|
`tour_id` int(10) unsigned NOT NULL default '0',
|
|
`year` int(11) NOT NULL default '0',
|
|
`rank` int(11) NOT NULL default '0',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM;
|
|
|
|
|
|
--
|
|
-- Dumping data for table `config`
|
|
--
|
|
|
|
INSERT INTO `config` (`var`, `val`, `description`, `year`) VALUES
|
|
|
|
('tours_enable', 'no', 'Tours', 0, 'Enable the "tours" module. Set to "yes" to allow participants to select tours', -1),
|
|
('tours_choices_min', '1', 'Tours', 100, 'Minimum number of tours a participant must select', -1),
|
|
('tours_choices_max', '3', 'Tours', 200, 'Maximum number of tours a participant may select', -1);
|
|
|
|
|
|
|