/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.0.231
 Source Server Type    : MySQL
 Source Server Version : 80036
 Source Host           : 192.168.0.231:3306
 Source Schema         : prod_sma

 Target Server Type    : MySQL
 Target Server Version : 80036
 File Encoding         : 65001

 Date: 18/06/2026 17:00:51
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for gen_table
-- ----------------------------
DROP TABLE IF EXISTS `gen_table`;
CREATE TABLE `gen_table`  (
  `table_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '表名称',
  `table_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '表描述',
  `sub_table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联子表的表名',
  `sub_table_fk_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '子表关联的外键名',
  `class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '实体类名称',
  `tpl_category` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'crud' COMMENT '使用的模板（crud单表操作 tree树表操作）',
  `tpl_web_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '前端模板类型（element-ui模版 element-plus模版）',
  `package_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成包路径',
  `module_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成模块名',
  `business_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成业务名',
  `function_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成功能名',
  `function_author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成功能作者',
  `gen_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '生成代码方式（0zip压缩包 1自定义路径）',
  `gen_path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '/' COMMENT '生成路径（不填默认项目路径）',
  `options` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '其它生成选项',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`table_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of gen_table
-- ----------------------------

-- ----------------------------
-- Table structure for gen_table_column
-- ----------------------------
DROP TABLE IF EXISTS `gen_table_column`;
CREATE TABLE `gen_table_column`  (
  `column_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '编号',
  `table_id` bigint(0) NULL DEFAULT NULL COMMENT '归属表编号',
  `column_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列名称',
  `column_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列描述',
  `column_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列类型',
  `java_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JAVA类型',
  `java_field` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JAVA字段名',
  `is_pk` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否主键（1是）',
  `is_increment` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否自增（1是）',
  `is_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填（1是）',
  `is_insert` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否为插入字段（1是）',
  `is_edit` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否编辑字段（1是）',
  `is_list` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否列表字段（1是）',
  `is_query` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否查询字段（1是）',
  `query_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'EQ' COMMENT '查询方式（等于、不等于、大于、小于、范围）',
  `html_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  `dict_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
  `sort` int(0) NULL DEFAULT NULL COMMENT '排序',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`column_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of gen_table_column
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_blob_triggers`;
CREATE TABLE `qrtz_blob_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `blob_data` blob NULL COMMENT '存放持久化Trigger对象',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Blob类型的触发器表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_blob_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_calendars`;
CREATE TABLE `qrtz_calendars`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '日历名称',
  `calendar` blob NOT NULL COMMENT '存放持久化calendar对象',
  PRIMARY KEY (`sched_name`, `calendar_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '日历信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_calendars
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_cron_triggers`;
CREATE TABLE `qrtz_cron_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `cron_expression` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'cron表达式',
  `time_zone_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '时区',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Cron类型的触发器表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_cron_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_fired_triggers`;
CREATE TABLE `qrtz_fired_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `entry_id` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例id',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例名',
  `fired_time` bigint(0) NOT NULL COMMENT '触发的时间',
  `sched_time` bigint(0) NOT NULL COMMENT '定时器制定的时间',
  `priority` int(0) NOT NULL COMMENT '优先级',
  `state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务名称',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务组名',
  `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否并发',
  `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否接受恢复执行',
  PRIMARY KEY (`sched_name`, `entry_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '已触发的触发器表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_fired_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_job_details`;
CREATE TABLE `qrtz_job_details`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
  `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关介绍',
  `job_class_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行任务类名称',
  `is_durable` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否持久化',
  `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否并发',
  `is_update_data` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否更新数据',
  `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否接受恢复执行',
  `job_data` blob NULL COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`, `job_name`, `job_group`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务详细信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_job_details
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_locks`;
CREATE TABLE `qrtz_locks`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `lock_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '悲观锁名称',
  PRIMARY KEY (`sched_name`, `lock_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '存储的悲观锁信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
CREATE TABLE `qrtz_paused_trigger_grps`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  PRIMARY KEY (`sched_name`, `trigger_group`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '暂停的触发器表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_paused_trigger_grps
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_scheduler_state`;
CREATE TABLE `qrtz_scheduler_state`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实例名称',
  `last_checkin_time` bigint(0) NOT NULL COMMENT '上次检查时间',
  `checkin_interval` bigint(0) NOT NULL COMMENT '检查间隔时间',
  PRIMARY KEY (`sched_name`, `instance_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '调度器状态表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simple_triggers`;
CREATE TABLE `qrtz_simple_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `repeat_count` bigint(0) NOT NULL COMMENT '重复的次数统计',
  `repeat_interval` bigint(0) NOT NULL COMMENT '重复的间隔时间',
  `times_triggered` bigint(0) NOT NULL COMMENT '已经触发的次数',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '简单触发器的信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_simple_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
CREATE TABLE `qrtz_simprop_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  `str_prop_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
  `str_prop_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
  `str_prop_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
  `int_prop_1` int(0) NULL DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
  `int_prop_2` int(0) NULL DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
  `long_prop_1` bigint(0) NULL DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
  `long_prop_2` bigint(0) NULL DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
  `dec_prop_1` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
  `dec_prop_2` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
  `bool_prop_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
  `bool_prop_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '同步机制的行锁表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_simprop_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS `qrtz_triggers`;
CREATE TABLE `qrtz_triggers`  (
  `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称',
  `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的名字',
  `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器所属组的名字',
  `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_name的外键',
  `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_group的外键',
  `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关介绍',
  `next_fire_time` bigint(0) NULL DEFAULT NULL COMMENT '上一次触发时间（毫秒）',
  `prev_fire_time` bigint(0) NULL DEFAULT NULL COMMENT '下一次触发时间（默认为-1表示不触发）',
  `priority` int(0) NULL DEFAULT NULL COMMENT '优先级',
  `trigger_state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器状态',
  `trigger_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的类型',
  `start_time` bigint(0) NOT NULL COMMENT '开始时间',
  `end_time` bigint(0) NULL DEFAULT NULL COMMENT '结束时间',
  `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日程表名称',
  `misfire_instr` smallint(0) NULL DEFAULT NULL COMMENT '补偿执行的策略',
  `job_data` blob NULL COMMENT '存放持久化job对象',
  PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE,
  INDEX `sched_name`(`sched_name`, `job_name`, `job_group`) USING BTREE,
  CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '触发器详细信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qrtz_triggers
-- ----------------------------

-- ----------------------------
-- Table structure for sma_account_mapping
-- ----------------------------
DROP TABLE IF EXISTS `sma_account_mapping`;
CREATE TABLE `sma_account_mapping`  (
  `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `app_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '应用ID',
  `mapping_account` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '映射账号（对应第三方/内部关联账号）',
  `login_account` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '登录账号',
  `login_password` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '登录密码',
  `phone` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '手机号',
  `email` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱',
  `qq` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'QQ',
  `wx` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '微信',
  `zfb` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付宝',
  `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_app_accounttype_loginaccount`(`app_id`, `login_account`) USING BTREE,
  INDEX `idx_app_id`(`app_id`) USING BTREE,
  INDEX `idx_login_account`(`login_account`) USING BTREE,
  INDEX `idx_create_time`(`create_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '账号映射表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_account_mapping
-- ----------------------------

-- ----------------------------
-- Table structure for sma_activity
-- ----------------------------
DROP TABLE IF EXISTS `sma_activity`;
CREATE TABLE `sma_activity`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `activity_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动名称',
  `activity_type` int(0) NULL DEFAULT NULL COMMENT '活动类型(1-折扣 2-积分 3-卡券)',
  `activity_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '活动封面',
  `activity_describe` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '活动描述',
  `activity_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '活动内容',
  `start_time` datetime(0) NULL DEFAULT NULL COMMENT '开始时间',
  `end_time` datetime(0) NULL DEFAULT NULL COMMENT '结束时间',
  `parameter1` double(11, 2) NULL DEFAULT NULL COMMENT '参数1(打折、积分)',
  `parameter2` double(11, 2) NULL DEFAULT NULL COMMENT '参数2(积分)',
  `parameter3` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数3(卡券)',
  `activity_status` int(0) NULL DEFAULT 0 COMMENT '活动状态(1-未开始 2-活动中 3-已结束)',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` bigint(0) NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_by` bigint(0) NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '活动表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_activity
-- ----------------------------

-- ----------------------------
-- Table structure for sma_activity_association
-- ----------------------------
DROP TABLE IF EXISTS `sma_activity_association`;
CREATE TABLE `sma_activity_association`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `activity_id` int(0) NULL DEFAULT NULL COMMENT '活动ID',
  `good_id` int(0) NULL DEFAULT NULL COMMENT '商品ID',
  `activity_type` int(0) NULL DEFAULT NULL COMMENT '活动类型',
  `parameter1` double(11, 2) NULL DEFAULT NULL COMMENT '参数1(活动类型：1-打折、2-使用积分)',
  `parameter2` double(11, 2) NULL DEFAULT NULL COMMENT '参数2(活动类型：2-抵扣金额)',
  `parameter3` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数3(活动类型：3-卡券)',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '活动关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_activity_association
-- ----------------------------

-- ----------------------------
-- Table structure for sma_application
-- ----------------------------
DROP TABLE IF EXISTS `sma_application`;
CREATE TABLE `sma_application`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` int(0) NULL DEFAULT NULL COMMENT '用户id',
  `app_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用id',
  `secret` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用密钥',
  `application_name` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用名称',
  `application_description` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用描述',
  `certification_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '认证类型(1-邮箱、2-短信、3-QQ、4-微信、5-支付宝)',
  `authentication_strategy` int(0) NULL DEFAULT NULL COMMENT '认证策略(1-不限制、2-同端互斥、3-异端互斥、4-全端互斥)',
  `login_type` int(0) NULL DEFAULT NULL COMMENT '登录方式(1-映射、2-透传)',
  `rsa_public_user` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '公钥(用户加密)',
  `rsa_private_sys` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '私钥(系统解密)',
  `rsa_public_sys` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '公钥(系统加密)',
  `rsa_private_user` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '私钥(用户解密)',
  `login_request_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '登录请求地址',
  `logout_request_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '注销请求地址',
  `reset_password_request_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '重置密码地址',
  `application_status` int(0) NULL DEFAULT NULL COMMENT '应用状态',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `INDEX_01`(`app_id`, `secret`) USING BTREE COMMENT '应用ID+应用密钥索引'
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_application
-- ----------------------------

-- ----------------------------
-- Table structure for sma_application_login_statistics
-- ----------------------------
DROP TABLE IF EXISTS `sma_application_login_statistics`;
CREATE TABLE `sma_application_login_statistics`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` int(0) NULL DEFAULT NULL COMMENT '用户ID',
  `app_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用ID',
  `application_name` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用名称',
  `login_number` int(0) NULL DEFAULT NULL COMMENT '登录次数',
  `date_str` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '统计日期',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用登录统计表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_application_login_statistics
-- ----------------------------

-- ----------------------------
-- Table structure for sma_application_login_summary_statistics
-- ----------------------------
DROP TABLE IF EXISTS `sma_application_login_summary_statistics`;
CREATE TABLE `sma_application_login_summary_statistics`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` int(0) NULL DEFAULT NULL COMMENT '用户ID',
  `login_number` int(0) NULL DEFAULT NULL COMMENT '登录次数',
  `date_str` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '统计日期',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登录汇总统计表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_application_login_summary_statistics
-- ----------------------------

-- ----------------------------
-- Table structure for sma_application_logs
-- ----------------------------
DROP TABLE IF EXISTS `sma_application_logs`;
CREATE TABLE `sma_application_logs`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `app_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应用id',
  `certification_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '认证类型(1-邮箱、2-短信、3-QQ、4-微信、5-支付宝)',
  `authentication_strategy` int(0) NULL DEFAULT NULL COMMENT '认证策略(1-不限制、2-同端互斥、3-异端互斥、4-全端互斥)',
  `login_type` int(0) NULL DEFAULT NULL COMMENT '登录方式(1-映射、2-透传)',
  `request_parameter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数',
  `response_parameter` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '响应参数',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `status` int(0) NULL DEFAULT NULL COMMENT '状态(1-成功、2-失败)',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `APPID_INDEX`(`app_id`) USING BTREE COMMENT '应用ID索引'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用日志表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_application_logs
-- ----------------------------

-- ----------------------------
-- Table structure for sma_captcha_record
-- ----------------------------
DROP TABLE IF EXISTS `sma_captcha_record`;
CREATE TABLE `sma_captcha_record`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `send_object` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发送对象',
  `send_code` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证码',
  `object_type` int(0) NULL DEFAULT NULL COMMENT '对象类型 1-邮箱 2-短信',
  `status` int(0) NULL DEFAULT NULL COMMENT '发送状态 1-成功 2-失败',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '验证码记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_captcha_record
-- ----------------------------

-- ----------------------------
-- Table structure for sma_config
-- ----------------------------
DROP TABLE IF EXISTS `sma_config`;
CREATE TABLE `sma_config`  (
  `config_type` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置类型(1-邮箱 2-短信 3-支付 4-实名认证)',
  `platform_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '平台类型(配置类型1时,1-QQ邮箱、2-163邮箱;\r\n配置类型2时,1-阿里云、2-腾讯云;\r\n配置类型3时,1-支付宝、2-微信、3-积分、4-卡券、5-支付系统;\r\n配置类型4时,1-阿里云、2-腾讯云;)',
  `parameter1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数1[阿里云-AccessKeyID][腾讯云-AccessKeyID][QQ邮箱-服务地址][支付系统APPID][支付宝应用ID][微信支付应用ID]',
  `parameter2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数2[阿里云-AccessKeySecret][腾讯云-AccessKeySecret][QQ邮箱-发送邮箱][支付系统密钥][支付宝公钥][微信支付商户号]',
  `parameter3` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数3[阿里云-SIGNNAME][腾讯云-SIGNNAME][QQ邮箱-授权码][支付宝私钥][微信支付APPKEY]',
  `parameter4` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数4[阿里云-模版ID][腾讯云-模版ID][支付宝签名类型][微信支付证书密码]',
  `parameter5` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数5[腾讯云APPID][微信支付证书附件]',
  `parameter6` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数6[支付-回调地址]',
  `status` int(0) NULL DEFAULT NULL COMMENT '状态(0-正常 1-停用)',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间'
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '基础配置表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_config
-- ----------------------------

-- ----------------------------
-- Table structure for sma_coupon_bundle
-- ----------------------------
DROP TABLE IF EXISTS `sma_coupon_bundle`;
CREATE TABLE `sma_coupon_bundle`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `coupon_no` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '券包编号',
  `coupon_name` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '券包名称',
  `coupon_description` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '券包描述',
  `start_time` datetime(0) NOT NULL COMMENT '生效时间',
  `end_time` datetime(0) NOT NULL COMMENT '失效时间',
  `use_condition` decimal(10, 2) NOT NULL COMMENT '使用门槛',
  `discount_amount` decimal(10, 2) NOT NULL COMMENT '优惠金额',
  `claim_restrictions` int(0) NULL DEFAULT NULL COMMENT '领取限制',
  `pending_count` int(0) NULL DEFAULT NULL COMMENT '待发数量',
  `sent_count` int(0) NULL DEFAULT NULL COMMENT '已发数量',
  `use_count` int(0) NULL DEFAULT NULL COMMENT '使用数量',
  `status` int(0) NULL DEFAULT 0 COMMENT '券包状态(1-待生效、2-生效中、3-已失效)',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卡券券包表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_coupon_bundle
-- ----------------------------

-- ----------------------------
-- Table structure for sma_coupon_info
-- ----------------------------
DROP TABLE IF EXISTS `sma_coupon_info`;
CREATE TABLE `sma_coupon_info`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` int(0) NULL DEFAULT NULL COMMENT '用户ID',
  `coupon_no` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '券包编号',
  `coupon_name` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '券包名称',
  `coupon_description` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '券包描述',
  `start_time` datetime(0) NOT NULL COMMENT '生效时间',
  `end_time` datetime(0) NOT NULL COMMENT '失效时间',
  `use_condition` decimal(10, 2) NOT NULL COMMENT '使用门槛',
  `discount_amount` decimal(10, 2) NOT NULL COMMENT '优惠金额',
  `coupon_number` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '卡券编号',
  `status` int(0) NULL DEFAULT 0 COMMENT '卡券状态(1-待发出、2-已发出、3-待使用、4-已使用、5-已失效)',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卡券信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_coupon_info
-- ----------------------------

-- ----------------------------
-- Table structure for sma_good
-- ----------------------------
DROP TABLE IF EXISTS `sma_good`;
CREATE TABLE `sma_good`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `good_cover` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品封面',
  `good_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品名称',
  `good_describe` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品描述',
  `good_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品详情',
  `good_type` int(0) NULL DEFAULT NULL COMMENT '商品类型(1-应用包、2-认证包)',
  `auth_type` int(0) NULL DEFAULT NULL COMMENT '授权类型(1-按时、2-按次、3-无限)',
  `certification_type` int(0) NULL DEFAULT NULL COMMENT '认证类型(1-邮箱、2-短信、3-QQ、4-微信、5-支付宝)',
  `parameter1` int(0) NULL DEFAULT NULL COMMENT '参数1(按时：时间1-9999、按次)(应用数量)',
  `parameter2` int(0) NULL DEFAULT NULL COMMENT '参数2(按时：时间单位 1-小时 2-天 3-月 4-季 5-年)',
  `parameter3` int(0) NULL DEFAULT NULL COMMENT '参数3(应用数量)',
  `good_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '商品价格',
  `purchase_limit` int(0) NULL DEFAULT NULL COMMENT '限购数量(0 不限制)',
  `good_status` int(0) NULL DEFAULT 0 COMMENT '商品状态(1-待上架 2-已上架)',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_good
-- ----------------------------

-- ----------------------------
-- Table structure for sma_order
-- ----------------------------
DROP TABLE IF EXISTS `sma_order`;
CREATE TABLE `sma_order`  (
  `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` bigint(0) UNSIGNED NOT NULL COMMENT '用户ID',
  `system_order_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '系统订单号',
  `third_pay_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '第三方支付单号（如微信/支付宝交易号/积分卡券则和系统订单号一致）',
  `third_refund_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '第三方退款单号',
  `goods_id` bigint(0) UNSIGNED NULL DEFAULT NULL COMMENT '商品ID',
  `goods_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '商品名称',
  `goods_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品参数（JSON格式存储）',
  `pay_channel` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '支付渠道（如01支付宝/02微信/03积分/04卡券/051支付系统支付宝/052支付系统微信）',
  `order_amount` decimal(12, 2) NULL DEFAULT NULL COMMENT '订单金额（单位：元）',
  `discount_amount` decimal(12, 2) NULL DEFAULT NULL COMMENT '优惠金额（单位：元）',
  `actual_pay_amount` decimal(12, 2) NULL DEFAULT NULL COMMENT '实付金额（单位：元）',
  `pay_points` int(0) UNSIGNED NULL DEFAULT 0 COMMENT '支付积分',
  `pay_coupon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付卡券（可存储卡券编号，多个用逗号分隔）',
  `refund_amount` decimal(12, 2) NULL DEFAULT NULL COMMENT '退款金额（单位：元）',
  `refund_points` int(0) UNSIGNED NULL DEFAULT 0 COMMENT '退款积分',
  `refund_coupon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '退款卡券（可存储卡券编号，多个用逗号分隔）',
  `latest_refund_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '最新退款单号',
  `refund_record_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '退款记录信息（JSON格式存储）',
  `pay_time` datetime(0) NULL DEFAULT NULL COMMENT '支付时间',
  `refund_time` datetime(0) NULL DEFAULT NULL COMMENT '退款时间',
  `pay_request_parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '支付请求参数',
  `pay_response_parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '支付响应参数',
  `refund_request_parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '退款请求参数',
  `refund_response_parameters` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '退款响应参数',
  `order_status` int(0) NULL DEFAULT NULL COMMENT '支付状态（1待支付2支付中3支付成功4支付失败5退款中6退款成功7退款失败）',
  `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_system_order_no`(`system_order_no`) USING BTREE,
  INDEX `idx_user_id`(`user_id`) USING BTREE,
  INDEX `idx_third_pay_no`(`third_pay_no`) USING BTREE,
  INDEX `idx_create_time`(`create_time`) USING BTREE,
  INDEX `idx_pay_channel`(`pay_channel`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '订单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_order
-- ----------------------------

-- ----------------------------
-- Table structure for sma_password_reset_log
-- ----------------------------
DROP TABLE IF EXISTS `sma_password_reset_log`;
CREATE TABLE `sma_password_reset_log`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` int(0) NOT NULL COMMENT '用户ID',
  `app_id` int(0) NOT NULL COMMENT '应用ID',
  `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '账号',
  `old_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '原密码',
  `new_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '新密码',
  `request_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '请求参数',
  `response_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '响应参数',
  `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '状态：重置成功/重置失败',
  `response_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '响应码',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '密码重置记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_password_reset_log
-- ----------------------------

-- ----------------------------
-- Table structure for sma_platform_account
-- ----------------------------
DROP TABLE IF EXISTS `sma_platform_account`;
CREATE TABLE `sma_platform_account`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` int(0) NULL DEFAULT NULL COMMENT '用户ID',
  `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '账号',
  `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  `qq` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'QQ',
  `wx` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信',
  `zfb` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付宝',
  `phone` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '手机号',
  `email` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '邮箱',
  `status` int(0) NULL DEFAULT NULL COMMENT '状态',
  `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '账户信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_platform_account
-- ----------------------------

-- ----------------------------
-- Table structure for sma_points_record
-- ----------------------------
DROP TABLE IF EXISTS `sma_points_record`;
CREATE TABLE `sma_points_record`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` int(0) NOT NULL COMMENT '用户id',
  `before_change` int(0) NULL DEFAULT NULL COMMENT '变更前',
  `change_number` int(0) NULL DEFAULT NULL COMMENT '变更数量',
  `after_change` int(0) NULL DEFAULT NULL COMMENT '变更后',
  `behavior` int(0) NULL DEFAULT NULL COMMENT '操作行为(1-支付、2-退款、3-充值、4-赠送、5-兑换)',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分流水表' ROW_FORMAT = Fixed;

-- ----------------------------
-- Records of sma_points_record
-- ----------------------------

-- ----------------------------
-- Table structure for sma_user_coupon
-- ----------------------------
DROP TABLE IF EXISTS `sma_user_coupon`;
CREATE TABLE `sma_user_coupon`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `user_id` bigint(0) NOT NULL COMMENT '用户ID',
  `coupon_no` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '券包编号',
  `coupon_name` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '券包名称',
  `coupon_description` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '券包描述',
  `start_time` datetime(0) NOT NULL COMMENT '生效时间',
  `end_time` datetime(0) NOT NULL COMMENT '失效时间',
  `use_condition` decimal(10, 2) NOT NULL COMMENT '使用门槛',
  `discount_amount` decimal(10, 2) NOT NULL COMMENT '优惠金额',
  `coupon_number` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '卡券编号',
  `status` int(0) NOT NULL DEFAULT 3 COMMENT '卡券状态(1-待发出、2-已发出、3-待使用、4-已使用、5-已失效)',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户卡券表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_user_coupon
-- ----------------------------

-- ----------------------------
-- Table structure for sma_user_resource
-- ----------------------------
DROP TABLE IF EXISTS `sma_user_resource`;
CREATE TABLE `sma_user_resource`  (
  `id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` bigint(0) NOT NULL COMMENT '用户唯一标识',
  `app_count` int(0) NOT NULL DEFAULT 0 COMMENT '当前可用应用数量',
  `app_expire_time` datetime(0) NULL DEFAULT NULL COMMENT '应用到期时间（null=永久）',
  `email_count` int(0) NOT NULL DEFAULT 0 COMMENT '当前可用邮箱次数',
  `email_expire_time` datetime(0) NULL DEFAULT NULL COMMENT '邮箱到期时间（null=永久）',
  `sms_count` int(0) NOT NULL DEFAULT 0 COMMENT '当前可用短信次数',
  `sms_expire_time` datetime(0) NULL DEFAULT NULL COMMENT '短信到期时间（null=永久）',
  `qq_count` int(0) NOT NULL DEFAULT 0 COMMENT '当前可用QQ次数',
  `qq_expire_time` datetime(0) NULL DEFAULT NULL COMMENT 'QQ到期时间（null=永久）',
  `wechat_count` int(0) NOT NULL DEFAULT 0 COMMENT '当前可用微信次数',
  `wechat_expire_time` datetime(0) NULL DEFAULT NULL COMMENT '微信到期时间（null=永久）',
  `alipay_count` int(0) NOT NULL DEFAULT 0 COMMENT '当前可用支付宝次数',
  `alipay_expire_time` datetime(0) NULL DEFAULT NULL COMMENT '支付宝到期时间（null=永久）',
  `order_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '关联订单号',
  `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间',
  `update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户资源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sma_user_resource
-- ----------------------------

-- ----------------------------
-- Table structure for sys_activation
-- ----------------------------
DROP TABLE IF EXISTS `sys_activation`;
CREATE TABLE `sys_activation`  (
  `gkey` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  `akey` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_activation
-- ----------------------------

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config`  (
  `config_id` int(0) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  `config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
  `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
  `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
  `config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '初始化密码 123456');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '深色主题theme-dark，浅色主题theme-light');
INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '是否开启验证码功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO `sys_config` VALUES (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '设置登录IP黑名单限制，多个匹配项以;分隔，支持匹配（*通配、网段）');
INSERT INTO `sys_config` VALUES (7, '用户管理-初始密码修改策略', 'sys.account.initPasswordModify', '1', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '0：初始密码修改策略关闭，没有任何提示，1：提醒用户，如果未修改初始密码，则在登录时就会提醒修改密码对话框');
INSERT INTO `sys_config` VALUES (8, '用户管理-账号密码更新周期', 'sys.account.passwordValidateDays', '0', 'Y', 'admin', '2025-12-26 11:28:11', '', NULL, '密码更新周期（填写数字，数据初始化值为0不限制，若修改必须为大于0小于365的正整数），如果超过这个周期登录系统时，则在登录时就会提醒修改密码对话框');
INSERT INTO `sys_config` VALUES (100, '底部ICP信息', 'sys.icp.number', 'Copyright © 2026 新链网络工作室. 版权所有 All Rights Reserved.', 'Y', 'admin', '2026-04-07 15:06:49', '', NULL, '底部ICP信息');

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept`  (
  `dept_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '部门id',
  `parent_id` bigint(0) NULL DEFAULT 0 COMMENT '父部门id',
  `ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
  `dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
  `order_num` int(0) NULL DEFAULT 0 COMMENT '显示顺序',
  `leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
  `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 103 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES (100, 0, '0', '新链网络工作室', 0, '', '', '', '0', '0', 'admin', '2025-12-26 11:28:10', 'admin', '2025-12-26 23:07:08');
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '深圳总公司', 1, '', '', '', '0', '0', 'admin', '2025-12-26 11:28:10', 'admin', '2025-12-26 23:07:25');
INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, '', '', '', '0', '0', 'admin', '2025-12-26 11:28:10', 'admin', '2025-12-26 23:07:15');

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data`  (
  `dict_code` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  `dict_sort` int(0) NULL DEFAULT 0 COMMENT '字典排序',
  `dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
  `dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
  `css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
  `list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
  `is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 157 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典数据表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '其他操作');
INSERT INTO `sys_dict_data` VALUES (19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (100, 1, '待生效', '1', 'coupon_bundle_status', NULL, 'info', 'N', '0', 'admin', '2026-01-05 08:49:45', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (101, 2, '生效中', '2', 'coupon_bundle_status', NULL, 'success', 'N', '0', 'admin', '2026-01-05 08:50:09', 'admin', '2026-01-05 08:50:16', NULL);
INSERT INTO `sys_dict_data` VALUES (102, 3, '已失效', '3', 'coupon_bundle_status', NULL, 'danger', 'N', '0', 'admin', '2026-01-05 08:50:28', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (103, 1, '待发出', '1', 'coupon_status', NULL, 'info', 'N', '0', 'admin', '2026-01-05 08:51:37', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (105, 2, '待使用', '2', 'coupon_status', NULL, 'warning', 'N', '0', 'admin', '2026-01-05 08:52:07', 'admin', '2026-03-16 15:48:22', NULL);
INSERT INTO `sys_dict_data` VALUES (106, 1, '未认证', '1', 'certification_status', NULL, 'danger', 'N', '0', 'admin', '2026-01-20 17:12:27', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (107, 2, '已认证', '2', 'certification_status', NULL, 'success', 'N', '0', 'admin', '2026-01-20 17:12:37', 'admin', '2026-01-20 17:12:45', NULL);
INSERT INTO `sys_dict_data` VALUES (108, 1, '应用包', '1', 'good_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:34:56', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (109, 2, '认证包', '2', 'good_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:35:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (110, 1, '按时间授权', '1', 'auth_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:35:43', 'admin', '2026-03-06 23:58:17', NULL);
INSERT INTO `sys_dict_data` VALUES (111, 2, '按次数授权', '2', 'auth_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:35:53', 'admin', '2026-03-06 23:58:27', NULL);
INSERT INTO `sys_dict_data` VALUES (113, 1, '邮箱认证', '1', 'certification_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:36:54', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (114, 2, '短信认证', '2', 'certification_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:37:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (115, 3, 'QQ认证', '3', 'certification_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:37:15', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (116, 4, '微信认证', '4', 'certification_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:37:29', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (117, 5, '支付宝认证', '5', 'certification_type', NULL, 'primary', 'N', '0', 'admin', '2026-01-23 23:37:44', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (118, 1, '待上架', '1', 'good_status', NULL, 'danger', 'N', '0', 'admin', '2026-01-23 23:40:52', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (119, 2, '已上架', '2', 'good_status', NULL, 'success', 'N', '0', 'admin', '2026-01-23 23:41:02', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (120, 1, '不限制', '1', 'authentication_strategy', NULL, 'primary', 'N', '0', 'admin', '2026-02-03 17:24:20', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (121, 2, '同端互斥', '2', 'authentication_strategy', NULL, 'primary', 'N', '0', 'admin', '2026-02-03 17:24:35', 'admin', '2026-02-03 17:24:48', '');
INSERT INTO `sys_dict_data` VALUES (122, 3, '异端互斥', '3', 'authentication_strategy', NULL, 'primary', 'N', '0', 'admin', '2026-02-03 17:24:59', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (123, 4, '全端互斥', '4', 'authentication_strategy', NULL, 'primary', 'N', '0', 'admin', '2026-02-03 17:25:46', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (124, 1, '账号映射', '1', 'login_type', NULL, 'primary', 'N', '0', 'admin', '2026-02-03 17:26:32', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (125, 2, '账号透传', '2', 'login_type', NULL, 'primary', 'N', '0', 'admin', '2026-02-03 17:26:50', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (126, 1, '停用', '1', 'application_status', NULL, 'danger', 'N', '0', 'admin', '2026-02-03 17:31:56', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (127, 2, '启用', '2', 'application_status', NULL, 'success', 'N', '0', 'admin', '2026-02-03 17:32:06', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (128, 1, '天', '1', 'time_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-06 23:39:16', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (129, 2, '月', '2', 'time_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-06 23:39:33', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (130, 3, '季', '3', 'time_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-06 23:39:55', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (131, 4, '年', '4', 'time_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-06 23:40:05', 'admin', '2026-03-06 23:40:12', NULL);
INSERT INTO `sys_dict_data` VALUES (132, 1, '支付宝', '1', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:25:30', 'admin', '2026-03-08 13:26:03', NULL);
INSERT INTO `sys_dict_data` VALUES (133, 2, '微信', '2', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:25:38', 'admin', '2026-03-08 13:26:09', NULL);
INSERT INTO `sys_dict_data` VALUES (134, 5, '积分', '3', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:26:29', 'admin', '2026-03-27 10:40:57', NULL);
INSERT INTO `sys_dict_data` VALUES (135, 6, '优惠券', '4', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:26:55', 'admin', '2026-03-27 10:41:07', NULL);
INSERT INTO `sys_dict_data` VALUES (136, 3, '其他-支付宝', '51', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:27:31', 'admin', '2026-03-27 10:41:17', NULL);
INSERT INTO `sys_dict_data` VALUES (137, 4, '其他-微信', '52', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:31:28', 'admin', '2026-03-27 10:41:23', NULL);
INSERT INTO `sys_dict_data` VALUES (138, 1, '待支付中', '1', 'payment_status', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 13:39:00', 'admin', '2026-03-08 13:40:38', NULL);
INSERT INTO `sys_dict_data` VALUES (139, 2, '支付成功', '2', 'payment_status', NULL, 'success', 'N', '0', 'admin', '2026-03-08 13:40:32', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (140, 3, '支付失败', '3', 'payment_status', NULL, 'danger', 'N', '0', 'admin', '2026-03-08 13:40:52', 'admin', '2026-03-08 13:41:03', NULL);
INSERT INTO `sys_dict_data` VALUES (141, 4, '待退款中', '4', 'payment_status', NULL, 'warning', 'N', '0', 'admin', '2026-03-08 13:41:22', 'admin', '2026-03-08 13:41:27', NULL);
INSERT INTO `sys_dict_data` VALUES (142, 5, '退款成功', '5', 'payment_status', NULL, 'danger', 'N', '0', 'admin', '2026-03-08 13:41:41', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (143, 6, '退款失败', '6', 'payment_status', NULL, 'danger', 'N', '0', 'admin', '2026-03-08 13:41:53', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (144, 1, '折扣', '1', 'activity_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 17:17:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (145, 2, '积分', '2', 'activity_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 17:17:18', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (146, 3, '优惠券', '3', 'activity_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 17:17:31', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (147, 1, '未开始', '1', 'activity_status', NULL, 'primary', 'N', '0', 'admin', '2026-03-08 17:18:38', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (148, 2, '活动中', '2', 'activity_status', NULL, 'success', 'N', '0', 'admin', '2026-03-08 17:19:08', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (149, 3, '已结束', '3', 'activity_status', NULL, 'danger', 'N', '0', 'admin', '2026-03-08 17:19:21', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (150, 3, '已使用', '3', 'coupon_status', NULL, 'success', 'N', '0', 'admin', '2026-03-16 15:12:28', 'admin', '2026-03-16 15:48:30', NULL);
INSERT INTO `sys_dict_data` VALUES (151, 4, '已失效', '4', 'coupon_status', NULL, 'danger', 'N', '0', 'admin', '2026-03-16 15:12:39', 'admin', '2026-03-16 15:48:36', NULL);
INSERT INTO `sys_dict_data` VALUES (152, 0, '余额', '0', 'payment_channel', NULL, 'primary', 'N', '0', 'admin', '2026-03-24 16:25:55', 'admin', '2026-03-24 16:27:23', NULL);
INSERT INTO `sys_dict_data` VALUES (153, 0, '消费', '1', 'points_record_type', NULL, 'warning', 'N', '0', 'admin', '2026-03-26 09:14:08', 'admin', '2026-03-26 09:15:52', NULL);
INSERT INTO `sys_dict_data` VALUES (154, 2, '退还', '2', 'points_record_type', NULL, 'danger', 'N', '0', 'admin', '2026-03-26 09:14:22', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (156, 3, '赠送', '3', 'points_record_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-26 09:14:54', 'admin', '2026-03-27 09:31:49', NULL);
INSERT INTO `sys_dict_data` VALUES (157, 5, '签到', '4', 'points_record_type', NULL, 'primary', 'N', '0', 'admin', '2026-03-26 09:15:31', 'admin', '2026-03-27 09:32:24', NULL);

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type`  (
  `dict_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
  `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`dict_id`) USING BTREE,
  UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 116 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2025-12-26 11:28:11', '', NULL, '登录状态列表');
INSERT INTO `sys_dict_type` VALUES (100, '券包状态', 'coupon_bundle_status', '0', 'admin', '2026-01-05 08:49:10', '', NULL, '券包状态');
INSERT INTO `sys_dict_type` VALUES (101, '卡券状态', 'coupon_status', '0', 'admin', '2026-01-05 08:51:20', '', NULL, '卡券状态');
INSERT INTO `sys_dict_type` VALUES (102, '实名状态', 'certification_status', '0', 'admin', '2026-01-20 17:12:08', '', NULL, '实名状态');
INSERT INTO `sys_dict_type` VALUES (103, '商品类型', 'good_type', '0', 'admin', '2026-01-23 23:34:20', '', NULL, '商品类型');
INSERT INTO `sys_dict_type` VALUES (104, '授权类型', 'auth_type', '0', 'admin', '2026-01-23 23:35:24', '', NULL, '授权类型');
INSERT INTO `sys_dict_type` VALUES (105, '认证类型', 'certification_type', '0', 'admin', '2026-01-23 23:36:38', '', NULL, '认证类型');
INSERT INTO `sys_dict_type` VALUES (106, '商品状态', 'good_status', '0', 'admin', '2026-01-23 23:40:32', '', NULL, '商品状态');
INSERT INTO `sys_dict_type` VALUES (107, '认证策略', 'authentication_strategy', '0', 'admin', '2026-02-03 17:23:49', '', NULL, '认证策略');
INSERT INTO `sys_dict_type` VALUES (108, '登录方式', 'login_type', '0', 'admin', '2026-02-03 17:26:14', '', NULL, '登录方式');
INSERT INTO `sys_dict_type` VALUES (109, '应用状态', 'application_status', '0', 'admin', '2026-02-03 17:31:26', '', NULL, '应用状态');
INSERT INTO `sys_dict_type` VALUES (110, '时间类型', 'time_type', '0', 'admin', '2026-03-06 23:38:24', '', NULL, '时间类型');
INSERT INTO `sys_dict_type` VALUES (112, '支付渠道', 'payment_channel', '0', 'admin', '2026-03-08 13:24:37', '', NULL, '支付渠道');
INSERT INTO `sys_dict_type` VALUES (113, '支付状态', 'payment_status', '0', 'admin', '2026-03-08 13:34:38', '', NULL, '支付状态');
INSERT INTO `sys_dict_type` VALUES (114, '活动类型', 'activity_type', '0', 'admin', '2026-03-08 17:16:53', '', NULL, '活动类型');
INSERT INTO `sys_dict_type` VALUES (115, '活动状态', 'activity_status', '0', 'admin', '2026-03-08 17:18:10', '', NULL, '活动状态');
INSERT INTO `sys_dict_type` VALUES (116, '积分流水类型', 'points_record_type', '0', 'admin', '2026-03-26 09:07:02', '', NULL, '积分流水类型');

-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job`  (
  `job_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
  `cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'cron执行表达式',
  `misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '3' COMMENT '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  `concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否并发执行（0允许 1禁止）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1暂停）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 106 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_job
-- ----------------------------
INSERT INTO `sys_job` VALUES (100, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '0 0/1 * * * ?', '1', '1', '0', 'admin', '2026-03-27 14:08:13', 'admin', '2026-03-27 15:46:05', '');
INSERT INTO `sys_job` VALUES (101, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'15\')', '0 0/1 * * * ?', '1', '1', '0', 'admin', '2026-03-27 15:08:47', 'admin', '2026-03-27 15:46:04', '');
INSERT INTO `sys_job` VALUES (102, '活动状态检测任务', 'SYSTEM', 'otherTask.checkActivityStatus', '0 0 0 * * ?', '1', '1', '0', 'admin', '2026-03-27 15:44:53', '', '2026-03-27 15:46:08', '');
INSERT INTO `sys_job` VALUES (104, '卡券状态变更任务', 'SYSTEM', 'otherTask.checkCouponStatus', '0 0 0 * * ?', '1', '1', '0', 'admin', '2026-03-27 16:54:06', 'admin', '2026-03-27 16:54:27', '');
INSERT INTO `sys_job` VALUES (105, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '0 0/1 * * * ?', '1', '1', '0', 'admin', '2026-03-30 10:13:47', 'admin', '2026-03-30 10:14:43', '');
INSERT INTO `sys_job` VALUES (106, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '0 0/1 * * * ?', '1', '1', '0', 'admin', '2026-03-30 11:14:50', '', '2026-03-30 14:56:08', '');

-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log`  (
  `job_log_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名',
  `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串',
  `job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志信息',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '执行状态（0正常 1失败）',
  `exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '异常信息',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_job_log
-- ----------------------------
INSERT INTO `sys_job_log` VALUES (1, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：68毫秒', '0', '', '2026-03-31 09:54:00');
INSERT INTO `sys_job_log` VALUES (2, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：128毫秒', '0', '', '2026-03-31 09:54:00');
INSERT INTO `sys_job_log` VALUES (3, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：256毫秒', '0', '', '2026-03-31 09:54:00');
INSERT INTO `sys_job_log` VALUES (4, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：398毫秒', '0', '', '2026-03-31 09:54:00');
INSERT INTO `sys_job_log` VALUES (5, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：85毫秒', '0', '', '2026-03-31 09:55:00');
INSERT INTO `sys_job_log` VALUES (6, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：85毫秒', '0', '', '2026-03-31 09:55:00');
INSERT INTO `sys_job_log` VALUES (7, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：95毫秒', '0', '', '2026-03-31 09:55:00');
INSERT INTO `sys_job_log` VALUES (8, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：290毫秒', '0', '', '2026-03-31 09:55:00');
INSERT INTO `sys_job_log` VALUES (9, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：66毫秒', '0', '', '2026-03-31 09:56:00');
INSERT INTO `sys_job_log` VALUES (10, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：89毫秒', '0', '', '2026-03-31 09:56:00');
INSERT INTO `sys_job_log` VALUES (11, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：91毫秒', '0', '', '2026-03-31 09:56:00');
INSERT INTO `sys_job_log` VALUES (12, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：297毫秒', '0', '', '2026-03-31 09:56:00');
INSERT INTO `sys_job_log` VALUES (13, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：91毫秒', '0', '', '2026-03-31 09:57:00');
INSERT INTO `sys_job_log` VALUES (14, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：117毫秒', '0', '', '2026-03-31 09:57:00');
INSERT INTO `sys_job_log` VALUES (15, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：117毫秒', '0', '', '2026-03-31 09:57:00');
INSERT INTO `sys_job_log` VALUES (16, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：354毫秒', '0', '', '2026-03-31 09:57:00');
INSERT INTO `sys_job_log` VALUES (17, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：64毫秒', '0', '', '2026-03-31 09:58:00');
INSERT INTO `sys_job_log` VALUES (18, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：62毫秒', '0', '', '2026-03-31 09:58:00');
INSERT INTO `sys_job_log` VALUES (19, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：87毫秒', '0', '', '2026-03-31 09:58:00');
INSERT INTO `sys_job_log` VALUES (20, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：323毫秒', '0', '', '2026-03-31 09:58:00');
INSERT INTO `sys_job_log` VALUES (21, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：65毫秒', '0', '', '2026-03-31 09:59:00');
INSERT INTO `sys_job_log` VALUES (22, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：64毫秒', '0', '', '2026-03-31 09:59:00');
INSERT INTO `sys_job_log` VALUES (23, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：99毫秒', '0', '', '2026-03-31 09:59:00');
INSERT INTO `sys_job_log` VALUES (24, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：328毫秒', '0', '', '2026-03-31 09:59:00');
INSERT INTO `sys_job_log` VALUES (25, '登录认证信息检测', 'SYSTEM', 'otherTask.checkLoginCertInfo()', '登录认证信息检测 总共耗时：95毫秒', '0', '', '2026-03-31 10:00:00');
INSERT INTO `sys_job_log` VALUES (26, '应用认证到期检测', 'SYSTEM', 'otherTask.checkUserCertInfo', '应用认证到期检测 总共耗时：168毫秒', '0', '', '2026-03-31 10:00:00');
INSERT INTO `sys_job_log` VALUES (27, '订单超时任务', 'SYSTEM', 'orderSyncTask.orderTimeoutFail(\'5\')', '订单超时任务 总共耗时：186毫秒', '0', '', '2026-03-31 10:00:00');
INSERT INTO `sys_job_log` VALUES (28, '订单同步任务', 'SYSTEM', 'orderSyncTask.orderSync', '订单同步任务 总共耗时：371毫秒', '0', '', '2026-03-31 10:00:00');

-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor`  (
  `info_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
  `ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
  `login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录地点',
  `browser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '浏览器类型',
  `os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作系统',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
  `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示消息',
  `login_time` datetime(0) NULL DEFAULT NULL COMMENT '访问时间',
  PRIMARY KEY (`info_id`) USING BTREE,
  INDEX `idx_sys_logininfor_s`(`status`) USING BTREE,
  INDEX `idx_sys_logininfor_lt`(`login_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_logininfor
-- ----------------------------

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `menu_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
  `parent_id` bigint(0) NULL DEFAULT 0 COMMENT '父菜单ID',
  `order_num` int(0) NULL DEFAULT 0 COMMENT '显示顺序',
  `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
  `query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
  `route_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由名称',
  `is_frame` int(0) NULL DEFAULT 1 COMMENT '是否为外链（0是 1否）',
  `is_cache` int(0) NULL DEFAULT 0 COMMENT '是否缓存（0缓存 1不缓存）',
  `menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
  `visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态（0显示 1隐藏）',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
  `perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
  `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2060 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单权限表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 180, 'system', NULL, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', '2025-12-26 11:28:10', 'admin', '2026-01-05 08:25:00', '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 190, 'monitor', NULL, '', '', 1, 0, 'M', '1', '0', '', 'monitor', 'admin', '2025-12-26 11:28:10', 'admin', '2026-03-30 16:21:41', '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 200, 'tool', NULL, '', '', 1, 0, 'M', '1', '0', '', 'tool', 'admin', '2025-12-26 11:28:10', 'admin', '2026-03-31 09:58:02', '系统工具目录');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2025-12-26 11:28:10', '', NULL, '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2025-12-26 11:28:10', '', NULL, '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2025-12-26 11:28:10', '', NULL, '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2025-12-26 11:28:10', '', NULL, '部门管理菜单');
INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2025-12-26 11:28:10', '', NULL, '岗位管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2025-12-26 11:28:10', '', NULL, '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2025-12-26 11:28:10', '', NULL, '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2025-12-26 11:28:10', '', NULL, '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2025-12-26 11:28:10', '', NULL, '日志管理菜单');
INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2025-12-26 11:28:10', '', NULL, '在线用户菜单');
INSERT INTO `sys_menu` VALUES (110, '定时任务', 1, 2, 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2025-12-26 11:28:10', 'admin', '2026-03-30 16:21:24', '定时任务菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2025-12-26 11:28:10', '', NULL, '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2025-12-26 11:28:10', '', NULL, '服务监控菜单');
INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', '2025-12-26 11:28:10', '', NULL, '缓存监控菜单');
INSERT INTO `sys_menu` VALUES (114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', '2025-12-26 11:28:10', '', NULL, '缓存列表菜单');
INSERT INTO `sys_menu` VALUES (115, '表单构建', 3, 1, 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2025-12-26 11:28:10', '', NULL, '表单构建菜单');
INSERT INTO `sys_menu` VALUES (116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2025-12-26 11:28:10', '', NULL, '代码生成菜单');
INSERT INTO `sys_menu` VALUES (117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2025-12-26 11:28:10', '', NULL, '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2025-12-26 11:28:10', '', NULL, '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2025-12-26 11:28:10', '', NULL, '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1030, '参数查询', 106, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1031, '参数新增', 106, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1032, '参数修改', 106, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1033, '参数删除', 106, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1034, '参数导出', 106, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1035, '公告查询', 107, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1036, '公告新增', 107, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1037, '公告修改', 107, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1038, '公告删除', 107, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1039, '操作查询', 500, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1040, '操作删除', 500, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1041, '日志导出', 500, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1042, '登录查询', 501, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1043, '登录删除', 501, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1044, '日志导出', 501, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1045, '账户解锁', 501, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1055, '生成查询', 116, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1056, '生成修改', 116, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1057, '生成删除', 116, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1058, '导入代码', 116, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1059, '预览代码', 116, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1060, '生成代码', 116, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2000, '基础配置', 0, 150, 'basisConfig', 'system/basisConfig/index', NULL, '', 1, 1, 'C', '0', '0', 'system:basisConfig:list', 'example', 'admin', '2025-12-26 23:22:11', 'admin', '2026-03-08 17:30:26', '基础配置菜单');
INSERT INTO `sys_menu` VALUES (2003, '基础配置修改', 2000, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:basisConfig:edit', '#', 'admin', '2025-12-26 23:22:11', 'admin', '2026-01-05 09:19:02', '');
INSERT INTO `sys_menu` VALUES (2004, '基础配置查询', 2000, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:basisConfig:query', '#', 'admin', '2025-12-26 23:22:11', 'admin', '2026-01-05 09:19:22', '');
INSERT INTO `sys_menu` VALUES (2006, '卡券券包', 0, 80, 'bundle', 'system/bundle/index', NULL, '', 1, 0, 'C', '0', '0', 'system:bundle:list', 'post', 'admin', '2026-01-05 09:15:53', 'admin', '2026-03-08 17:31:09', '卡券券包菜单');
INSERT INTO `sys_menu` VALUES (2007, '卡券券包查询', 2006, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:bundle:query', '#', 'admin', '2026-01-05 09:15:53', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2008, '卡券券包新增', 2006, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:bundle:add', '#', 'admin', '2026-01-05 09:15:53', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2009, '卡券券包修改', 2006, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:bundle:edit', '#', 'admin', '2026-01-05 09:15:53', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2010, '卡券券包删除', 2006, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:bundle:remove', '#', 'admin', '2026-01-05 09:15:53', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2011, '卡券券包导出', 2006, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:bundle:export', '#', 'admin', '2026-01-05 09:15:53', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2012, '商品管理', 0, 45, 'good', 'system/good/index', NULL, '', 1, 0, 'C', '0', '0', 'system:good:list', 'star', 'admin', '2026-01-23 23:44:55', 'admin', '2026-03-30 16:56:29', '商品菜单');
INSERT INTO `sys_menu` VALUES (2013, '商品查询', 2012, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:good:query', '#', 'admin', '2026-01-23 23:44:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2014, '商品新增', 2012, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:good:add', '#', 'admin', '2026-01-23 23:44:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2015, '商品修改', 2012, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:good:edit', '#', 'admin', '2026-01-23 23:44:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2016, '商品删除', 2012, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:good:remove', '#', 'admin', '2026-01-23 23:44:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2017, '商品导出', 2012, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:good:export', '#', 'admin', '2026-01-23 23:44:55', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2018, '应用管理', 0, 35, 'application', 'system/application/index', NULL, '', 1, 0, 'C', '0', '0', 'system:application:list', 'international', 'admin', '2026-02-03 17:37:57', 'admin', '2026-02-04 08:27:38', '应用菜单');
INSERT INTO `sys_menu` VALUES (2019, '应用查询', 2018, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:application:query', '#', 'admin', '2026-02-03 17:37:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2020, '应用新增', 2018, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:application:add', '#', 'admin', '2026-02-03 17:37:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2021, '应用修改', 2018, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:application:edit', '#', 'admin', '2026-02-03 17:37:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2022, '应用删除', 2018, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:application:remove', '#', 'admin', '2026-02-03 17:37:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2023, '应用导出', 2018, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:application:export', '#', 'admin', '2026-02-03 17:37:57', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2024, '订单管理', 0, 60, 'order', 'system/order/index', NULL, '', 1, 0, 'C', '0', '0', 'system:order:list', 'documentation', 'admin', '2026-03-08 13:55:30', 'admin', '2026-03-08 17:31:15', '订单管理菜单');
INSERT INTO `sys_menu` VALUES (2025, '订单管理查询', 2024, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:order:query', '#', 'admin', '2026-03-08 13:55:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2026, '订单管理新增', 2024, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:order:add', '#', 'admin', '2026-03-08 13:55:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2027, '订单管理修改', 2024, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:order:edit', '#', 'admin', '2026-03-08 13:55:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2028, '订单管理删除', 2024, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:order:remove', '#', 'admin', '2026-03-08 13:55:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2029, '订单管理导出', 2024, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:order:export', '#', 'admin', '2026-03-08 13:55:30', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2030, '活动管理', 0, 100, 'activity', 'system/activity/index', NULL, '', 1, 0, 'C', '0', '0', 'system:activity:list', 'guide', 'admin', '2026-03-08 17:27:59', 'admin', '2026-03-30 16:56:59', '活动管理菜单');
INSERT INTO `sys_menu` VALUES (2031, '活动管理查询', 2030, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:activity:query', '#', 'admin', '2026-03-08 17:27:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2032, '活动管理新增', 2030, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:activity:add', '#', 'admin', '2026-03-08 17:27:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2033, '活动管理修改', 2030, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:activity:edit', '#', 'admin', '2026-03-08 17:27:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2034, '活动管理删除', 2030, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:activity:remove', '#', 'admin', '2026-03-08 17:27:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2035, '活动管理导出', 2030, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:activity:export', '#', 'admin', '2026-03-08 17:27:59', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2036, '认证商城', 0, 50, 'userGoodIndex', 'system/good/userGoodIndex', NULL, '', 1, 0, 'C', '0', '0', '', 'shopping', 'admin', '2026-03-16 10:53:19', 'admin', '2026-03-30 16:54:12', '');
INSERT INTO `sys_menu` VALUES (2037, '我的订单', 0, 62, 'MyOrder', 'system/order/my-order', NULL, '', 1, 0, 'C', '0', '0', NULL, 'documentation', 'admin', '2026-03-30 16:30:07', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2044, '验证记录', 0, 160, 'captchaRecord', 'system/captchaRecord/index', NULL, '', 1, 0, 'C', '0', '0', 'system:captchaRecord:list', 'log', 'admin', '2026-04-02 14:24:52', 'admin', '2026-04-02 14:31:28', '验证码记录菜单');
INSERT INTO `sys_menu` VALUES (2045, '验证码记录查询', 2044, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:captchaRecord:query', '#', 'admin', '2026-04-02 14:24:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2046, '验证码记录新增', 2044, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:captchaRecord:add', '#', 'admin', '2026-04-02 14:24:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2047, '验证码记录修改', 2044, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:captchaRecord:edit', '#', 'admin', '2026-04-02 14:24:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2048, '验证码记录删除', 2044, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:captchaRecord:remove', '#', 'admin', '2026-04-02 14:24:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2049, '验证码记录导出', 2044, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:captchaRecord:export', '#', 'admin', '2026-04-02 14:24:52', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2050, '账号管理', 0, 38, 'platformAccount', 'system/platformAccount/index', NULL, '', 1, 0, 'C', '0', '0', 'system:platformAccount:list', 'user', 'admin', '2026-05-13 15:20:33', 'admin', '2026-05-13 15:22:01', '平台账户菜单');
INSERT INTO `sys_menu` VALUES (2051, '平台账号查询', 2050, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:platformAccount:query', '#', 'admin', '2026-05-13 15:20:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2052, '平台账号新增', 2050, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:platformAccount:add', '#', 'admin', '2026-05-13 15:20:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2053, '平台账号修改', 2050, 3, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:platformAccount:edit', '#', 'admin', '2026-05-13 15:20:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2054, '平台账号删除', 2050, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:platformAccount:remove', '#', 'admin', '2026-05-13 15:20:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2055, '平台账号导出', 2050, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:platformAccount:export', '#', 'admin', '2026-05-13 15:20:33', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2056, '重置记录', 0, 40, 'passwordResetLog', 'system/passwordResetLog/index', NULL, '', 1, 0, 'C', '0', '0', 'system:passwordResetLog:list', 'password', 'admin', '2026-06-04 14:16:25', 'admin', '2026-06-04 14:23:17', '密码重置记录菜单');
INSERT INTO `sys_menu` VALUES (2057, '重置记录查询', 2056, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:passwordResetLog:query', '#', 'admin', '2026-06-04 14:16:25', 'admin', '2026-06-04 14:17:42', '');
INSERT INTO `sys_menu` VALUES (2058, '重置记录删除', 2056, 4, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:passwordResetLog:remove', '#', 'admin', '2026-06-04 14:16:25', 'admin', '2026-06-04 14:17:47', '');
INSERT INTO `sys_menu` VALUES (2059, '重置记录导出', 2056, 5, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'system:passwordResetLog:export', '#', 'admin', '2026-06-04 14:16:25', 'admin', '2026-06-04 14:17:52', '');

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice`  (
  `notice_id` int(0) NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  `notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告标题',
  `notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告类型（1通知 2公告）',
  `notice_content` longblob NULL COMMENT '公告内容',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知公告表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_notice
-- ----------------------------

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log`  (
  `oper_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
  `business_type` int(0) NULL DEFAULT 0 COMMENT '业务类型（0其它 1新增 2修改 3删除）',
  `method` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
  `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
  `operator_type` int(0) NULL DEFAULT 0 COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
  `oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
  `dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
  `oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
  `oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
  `oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
  `oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
  `json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
  `status` int(0) NULL DEFAULT 0 COMMENT '操作状态（0正常 1异常）',
  `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
  `oper_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
  `cost_time` bigint(0) NULL DEFAULT 0 COMMENT '消耗时间',
  PRIMARY KEY (`oper_id`) USING BTREE,
  INDEX `idx_sys_oper_log_bt`(`business_type`) USING BTREE,
  INDEX `idx_sys_oper_log_s`(`status`) USING BTREE,
  INDEX `idx_sys_oper_log_ot`(`oper_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------

-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post`  (
  `post_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  `post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
  `post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
  `post_sort` int(0) NOT NULL COMMENT '显示顺序',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态（0正常 1停用）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`post_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_post
-- ----------------------------
INSERT INTO `sys_post` VALUES (1, 'admin', '超级管理员', 1, '0', 'admin', '2025-12-26 11:28:10', 'admin', '2025-12-26 23:08:20', '');
INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '0', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '0', 'admin', '2025-12-26 11:28:10', '', NULL, '');
INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '0', 'admin', '2025-12-26 11:28:10', '', NULL, '');

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `role_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  `role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
  `role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
  `role_sort` int(0) NOT NULL COMMENT '显示顺序',
  `data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
  `dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2025-12-26 11:28:10', '', NULL, '超级管理员');
INSERT INTO `sys_role` VALUES (2, '普通管理员', 'ptadmin', 2, '1', 1, 1, '0', '0', 'admin', '2025-12-26 11:28:10', 'admin', '2026-03-30 17:16:54', '普通角色');
INSERT INTO `sys_role` VALUES (100, '普通会员', 'common', 3, '1', 1, 1, '0', '0', 'admin', '2026-03-30 16:58:40', '', NULL, NULL);

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept`  (
  `role_id` bigint(0) NOT NULL COMMENT '角色ID',
  `dept_id` bigint(0) NOT NULL COMMENT '部门ID',
  PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `role_id` bigint(0) NOT NULL COMMENT '角色ID',
  `menu_id` bigint(0) NOT NULL COMMENT '菜单ID',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES (2, 1);
INSERT INTO `sys_role_menu` VALUES (2, 107);
INSERT INTO `sys_role_menu` VALUES (2, 108);
INSERT INTO `sys_role_menu` VALUES (2, 500);
INSERT INTO `sys_role_menu` VALUES (2, 501);
INSERT INTO `sys_role_menu` VALUES (2, 1035);
INSERT INTO `sys_role_menu` VALUES (2, 1036);
INSERT INTO `sys_role_menu` VALUES (2, 1037);
INSERT INTO `sys_role_menu` VALUES (2, 1038);
INSERT INTO `sys_role_menu` VALUES (2, 1039);
INSERT INTO `sys_role_menu` VALUES (2, 1040);
INSERT INTO `sys_role_menu` VALUES (2, 1041);
INSERT INTO `sys_role_menu` VALUES (2, 1042);
INSERT INTO `sys_role_menu` VALUES (2, 1043);
INSERT INTO `sys_role_menu` VALUES (2, 1044);
INSERT INTO `sys_role_menu` VALUES (2, 1045);
INSERT INTO `sys_role_menu` VALUES (2, 2006);
INSERT INTO `sys_role_menu` VALUES (2, 2007);
INSERT INTO `sys_role_menu` VALUES (2, 2008);
INSERT INTO `sys_role_menu` VALUES (2, 2009);
INSERT INTO `sys_role_menu` VALUES (2, 2010);
INSERT INTO `sys_role_menu` VALUES (2, 2011);
INSERT INTO `sys_role_menu` VALUES (2, 2012);
INSERT INTO `sys_role_menu` VALUES (2, 2013);
INSERT INTO `sys_role_menu` VALUES (2, 2014);
INSERT INTO `sys_role_menu` VALUES (2, 2015);
INSERT INTO `sys_role_menu` VALUES (2, 2016);
INSERT INTO `sys_role_menu` VALUES (2, 2017);
INSERT INTO `sys_role_menu` VALUES (2, 2018);
INSERT INTO `sys_role_menu` VALUES (2, 2019);
INSERT INTO `sys_role_menu` VALUES (2, 2020);
INSERT INTO `sys_role_menu` VALUES (2, 2021);
INSERT INTO `sys_role_menu` VALUES (2, 2022);
INSERT INTO `sys_role_menu` VALUES (2, 2023);
INSERT INTO `sys_role_menu` VALUES (2, 2024);
INSERT INTO `sys_role_menu` VALUES (2, 2025);
INSERT INTO `sys_role_menu` VALUES (2, 2026);
INSERT INTO `sys_role_menu` VALUES (2, 2027);
INSERT INTO `sys_role_menu` VALUES (2, 2028);
INSERT INTO `sys_role_menu` VALUES (2, 2029);
INSERT INTO `sys_role_menu` VALUES (2, 2030);
INSERT INTO `sys_role_menu` VALUES (2, 2031);
INSERT INTO `sys_role_menu` VALUES (2, 2032);
INSERT INTO `sys_role_menu` VALUES (2, 2033);
INSERT INTO `sys_role_menu` VALUES (2, 2034);
INSERT INTO `sys_role_menu` VALUES (2, 2035);
INSERT INTO `sys_role_menu` VALUES (2, 2036);
INSERT INTO `sys_role_menu` VALUES (100, 2018);
INSERT INTO `sys_role_menu` VALUES (100, 2019);
INSERT INTO `sys_role_menu` VALUES (100, 2020);
INSERT INTO `sys_role_menu` VALUES (100, 2021);
INSERT INTO `sys_role_menu` VALUES (100, 2022);
INSERT INTO `sys_role_menu` VALUES (100, 2023);
INSERT INTO `sys_role_menu` VALUES (100, 2036);
INSERT INTO `sys_role_menu` VALUES (100, 2037);
INSERT INTO `sys_role_menu` VALUES (100, 2050);
INSERT INTO `sys_role_menu` VALUES (100, 2051);
INSERT INTO `sys_role_menu` VALUES (100, 2052);
INSERT INTO `sys_role_menu` VALUES (100, 2053);
INSERT INTO `sys_role_menu` VALUES (100, 2054);
INSERT INTO `sys_role_menu` VALUES (100, 2055);

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `user_id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  `dept_id` bigint(0) NULL DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
  `user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型（00系统用户）',
  `avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
  `points` int(0) NULL DEFAULT 0 COMMENT '积分',
  `balance` decimal(10, 2) NULL DEFAULT NULL COMMENT '余额',
  `consumption_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '消费金额',
  `real_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
  `id_card` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '身份证',
  `certification_status` int(0) NULL DEFAULT 1 COMMENT '认证状态(1-未认证、2-已认证)',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '账号状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime(0) NULL DEFAULT NULL COMMENT '最后登录时间',
  `pwd_update_date` datetime(0) NULL DEFAULT NULL COMMENT '密码最后更新时间',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, NULL, 'admin', '超级管理员', '00', '', '0', NULL, NULL, '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', 0, 0.00, 0.00, NULL, NULL, 1, '0', '0', '127.0.0.1', '2026-03-31 09:53:59', '2025-12-26 11:28:10', 'admin', '2025-12-26 11:28:10', '', '2026-03-31 09:09:28', '管理员');

-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post`  (
  `user_id` bigint(0) NOT NULL COMMENT '用户ID',
  `post_id` bigint(0) NOT NULL COMMENT '岗位ID',
  PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_post
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `user_id` bigint(0) NOT NULL COMMENT '用户ID',
  `role_id` bigint(0) NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
