1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/plugin/Scheduler/install/install.sql
2023-01-31 15:33:06 -03:00

25 lines
No EOL
875 B
SQL

CREATE TABLE IF NOT EXISTS `scheduler_commands` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`callbackURL` VARCHAR(255) NOT NULL,
`parameters` TEXT NULL DEFAULT NULL,
`created` DATETIME NULL DEFAULT NULL,
`modified` DATETIME NULL DEFAULT NULL,
`date_to_execute` DATETIME NULL,
`executed_in` DATETIME NULL DEFAULT NULL,
`status` CHAR(1) NOT NULL DEFAULT 'a',
`callbackResponse` TEXT NULL DEFAULT NULL,
`timezone` VARCHAR(255) NULL,
`repeat_minute` INT NULL,
`repeat_hour` INT NULL,
`repeat_day_of_month` INT NULL,
`repeat_month` INT NULL,
`day_of_week` INT NULL,
`videos_id` INT(11) NULL,
PRIMARY KEY (`id`),
INDEX `fk_scheduler_commands_videos1_idx` (`videos_id` ASC) VISIBLE,
CONSTRAINT `fk_scheduler_commands_videos1`
FOREIGN KEY (`videos_id`)
REFERENCES `videos` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;