   INDEX `idAnswers_idx` (`answer_r` ASC),
   INDEX `workerRated_idx` (`worker_id` ASC),
   INDEX `idExperimentRating_idx` (`experiment` ASC),
+  INDEX `reservation_idx` (`reservation` ASC),
   CONSTRAINT `idAnswersRatings`
     FOREIGN KEY (`answer_r`)
     REFERENCES `crowdcontrol`.`Answer` (`id_answer`)
-    ON DELETE CASCADE
-    ON UPDATE CASCADE,
+    ON DELETE RESTRICT
+    ON UPDATE RESTRICT,
   CONSTRAINT `idExperimentRating`
     FOREIGN KEY (`experiment`)
     REFERENCES `crowdcontrol`.`Experiment` (`id_experiment`)
-    ON DELETE CASCADE
-    ON UPDATE CASCADE,
+    ON DELETE RESTRICT
+    ON UPDATE RESTRICT,
   CONSTRAINT `workerRated`
     FOREIGN KEY (`worker_id`)
     REFERENCES `crowdcontrol`.`Worker` (`id_worker`)
+    ON DELETE CASCADE
+    ON UPDATE CASCADE,
+  CONSTRAINT `reservation_rating`
+    FOREIGN KEY (`reservation`)
+    REFERENCES `crowdcontrol`.`Rating_Reservation` (`idReserverd_Rating`)
     ON DELETE CASCADE
     ON UPDATE CASCADE)
 ENGINE = InnoDB

  `idExperiments_Platforms` INT NOT NULL AUTO_INCREMENT,
  `experiment` INT NOT NULL,
  `platform` VARCHAR(191) NULL,
  `platform_data` MEDIUMTEXT NULL DEFAULT NULL,
  PRIMARY KEY (`idExperiments_Platforms`),
  INDEX `platform_user_idx` (`experiment` ASC),
  INDEX `active_platform_idx` (`platform` ASC),

  `experiment` INT(11) NOT NULL,
  `answer_r` INT(11) NOT NULL,
  `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `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,
