forked from science-ation/science-ation
17 lines
567 B
MySQL
17 lines
567 B
MySQL
|
CREATE TABLE `users_student` (
|
||
|
`users_uid` INT NOT NULL ,
|
||
|
`schools_id` INT NOT NULL ,
|
||
|
`students_active` ENUM( 'yes', 'no' ) NULL ,
|
||
|
`students_complete` ENUM( 'yes', 'no' ) NULL ,
|
||
|
`grade` INT NULL ,
|
||
|
PRIMARY KEY ( `users_uid` )
|
||
|
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||
|
|
||
|
CREATE TABLE `users_conferences_link` (
|
||
|
`users_uid` INT NOT NULL ,
|
||
|
`conferences_id` INT NOT NULL ,
|
||
|
PRIMARY KEY ( `users_uid` , `conferences_id` )
|
||
|
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||
|
|
||
|
ALTER TABLE `so_teams` ADD `conferences_id` INT NOT NULL AFTER `id`;
|