/* Navicat Premium Data Transfer Source Server : nas_mysql8 Source Server Type : MySQL Source Server Version : 80039 Source Host : 192.168.1.95:5202 Source Schema : nginx_ui Target Server Type : MySQL Target Server Version : 80039 File Encoding : 65001 Date: 27/10/2024 11:14:13 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for setting -- ---------------------------- DROP TABLE IF EXISTS `setting`; CREATE TABLE `setting` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '', `config_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '', `dn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '', `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '', `remark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL, `enable` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `config_key`(`config_key` ASC) USING BTREE, UNIQUE INDEX `dn`(`dn` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of setting -- ---------------------------- INSERT INTO `setting` VALUES (1, '邮件服务器', 'email@server', 'smtp.qq.com', '邮件配置的服务器地址', '', 1); INSERT INTO `setting` VALUES (2, '邮件端口', 'email@port', '465', '端口', '', 1); INSERT INTO `setting` VALUES (3, '邮件-用户名', 'email@username', '976056042@qq.com', '用户名', '', 1); INSERT INTO `setting` VALUES (4, '邮件-授权密码', 'email@password', 'rtflgkyqmczsbebe', '密码', '', 1); INSERT INTO `setting` VALUES (5, '邮件-发送者姓名', 'email@nickname', '测试用户', '可以是邮箱地址或者是用户名', '', 1); INSERT INTO `setting` VALUES (6, '邮件-是否安全访问SSL', 'email@ssl', 'Y', 'Y or N , Y表示启用', '', 1); INSERT INTO `setting` VALUES (7, 'LDAP用户新增邮件通知主题', 'LDAP_USER_EMAIL_ADD_SEND@Subject', '邮件为您的账号信息,请注意保存', 'LDAP新增用户时,发送邮件的主题', '', 1); INSERT INTO `setting` VALUES (8, 'LDAP新增用户邮件内容模板', 'LDAP_USER_EMAIL_ADD_SEND@Content', '{{username}} 您好!\n 欢迎加入xxx大家庭,以下为您的账号密码信息,请注意报错,请第一时间修改密码,登录xxx网站后自行修改\n账号:{{account}} \n密码:{{password}}', 'LDAP新增用户邮件内容模板,替换变量:\n{{username}} 账号昵称或者姓名\n{{password}} 账号初始化密码\n{{account}} 账号', '', 1); INSERT INTO `setting` VALUES (9, '重置密码主题', 'USER_EMAIL_RESET_PASS@Subject', '重置密码', '重置密码的主题', '', 1); INSERT INTO `setting` VALUES (10, '重置密码邮件的内容模板', 'USER_EMAIL_RESET_PASS@Content', '
\n 请点击以下链接重置密码:\n 点我重置密码\n
如果无法跳转,请复制以下链接到浏览器访问进行操作:
http://localhost:5173/resetPassword/{{link}}?account={{account}}
\n
', '富文本,HTML内容模板,包含以下参数替换:\n{{username}}: 用户姓名\n{{account}}: 用户账号\n{{link}}: 用户临时授权码\n{{password}}: 用户临时授权码', '', 1); SET FOREIGN_KEY_CHECKS = 1;