sys_config.sql 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : 不要_测试环境
  4. Source Server Version : 50731
  5. Source Host : 47.112.148.113:3306
  6. Source Database : buyao
  7. Target Server Type : MYSQL
  8. Target Server Version : 50731
  9. File Encoding : 65001
  10. Date: 2020-12-30 11:34:26
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for sys_config
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `sys_config`;
  17. CREATE TABLE `sys_config` (
  18. `config_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '账户编号',
  19. `module` varchar(32) NOT NULL COMMENT '模块名称',
  20. `key` varchar(32) NOT NULL COMMENT '配置key',
  21. `value` varchar(1024) DEFAULT NULL COMMENT '配置value',
  22. `desc` varchar(64) NOT NULL COMMENT '配置说明',
  23. `os` varchar(32) DEFAULT NULL COMMENT '匹配客户端系统',
  24. `market` varchar(32) DEFAULT NULL COMMENT '匹配渠道',
  25. `client` varchar(32) DEFAULT NULL COMMENT '匹配客户端类型',
  26. `app_version` int(4) unsigned NOT NULL DEFAULT '0' COMMENT '匹配APP版本号',
  27. `account_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '匹配账户编号',
  28. `priority` int(11) NOT NULL DEFAULT '0' COMMENT '优先级',
  29. `state` tinyint(4) NOT NULL COMMENT '配置状态, 见ConfigStateEnum',
  30. `admin_id` bigint(20) unsigned NOT NULL COMMENT '管理员编号',
  31. `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  32. `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  33. PRIMARY KEY (`config_id`)
  34. ) ENGINE=InnoDB AUTO_INCREMENT=100001 DEFAULT CHARSET=utf8mb4 COMMENT='系统配置表';
  35. -- ----------------------------
  36. -- Records of sys_config
  37. -- ----------------------------
  38. SET FOREIGN_KEY_CHECKS=1;