-- Deploy mimas-talos:talos_diary_feed_weight to mysql

BEGIN;

CREATE TABLE `talos_diaryfeedweight` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `diary_id` integer NOT NULL UNIQUE,
    `start_time` datetime(6) NOT NULL,
    `end_time` datetime(6) NOT NULL,
    `weight` integer NOT NULL
)
;
ALTER TABLE `talos_diaryfeedweight` ADD CONSTRAINT `diary_id_refs_id_f989086b` FOREIGN KEY (`diary_id`) REFERENCES `api_diary` (`id`);
CREATE INDEX `talos_diaryfeedweight_67548958` ON `talos_diaryfeedweight` (`diary_id`);

COMMIT;
