
-- ----------------------------
-- 轮播图表
-- ----------------------------
drop table if exists `train_exam`.`sys_carousel`;
CREATE TABLE `train_exam`.`sys_carousel`  (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键' ,
`status` tinyint NOT NULL DEFAULT 0 COMMENT '账号状态(0正常，1停用，默认0)',
`sort` int UNSIGNED NOT NULL DEFAULT 1 COMMENT '排序',
`title` varchar(100) NOT NULL COMMENT '广告标题',
`img_url` varchar(255)  NOT NULL DEFAULT '' COMMENT '广告图片',
`web_url` varchar(255)  NULL COMMENT '广告链接',
`carousel_target` varchar(20)  NOT NULL DEFAULT '_blank' COMMENT '广告跳转方式',
`begin_time` datetime NULL DEFAULT NULL COMMENT '开始时间',
`end_time` datetime NULL DEFAULT NULL COMMENT '结束时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`create_by` varchar(50) NULL DEFAULT NULL COMMENT '创建人',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`update_by` varchar(50) NULL DEFAULT NULL COMMENT '更新人',
`remark` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`version` int NULL DEFAULT 0 COMMENT '乐观锁',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '轮播图表' ROW_FORMAT = DYNAMIC;
