1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/plugin/AI/install/updateV5.0.sql
2024-03-05 15:37:54 -03:00

16 lines
No EOL
563 B
SQL

CREATE TABLE IF NOT EXISTS `ai_responses_json` (
`id` INT NOT NULL AUTO_INCREMENT,
`response` MEDIUMTEXT NOT NULL,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`ai_type` VARCHAR(45) NOT NULL,
`ai_responses_id` INT NOT NULL,
PRIMARY KEY (`id`),
INDEX `typeAiIndex` (`ai_type` ASC) ,
INDEX `fk_ai_responses_json_ai_responses1_idx` (`ai_responses_id` ASC) ,
CONSTRAINT `fk_ai_responses_json_ai_responses1`
FOREIGN KEY (`ai_responses_id`)
REFERENCES `ai_responses` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;