system_config.sql 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. Navicat Premium Dump SQL
  3. Source Server : 47.99.164.66 hn02le.34lkdLKD
  4. Source Server Type : MySQL
  5. Source Server Version : 50736 (5.7.36)
  6. Source Host : 47.99.164.66:3306
  7. Source Schema : buff
  8. Target Server Type : MySQL
  9. Target Server Version : 50736 (5.7.36)
  10. File Encoding : 65001
  11. Date: 19/02/2026 19:47:12
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for system_config
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `system_config`;
  19. CREATE TABLE `system_config` (
  20. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  21. `config_key` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '配置键名',
  22. `config_value` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '配置值',
  23. `config_type` enum('int','string','bool','json') COLLATE utf8mb4_unicode_ci DEFAULT 'string' COMMENT '配置值类型',
  24. `app_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT 'backend-admin' COMMENT '所属应用:backend-admin、backend-client,多个用逗号拼接',
  25. `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '配置描述',
  26. `is_system` tinyint(1) DEFAULT '1' COMMENT '是否为系统配置:1-是,0-否',
  27. `is_editable` tinyint(1) DEFAULT '1' COMMENT '是否可编辑:1-是,0-否',
  28. `is_deleted` tinyint(1) DEFAULT '0' COMMENT '是否删除:0-否,1-是',
  29. `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  30. `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  31. PRIMARY KEY (`id`),
  32. UNIQUE KEY `uk_config_key` (`config_key`,`is_deleted`) COMMENT '配置键唯一约束'
  33. ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统配置表(纵表设计)';
  34. -- ----------------------------
  35. -- Records of system_config
  36. -- ----------------------------
  37. BEGIN;
  38. INSERT INTO `system_config` (`id`, `config_key`, `config_value`, `config_type`, `app_name`, `description`, `is_system`, `is_editable`, `is_deleted`, `created_at`, `updated_at`) VALUES (23, 'key_expire_minutes', '60', 'int', 'backend-admin', '密钥过期时间(分钟)', 1, 1, 0, '2026-02-01 10:40:06', '2026-02-01 10:40:06');
  39. INSERT INTO `system_config` (`id`, `config_key`, `config_value`, `config_type`, `app_name`, `description`, `is_system`, `is_editable`, `is_deleted`, `created_at`, `updated_at`) VALUES (24, 'key_advance_generate_minutes', '30', 'int', 'backend-admin', '提前生成新密钥的时间(分钟),在密钥过期前此时间自动生成新密钥', 1, 1, 0, '2026-02-01 10:40:06', '2026-02-01 10:40:34');
  40. INSERT INTO `system_config` (`id`, `config_key`, `config_value`, `config_type`, `app_name`, `description`, `is_system`, `is_editable`, `is_deleted`, `created_at`, `updated_at`) VALUES (25, 'key_expiry_check_interval_seconds', '60', 'int', 'backend-admin', '密钥过期检查任务的执行间隔(秒)', 1, 1, 0, '2026-02-01 10:40:06', '2026-02-01 10:40:06');
  41. INSERT INTO `system_config` (`id`, `config_key`, `config_value`, `config_type`, `app_name`, `description`, `is_system`, `is_editable`, `is_deleted`, `created_at`, `updated_at`) VALUES (26, 'admin_config_refresh_interval_seconds', '60', 'int', 'backend-admin', '管理端配置缓存刷新间隔(秒)', 1, 1, 0, '2026-02-01 11:16:27', '2026-02-01 11:16:27');
  42. COMMIT;
  43. SET FOREIGN_KEY_CHECKS = 1;