更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-123
View File
@@ -1,8 +1,3 @@
-- MySQL dump 10.13 Distrib 8.0.41, for Win64 (x86_64)
--
-- Host: 212.64.112.158 Database: gotest
-- ------------------------------------------------------
-- Server version 5.7.44-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -15,18 +10,10 @@
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `gotest`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `gotest` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `gotest`;
--
-- Table structure for table `sys_access_log`
--
DROP TABLE IF EXISTS `sys_access_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -49,10 +36,6 @@ CREATE TABLE `sys_access_log` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_dict_item`
--
DROP TABLE IF EXISTS `sys_dict_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -79,10 +62,6 @@ CREATE TABLE `sys_dict_item` (
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb4 COMMENT='字典项表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_dict_type`
--
DROP TABLE IF EXISTS `sys_dict_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -109,10 +88,6 @@ CREATE TABLE `sys_dict_type` (
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COMMENT='字典类型表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_feedback`
--
DROP TABLE IF EXISTS `sys_feedback`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -137,10 +112,6 @@ CREATE TABLE `sys_feedback` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='通用反馈表(支持租户隔离、软删除)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_operation_log`
--
DROP TABLE IF EXISTS `sys_operation_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -177,10 +148,6 @@ CREATE TABLE `sys_operation_log` (
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8mb4 COMMENT='系统操作日志表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_exam`
--
DROP TABLE IF EXISTS `yz_exam`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -205,10 +172,6 @@ CREATE TABLE `yz_exam` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考试主表(关联分类+租户隔离)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_exam_category`
--
DROP TABLE IF EXISTS `yz_exam_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -228,10 +191,6 @@ CREATE TABLE `yz_exam_category` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考试分类表(含多租户隔离)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_exam_question_bank`
--
DROP TABLE IF EXISTS `yz_exam_question_bank`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -252,10 +211,6 @@ CREATE TABLE `yz_exam_question_bank` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考试题库表(支持租户隔离、软删除)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_exam_users`
--
DROP TABLE IF EXISTS `yz_exam_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -282,10 +237,6 @@ CREATE TABLE `yz_exam_users` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='考试用户表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_files`
--
DROP TABLE IF EXISTS `yz_files`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -319,10 +270,6 @@ CREATE TABLE `yz_files` (
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='文件表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_knowledge`
--
DROP TABLE IF EXISTS `yz_knowledge`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -359,10 +306,6 @@ CREATE TABLE `yz_knowledge` (
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COMMENT='知识库内容表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_knowledge_category`
--
DROP TABLE IF EXISTS `yz_knowledge_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -381,10 +324,6 @@ CREATE TABLE `yz_knowledge_category` (
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='知识库分类表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_knowledge_favorites`
--
DROP TABLE IF EXISTS `yz_knowledge_favorites`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -402,10 +341,6 @@ CREATE TABLE `yz_knowledge_favorites` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='知识库收藏表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_knowledge_tags`
--
DROP TABLE IF EXISTS `yz_knowledge_tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -424,10 +359,6 @@ CREATE TABLE `yz_knowledge_tags` (
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COMMENT='知识库标签表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_menus`
--
DROP TABLE IF EXISTS `yz_menus`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -460,10 +391,6 @@ CREATE TABLE `yz_menus` (
) ENGINE=InnoDB AUTO_INCREMENT=136 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='菜单表(增强版)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_program_category`
--
DROP TABLE IF EXISTS `yz_program_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -480,10 +407,6 @@ CREATE TABLE `yz_program_category` (
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='程序分类表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_program_info`
--
DROP TABLE IF EXISTS `yz_program_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -506,10 +429,6 @@ CREATE TABLE `yz_program_info` (
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='程序信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_roles`
--
DROP TABLE IF EXISTS `yz_roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -538,10 +457,6 @@ CREATE TABLE `yz_roles` (
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='角色表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_crm_contact`
--
DROP TABLE IF EXISTS `yz_tenant_crm_contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -571,10 +486,6 @@ CREATE TABLE `yz_tenant_crm_contact` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='租户CRM联系人表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_crm_customer`
--
DROP TABLE IF EXISTS `yz_tenant_crm_customer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -618,10 +529,6 @@ CREATE TABLE `yz_tenant_crm_customer` (
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=utf8mb4 COMMENT='客户管理表(支持租户隔离、软删除、客户全生命周期追踪)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_crm_supplier`
--
DROP TABLE IF EXISTS `yz_tenant_crm_supplier`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -659,10 +566,6 @@ CREATE TABLE `yz_tenant_crm_supplier` (
) ENGINE=InnoDB AUTO_INCREMENT=501 DEFAULT CHARSET=utf8mb4 COMMENT='供应商管理表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_departments`
--
DROP TABLE IF EXISTS `yz_tenant_departments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -690,10 +593,6 @@ CREATE TABLE `yz_tenant_departments` (
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='部门表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_employees`
--
DROP TABLE IF EXISTS `yz_tenant_employees`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -728,10 +627,6 @@ CREATE TABLE `yz_tenant_employees` (
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='员工表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_positions`
--
DROP TABLE IF EXISTS `yz_tenant_positions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -759,10 +654,6 @@ CREATE TABLE `yz_tenant_positions` (
) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='职位表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenant_tasks`
--
DROP TABLE IF EXISTS `yz_tenant_tasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -822,10 +713,6 @@ CREATE TABLE `yz_tenant_tasks` (
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='OA系统任务表(多租户适配)';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_tenants`
--
DROP TABLE IF EXISTS `yz_tenants`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -860,10 +747,6 @@ CREATE TABLE `yz_tenants` (
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='租户表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `yz_users`
--
DROP TABLE IF EXISTS `yz_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
@@ -919,9 +802,7 @@ CREATE TABLE `yz_exam_question` (
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`delete_time` datetime DEFAULT NULL COMMENT '删除时间(软删除)',
PRIMARY KEY (`id`),
-- 核心联合索引:租户+状态+删除时间(查询可用试题)
KEY `idx_tenant_status_delete` (`tenant_id`, `status`, `delete_time`),
-- 联合索引:租户+题型+删除时间(筛选特定题型试题)
KEY `idx_tenant_type_delete` (`tenant_id`, `question_type`, `delete_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='试题主表(通用型+多租户隔离+软删除)';
@@ -936,9 +817,7 @@ CREATE TABLE `yz_exam_question_option` (
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`delete_time` datetime DEFAULT NULL COMMENT '删除时间(软删除)',
PRIMARY KEY (`id`),
-- 核心联合索引:租户+试题ID+删除时间(查询某试题所有选项)
KEY `idx_tenant_question_delete` (`tenant_id`, `question_id`, `delete_time`),
-- 联合索引:租户+试题ID+选项标签+删除时间(快速定位选项)
KEY `idx_tenant_question_label_delete` (`tenant_id`, `question_id`, `option_label`, `delete_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='试题选项表(客观题专用+多租户隔离+软删除)';
@@ -951,8 +830,6 @@ CREATE TABLE `yz_exam_question_answer` (
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`delete_time` datetime DEFAULT NULL COMMENT '删除时间(软删除)',
PRIMARY KEY (`id`),
-- 核心联合索引:租户+试题ID+删除时间(查询某试题正确答案)
KEY `idx_tenant_question_delete` (`tenant_id`, `question_id`, `delete_time`),
-- 唯一索引:同一租户下同一试题只能有一个正确答案
UNIQUE KEY `uk_tenant_question` (`tenant_id`, `question_id`, `delete_time`) COMMENT '软删除状态下试题答案唯一'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='试题答案表(通用答案存储+多租户隔离+软删除)';