USE mtinfo_main; CREATE TABLE gebruiker_profiel_inlogcode ( code CHAR(6) PRIMARY KEY NOT NULL, project INT(10) unsigned NOT NULL, gebruiker_profiel INT(10) unsigned NOT NULL, CONSTRAINT gebruiker_profiel_inlogcode_project_id_fk FOREIGN KEY (project) REFERENCES project (id), CONSTRAINT gebruiker_profiel_inlogcode_gebruiker_profiel_id_fk FOREIGN KEY (gebruiker_profiel) REFERENCES gebruiker_profiel (id) ); CREATE INDEX gebruiker_profiel_inlogcode_project_id_fk ON gebruiker_profiel_inlogcode (project); CREATE INDEX gebruiker_profiel_inlogcode_gebruiker_profiel_id_fk ON gebruiker_profiel_inlogcode (gebruiker_profiel); ALTER TABLE project_incheck_uitcheck ADD level TINYINT(2) UNSIGNED NULL; ALTER TABLE project_incheck_uitcheck ADD work_location TINYINT(3) NULL; ALTER TABLE mtinfo_main.enquete_entry ADD gebruiker_tabel ENUM('gebruiker', 'gebruiker_profiel') NOT NULL; ALTER TABLE mtinfo_main.project_documenten ADD gebruiker_tabel ENUM('gebruiker', 'gebruiker_profiel') NOT NULL; ALTER TABLE mtinfo_main.project_documenten_comment ADD gebruiker_tabel ENUM('gebruiker', 'gebruiker_profiel') NOT NULL; ALTER TABLE mtinfo_main.project_incheck_uitcheck ADD lwb_tabel ENUM('gebruiker', 'gebruiker_profiel') NOT NULL; ALTER TABLE mtinfo_main.project_overdracht ADD gebruiker_tabel ENUM('gebruiker', 'gebruiker_profiel') NOT NULL;