/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1
 Source Server Type    : MySQL
 Source Server Version : 50700
 Source Host           : localhost:3306
 Source Schema         : hanhai-official-website

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

 Date: 25/05/2025 23:18:46
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data`  (
  `dict_code` bigint(20) NOT NULL COMMENT '字典编码',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
  `dict_sort` int(4) 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否）',
  `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime 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 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典数据表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data` VALUES (1, '000000', 1, '男', '0', 'sys_user_sex', '', '', 'Y', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, '000000', 2, '女', '1', 'sys_user_sex', '', '', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, '000000', 3, '未知', '2', 'sys_user_sex', '', '', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, '000000', 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, '000000', 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, '000000', 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, '000000', 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (12, '000000', 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, '000000', 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, '000000', 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, '000000', 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, '000000', 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, '000000', 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, '000000', 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (19, '000000', 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (20, '000000', 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (21, '000000', 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (22, '000000', 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (23, '000000', 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (24, '000000', 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (25, '000000', 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (26, '000000', 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (27, '000000', 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (28, '000000', 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (29, '000000', 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '其他操作');
INSERT INTO `sys_dict_data` VALUES (30, '000000', 0, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '密码认证');
INSERT INTO `sys_dict_data` VALUES (31, '000000', 0, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '短信认证');
INSERT INTO `sys_dict_data` VALUES (32, '000000', 0, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '邮件认证');
INSERT INTO `sys_dict_data` VALUES (33, '000000', 0, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '小程序认证');
INSERT INTO `sys_dict_data` VALUES (34, '000000', 0, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '三方登录认证');
INSERT INTO `sys_dict_data` VALUES (35, '000000', 0, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, 'PC');
INSERT INTO `sys_dict_data` VALUES (36, '000000', 0, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '安卓');
INSERT INTO `sys_dict_data` VALUES (37, '000000', 0, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, 'iOS');
INSERT INTO `sys_dict_data` VALUES (38, '000000', 0, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 103, 1, '2025-05-13 17:53:46', NULL, NULL, '小程序');
INSERT INTO `sys_dict_data` VALUES (39, '000000', 1, '已撤销', 'cancel', 'wf_business_status', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '已撤销');
INSERT INTO `sys_dict_data` VALUES (40, '000000', 2, '草稿', 'draft', 'wf_business_status', '', 'info', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '草稿');
INSERT INTO `sys_dict_data` VALUES (41, '000000', 3, '待审核', 'waiting', 'wf_business_status', '', 'primary', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '待审核');
INSERT INTO `sys_dict_data` VALUES (42, '000000', 4, '已完成', 'finish', 'wf_business_status', '', 'success', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '已完成');
INSERT INTO `sys_dict_data` VALUES (43, '000000', 5, '已作废', 'invalid', 'wf_business_status', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '已作废');
INSERT INTO `sys_dict_data` VALUES (44, '000000', 6, '已退回', 'back', 'wf_business_status', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '已退回');
INSERT INTO `sys_dict_data` VALUES (45, '000000', 7, '已终止', 'termination', 'wf_business_status', '', 'danger', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '已终止');
INSERT INTO `sys_dict_data` VALUES (46, '000000', 1, '自定义表单', 'static', 'wf_form_type', '', 'success', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '自定义表单');
INSERT INTO `sys_dict_data` VALUES (47, '000000', 2, '动态表单', 'dynamic', 'wf_form_type', '', 'primary', 'N', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '动态表单');
INSERT INTO `sys_dict_data` VALUES (1922256280715071489, '000000', 0, '文本', '0', 'ow_config_type', '', 'primary', 'N', 103, 1, '2025-05-13 19:43:06', 1, '2025-05-13 19:43:06', '');
INSERT INTO `sys_dict_data` VALUES (1922256349870755842, '000000', 0, '富文本', '1', 'ow_config_type', '', 'success', 'N', 103, 1, '2025-05-13 19:43:22', 1, '2025-05-13 19:43:22', '');
INSERT INTO `sys_dict_data` VALUES (1922256389959913474, '000000', 0, '图片', '2', 'ow_config_type', '', 'warning', 'N', 103, 1, '2025-05-13 19:43:32', 1, '2025-05-13 19:43:32', '');
INSERT INTO `sys_dict_data` VALUES (1922956628631052289, '000000', 0, '胡立永', '2783385703@qq.com', 'ow_leave_message_email', '', 'primary', 'N', 103, 1, '2025-05-15 18:06:02', 1, '2025-05-15 18:50:37', '');
INSERT INTO `sys_dict_data` VALUES (1923002336729894913, '000000', 2, '精选', '1', 'ow_select_cases', '', 'success', 'N', 103, 1, '2025-05-15 21:07:39', 1, '2025-05-15 21:08:01', '');
INSERT INTO `sys_dict_data` VALUES (1923002380929470465, '000000', 1, '普通', '0', 'ow_select_cases', '', 'primary', 'N', 103, 1, '2025-05-15 21:07:50', 1, '2025-05-15 21:07:57', '');

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type`  (
  `dict_id` bigint(20) NOT NULL COMMENT '字典主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' 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 '字典类型',
  `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime 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 `tenant_id`(`tenant_id` ASC, `dict_type` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type` VALUES (1, '000000', '用户性别', 'sys_user_sex', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '000000', '菜单状态', 'sys_show_hide', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '000000', '系统开关', 'sys_normal_disable', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (6, '000000', '系统是否', 'sys_yes_no', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '000000', '通知类型', 'sys_notice_type', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '000000', '通知状态', 'sys_notice_status', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '000000', '操作类型', 'sys_oper_type', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '000000', '系统状态', 'sys_common_status', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '登录状态列表');
INSERT INTO `sys_dict_type` VALUES (11, '000000', '授权类型', 'sys_grant_type', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '认证授权类型');
INSERT INTO `sys_dict_type` VALUES (12, '000000', '设备类型', 'sys_device_type', 103, 1, '2025-05-13 17:53:45', NULL, NULL, '客户端设备类型');
INSERT INTO `sys_dict_type` VALUES (13, '000000', '业务状态', 'wf_business_status', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '业务状态列表');
INSERT INTO `sys_dict_type` VALUES (14, '000000', '表单类型', 'wf_form_type', 103, 1, '2025-05-13 17:53:57', NULL, NULL, '表单类型列表');
INSERT INTO `sys_dict_type` VALUES (1922256144798650370, '000000', '官网配置类型', 'ow_config_type', 103, 1, '2025-05-13 19:42:33', 1, '2025-05-13 19:42:33', '');
INSERT INTO `sys_dict_type` VALUES (1922956476692389889, '000000', '留言通知邮箱列表', 'ow_leave_message_email', 103, 1, '2025-05-15 18:05:26', 1, '2025-05-15 18:05:26', '');
INSERT INTO `sys_dict_type` VALUES (1923002216173015041, '000000', '官网精选案例', 'ow_select_cases', 103, 1, '2025-05-15 21:07:11', 1, '2025-05-15 21:07:11', '');

-- ----------------------------
-- Table structure for sys_oss
-- ----------------------------
DROP TABLE IF EXISTS `sys_oss`;
CREATE TABLE `sys_oss`  (
  `oss_id` bigint(20) NOT NULL COMMENT '对象存储主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
  `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件名',
  `original_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原名',
  `file_suffix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件后缀名',
  `url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'URL地址',
  `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT '上传人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新人',
  `service` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'minio' COMMENT '服务商',
  PRIMARY KEY (`oss_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'OSS对象存储表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oss
-- ----------------------------
INSERT INTO `sys_oss` VALUES (1922304463197528065, '000000', '2025/05/13/c4c7b2b5566d47579e71b5065306602f.png', 'photo-1460925895917-afdab827c52f.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/13/c4c7b2b5566d47579e71b5065306602f.png', 103, '2025-05-13 22:54:33', 1, '2025-05-13 22:54:33', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1922521208382410753, '000000', '2025/05/14/da8a9810e9ed4e72b0520445550a4a24.png', 'photo-1451187580459-43490279c0fa.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/14/da8a9810e9ed4e72b0520445550a4a24.png', 103, '2025-05-14 13:15:49', 1, '2025-05-14 13:15:49', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1922521996253057026, '000000', '2025/05/14/a5803697c9264e6fb0c454d82e162bf8.png', 'photo-1504639725590-34d0984388bd.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/14/a5803697c9264e6fb0c454d82e162bf8.png', 103, '2025-05-14 13:18:57', 1, '2025-05-14 13:18:57', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1922522730147205121, '000000', '2025/05/14/02157936b997488081388cca14d410c8.png', 'photo-1557682250-33bd709cbe85.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/14/02157936b997488081388cca14d410c8.png', 103, '2025-05-14 13:21:52', 1, '2025-05-14 13:21:52', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1922526021912481794, '000000', '2025/05/14/0af85734565a4d5591b625dca37dd101.png', 'photo-1454165804606-c3d57bc86b40.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/14/0af85734565a4d5591b625dca37dd101.png', 103, '2025-05-14 13:34:57', 1, '2025-05-14 13:34:57', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1922527863077720066, '000000', '2025/05/14/3d34caa177294bc7bb0ebb2bed41b032.png', 'photo-1454165804606-c3d57bc86b40.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/14/3d34caa177294bc7bb0ebb2bed41b032.png', 103, '2025-05-14 13:42:16', 1, '2025-05-14 13:42:16', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1922971041698263041, '000000', '2025/05/15/dc59785c5e664c3484a6a45a531a3a19.png', 'O1CN01gu2o871DxCiSQThZ2_!!2214792040282.jpg_.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/15/dc59785c5e664c3484a6a45a531a3a19.png', 103, '2025-05-15 19:03:18', 1, '2025-05-15 19:03:18', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1923006894076190722, '000000', '2025/05/15/c61ca280b70348538786b4c6a0ed18ec.png', 'O1CN01gu2o871DxCiSQThZ2_!!2214792040282.jpg_.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/15/c61ca280b70348538786b4c6a0ed18ec.png', 103, '2025-05-15 21:25:46', 1, '2025-05-15 21:25:46', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1923007433816006658, '000000', '2025/05/15/c6c1785aa2554f53a6a47aa926fc1242.jpg', 'logo.jpg', '.jpg', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/15/c6c1785aa2554f53a6a47aa926fc1242.jpg', 103, '2025-05-15 21:27:55', 1, '2025-05-15 21:27:55', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1926646069174325250, '000000', '2025/05/25/8efd3bfe0fa54435989f2c484806176b.png', 'placard-bg.png', '.png', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/25/8efd3bfe0fa54435989f2c484806176b.png', 103, '2025-05-25 22:26:33', 1, '2025-05-25 22:26:33', 1, 'aliyun1');
INSERT INTO `sys_oss` VALUES (1926646082247970818, '000000', '2025/05/25/67ea74de8a164ea5b70ed9b12f2d686c.jpg', 'logo.jpg', '.jpg', 'https://hanhaiimage.oss-cn-shenzhen.aliyuncs.com/2025/05/25/67ea74de8a164ea5b70ed9b12f2d686c.jpg', 103, '2025-05-25 22:26:36', 1, '2025-05-25 22:26:36', 1, 'aliyun1');

-- ----------------------------
-- Table structure for sys_oss_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_oss_config`;
CREATE TABLE `sys_oss_config`  (
  `oss_config_id` bigint(20) NOT NULL COMMENT '主键',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
  `config_key` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置key',
  `access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'accessKey',
  `secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '秘钥',
  `bucket_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '桶名称',
  `prefix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '前缀',
  `endpoint` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '访问站点',
  `domain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '自定义域名',
  `is_https` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否https（Y=是,N=否）',
  `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '域',
  `access_policy` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '1' COMMENT '桶权限类型(0=private 1=public 2=custom)',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否默认（0=是,1=否）',
  `ext1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '扩展字段',
  `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`oss_config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对象存储配置表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_oss_config
-- ----------------------------
INSERT INTO `sys_oss_config` VALUES (1, '000000', 'minio', 'ruoyi', 'ruoyi123', 'ruoyi', '', '127.0.0.1:9000', '', 'N', '', '1', '1', '', 103, 1, '2025-05-13 17:53:46', 1, '2025-05-13 17:53:46', NULL);
INSERT INTO `sys_oss_config` VALUES (2, '000000', 'qiniu', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '1', '', 103, 1, '2025-05-13 17:53:46', 1, '2025-05-13 17:53:46', NULL);
INSERT INTO `sys_oss_config` VALUES (3, '000000', 'aliyun', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1', '1', '', 103, 1, '2025-05-13 17:53:46', 1, '2025-05-13 17:53:46', NULL);
INSERT INTO `sys_oss_config` VALUES (4, '000000', 'qcloud', 'XXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXX', 'ruoyi-1250000000', '', 'cos.ap-beijing.myqcloud.com', '', 'N', 'ap-beijing', '1', '1', '', 103, 1, '2025-05-13 17:53:46', 1, '2025-05-13 17:53:46', NULL);
INSERT INTO `sys_oss_config` VALUES (5, '000000', 'image', 'ruoyi', 'ruoyi123', 'ruoyi', 'image', '127.0.0.1:9000', '', 'N', '', '1', '1', '', 103, 1, '2025-05-13 17:53:46', 1, '2025-05-13 17:53:46', NULL);
INSERT INTO `sys_oss_config` VALUES (1922299487322701826, '000000', 'aliyun1', '[REDACTED], 'qHI7C3PaXYZySr84HTToviC71AYlFq', 'hanhaiimage', '', 'oss-cn-shenzhen.aliyuncs.com', '', 'Y', '', '1', '0', '', 103, 1, '2025-05-13 22:34:47', 1, '2025-05-13 22:35:26', '');

SET FOREIGN_KEY_CHECKS = 1; 