2008-09-15 03:59:53 +00:00
|
|
|
CREATE TABLE `users_years` (
|
2008-09-15 03:51:52 +00:00
|
|
|
`id` INT NOT NULL AUTO_INCREMENT ,
|
|
|
|
`users_id` INT NOT NULL ,
|
|
|
|
`type` ENUM( 'student', 'judge', 'committee', 'volunteer', 'fair' ) NOT NULL ,
|
|
|
|
`year` INT NOT NULL ,
|
|
|
|
PRIMARY KEY ( `id` ) ,
|
|
|
|
INDEX ( `users_id` )
|
|
|
|
) ENGINE = MYISAM ;
|
|
|
|
|
|
|
|
ALTER TABLE `users_committee` ADD `active` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no' AFTER `users_id` ;
|
|
|
|
ALTER TABLE `users_fair` ADD `active` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no' AFTER `users_id` ;
|
|
|
|
ALTER TABLE `users_volunteer` ADD `active` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no' AFTER `users_id` ;
|
|
|
|
|
2008-09-15 03:59:53 +00:00
|
|
|
CREATE TABLE `users_judge` (
|
2008-09-15 03:51:52 +00:00
|
|
|
`users_id` INT NOT NULL ,
|
|
|
|
`active` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no',
|
|
|
|
`years_school` TINYINT NOT NULL ,
|
|
|
|
`years_regional` TINYINT NOT NULL ,
|
|
|
|
`years_national` TINYINT NOT NULL ,
|
|
|
|
`willing_chair` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no',
|
|
|
|
`special_awards_only` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no',
|
|
|
|
PRIMARY KEY ( `users_id` )
|
|
|
|
) ENGINE = MYISAM ;
|
|
|
|
|