   `experiment` INT(11) NOT NULL,
   `answer_r` INT(11) NOT NULL,
   `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-  `rating` INT(11) NULL DEFAULT NULL,
+  `rating` INT(11) NOT NULL,
+  `reservation` INT NOT NULL,
   `feedback` TEXT NULL DEFAULT NULL,
   `worker_id` INT(11) NOT NULL,
   `quality` INT(11) NULL DEFAULT NULL,

-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `crowdcontrol`.`Worker` (
  `id_worker` INT(11) NOT NULL AUTO_INCREMENT,
  `identification` VARCHAR(191) NULL DEFAULT NULL,
  `platform` VARCHAR(191) NOT NULL,
  `email` VARCHAR(191) NULL DEFAULT NULL,
  `quality` INT NOT NULL DEFAULT 9,
  PRIMARY KEY (`id_worker`),
  INDEX `workerOrigin_idx` (`platform` ASC),
  CONSTRAINT `workerOrigin`

  CONSTRAINT `workerAnswered`
    FOREIGN KEY (`worker_id`)
    REFERENCES `crowdcontrol`.`Worker` (`id_worker`)
    ON DELETE CASCADE
    ON UPDATE CASCADE,
  CONSTRAINT `reservation_answer`
    FOREIGN KEY (`reservation`)
    REFERENCES `crowdcontrol`.`Answer_Reservation` (`idAnswer_Reservation`)
    ON DELETE CASCADE
    ON UPDATE CASCADE)
ENGINE = InnoDB
