CREATE TABLE `schedule_users_availability_link` ( `schedule_id` INT NOT NULL , `users_id` INT NOT NULL , `roles_id` INT NOT NULL , PRIMARY KEY ( `schedule_id` , `users_id` , `roles_id`) ) ENGINE = MYISAM ;