setting.sql 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : nas_mysql8
  4. Source Server Type : MySQL
  5. Source Server Version : 80039
  6. Source Host : 192.168.1.95:5202
  7. Source Schema : nginx_ui
  8. Target Server Type : MySQL
  9. Target Server Version : 80039
  10. File Encoding : 65001
  11. Date: 27/10/2024 11:14:13
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for setting
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `setting`;
  19. CREATE TABLE `setting` (
  20. `id` int NOT NULL AUTO_INCREMENT,
  21. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  22. `config_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  23. `dn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  24. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT '',
  25. `remark` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL,
  26. `enable` tinyint(1) NOT NULL DEFAULT 0,
  27. PRIMARY KEY (`id`) USING BTREE,
  28. UNIQUE INDEX `config_key`(`config_key` ASC) USING BTREE,
  29. UNIQUE INDEX `dn`(`dn` ASC) USING BTREE
  30. ) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
  31. -- ----------------------------
  32. -- Records of setting
  33. -- ----------------------------
  34. INSERT INTO `setting` VALUES (1, '邮件服务器', 'email@server', 'smtp.qq.com', '邮件配置的服务器地址', '', 1);
  35. INSERT INTO `setting` VALUES (2, '邮件端口', 'email@port', '465', '端口', '', 1);
  36. INSERT INTO `setting` VALUES (3, '邮件-用户名', 'email@username', '976056042@qq.com', '用户名', '', 1);
  37. INSERT INTO `setting` VALUES (4, '邮件-授权密码', 'email@password', 'rtflgkyqmczsbebe', '密码', '', 1);
  38. INSERT INTO `setting` VALUES (5, '邮件-发送者姓名', 'email@nickname', '测试用户', '可以是邮箱地址或者是用户名', '', 1);
  39. INSERT INTO `setting` VALUES (6, '邮件-是否安全访问SSL', 'email@ssl', 'Y', 'Y or N , Y表示启用', '', 1);
  40. INSERT INTO `setting` VALUES (7, 'LDAP用户新增邮件通知主题', 'LDAP_USER_EMAIL_ADD_SEND@Subject', '邮件为您的账号信息,请注意保存', 'LDAP新增用户时,发送邮件的主题', '', 1);
  41. 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);
  42. INSERT INTO `setting` VALUES (9, '重置密码主题', 'USER_EMAIL_RESET_PASS@Subject', '重置密码', '重置密码的主题', '', 1);
  43. INSERT INTO `setting` VALUES (10, '重置密码邮件的内容模板', 'USER_EMAIL_RESET_PASS@Content', '<div>\n 请点击以下链接重置密码:\n <a href=\"http://localhost:5173/resetPassword/{{link}}?account={{account}}\">点我重置密码</a>\n <div>如果无法跳转,请复制以下链接到浏览器访问进行操作:<h5>http://localhost:5173/resetPassword/{{link}}?account={{account}}</h5></div>\n</div>', '富文本,HTML内容模板,包含以下参数替换:\n{{username}}: 用户姓名\n{{account}}: 用户账号\n{{link}}: 用户临时授权码\n{{password}}: 用户临时授权码', '', 1);
  44. SET FOREIGN_KEY_CHECKS = 1;