CREATE TABLE IF NOT EXISTS `funsecretos`.`sections` (
  `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` INT(11) UNSIGNED NOT NULL,
  `name` VARCHAR(45) NOT NULL,
  `menu_name` VARCHAR(45) NULL,
  `summary` VARCHAR(100) NULL,
  `image` VARCHAR(255) NULL,
  `url` VARCHAR(255) NULL,
  `description` TEXT NOT NULL,
  `order` INT(11) NULL DEFAULT 0,
  `show_in_landing` TINYINT(4) NULL DEFAULT 0 COMMENT '0-No, 1-Yes',
  `show_in_menu` TINYINT(4) NULL DEFAULT 0 COMMENT '0-No, 1-Yes',
  `status` TINYINT(4) NULL DEFAULT 0 COMMENT '0-Inactive, 1-Active',
  `type` TINYINT(4) NULL DEFAULT 0 COMMENT '0-Only text, 1-Text image, 2-Text video, 3-Text image and video.',
  `created_at` TIMESTAMP NULL,
  `updated_at` TIMESTAMP NULL,
  PRIMARY KEY (`id`),
  INDEX `fk_sections_users1_idx` (`user_id` ASC),
  CONSTRAINT `fk_sections_users1`
    FOREIGN KEY (`user_id`)
    REFERENCES `funsecretos`.`users` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;