You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
581 B

CREATE TABLE `event_videos` (
`id` INT NOT NULL AUTO_INCREMENT,
`image` VARCHAR(500) NULL,
`title` VARCHAR(255) NULL,
`duration` VARCHAR(10) NULL,
`description` TEXT NULL,
`embed` TEXT NULL,
`url` VARCHAR(255) NULL,
`owner` VARCHAR(50) NULL,
`event_id` INT(10) NOT NULL,
`status` TINYINT(2) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`));
ALTER TABLE `event_videos`
ADD KEY `fk_event_videos_event_id` (`event_id`),
ADD CONSTRAINT `fk_event_videos_event_id` FOREIGN KEY (`event_id`) REFERENCES `event` (`event_id`) ON UPDATE CASCADE;