alter table is_training_material add column is_picture_show int(2) DEFAULT '0' COMMENT '商品主图是否显示';

alter table is_training_material_parameter add column is_show int(2) DEFAULT '0' COMMENT '是否显示';

ALTER TABLE `is_training_operate_check_template_detail`
MODIFY COLUMN `detail_url`  varchar(6144) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL AFTER `detail_name`;
ALTER TABLE `is_training_operate_check_template_detail`
ADD COLUMN `detail_parameter`  varchar(2048) NULL AFTER `detail_url`;


ALTER TABLE `is_training_operate_template_detail`
MODIFY COLUMN `detail_url`  varchar(6144) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL AFTER `detail_name`;
ALTER TABLE `is_training_operate_template_detail`
ADD COLUMN `detail_parameter`  varchar(2048) NULL AFTER `detail_url`;

ALTER TABLE is_training_paper ADD `is_send_message` int(2) DEFAULT '0' COMMENT'发布考试时是否发送消息给考试人员：1-发送，0-不发送';


ALTER TABLE `is_training_user_operate_detail`
MODIFY COLUMN `detail_url`  varchar(6144) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL AFTER `detail_name`;
ALTER TABLE `is_training_user_operate_detail`
MODIFY COLUMN `detail_url`  varchar(6144) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL AFTER `detail_name`,
ADD COLUMN `detail_parameter`  varchar(2048) NULL AFTER `detail_url`;

CREATE TABLE `is_training_course_push` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enterprise_id` int(11) DEFAULT NULL COMMENT '企业id',
  `course_id` int(11) DEFAULT NULL,
  `push_time` datetime DEFAULT NULL,
  `push_type` int(2) DEFAULT NULL COMMENT '推送给  0全部学员 1未完成学员 2部分人',
  `push_title` varchar(64) DEFAULT NULL COMMENT '推送标题',
  `push_content` varchar(1024) DEFAULT NULL COMMENT '推送内容',
  `push_user_id` int(11) DEFAULT NULL,
  `push_status` int(2) DEFAULT NULL COMMENT '执行状态  0待执行 1执行中 2执行完成',
  PRIMARY KEY (`id`),
  KEY `enterprise_id` (`enterprise_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='培训计划推送';

CREATE TABLE `is_training_course_push_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `push_time` datetime DEFAULT NULL,
  `course_push_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `is_success` int(2) DEFAULT NULL COMMENT '是否成功 0失败 1成功',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='推送具体用户';

DROP TABLE IF EXISTS `is_training_stars`;
CREATE TABLE `is_training_stars`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `training_id` int(11) NOT NULL COMMENT '课程id',
  `user_id` int(255) NULL DEFAULT NULL COMMENT '用户id',
  `stars` int(2) NULL DEFAULT NULL COMMENT '评星数',
  `comment` blob NULL COMMENT '评论信息',
  `enterprise_id` int(255) NULL DEFAULT NULL COMMENT '企业id',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='课程评分表';



