forked from science-ation/science-ation
82697d2dd8
store the signups for those positions. - Add the 'volunteer' report type in the database.
21 lines
630 B
SQL
21 lines
630 B
SQL
CREATE TABLE `volunteer_positions` (
|
|
`id` INT NOT NULL AUTO_INCREMENT ,
|
|
`name` VARCHAR( 128 ) NOT NULL ,
|
|
`desc` TINYTEXT NOT NULL ,
|
|
`meet_place` TINYTEXT NOT NULL ,
|
|
`start` DATETIME NOT NULL ,
|
|
`end` DATETIME NOT NULL ,
|
|
`year` INT NOT NULL ,
|
|
PRIMARY KEY ( `id` )
|
|
) TYPE = MYISAM ;
|
|
|
|
CREATE TABLE `volunteer_positions_signup` (
|
|
`id` INT NOT NULL AUTO_INCREMENT ,
|
|
`users_id` INT NOT NULL ,
|
|
`volunteer_positions_id` INT NOT NULL ,
|
|
`year` INT NOT NULL ,
|
|
PRIMARY KEY ( `id` )
|
|
) TYPE = MYISAM ;
|
|
|
|
ALTER TABLE `reports` CHANGE `type` `type` ENUM( 'student', 'judge', 'award', 'committee', 'school', 'volunteer' ) NOT NULL DEFAULT 'student'
|