/*
Dreamer CMS 数据库备份工具 时间：2025-04-09
*/

DROP TABLE IF EXISTS `system_scheduled`;

/*
Table structure for table `system_scheduled`
*/
CREATE TABLE `system_scheduled` (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `task_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称',
  `clazz_name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '完整类路径',
  `cron_expression` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'cron表达式',
  `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin COMMENT '描述',
  `status` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态（1：启用；0：禁用）',
  `create_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `update_by` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

/*
Data for table `system_scheduled`
*/
INSERT INTO `system_scheduled`(`clazz_name`, `create_by`, `create_time`, `cron_expression`, `id`, `remark`, `status`, `task_name`, `update_by`, `update_time`) VALUES ('cc.iteachyou.cms.task.tasks.DataBaseBackupTask', '9f4b807db2e94670bb02cdc212ea7389', STR_TO_DATE('2022-07-23 11:01:23','%Y-%m-%d %H:%i:%s'), '*/5 * * * * ?', 'e634e0b659fd456fa23946840734ac19', '数据库备份（每日0点备份一次）', '0', '数据库备份', '9f4b807db2e94670bb02cdc212ea7389', STR_TO_DATE('2021-03-16 03:55:31','%Y-%m-%d %H:%i:%s'));
