db.sql 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  1. # ************************************************************
  2. # Sequel Pro SQL dump
  3. # Version 4541
  4. #
  5. # http://www.sequelpro.com/
  6. # https://github.com/sequelpro/sequelpro
  7. #
  8. # Host: 127.0.0.1 (MySQL 5.7.18)
  9. # Database: 2
  10. # Generation Time: 2017-07-29 06:28:10 +0000
  11. # ************************************************************
  12. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  13. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  14. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  15. /*!40101 SET NAMES utf8 */;
  16. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  17. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  18. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  19. -- ----------------------------
  20. -- Table structure for `ss_node`
  21. -- ----------------------------
  22. CREATE TABLE `ss_node` (
  23. `id` INT(11) NOT NULL AUTO_INCREMENT,
  24. `name` VARCHAR(128) NOT NULL DEFAULT '' COMMENT '名称',
  25. `group_id` INT(11) NOT NULL DEFAULT '0' COMMENT '所属分组',
  26. `country_code` CHAR(5) NULL DEFAULT '' COMMENT '国家代码',
  27. `server` VARCHAR(128) NULL DEFAULT '' COMMENT '服务器域名地址',
  28. `ip` CHAR(15) NULL DEFAULT '' COMMENT '服务器IPV4地址',
  29. `ipv6` CHAR(128) NULL DEFAULT '' COMMENT '服务器IPV6地址',
  30. `desc` VARCHAR(255) NULL DEFAULT '' COMMENT '节点简单描述',
  31. `method` VARCHAR(32) NOT NULL DEFAULT 'aes-192-ctr' COMMENT '加密方式',
  32. `protocol` VARCHAR(128) NOT NULL DEFAULT 'auth_chain_a' COMMENT '协议',
  33. `protocol_param` VARCHAR(128) NULL DEFAULT '' COMMENT '协议参数',
  34. `obfs` VARCHAR(128) NOT NULL DEFAULT 'tls1.2_ticket_auth' COMMENT '混淆',
  35. `obfs_param` VARCHAR(128) NULL DEFAULT '' COMMENT '混淆参数',
  36. `traffic_rate` FLOAT NOT NULL DEFAULT '1.00' COMMENT '流量比率',
  37. `bandwidth` INT(11) NOT NULL DEFAULT '100' COMMENT '出口带宽,单位M',
  38. `traffic` BIGINT(20) NOT NULL DEFAULT '1000' COMMENT '每月可用流量,单位G',
  39. `monitor_url` VARCHAR(255) NULL DEFAULT NULL COMMENT '监控地址',
  40. `is_subscribe` TINYINT(4) NULL DEFAULT '1' COMMENT '是否允许用户订阅该节点:0-否、1-是',
  41. `ssh_port` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '22' COMMENT 'SSH端口',
  42. `icmp` TINYINT(4) NOT NULL DEFAULT '1' COMMENT 'ICMP检测:-2-内外都不通、-1-内不通外通、0-外不通内通、1-内外都通',
  43. `tcp` TINYINT(4) NOT NULL DEFAULT '1' COMMENT 'TCP检测:-2-内外都不通、-1-内不通外通、0-外不通内通、1-内外都通',
  44. `udp` TINYINT(4) NOT NULL DEFAULT '1' COMMENT 'ICMP检测:-2-内外都不通、-1-内不通外通、0-外不通内通、1-内外都通',
  45. `compatible` TINYINT(4) NULL DEFAULT '0' COMMENT '兼容SS',
  46. `single` TINYINT(4) NULL DEFAULT '0' COMMENT '单端口多用户:0-否、1-是',
  47. `single_force` TINYINT(4) NULL DEFAULT NULL COMMENT '模式:0-兼容模式、1-严格模式',
  48. `single_port` VARCHAR(50) NULL DEFAULT '' COMMENT '端口号,用,号分隔',
  49. `single_passwd` VARCHAR(50) NULL DEFAULT '' COMMENT '密码',
  50. `single_method` VARCHAR(50) NULL DEFAULT '' COMMENT '加密方式',
  51. `single_protocol` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '协议',
  52. `single_obfs` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '混淆',
  53. `sort` INT(11) NOT NULL DEFAULT '0' COMMENT '排序值,值越大越靠前显示',
  54. `status` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '状态:0-维护、1-正常',
  55. `created_at` DATETIME NOT NULL,
  56. `updated_at` DATETIME NOT NULL,
  57. PRIMARY KEY (`id`),
  58. INDEX `idx_group` (`group_id`),
  59. INDEX `idx_sub` (`is_subscribe`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='节点信息表';
  61. -- ----------------------------
  62. -- Table structure for `ss_node_info`
  63. -- ----------------------------
  64. CREATE TABLE `ss_node_info` (
  65. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  66. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID',
  67. `uptime` float NOT NULL COMMENT '更新时间',
  68. `load` varchar(32) NOT NULL COMMENT '负载',
  69. `log_time` int(11) NOT NULL COMMENT '记录时间',
  70. PRIMARY KEY (`id`),
  71. INDEX `idx_node_id` (`node_id`) USING BTREE
  72. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='节点负载信息';
  73. -- ----------------------------
  74. -- Table structure for `ss_node_online_log`
  75. -- ----------------------------
  76. CREATE TABLE `ss_node_online_log` (
  77. `id` int(11) NOT NULL AUTO_INCREMENT,
  78. `node_id` int(11) NOT NULL COMMENT '节点ID',
  79. `online_user` int(11) NOT NULL COMMENT '在线用户数',
  80. `log_time` int(11) NOT NULL COMMENT '记录时间',
  81. PRIMARY KEY (`id`),
  82. INDEX `idx_node_id` (`node_id`) USING BTREE
  83. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='节点在线信息';
  84. -- ----------------------------
  85. -- Table structure for `ss_node_label`
  86. -- ----------------------------
  87. CREATE TABLE `ss_node_label` (
  88. `id` int(11) NOT NULL AUTO_INCREMENT,
  89. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  90. `label_id` int(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
  91. PRIMARY KEY (`id`),
  92. INDEX `idx` (`node_id`,`label_id`),
  93. INDEX `idx_node_id` (`node_id`),
  94. INDEX `idx_label_id` (`label_id`)
  95. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='节点标签';
  96. -- ----------------------------
  97. -- Table structure for `user`
  98. -- ----------------------------
  99. CREATE TABLE `user` (
  100. `id` int(11) NOT NULL AUTO_INCREMENT,
  101. `username` varchar(128) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '用户名',
  102. `password` varchar(64) NOT NULL DEFAULT '' COMMENT '密码',
  103. `port` int(11) NOT NULL DEFAULT '0' COMMENT 'SS端口',
  104. `passwd` varchar(16) NOT NULL DEFAULT '' COMMENT 'SS密码',
  105. `transfer_enable` bigint(20) NOT NULL DEFAULT '1073741824000' COMMENT '可用流量,单位字节,默认1TiB',
  106. `u` bigint(20) NOT NULL DEFAULT '0' COMMENT '已上传流量,单位字节',
  107. `d` bigint(20) NOT NULL DEFAULT '0' COMMENT '已下载流量,单位字节',
  108. `t` int(11) NOT NULL DEFAULT '0' COMMENT '最后使用时间',
  109. `enable` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'SS状态',
  110. `method` varchar(30) NOT NULL DEFAULT 'aes-192-ctr' COMMENT '加密方式',
  111. `protocol` varchar(30) NOT NULL DEFAULT 'auth_chain_a' COMMENT '协议',
  112. `protocol_param` varchar(255) DEFAULT '' COMMENT '协议参数',
  113. `obfs` varchar(30) NOT NULL DEFAULT 'tls1.2_ticket_auth' COMMENT '混淆',
  114. `obfs_param` varchar(255) DEFAULT '' COMMENT '混淆参数',
  115. `speed_limit_per_con` int(255) NOT NULL DEFAULT '204800' COMMENT '单连接限速,默认200M,单位KB',
  116. `speed_limit_per_user` int(255) NOT NULL DEFAULT '204800' COMMENT '单用户限速,默认200M,单位KB',
  117. `gender` tinyint(4) NOT NULL DEFAULT '1' COMMENT '性别:0-女、1-男',
  118. `wechat` varchar(30) DEFAULT '' COMMENT '微信',
  119. `qq` varchar(20) DEFAULT '' COMMENT 'QQ',
  120. `usage` VARCHAR(10) NOT NULL DEFAULT '4' COMMENT '用途:1-手机、2-电脑、3-路由器、4-其他',
  121. `pay_way` tinyint(4) NOT NULL DEFAULT '0' COMMENT '付费方式:0-免费、1-季付、2-月付、3-半年付、4-年付',
  122. `balance` int(11) NOT NULL DEFAULT '0' COMMENT '余额,单位分',
  123. `score` int(11) NOT NULL DEFAULT '0' COMMENT '积分',
  124. `enable_time` date DEFAULT NULL COMMENT '开通日期',
  125. `expire_time` date NOT NULL DEFAULT '2099-01-01' COMMENT '过期时间',
  126. `ban_time` int(11) NOT NULL DEFAULT '0' COMMENT '封禁到期时间',
  127. `remark` text COMMENT '备注',
  128. `level` tinyint(4) NOT NULL DEFAULT '1' COMMENT '等级:可定义名称',
  129. `is_admin` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否管理员:0-否、1-是',
  130. `reg_ip` varchar(20) NOT NULL DEFAULT '127.0.0.1' COMMENT '注册IP',
  131. `last_login` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录时间',
  132. `referral_uid` int(11) NOT NULL DEFAULT '0' COMMENT '邀请人',
  133. `traffic_reset_day` tinyint(4) NOT NULL DEFAULT '0' COMMENT '流量自动重置日,0表示不重置',
  134. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态:-1-禁用、0-未激活、1-正常',
  135. `remember_token` varchar(256) DEFAULT '',
  136. `created_at` datetime DEFAULT NULL,
  137. `updated_at` datetime DEFAULT NULL,
  138. PRIMARY KEY (`id`),
  139. INDEX `idx_search` (`enable`, `status`)
  140. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  141. LOCK TABLES `user` WRITE;
  142. /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  143. INSERT INTO `user` (`id`, `username`, `password`, `port`, `passwd`, `transfer_enable`, `u`, `d`, `t`, `enable`, `method`, `protocol`, `protocol_param`, `obfs`, `obfs_param`, `speed_limit_per_con`, `speed_limit_per_user`, `wechat`, `qq`, `usage`, `pay_way`, `balance`, `enable_time`, `expire_time`, `remark`, `is_admin`, `reg_ip`, `created_at`, `updated_at`)
  144. VALUES (1,'admin','e10adc3949ba59abbe56e057f20f883e',10000,'@123',1073741824000,0,0,0,1,'aes-192-ctr','auth_chain_a','','tls1.2_ticket_auth','',204800,204800,'','',1,3,0.00,NULL,'2099-01-01',NULL,1,'127.0.0.1',NULL,NULL);
  145. /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  146. UNLOCK TABLES;
  147. -- ----------------------------
  148. -- Table structure for `level`
  149. -- ----------------------------
  150. CREATE TABLE `level` (
  151. `id` int(11) NOT NULL AUTO_INCREMENT,
  152. `level` int(11) NOT NULL DEFAULT '1' COMMENT '等级',
  153. `level_name` varchar(100) NOT NULL DEFAULT '' COMMENT '等级名称',
  154. `created_at` datetime DEFAULT NULL,
  155. `updated_at` datetime DEFAULT NULL,
  156. PRIMARY KEY (`id`)
  157. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  158. -- ----------------------------
  159. -- Records of `level`
  160. -- ----------------------------
  161. INSERT INTO `level` VALUES (1, '1', '青铜', '2017-10-26 15:56:52', '2017-10-26 15:38:58');
  162. INSERT INTO `level` VALUES (2, '2', '白银', '2017-10-26 15:57:30', '2017-10-26 12:37:51');
  163. INSERT INTO `level` VALUES (3, '3', '黄金', '2017-10-26 15:41:31', '2017-10-26 15:41:31');
  164. INSERT INTO `level` VALUES (4, '4', '铂金', '2017-10-26 15:41:38', '2017-10-26 15:41:38');
  165. INSERT INTO `level` VALUES (5, '5', '钻石', '2017-10-26 15:41:47', '2017-10-26 15:41:47');
  166. INSERT INTO `level` VALUES (6, '6', '星耀', '2017-10-26 15:41:56', '2017-10-26 15:41:56');
  167. INSERT INTO `level` VALUES (7, '7', '王者', '2017-10-26 15:42:02', '2017-10-26 15:42:02');
  168. -- ----------------------------
  169. -- Table structure for `user_traffic_log`
  170. -- ----------------------------
  171. CREATE TABLE `user_traffic_log` (
  172. `id` int(11) NOT NULL AUTO_INCREMENT,
  173. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  174. `u` int(11) NOT NULL DEFAULT '0' COMMENT '上传流量',
  175. `d` int(11) NOT NULL DEFAULT '0' COMMENT '下载流量',
  176. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID',
  177. `rate` float NOT NULL COMMENT '流量比例',
  178. `traffic` varchar(32) NOT NULL COMMENT '产生流量',
  179. `log_time` int(11) NOT NULL COMMENT '记录时间',
  180. PRIMARY KEY (`id`),
  181. INDEX `idx_user` (`user_id`),
  182. INDEX `idx_node` (`node_id`),
  183. INDEX `idx_user_node` (`user_id`,`node_id`) USING BTREE
  184. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  185. -- ----------------------------
  186. -- Table structure for `ss_config`
  187. -- ----------------------------
  188. DROP TABLE IF EXISTS `ss_config`;
  189. CREATE TABLE `ss_config` (
  190. `id` INT(11) NOT NULL AUTO_INCREMENT,
  191. `name` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '配置名' COLLATE 'utf8mb4_unicode_ci',
  192. `type` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '类型:1-加密方式、2-协议、3-混淆',
  193. `is_default` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '是否默认:0-不是、1-是',
  194. `sort` INT(11) NOT NULL DEFAULT '0' COMMENT '排序:值越大排越前',
  195. PRIMARY KEY (`id`)
  196. ) ENGINE=InnoDB AUTO_INCREMENT=38 CHARSET=utf8mb4 COLLATE='utf8mb4_unicode_ci';
  197. -- ----------------------------
  198. -- Records of ss_config
  199. -- ----------------------------
  200. INSERT INTO `ss_config` VALUES ('1', 'none', '1', '0', '0');
  201. INSERT INTO `ss_config` VALUES ('2', 'rc4', '1', '0', '0');
  202. INSERT INTO `ss_config` VALUES ('3', 'rc4-md5', '1', '0', '0');
  203. INSERT INTO `ss_config` VALUES ('4', 'rc4-md5-6', '1', '0', '0');
  204. INSERT INTO `ss_config` VALUES ('5', 'bf-cfb', '1', '0', '0');
  205. INSERT INTO `ss_config` VALUES ('6', 'aes-128-cfb', '1', '0', '0');
  206. INSERT INTO `ss_config` VALUES ('7', 'aes-192-cfb', '1', '0', '0');
  207. INSERT INTO `ss_config` VALUES ('8', 'aes-256-cfb', '1', '1', '0');
  208. INSERT INTO `ss_config` VALUES ('9', 'aes-128-ctr', '1', '0', '0');
  209. INSERT INTO `ss_config` VALUES ('10', 'aes-192-ctr', '1', '0', '0');
  210. INSERT INTO `ss_config` VALUES ('11', 'aes-256-ctr', '1', '0', '0');
  211. INSERT INTO `ss_config` VALUES ('12', 'camellia-128-cfb', '1', '0', '0');
  212. INSERT INTO `ss_config` VALUES ('13', 'camellia-192-cfb', '1', '0', '0');
  213. INSERT INTO `ss_config` VALUES ('14', 'camellia-256-cfb', '1', '0', '0');
  214. INSERT INTO `ss_config` VALUES ('15', 'salsa20', '1', '0', '0');
  215. INSERT INTO `ss_config` VALUES ('16', 'xsalsa20', '1', '0', '0');
  216. INSERT INTO `ss_config` VALUES ('17', 'chacha20', '1', '0', '0');
  217. INSERT INTO `ss_config` VALUES ('18', 'xchacha20', '1', '0', '0');
  218. INSERT INTO `ss_config` VALUES ('19', 'chacha20-ietf', '1', '0', '0');
  219. INSERT INTO `ss_config` VALUES ('20', 'chacha20-ietf-poly1305', '1', '0', '0');
  220. INSERT INTO `ss_config` VALUES ('21', 'chacha20-poly1305', '1', '0', '0');
  221. INSERT INTO `ss_config` VALUES ('22', 'xchacha-ietf-poly1305', '1', '0', '0');
  222. INSERT INTO `ss_config` VALUES ('23', 'aes-128-gcm', '1', '0', '0');
  223. INSERT INTO `ss_config` VALUES ('24', 'aes-192-gcm', '1', '0', '0');
  224. INSERT INTO `ss_config` VALUES ('25', 'aes-256-gcm', '1', '0', '0');
  225. INSERT INTO `ss_config` VALUES ('26', 'sodium-aes-256-gcm', '1', '0', '0');
  226. INSERT INTO `ss_config` VALUES ('27', 'origin', '2', '1', '0');
  227. INSERT INTO `ss_config` VALUES ('28', 'auth_sha1_v4', '2', '0', '0');
  228. INSERT INTO `ss_config` VALUES ('29', 'auth_aes128_md5', '2', '0', '0');
  229. INSERT INTO `ss_config` VALUES ('30', 'auth_aes128_sha1', '2', '0', '0');
  230. INSERT INTO `ss_config` VALUES ('31', 'auth_chain_a', '2', '0', '0');
  231. INSERT INTO `ss_config` VALUES ('32', 'auth_chain_b', '2', '0', '0');
  232. INSERT INTO `ss_config` VALUES ('33', 'plain', '3', '1', '0');
  233. INSERT INTO `ss_config` VALUES ('34', 'http_simple', '3', '0', '0');
  234. INSERT INTO `ss_config` VALUES ('35', 'http_post', '3', '0', '0');
  235. INSERT INTO `ss_config` VALUES ('36', 'tls1.2_ticket_auth', '3', '0', '0');
  236. INSERT INTO `ss_config` VALUES ('37', 'tls1.2_ticket_fastauth', '3', '0', '0');
  237. INSERT INTO `ss_config` VALUES ('38', 'auth_chain_c', '2', '0', '0');
  238. INSERT INTO `ss_config` VALUES ('39', 'auth_chain_d', '2', '0', '0');
  239. INSERT INTO `ss_config` VALUES ('40', 'auth_chain_e', '2', '0', '0');
  240. INSERT INTO `ss_config` VALUES ('41', 'auth_chain_f', '2', '0', '0');
  241. -- ----------------------------
  242. -- Table structure for `config`
  243. -- ----------------------------
  244. CREATE TABLE `config` (
  245. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  246. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '配置名',
  247. `value` TEXT NULL COMMENT '配置值',
  248. PRIMARY KEY (`id`)
  249. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统配置';
  250. -- ----------------------------
  251. -- Records of config
  252. -- ----------------------------
  253. INSERT INTO `config` VALUES ('1', 'is_rand_port', 0);
  254. INSERT INTO `config` VALUES ('2', 'is_user_rand_port', 0);
  255. INSERT INTO `config` VALUES ('3', 'invite_num', 3);
  256. INSERT INTO `config` VALUES ('4', 'is_register', 1);
  257. INSERT INTO `config` VALUES ('5', 'is_invite_register', 1);
  258. INSERT INTO `config` VALUES ('6', 'website_name', 'SSRPanel');
  259. INSERT INTO `config` VALUES ('7', 'is_reset_password', 1);
  260. INSERT INTO `config` VALUES ('8', 'reset_password_times', 3);
  261. INSERT INTO `config` VALUES ('9', 'website_url', 'http://www.ssrpanel.com');
  262. INSERT INTO `config` VALUES ('10', 'is_active_register', 1);
  263. INSERT INTO `config` VALUES ('11', 'active_times', 3);
  264. INSERT INTO `config` VALUES ('12', 'login_add_score', 1);
  265. INSERT INTO `config` VALUES ('13', 'min_rand_score', 1);
  266. INSERT INTO `config` VALUES ('14', 'max_rand_score', 100);
  267. INSERT INTO `config` VALUES ('15', 'wechat_qrcode', '');
  268. INSERT INTO `config` VALUES ('16', 'alipay_qrcode', '');
  269. INSERT INTO `config` VALUES ('17', 'login_add_score_range', 1440);
  270. INSERT INTO `config` VALUES ('18', 'referral_traffic', 1024);
  271. INSERT INTO `config` VALUES ('19', 'referral_percent', 0.2);
  272. INSERT INTO `config` VALUES ('20', 'referral_money', 100);
  273. INSERT INTO `config` VALUES ('21', 'referral_status', 1);
  274. INSERT INTO `config` VALUES ('22', 'default_traffic', 1024);
  275. INSERT INTO `config` VALUES ('23', 'traffic_warning', 0);
  276. INSERT INTO `config` VALUES ('24', 'traffic_warning_percent', 80);
  277. INSERT INTO `config` VALUES ('25', 'expire_warning', 0);
  278. INSERT INTO `config` VALUES ('26', 'expire_days', 15);
  279. INSERT INTO `config` VALUES ('27', 'reset_traffic', 1);
  280. INSERT INTO `config` VALUES ('28', 'default_days', 7);
  281. INSERT INTO `config` VALUES ('29', 'subscribe_max', 3);
  282. INSERT INTO `config` VALUES ('30', 'min_port', 10000);
  283. INSERT INTO `config` VALUES ('31', 'max_port', 20000);
  284. INSERT INTO `config` VALUES ('32', 'is_captcha', 0);
  285. INSERT INTO `config` VALUES ('33', 'is_traffic_ban', 1);
  286. INSERT INTO `config` VALUES ('34', 'traffic_ban_value', 10);
  287. INSERT INTO `config` VALUES ('35', 'traffic_ban_time', 60);
  288. INSERT INTO `config` VALUES ('36', 'is_clear_log', 1);
  289. INSERT INTO `config` VALUES ('37', 'is_node_crash_warning', 0);
  290. INSERT INTO `config` VALUES ('38', 'crash_warning_email', '');
  291. INSERT INTO `config` VALUES ('39', 'is_server_chan', 0);
  292. INSERT INTO `config` VALUES ('40', 'server_chan_key', '');
  293. INSERT INTO `config` VALUES ('41', 'is_subscribe_ban', 1);
  294. INSERT INTO `config` VALUES ('42', 'subscribe_ban_times', 20);
  295. INSERT INTO `config` VALUES ('43', 'paypal_status', 0);
  296. INSERT INTO `config` VALUES ('44', 'paypal_client_id', '');
  297. INSERT INTO `config` VALUES ('45', 'paypal_client_secret', '');
  298. INSERT INTO `config` VALUES ('46', 'is_free_code', 0);
  299. INSERT INTO `config` VALUES ('47', 'is_forbid_robot', 0);
  300. INSERT INTO `config` VALUES ('48', 'subscribe_domain', '');
  301. INSERT INTO `config` VALUES ('49', 'auto_release_port', 1);
  302. INSERT INTO `config` VALUES ('50', 'is_youzan', 0);
  303. INSERT INTO `config` VALUES ('51', 'youzan_client_id', '');
  304. INSERT INTO `config` VALUES ('52', 'youzan_client_secret', '');
  305. INSERT INTO `config` VALUES ('53', 'kdt_id', '');
  306. INSERT INTO `config` VALUES ('54', 'initial_labels_for_user', '');
  307. INSERT INTO `config` VALUES ('55', 'website_analytics', '');
  308. INSERT INTO `config` VALUES ('56', 'website_customer_service', '');
  309. INSERT INTO `config` VALUES ('57', 'register_ip_limit', 5);
  310. INSERT INTO `config` VALUES ('58', 'goods_purchase_limit_strategy', 'none');
  311. INSERT INTO `config` VALUES ('59', 'is_push_bear', 0);
  312. INSERT INTO `config` VALUES ('60', 'push_bear_send_key', '');
  313. INSERT INTO `config` VALUES ('61', 'push_bear_qrcode', '');
  314. INSERT INTO `config` VALUES ('62', 'is_ban_status', 0);
  315. INSERT INTO `config` VALUES ('63', 'is_namesilo', 0);
  316. INSERT INTO `config` VALUES ('64', 'namesilo_key', '');
  317. INSERT INTO `config` VALUES ('65', 'website_logo', '');
  318. INSERT INTO `config` VALUES ('66', 'website_home_logo', '');
  319. INSERT INTO `config` VALUES ('67', 'is_tcp_check', 0);
  320. -- ----------------------------
  321. -- Table structure for `article`
  322. -- ----------------------------
  323. CREATE TABLE `article` (
  324. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  325. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '标题',
  326. `author` varchar(50) DEFAULT '' COMMENT '作者',
  327. `content` text COMMENT '内容',
  328. `type` tinyint(4) DEFAULT '1' COMMENT '类型:1-文章、2-公告',
  329. `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除',
  330. `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  331. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  332. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  333. PRIMARY KEY (`id`)
  334. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  335. -- ----------------------------
  336. -- Table structure for `invite`
  337. -- ----------------------------
  338. CREATE TABLE `invite` (
  339. `id` int(11) NOT NULL AUTO_INCREMENT,
  340. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '邀请人ID',
  341. `fuid` int(11) NOT NULL DEFAULT '0' COMMENT '受邀人ID',
  342. `code` char(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '邀请码',
  343. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '邀请码状态:0-未使用、1-已使用、2-已过期',
  344. `dateline` datetime DEFAULT NULL COMMENT '有效期至',
  345. `created_at` datetime DEFAULT NULL,
  346. `updated_at` datetime DEFAULT NULL,
  347. PRIMARY KEY (`id`)
  348. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='邀请码表';
  349. -- ----------------------------
  350. -- Table structure for `label`
  351. -- ----------------------------
  352. CREATE TABLE `label` (
  353. `id` int(11) NOT NULL AUTO_INCREMENT,
  354. `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '名称',
  355. `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序值',
  356. PRIMARY KEY (`id`)
  357. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='标签';
  358. -- ----------------------------
  359. -- Records of label
  360. -- ----------------------------
  361. INSERT INTO `label` VALUES ('1', '电信', '0');
  362. INSERT INTO `label` VALUES ('2', '联通', '0');
  363. INSERT INTO `label` VALUES ('3', '移动', '0');
  364. INSERT INTO `label` VALUES ('4', '教育网', '0');
  365. INSERT INTO `label` VALUES ('5', '其他网络', '0');
  366. INSERT INTO `label` VALUES ('6', '免费体验', '0');
  367. -- ----------------------------
  368. -- Table structure for `verify`
  369. -- ----------------------------
  370. CREATE TABLE `verify` (
  371. `id` int(11) NOT NULL AUTO_INCREMENT,
  372. `user_id` int(11) NOT NULL COMMENT '用户ID',
  373. `username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户名',
  374. `token` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '校验token',
  375. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态:0-未使用、1-已使用、2-已失效',
  376. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  377. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  378. PRIMARY KEY (`id`)
  379. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  380. -- ----------------------------
  381. -- Table structure for `ss_group`
  382. -- ----------------------------
  383. CREATE TABLE `ss_group` (
  384. `id` int(11) NOT NULL AUTO_INCREMENT,
  385. `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分组名称',
  386. `level` tinyint(4) NOT NULL DEFAULT '1' COMMENT '分组级别',
  387. `created_at` datetime DEFAULT NULL,
  388. `updated_at` datetime DEFAULT NULL,
  389. PRIMARY KEY (`id`)
  390. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  391. -- ----------------------------
  392. -- Table structure for `ss_group_node`
  393. -- ----------------------------
  394. CREATE TABLE `ss_group_node` (
  395. `id` int(11) NOT NULL AUTO_INCREMENT,
  396. `group_id` int(11) NOT NULL DEFAULT '0' COMMENT '分组ID',
  397. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID',
  398. PRIMARY KEY (`id`)
  399. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='分组节点关系表';
  400. -- ----------------------------
  401. -- Table structure for `goods`
  402. -- ----------------------------
  403. CREATE TABLE `goods` (
  404. `id` int(11) NOT NULL AUTO_INCREMENT,
  405. `sku` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品服务SKU',
  406. `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品名称',
  407. `logo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品图片地址',
  408. `traffic` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品内含多少流量,单位Mib',
  409. `score` int(11) NOT NULL DEFAULT '0' COMMENT '商品价值多少积分',
  410. `type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '商品类型:1-流量包、2-套餐',
  411. `price` int(11) NOT NULL DEFAULT '0' COMMENT '商品售价,单位分',
  412. `desc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '商品描述',
  413. `days` int(11) NOT NULL DEFAULT '30' COMMENT '有效期',
  414. `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  415. `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已删除:0-否、1-是',
  416. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态:0-下架、1-上架',
  417. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  418. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  419. PRIMARY KEY (`id`)
  420. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品信息表';
  421. -- ----------------------------
  422. -- Table structure for `coupon`
  423. -- ----------------------------
  424. CREATE TABLE `coupon` (
  425. `id` int(11) NOT NULL AUTO_INCREMENT,
  426. `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '优惠券名称',
  427. `logo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '优惠券LOGO',
  428. `sn` char(8) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '优惠券码',
  429. `type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '类型:1-现金券、2-折扣券、3-充值券',
  430. `usage` tinyint(4) NOT NULL DEFAULT '1' COMMENT '用途:1-仅限一次性使用、2-可重复使用',
  431. `amount` bigint(20) NOT NULL DEFAULT '0' COMMENT '金额,单位分',
  432. `discount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '折扣',
  433. `available_start` int(11) NOT NULL DEFAULT '0' COMMENT '有效期开始',
  434. `available_end` int(11) NOT NULL DEFAULT '0' COMMENT '有效期结束',
  435. `is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已删除:0-未删除、1-已删除',
  436. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态:0-未使用、1-已使用、2-已失效',
  437. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  438. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  439. PRIMARY KEY (`id`)
  440. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券';
  441. -- ----------------------------
  442. -- Table structure for `coupon_log`
  443. -- ----------------------------
  444. CREATE TABLE `coupon_log` (
  445. `id` int(11) NOT NULL AUTO_INCREMENT,
  446. `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
  447. `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
  448. `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
  449. `desc` varchar(50) NOT NULL DEFAULT '' COMMENT '备注',
  450. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  451. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  452. PRIMARY KEY (`id`)
  453. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='优惠券使用日志';
  454. -- ----------------------------
  455. -- Table structure for `order`
  456. -- ----------------------------
  457. CREATE TABLE `order` (
  458. `oid` int(11) NOT NULL AUTO_INCREMENT,
  459. `order_sn` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '订单编号',
  460. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
  461. `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
  462. `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
  463. `origin_amount` int(11) NOT NULL DEFAULT '0' COMMENT '订单原始总价,单位分',
  464. `amount` int(11) NOT NULL DEFAULT '0' COMMENT '订单总价,单位分',
  465. `expire_at` datetime DEFAULT NULL COMMENT '过期时间',
  466. `is_expire` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已过期:0-未过期、1-已过期',
  467. `pay_way` tinyint(4) NOT NULL DEFAULT '1' COMMENT '支付方式:1-余额支付、2-有赞云支付',
  468. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '订单状态:-1-已关闭、0-待支付、1-已支付待确认、2-已完成',
  469. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  470. `updated_at` datetime DEFAULT NULL COMMENT '最后一次更新时间',
  471. PRIMARY KEY (`oid`),
  472. INDEX `idx_order_search` (`user_id`, `goods_id`, `is_expire`, `status`)
  473. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='订单信息表';
  474. -- ----------------------------
  475. -- Table structure for `order_goods`
  476. -- ----------------------------
  477. CREATE TABLE `order_goods` (
  478. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  479. `oid` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
  480. `order_sn` varchar(20) NOT NULL DEFAULT '' COMMENT '订单编号',
  481. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  482. `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
  483. `num` int(11) NOT NULL DEFAULT '0' COMMENT '商品数量',
  484. `origin_price` int(11) NOT NULL DEFAULT '0' COMMENT '商品原价,单位分',
  485. `price` int(11) NOT NULL DEFAULT '0' COMMENT '商品实际价格,单位分',
  486. `is_expire` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已过期:0-未过期、1-已过期',
  487. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  488. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  489. PRIMARY KEY (`id`)
  490. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  491. -- ----------------------------
  492. -- Table structure for `ticket`
  493. -- ----------------------------
  494. CREATE TABLE `ticket` (
  495. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  496. `user_id` int(11) NOT NULL DEFAULT '0',
  497. `title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
  498. `content` text NOT NULL COMMENT '内容',
  499. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态:0-待处理、1-已处理未关闭、2-已关闭',
  500. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  501. PRIMARY KEY (`id`)
  502. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  503. -- ----------------------------
  504. -- Table structure for `ticket_reply`
  505. -- ----------------------------
  506. CREATE TABLE `ticket_reply` (
  507. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  508. `ticket_id` int(11) NOT NULL DEFAULT '0' COMMENT '工单ID',
  509. `user_id` int(11) NOT NULL COMMENT '回复人ID',
  510. `content` text NOT NULL COMMENT '回复内容',
  511. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  512. PRIMARY KEY (`id`)
  513. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  514. -- ----------------------------
  515. -- Table structure for `user_score_log`
  516. -- ----------------------------
  517. CREATE TABLE `user_score_log` (
  518. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  519. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '账号ID',
  520. `before` int(11) NOT NULL DEFAULT '0' COMMENT '发生前积分',
  521. `after` int(11) NOT NULL DEFAULT '0' COMMENT '发生后积分',
  522. `score` int(11) NOT NULL DEFAULT '0' COMMENT '发生积分',
  523. `desc` varchar(50) DEFAULT '' COMMENT '描述',
  524. `created_at` datetime DEFAULT NULL COMMENT '创建日期',
  525. PRIMARY KEY (`id`),
  526. INDEX `idx` (`user_id`) USING BTREE
  527. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  528. -- ----------------------------
  529. -- Table structure for `user_balance_log`
  530. -- ----------------------------
  531. CREATE TABLE `user_balance_log` (
  532. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  533. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '账号ID',
  534. `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单ID',
  535. `before` int(11) NOT NULL DEFAULT '0' COMMENT '发生前余额,单位分',
  536. `after` int(11) NOT NULL DEFAULT '0' COMMENT '发生后金额,单位分',
  537. `amount` int(11) NOT NULL DEFAULT '0' COMMENT '发生金额,单位分',
  538. `desc` varchar(255) DEFAULT '' COMMENT '操作描述',
  539. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  540. PRIMARY KEY (`id`)
  541. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  542. -- ----------------------------
  543. -- Table structure for `referral_apply`
  544. -- ----------------------------
  545. CREATE TABLE `referral_apply` (
  546. `id` int(11) NOT NULL AUTO_INCREMENT,
  547. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  548. `before` int(11) NOT NULL DEFAULT '0' COMMENT '操作前可提现金额,单位分',
  549. `after` int(11) NOT NULL DEFAULT '0' COMMENT '操作后可提现金额,单位分',
  550. `amount` int(11) NOT NULL DEFAULT '0' COMMENT '本次提现金额,单位分',
  551. `link_logs` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '关联返利日志ID,例如:1,3,4',
  552. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态:-1-驳回、0-待审核、1-审核通过待打款、2-已打款',
  553. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  554. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  555. PRIMARY KEY (`id`)
  556. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提现申请';
  557. -- ----------------------------
  558. -- Table structure for `referral_log`
  559. -- ----------------------------
  560. CREATE TABLE `referral_log` (
  561. `id` int(11) NOT NULL AUTO_INCREMENT,
  562. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  563. `ref_user_id` int(11) NOT NULL DEFAULT '0' COMMENT '推广人ID',
  564. `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联订单ID',
  565. `amount` int(11) NOT NULL DEFAULT '0' COMMENT '消费金额,单位分',
  566. `ref_amount` int(11) NOT NULL DEFAULT '0' COMMENT '返利金额',
  567. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态:0-未提现、1-审核中、2-已提现',
  568. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  569. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  570. PRIMARY KEY (`id`)
  571. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消费返利日志';
  572. -- ----------------------------
  573. -- Table structure for `email_log`
  574. -- ----------------------------
  575. CREATE TABLE `email_log` (
  576. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  577. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '接收者ID',
  578. `title` varchar(255) DEFAULT '' COMMENT '邮件标题',
  579. `content` text COMMENT '邮件内容',
  580. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态:1-发送成功、2-发送失败',
  581. `error` text COMMENT '发送失败抛出的异常信息',
  582. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  583. PRIMARY KEY (`id`)
  584. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='邮件投递记录';
  585. -- ----------------------------
  586. -- Table structure for `sensitive_words`
  587. -- ----------------------------
  588. CREATE TABLE `sensitive_words` (
  589. `id` INT(11) NOT NULL AUTO_INCREMENT,
  590. `words` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '敏感词',
  591. PRIMARY KEY (`id`)
  592. ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='敏感词';
  593. -- ----------------------------
  594. -- Records of label
  595. -- ----------------------------
  596. INSERT INTO `sensitive_words` (`words`) VALUES ('chacuo.com');
  597. INSERT INTO `sensitive_words` (`words`) VALUES ('chacuo.net');
  598. INSERT INTO `sensitive_words` (`words`) VALUES ('1766258.com');
  599. INSERT INTO `sensitive_words` (`words`) VALUES ('3202.com');
  600. INSERT INTO `sensitive_words` (`words`) VALUES ('4057.com');
  601. INSERT INTO `sensitive_words` (`words`) VALUES ('4059.com');
  602. INSERT INTO `sensitive_words` (`words`) VALUES ('a7996.com');
  603. INSERT INTO `sensitive_words` (`words`) VALUES ('bccto.me');
  604. INSERT INTO `sensitive_words` (`words`) VALUES ('bnuis.com');
  605. INSERT INTO `sensitive_words` (`words`) VALUES ('chaichuang.com');
  606. INSERT INTO `sensitive_words` (`words`) VALUES ('cr219.com');
  607. INSERT INTO `sensitive_words` (`words`) VALUES ('cuirushi.org');
  608. INSERT INTO `sensitive_words` (`words`) VALUES ('dawin.com');
  609. INSERT INTO `sensitive_words` (`words`) VALUES ('jiaxin8736.com');
  610. INSERT INTO `sensitive_words` (`words`) VALUES ('lakqs.com');
  611. INSERT INTO `sensitive_words` (`words`) VALUES ('urltc.com');
  612. INSERT INTO `sensitive_words` (`words`) VALUES ('027168.com');
  613. INSERT INTO `sensitive_words` (`words`) VALUES ('10minutemail.net');
  614. INSERT INTO `sensitive_words` (`words`) VALUES ('11163.com');
  615. INSERT INTO `sensitive_words` (`words`) VALUES ('1shivom.com');
  616. INSERT INTO `sensitive_words` (`words`) VALUES ('auoie.com');
  617. INSERT INTO `sensitive_words` (`words`) VALUES ('bareed.ws');
  618. INSERT INTO `sensitive_words` (`words`) VALUES ('bit-degree.com');
  619. INSERT INTO `sensitive_words` (`words`) VALUES ('cjpeg.com');
  620. INSERT INTO `sensitive_words` (`words`) VALUES ('cool.fr.nf');
  621. INSERT INTO `sensitive_words` (`words`) VALUES ('courriel.fr.nf');
  622. INSERT INTO `sensitive_words` (`words`) VALUES ('disbox.net');
  623. INSERT INTO `sensitive_words` (`words`) VALUES ('disbox.org');
  624. INSERT INTO `sensitive_words` (`words`) VALUES ('fidelium10.com');
  625. INSERT INTO `sensitive_words` (`words`) VALUES ('get365.pw');
  626. INSERT INTO `sensitive_words` (`words`) VALUES ('ggr.la');
  627. INSERT INTO `sensitive_words` (`words`) VALUES ('grr.la');
  628. INSERT INTO `sensitive_words` (`words`) VALUES ('guerrillamail.biz');
  629. INSERT INTO `sensitive_words` (`words`) VALUES ('guerrillamail.com');
  630. INSERT INTO `sensitive_words` (`words`) VALUES ('guerrillamail.de');
  631. INSERT INTO `sensitive_words` (`words`) VALUES ('guerrillamail.net');
  632. INSERT INTO `sensitive_words` (`words`) VALUES ('guerrillamail.org');
  633. INSERT INTO `sensitive_words` (`words`) VALUES ('guerrillamailblock.com');
  634. INSERT INTO `sensitive_words` (`words`) VALUES ('hubii-network.com');
  635. INSERT INTO `sensitive_words` (`words`) VALUES ('hurify1.com');
  636. INSERT INTO `sensitive_words` (`words`) VALUES ('itoup.com');
  637. INSERT INTO `sensitive_words` (`words`) VALUES ('jetable.fr.nf');
  638. INSERT INTO `sensitive_words` (`words`) VALUES ('jnpayy.com');
  639. INSERT INTO `sensitive_words` (`words`) VALUES ('juyouxi.com');
  640. INSERT INTO `sensitive_words` (`words`) VALUES ('mail.bccto.me');
  641. INSERT INTO `sensitive_words` (`words`) VALUES ('www.bccto.me');
  642. INSERT INTO `sensitive_words` (`words`) VALUES ('mega.zik.dj');
  643. INSERT INTO `sensitive_words` (`words`) VALUES ('moakt.co');
  644. INSERT INTO `sensitive_words` (`words`) VALUES ('moakt.ws');
  645. INSERT INTO `sensitive_words` (`words`) VALUES ('molms.com');
  646. INSERT INTO `sensitive_words` (`words`) VALUES ('moncourrier.fr.nf');
  647. INSERT INTO `sensitive_words` (`words`) VALUES ('monemail.fr.nf');
  648. INSERT INTO `sensitive_words` (`words`) VALUES ('monmail.fr.nf');
  649. INSERT INTO `sensitive_words` (`words`) VALUES ('nomail.xl.cx');
  650. INSERT INTO `sensitive_words` (`words`) VALUES ('nospam.ze.tc');
  651. INSERT INTO `sensitive_words` (`words`) VALUES ('pay-mon.com');
  652. INSERT INTO `sensitive_words` (`words`) VALUES ('poly-swarm.com');
  653. INSERT INTO `sensitive_words` (`words`) VALUES ('sgmh.online');
  654. INSERT INTO `sensitive_words` (`words`) VALUES ('sharklasers.com');
  655. INSERT INTO `sensitive_words` (`words`) VALUES ('shiftrpg.com');
  656. INSERT INTO `sensitive_words` (`words`) VALUES ('spam4.me');
  657. INSERT INTO `sensitive_words` (`words`) VALUES ('speed.1s.fr');
  658. INSERT INTO `sensitive_words` (`words`) VALUES ('tmail.ws');
  659. INSERT INTO `sensitive_words` (`words`) VALUES ('tmails.net');
  660. INSERT INTO `sensitive_words` (`words`) VALUES ('tmpmail.net');
  661. INSERT INTO `sensitive_words` (`words`) VALUES ('tmpmail.org');
  662. INSERT INTO `sensitive_words` (`words`) VALUES ('travala10.com');
  663. INSERT INTO `sensitive_words` (`words`) VALUES ('yopmail.com');
  664. INSERT INTO `sensitive_words` (`words`) VALUES ('yopmail.fr');
  665. INSERT INTO `sensitive_words` (`words`) VALUES ('yopmail.net');
  666. INSERT INTO `sensitive_words` (`words`) VALUES ('yuoia.com');
  667. INSERT INTO `sensitive_words` (`words`) VALUES ('zep-hyr.com');
  668. INSERT INTO `sensitive_words` (`words`) VALUES ('zippiex.com');
  669. INSERT INTO `sensitive_words` (`words`) VALUES ('lrc8.com');
  670. INSERT INTO `sensitive_words` (`words`) VALUES ('1otc.com');
  671. INSERT INTO `sensitive_words` (`words`) VALUES ('emailna.co');
  672. -- ----------------------------
  673. -- Table structure for `user_subscribe`
  674. -- ----------------------------
  675. CREATE TABLE `user_subscribe` (
  676. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  677. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  678. `code` char(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT '' COMMENT '订阅地址唯一识别码',
  679. `times` int(11) NOT NULL DEFAULT '0' COMMENT '地址请求次数',
  680. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态:0-禁用、1-启用',
  681. `ban_time` int(11) NOT NULL DEFAULT '0' COMMENT '封禁时间',
  682. `ban_desc` varchar(50) NOT NULL DEFAULT '' COMMENT '封禁理由',
  683. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  684. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  685. PRIMARY KEY (`id`)
  686. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  687. -- ----------------------------
  688. -- Table structure for `user_subscribe_log`
  689. -- ----------------------------
  690. CREATE TABLE `user_subscribe_log` (
  691. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  692. `sid` int(11) DEFAULT NULL COMMENT '对应user_subscribe的id',
  693. `request_ip` varchar(20) DEFAULT NULL COMMENT '请求IP',
  694. `request_time` datetime DEFAULT NULL COMMENT '请求时间',
  695. `request_header` text COMMENT '请求头部信息',
  696. PRIMARY KEY (`id`)
  697. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  698. -- ----------------------------
  699. -- Table structure for `user_traffic_daily`
  700. -- ----------------------------
  701. CREATE TABLE `user_traffic_daily` (
  702. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  703. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  704. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID,0表示统计全部节点',
  705. `u` bigint(20) NOT NULL DEFAULT '0' COMMENT '上传流量',
  706. `d` bigint(20) NOT NULL DEFAULT '0' COMMENT '下载流量',
  707. `total` bigint(20) NOT NULL DEFAULT '0' COMMENT '总流量',
  708. `traffic` varchar(255) DEFAULT '' COMMENT '总流量(带单位)',
  709. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  710. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  711. PRIMARY KEY (`id`),
  712. INDEX `idx_user` (`user_id`) USING BTREE,
  713. INDEX `idx_user_node` (`user_id`,`node_id`) USING BTREE
  714. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  715. -- ----------------------------
  716. -- Table structure for `user_traffic_hourly`
  717. -- ----------------------------
  718. CREATE TABLE `user_traffic_hourly` (
  719. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  720. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  721. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID,0表示统计全部节点',
  722. `u` bigint(20) NOT NULL DEFAULT '0' COMMENT '上传流量',
  723. `d` bigint(20) NOT NULL DEFAULT '0' COMMENT '下载流量',
  724. `total` bigint(20) NOT NULL DEFAULT '0' COMMENT '总流量',
  725. `traffic` varchar(255) DEFAULT '' COMMENT '总流量(带单位)',
  726. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  727. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  728. PRIMARY KEY (`id`),
  729. INDEX `idx_user` (`user_id`) USING BTREE,
  730. INDEX `idx_user_node` (`user_id`,`node_id`) USING BTREE
  731. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  732. -- ----------------------------
  733. -- Table structure for `node_traffic_daily`
  734. -- ----------------------------
  735. CREATE TABLE `ss_node_traffic_daily` (
  736. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  737. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID',
  738. `u` bigint(20) NOT NULL DEFAULT '0' COMMENT '上传流量',
  739. `d` bigint(20) NOT NULL DEFAULT '0' COMMENT '下载流量',
  740. `total` bigint(20) NOT NULL DEFAULT '0' COMMENT '总流量',
  741. `traffic` varchar(255) DEFAULT '' COMMENT '总流量(带单位)',
  742. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  743. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  744. PRIMARY KEY (`id`),
  745. INDEX `idx_node_id` (`node_id`)
  746. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  747. -- ----------------------------
  748. -- Table structure for `node_traffic_hourly`
  749. -- ----------------------------
  750. CREATE TABLE `ss_node_traffic_hourly` (
  751. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  752. `node_id` int(11) NOT NULL DEFAULT '0' COMMENT '节点ID',
  753. `u` bigint(20) NOT NULL DEFAULT '0' COMMENT '上传流量',
  754. `d` bigint(20) NOT NULL DEFAULT '0' COMMENT '下载流量',
  755. `total` bigint(20) NOT NULL DEFAULT '0' COMMENT '总流量',
  756. `traffic` varchar(255) DEFAULT '' COMMENT '总流量(带单位)',
  757. `created_at` datetime DEFAULT NULL COMMENT '创建时间',
  758. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  759. PRIMARY KEY (`id`),
  760. INDEX `idx_node_id` (`node_id`)
  761. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  762. -- ----------------------------
  763. -- Table structure for `user_ban_log`
  764. -- ----------------------------
  765. CREATE TABLE `user_ban_log` (
  766. `id` int(11) NOT NULL AUTO_INCREMENT,
  767. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  768. `minutes` int(11) NOT NULL DEFAULT '0' COMMENT '封禁账号时长,单位分钟',
  769. `desc` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作描述',
  770. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态:0-未处理、1-已处理',
  771. `created_at` datetime DEFAULT NULL COMMENT ' 创建时间',
  772. `updated_at` datetime DEFAULT NULL COMMENT '最后更新时间',
  773. PRIMARY KEY (`id`)
  774. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户封禁日志';
  775. -- ----------------------------
  776. -- Table structure for `user_label`
  777. -- ----------------------------
  778. CREATE TABLE `user_label` (
  779. `id` int(11) NOT NULL AUTO_INCREMENT,
  780. `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  781. `label_id` int(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
  782. PRIMARY KEY (`id`),
  783. INDEX `idx` (`user_id`,`label_id`),
  784. INDEX `idx_user_id` (`user_id`),
  785. INDEX `idx_label_id` (`label_id`)
  786. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户标签';
  787. -- ----------------------------
  788. -- Table structure for `goods_label`
  789. -- ----------------------------
  790. CREATE TABLE `goods_label` (
  791. `id` INT(11) NOT NULL AUTO_INCREMENT,
  792. `goods_id` INT(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
  793. `label_id` INT(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
  794. PRIMARY KEY (`id`),
  795. INDEX `idx` (`goods_id`, `label_id`),
  796. INDEX `idx_goods_id` (`goods_id`),
  797. INDEX `idx_label_id` (`label_id`)
  798. ) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE='utf8mb4_unicode_ci' COMMENT='商品标签';
  799. -- ----------------------------
  800. -- Table structure for `country`
  801. -- ----------------------------
  802. CREATE TABLE `country` (
  803. `id` int(11) NOT NULL AUTO_INCREMENT,
  804. `country_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '名称',
  805. `country_code` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '代码',
  806. PRIMARY KEY (`id`)
  807. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  808. -- ----------------------------
  809. -- Records of country
  810. -- ----------------------------
  811. INSERT INTO `country` VALUES ('1', '澳大利亚', 'au');
  812. INSERT INTO `country` VALUES ('2', '巴西', 'br');
  813. INSERT INTO `country` VALUES ('3', '加拿大', 'ca');
  814. INSERT INTO `country` VALUES ('4', '瑞士', 'ch');
  815. INSERT INTO `country` VALUES ('5', '中国', 'cn');
  816. INSERT INTO `country` VALUES ('6', '德国', 'de');
  817. INSERT INTO `country` VALUES ('7', '丹麦', 'dk');
  818. INSERT INTO `country` VALUES ('8', '埃及', 'eg');
  819. INSERT INTO `country` VALUES ('9', '法国', 'fr');
  820. INSERT INTO `country` VALUES ('10', '希腊', 'gr');
  821. INSERT INTO `country` VALUES ('11', '香港', 'hk');
  822. INSERT INTO `country` VALUES ('12', '印度尼西亚', 'id');
  823. INSERT INTO `country` VALUES ('13', '爱尔兰', 'ie');
  824. INSERT INTO `country` VALUES ('14', '以色列', 'il');
  825. INSERT INTO `country` VALUES ('15', '印度', 'in');
  826. INSERT INTO `country` VALUES ('16', '伊拉克', 'iq');
  827. INSERT INTO `country` VALUES ('17', '伊朗', 'ir');
  828. INSERT INTO `country` VALUES ('18', '意大利', 'it');
  829. INSERT INTO `country` VALUES ('19', '日本', 'jp');
  830. INSERT INTO `country` VALUES ('20', '韩国', 'kr');
  831. INSERT INTO `country` VALUES ('21', '墨西哥', 'mx');
  832. INSERT INTO `country` VALUES ('22', '马来西亚', 'my');
  833. INSERT INTO `country` VALUES ('23', '荷兰', 'nl');
  834. INSERT INTO `country` VALUES ('24', '挪威', 'no');
  835. INSERT INTO `country` VALUES ('25', '纽西兰', 'nz');
  836. INSERT INTO `country` VALUES ('26', '菲律宾', 'ph');
  837. INSERT INTO `country` VALUES ('27', '俄罗斯', 'ru');
  838. INSERT INTO `country` VALUES ('28', '瑞典', 'se');
  839. INSERT INTO `country` VALUES ('29', '新加坡', 'sg');
  840. INSERT INTO `country` VALUES ('30', '泰国', 'th');
  841. INSERT INTO `country` VALUES ('31', '土耳其', 'tr');
  842. INSERT INTO `country` VALUES ('32', '台湾', 'tw');
  843. INSERT INTO `country` VALUES ('33', '英国', 'uk');
  844. INSERT INTO `country` VALUES ('34', '美国', 'us');
  845. INSERT INTO `country` VALUES ('35', '越南', 'vn');
  846. INSERT INTO `country` VALUES ('36', '波兰', 'pl');
  847. INSERT INTO `country` VALUES ('37', '哈萨克斯坦', 'kz');
  848. INSERT INTO `country` VALUES ('38', '乌克兰', 'ua');
  849. INSERT INTO `country` VALUES ('39', '罗马尼亚', 'ro');
  850. INSERT INTO `country` VALUES ('40', '阿联酋', 'ae');
  851. INSERT INTO `country` VALUES ('41', '南非', 'za');
  852. INSERT INTO `country` VALUES ('42', '缅甸', 'mm');
  853. INSERT INTO `country` VALUES ('43', '冰岛', 'is');
  854. INSERT INTO `country` VALUES ('44', '芬兰', 'fi');
  855. INSERT INTO `country` VALUES ('45', '卢森堡', 'lu');
  856. INSERT INTO `country` VALUES ('46', '比利时', 'be');
  857. INSERT INTO `country` VALUES ('47', '保加利亚', 'bg');
  858. INSERT INTO `country` VALUES ('48', '立陶宛', 'lt');
  859. INSERT INTO `country` VALUES ('49', '哥伦比亚', 'co');
  860. INSERT INTO `country` VALUES ('50', '澳门', 'mo');
  861. INSERT INTO `country` VALUES ('51', '肯尼亚', 'ke');
  862. INSERT INTO `country` VALUES ('52', '捷克', 'cz');
  863. INSERT INTO `country` VALUES ('53', '摩尔多瓦', 'md');
  864. INSERT INTO `country` VALUES ('54', '西班牙', 'es');
  865. INSERT INTO `country` VALUES ('55', '巴基斯坦', 'pk');
  866. INSERT INTO `country` VALUES ('56', '葡萄牙', 'pt');
  867. INSERT INTO `country` VALUES ('57', '匈牙利', 'hu');
  868. INSERT INTO `country` VALUES ('58', '阿根廷', 'ar');
  869. CREATE TABLE `payment` (
  870. `id` int(11) NOT NULL AUTO_INCREMENT,
  871. `sn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  872. `user_id` int(11) NOT NULL COMMENT '用户ID',
  873. `oid` int(11) DEFAULT NULL COMMENT '本地订单ID',
  874. `order_sn` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '本地订单长ID',
  875. `pay_way` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '支付方式:1-微信、2-支付宝',
  876. `amount` int(11) NOT NULL DEFAULT '0' COMMENT '金额,单位分',
  877. `qr_id` int(11) NOT NULL DEFAULT '0' COMMENT '有赞生成的支付单ID',
  878. `qr_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '有赞生成的支付二维码URL',
  879. `qr_code` text COLLATE utf8mb4_unicode_ci COMMENT '有赞生成的支付二维码图片base64',
  880. `qr_local_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '支付二维码的本地存储URL',
  881. `status` int(11) NOT NULL DEFAULT '0' COMMENT '状态:-1-支付失败、0-等待支付、1-支付成功',
  882. `created_at` datetime NOT NULL,
  883. `updated_at` datetime NOT NULL,
  884. PRIMARY KEY (`id`)
  885. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  886. CREATE TABLE `payment_callback` (
  887. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  888. `client_id` varchar(50) DEFAULT NULL,
  889. `yz_id` varchar(50) DEFAULT NULL,
  890. `kdt_id` varchar(50) DEFAULT NULL,
  891. `kdt_name` varchar(50) DEFAULT NULL,
  892. `mode` tinyint(4) DEFAULT NULL,
  893. `msg` text,
  894. `sendCount` int(11) DEFAULT NULL,
  895. `sign` varchar(32) DEFAULT NULL,
  896. `status` varchar(30) DEFAULT NULL,
  897. `test` tinyint(4) DEFAULT NULL,
  898. `type` varchar(50) DEFAULT NULL,
  899. `version` varchar(50) DEFAULT NULL,
  900. `created_at` datetime DEFAULT NULL,
  901. `updated_at` datetime DEFAULT NULL,
  902. PRIMARY KEY (`id`)
  903. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='有赞云回调日志';
  904. CREATE TABLE `marketing` (
  905. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  906. `type` TINYINT(4) NOT NULL COMMENT '类型:1-邮件群发、2-订阅渠道群发',
  907. `receiver` TEXT NOT NULL COMMENT '接收者' COLLATE 'utf8mb4_unicode_ci',
  908. `title` VARCHAR(255) NOT NULL COMMENT '标题' COLLATE 'utf8mb4_unicode_ci',
  909. `content` TEXT NOT NULL COMMENT '内容' COLLATE 'utf8mb4_unicode_ci',
  910. `error` VARCHAR(255) NULL COMMENT '错误信息' COLLATE 'utf8mb4_unicode_ci',
  911. `status` TINYINT(4) NOT NULL COMMENT '状态:-1-失败、0-待发送、1-成功',
  912. `created_at` DATETIME NOT NULL,
  913. `updated_at` DATETIME NOT NULL,
  914. PRIMARY KEY (`id`)
  915. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE='utf8mb4_unicode_ci';
  916. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  917. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  918. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  919. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  920. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  921. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;