forked from science-ation/science-ation
7e749f0295
Partially implemented student manager under school dashboard for science olypmics
17 lines
567 B
SQL
17 lines
567 B
SQL
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`;
|