SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for core_log_operation
-- ----------------------------
CREATE TABLE `core_log_operation`
(
    `id`          varchar(50) NOT NULL,
    `create_time` datetime    NOT NULL,
    `update_time` datetime    NOT NULL,
    `is_deleted`  int(6)      NOT NULL DEFAULT '0',
    `user_id`     varchar(50)          DEFAULT NULL COMMENT '用户id',
    `user_name`   varchar(255)         DEFAULT NULL COMMENT '用户名称',
    `title`       varchar(255)         DEFAULT NULL COMMENT '标题',
    `subject`     varchar(500)         DEFAULT NULL COMMENT '小标题',
    `params`      text COMMENT '其他参数',
    PRIMARY KEY (`id`)
) ENGINE = InnoDB
  DEFAULT CHARSET = utf8mb4 COMMENT ='日志-操作';

CREATE TABLE `core_config_system`
(
    `id`          varchar(50)  NOT NULL,
    `create_time` datetime     NOT NULL,
    `update_time` datetime     NOT NULL,
    `is_deleted`  int(4)       NOT NULL DEFAULT '0',
    `config_key`  varchar(255) NOT NULL,
    `config_val`  text,
    `config_type` int(6)       NOT NULL DEFAULT '0' COMMENT '类型:0-文本,1-图片,2-开关',
    `remark`      varchar(500)          DEFAULT NULL COMMENT '说明',
    `extra`       varchar(255)          DEFAULT NULL COMMENT '额外配置',
    `read_only`   int(6)       NOT NULL DEFAULT '0' COMMENT '0-否，1-是',
    PRIMARY KEY (`id`),
    UNIQUE KEY `uni_key` (`config_key`(50)) USING BTREE
) ENGINE = InnoDB
  DEFAULT CHARSET = utf8mb4 COMMENT ='配置-系统';

INSERT INTO `core_config_system`(`id`, `create_time`, `update_time`, `is_deleted`, `config_key`, `config_val`,
                                 `config_type`, `remark`, `extra`, `read_only`)
VALUES ('manager_web_copyright', '2022-02-23 16:52:48', '2022-02-23 16:52:49', 0, 'manager_web_copyright',
        '杭州铁晟提供技术支持', 0, '网站底部版权信息', '', 0);

INSERT INTO `core_config_system`(`id`, `create_time`, `update_time`, `is_deleted`, `config_key`, `config_val`,
                                 `config_type`, `remark`, `extra`, `read_only`)
VALUES ('manager_web_title', '2022-02-24 11:56:53', '2022-02-24 11:56:53', 0, 'manager_web_title', '网站名称', 0,
        '网站名称', '', 0);

INSERT INTO `core_config_system`(`id`, `create_time`, `update_time`, `is_deleted`, `config_key`, `config_val`,
                                 `config_type`, `remark`, `extra`, `read_only`)
VALUES ('manager_web_logo', '2022-02-24 11:56:53', '2022-02-24 11:56:53', 0, 'manager_web_logo', '', 1,
        '网站LOGO', '', 0);

SET FOREIGN_KEY_CHECKS = 1;
