online.sql 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223
  1. /*
  2. Navicat Premium Dump SQL
  3. Source Server : 47.96.0.212.56
  4. Source Server Type : MySQL
  5. Source Server Version : 50651 (5.6.51)
  6. Source Host : 47.96.0.212:3356
  7. Source Schema : online
  8. Target Server Type : MySQL
  9. Target Server Version : 50651 (5.6.51)
  10. File Encoding : 65001
  11. Date: 22/04/2025 13:36:48
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for dhc_article_raiders
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `dhc_article_raiders`;
  19. CREATE TABLE `dhc_article_raiders` (
  20. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  21. `operator` int(11) DEFAULT NULL COMMENT '操作员id',
  22. `auth` varchar(100) NOT NULL COMMENT '用户帐号',
  23. `title` varchar(100) NOT NULL COMMENT '攻略标题',
  24. `content` longtext NOT NULL COMMENT '攻略内容',
  25. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '审核状态',
  26. `createtime` int(11) unsigned NOT NULL COMMENT '发表日期',
  27. `readtimes` int(11) unsigned DEFAULT '1' COMMENT '阅读次数',
  28. `reward` int(11) unsigned DEFAULT '0' COMMENT '打赏',
  29. `praise` int(11) unsigned DEFAULT '0' COMMENT '好评',
  30. `comments` int(11) unsigned DEFAULT '0' COMMENT '中评',
  31. `bad` int(11) unsigned DEFAULT '0' COMMENT '差评',
  32. `type` tinyint(4) NOT NULL COMMENT '阅读类型',
  33. `reason` varchar(100) DEFAULT '' COMMENT '审核原因',
  34. `rewardproduct` int(11) DEFAULT NULL COMMENT '打赏产品',
  35. PRIMARY KEY (`id`) USING BTREE
  36. ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='攻略表';
  37. -- ----------------------------
  38. -- Table structure for dhc_card_collect_activity
  39. -- ----------------------------
  40. DROP TABLE IF EXISTS `dhc_card_collect_activity`;
  41. CREATE TABLE `dhc_card_collect_activity` (
  42. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  43. `uid` int(11) NOT NULL COMMENT '用户id',
  44. `apple` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '苹果数量',
  45. `pumpkin` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '南瓜数量',
  46. `radish` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '萝卜',
  47. `pepper` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '辣椒',
  48. `strawberry` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '草莓',
  49. `reunion` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '团圆',
  50. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  51. PRIMARY KEY (`id`) USING BTREE,
  52. KEY `uid` (`uid`) USING BTREE,
  53. KEY `type` (`apple`) USING BTREE
  54. ) ENGINE=InnoDB AUTO_INCREMENT=8165 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  55. -- ----------------------------
  56. -- Table structure for dhc_card_collect_num
  57. -- ----------------------------
  58. DROP TABLE IF EXISTS `dhc_card_collect_num`;
  59. CREATE TABLE `dhc_card_collect_num` (
  60. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  61. `num` int(11) unsigned NOT NULL COMMENT '次数',
  62. `real_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '活动期间实名人数',
  63. PRIMARY KEY (`id`) USING BTREE
  64. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  65. -- ----------------------------
  66. -- Table structure for dhc_distribution_list
  67. -- ----------------------------
  68. DROP TABLE IF EXISTS `dhc_distribution_list`;
  69. CREATE TABLE `dhc_distribution_list` (
  70. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  71. `uid` int(11) unsigned NOT NULL,
  72. `cUid` int(11) unsigned NOT NULL COMMENT '下级uid',
  73. `level` tinyint(1) unsigned NOT NULL COMMENT '层级',
  74. `gold` float(11,4) NOT NULL COMMENT '金币变化',
  75. `type` tinyint(1) unsigned NOT NULL COMMENT '返佣类型: 兑换钻石=1 大盘手续费=2',
  76. `disType` enum('common','channel') NOT NULL COMMENT '分销商类型1',
  77. `rebate` float(11,2) unsigned NOT NULL COMMENT '当前分佣比例',
  78. `amount` float(11,4) unsigned NOT NULL COMMENT '佣金数量',
  79. `effectTime` int(11) unsigned NOT NULL COMMENT '生效时间',
  80. `createTime` int(11) unsigned NOT NULL COMMENT '创建时间',
  81. `updateTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '领取时间',
  82. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0=未到账 1=已到账',
  83. `log` varchar(255) NOT NULL COMMENT '日志备注',
  84. PRIMARY KEY (`id`) USING BTREE,
  85. KEY `createTime` (`createTime`) USING BTREE
  86. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  87. -- ----------------------------
  88. -- Table structure for dhc_game_commodity
  89. -- ----------------------------
  90. DROP TABLE IF EXISTS `dhc_game_commodity`;
  91. CREATE TABLE `dhc_game_commodity` (
  92. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  93. `gid` int(11) unsigned NOT NULL COMMENT '果实id',
  94. `gname` varchar(255) NOT NULL COMMENT '果实名称',
  95. `price` decimal(10,3) unsigned NOT NULL COMMENT '市场单价',
  96. `min_buy_price` decimal(10,3) NOT NULL COMMENT '最低购买价格',
  97. `max_num` int(11) unsigned NOT NULL COMMENT '单笔订单最大值',
  98. `total_num` int(11) NOT NULL COMMENT '历史成交数量',
  99. `flow_num` int(11) NOT NULL COMMENT '可交易数量',
  100. `del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除0否1是',
  101. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  102. PRIMARY KEY (`id`) USING BTREE
  103. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='交易市场商品指导价格';
  104. -- ----------------------------
  105. -- Table structure for dhc_game_notice
  106. -- ----------------------------
  107. DROP TABLE IF EXISTS `dhc_game_notice`;
  108. CREATE TABLE `dhc_game_notice` (
  109. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  110. `title` varchar(255) NOT NULL COMMENT '标题',
  111. `content` text NOT NULL COMMENT '公告内容',
  112. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  113. PRIMARY KEY (`id`) USING BTREE
  114. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='游戏公告(新)';
  115. -- ----------------------------
  116. -- Table structure for dhc_game_transaction
  117. -- ----------------------------
  118. DROP TABLE IF EXISTS `dhc_game_transaction`;
  119. CREATE TABLE `dhc_game_transaction` (
  120. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  121. `uid` int(11) NOT NULL COMMENT '用户id',
  122. `gid` int(11) NOT NULL COMMENT '果实id',
  123. `num` int(11) unsigned NOT NULL COMMENT '果实数量',
  124. `gname` varchar(20) NOT NULL DEFAULT '0' COMMENT '果实名称',
  125. `price` decimal(10,3) unsigned NOT NULL COMMENT '果实单价',
  126. `total_price` decimal(10,3) NOT NULL COMMENT '真实总价',
  127. `actual_price` int(10) NOT NULL COMMENT '整数总价',
  128. `type` tinyint(1) NOT NULL COMMENT '类型0买如1卖出',
  129. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0待审核1已完成2已撤销',
  130. `update_at` datetime DEFAULT NULL COMMENT '更新时间',
  131. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  132. PRIMARY KEY (`id`) USING BTREE,
  133. KEY `u` (`uid`,`gid`) USING BTREE,
  134. KEY `gid` (`gid`) USING BTREE
  135. ) ENGINE=InnoDB AUTO_INCREMENT=269753 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='农贸市场订单表';
  136. -- ----------------------------
  137. -- Table structure for dhc_game_transaction_err_log
  138. -- ----------------------------
  139. DROP TABLE IF EXISTS `dhc_game_transaction_err_log`;
  140. CREATE TABLE `dhc_game_transaction_err_log` (
  141. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  142. `content` varchar(1000) NOT NULL COMMENT '日志内容',
  143. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  144. PRIMARY KEY (`id`) USING BTREE
  145. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='计划任务有错误内容时存储表';
  146. -- ----------------------------
  147. -- Table structure for dhc_game_transaction_statistics
  148. -- ----------------------------
  149. DROP TABLE IF EXISTS `dhc_game_transaction_statistics`;
  150. CREATE TABLE `dhc_game_transaction_statistics` (
  151. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  152. `ymd` int(11) NOT NULL COMMENT '时间',
  153. `k_sell` int(11) NOT NULL DEFAULT '0' COMMENT '卖出k钻的数量',
  154. `k_buy` int(11) NOT NULL DEFAULT '0' COMMENT '买入k钻的数量',
  155. `content` text NOT NULL COMMENT '果实相关数据',
  156. `create_at` date NOT NULL,
  157. PRIMARY KEY (`id`) USING BTREE,
  158. UNIQUE KEY `ymd` (`ymd`) USING BTREE
  159. ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  160. -- ----------------------------
  161. -- Table structure for dhc_game_video
  162. -- ----------------------------
  163. DROP TABLE IF EXISTS `dhc_game_video`;
  164. CREATE TABLE `dhc_game_video` (
  165. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  166. `title` varchar(255) NOT NULL COMMENT '视频标题',
  167. `content` varchar(255) NOT NULL COMMENT '内容',
  168. `author` varchar(20) NOT NULL COMMENT '作者',
  169. `img_url` varchar(255) NOT NULL COMMENT '图片地址',
  170. `video_url` varchar(255) NOT NULL COMMENT '视频地址',
  171. `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型1游戏攻略',
  172. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  173. PRIMARY KEY (`id`) USING BTREE
  174. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  175. -- ----------------------------
  176. -- Table structure for dhc_k
  177. -- ----------------------------
  178. DROP TABLE IF EXISTS `dhc_k`;
  179. CREATE TABLE `dhc_k` (
  180. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  181. `surplus` int(11) unsigned NOT NULL COMMENT '剩余k钻',
  182. `retained` int(11) unsigned NOT NULL COMMENT '平台留存k钻',
  183. `consume` int(11) unsigned NOT NULL COMMENT '用户消耗k钻',
  184. `produce` int(11) unsigned NOT NULL COMMENT '用户持有k钻',
  185. `release` int(11) unsigned NOT NULL COMMENT '平台释放k钻',
  186. PRIMARY KEY (`id`) USING BTREE
  187. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='平台k钻数据汇总';
  188. -- ----------------------------
  189. -- Table structure for dhc_lnvitation_code
  190. -- ----------------------------
  191. DROP TABLE IF EXISTS `dhc_lnvitation_code`;
  192. CREATE TABLE `dhc_lnvitation_code` (
  193. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  194. `code` char(20) NOT NULL COMMENT '邀请码',
  195. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
  196. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否被使用0否1是',
  197. `time` datetime DEFAULT NULL COMMENT '使用时间',
  198. PRIMARY KEY (`id`) USING BTREE,
  199. UNIQUE KEY `code` (`code`) USING BTREE
  200. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='内测邀请码(新)';
  201. -- ----------------------------
  202. -- Table structure for dhc_message_error_log
  203. -- ----------------------------
  204. DROP TABLE IF EXISTS `dhc_message_error_log`;
  205. CREATE TABLE `dhc_message_error_log` (
  206. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  207. `content` varchar(255) NOT NULL COMMENT '内容',
  208. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  209. PRIMARY KEY (`id`) USING BTREE
  210. ) ENGINE=InnoDB AUTO_INCREMENT=6656 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='短信发送失败日志表';
  211. -- ----------------------------
  212. -- Table structure for dhc_operator_log
  213. -- ----------------------------
  214. DROP TABLE IF EXISTS `dhc_operator_log`;
  215. CREATE TABLE `dhc_operator_log` (
  216. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  217. `uid` int(11) NOT NULL COMMENT '用户id',
  218. `title` varchar(255) NOT NULL COMMENT '操作内容',
  219. `operator` int(11) NOT NULL COMMENT '操作员',
  220. `createtime` int(11) NOT NULL COMMENT '创建时间',
  221. PRIMARY KEY (`id`) USING BTREE
  222. ) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='后台操作员操作日志';
  223. -- ----------------------------
  224. -- Table structure for dhc_orchard_animal
  225. -- ----------------------------
  226. DROP TABLE IF EXISTS `dhc_orchard_animal`;
  227. CREATE TABLE `dhc_orchard_animal` (
  228. `id` int(11) NOT NULL AUTO_INCREMENT,
  229. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  230. `aid` tinyint(1) unsigned NOT NULL DEFAULT '0',
  231. `nums` int(11) unsigned NOT NULL DEFAULT '0',
  232. `title` varchar(50) NOT NULL,
  233. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  234. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  235. `days` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '剩余天数',
  236. `info` varchar(500) DEFAULT NULL COMMENT '备注信息',
  237. `feedtime` int(11) unsigned NOT NULL DEFAULT '0',
  238. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  239. `feednums` int(11) unsigned NOT NULL DEFAULT '0',
  240. PRIMARY KEY (`id`) USING BTREE,
  241. KEY `uid` (`uid`,`aid`,`status`) USING BTREE
  242. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='农场 牧场信息表';
  243. -- ----------------------------
  244. -- Table structure for dhc_orchard_background
  245. -- ----------------------------
  246. DROP TABLE IF EXISTS `dhc_orchard_background`;
  247. CREATE TABLE `dhc_orchard_background` (
  248. `id` int(11) NOT NULL AUTO_INCREMENT,
  249. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  250. `backId` tinyint(11) unsigned NOT NULL DEFAULT '1',
  251. `backName` varchar(50) NOT NULL DEFAULT '0',
  252. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  253. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  254. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  255. PRIMARY KEY (`id`) USING BTREE,
  256. UNIQUE KEY `uid` (`uid`,`backId`) USING BTREE
  257. ) ENGINE=InnoDB AUTO_INCREMENT=44986 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园背景管理';
  258. -- ----------------------------
  259. -- Table structure for dhc_orchard_chest
  260. -- ----------------------------
  261. DROP TABLE IF EXISTS `dhc_orchard_chest`;
  262. CREATE TABLE `dhc_orchard_chest` (
  263. `id` int(11) NOT NULL AUTO_INCREMENT,
  264. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  265. `tId` tinyint(3) unsigned NOT NULL DEFAULT '0',
  266. `nums` int(11) unsigned NOT NULL DEFAULT '0',
  267. `price` decimal(11,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '钻石价格',
  268. `uidStr` varchar(500) DEFAULT NULL COMMENT '会员信息',
  269. `starttime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
  270. `endtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
  271. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  272. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  273. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  274. PRIMARY KEY (`id`) USING BTREE,
  275. UNIQUE KEY `uid` (`uid`,`tId`) USING BTREE
  276. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宝箱记录';
  277. -- ----------------------------
  278. -- Table structure for dhc_orchard_chestlist
  279. -- ----------------------------
  280. DROP TABLE IF EXISTS `dhc_orchard_chestlist`;
  281. CREATE TABLE `dhc_orchard_chestlist` (
  282. `id` int(11) NOT NULL AUTO_INCREMENT,
  283. `uid` int(11) unsigned DEFAULT '0',
  284. `tId` int(11) unsigned DEFAULT '0',
  285. `cid` int(11) unsigned DEFAULT '0',
  286. `disUid` int(11) unsigned DEFAULT '0',
  287. `price` decimal(11,2) unsigned DEFAULT '0.00',
  288. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  289. `starttime` int(11) unsigned DEFAULT '0' COMMENT '开始时间',
  290. `endtime` int(11) unsigned DEFAULT '0',
  291. `createtime` int(11) unsigned DEFAULT '0',
  292. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  293. `isRed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  294. PRIMARY KEY (`id`) USING BTREE,
  295. UNIQUE KEY `uid` (`uid`,`tId`,`cid`,`createtime`) USING BTREE
  296. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宝箱邀请记录表';
  297. -- ----------------------------
  298. -- Table structure for dhc_orchard_config
  299. -- ----------------------------
  300. DROP TABLE IF EXISTS `dhc_orchard_config`;
  301. CREATE TABLE `dhc_orchard_config` (
  302. `id` int(11) NOT NULL AUTO_INCREMENT,
  303. `title` varchar(50) NOT NULL,
  304. `total` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存种子',
  305. `diamond` text NOT NULL COMMENT '果实兑换钻石信息',
  306. `upGrade` tinyint(2) unsigned NOT NULL DEFAULT '12' COMMENT '用户最高等级',
  307. `landInfo` text NOT NULL COMMENT '土地信息',
  308. `landFruit` varchar(500) NOT NULL DEFAULT '0' COMMENT '产生果实信息',
  309. `landUpInfo` varchar(600) NOT NULL DEFAULT '0' COMMENT '土地升级信息',
  310. `duiInfo` varchar(500) NOT NULL DEFAULT '0' COMMENT '兑换设置',
  311. `houseInfo` text NOT NULL COMMENT '房屋升级耗材',
  312. `dogInfo` text NOT NULL COMMENT '宠物升级经验信息',
  313. `statueInfo` varchar(500) NOT NULL DEFAULT '0' COMMENT '神像设置',
  314. `recharge` varchar(500) NOT NULL DEFAULT '0' COMMENT '充值信息',
  315. `background` varchar(500) NOT NULL DEFAULT '0' COMMENT '背景信息',
  316. `rebate` varchar(500) NOT NULL DEFAULT '0' COMMENT '充值返佣金额',
  317. `package` varchar(300) DEFAULT '0' COMMENT '礼包信息',
  318. `indemnify` varchar(300) NOT NULL DEFAULT '0' COMMENT '补偿礼包',
  319. `newGiftPack` varchar(300) DEFAULT NULL COMMENT '新人礼包信息',
  320. `realName` varchar(500) NOT NULL COMMENT '认证礼包',
  321. `sign` varchar(500) NOT NULL DEFAULT '0' COMMENT '签到信息',
  322. `steal` text NOT NULL COMMENT '好友互偷信息',
  323. `downgrade` text COMMENT '土地降级信息',
  324. `EMG` varchar(100) DEFAULT NULL COMMENT 'emg授权',
  325. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  326. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  327. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  328. `Ouid` int(11) unsigned NOT NULL DEFAULT '0',
  329. `pasture` text NOT NULL COMMENT '牧场信息',
  330. `SDiamondHave` int(11) unsigned DEFAULT NULL COMMENT '推荐人需拥有钻石',
  331. `authCodeInfo` varchar(500) DEFAULT NULL COMMENT '商城对接授权信息',
  332. `team` text NOT NULL COMMENT '推广设置',
  333. `teamPoster` text NOT NULL COMMENT '推广海报',
  334. `teamRule` text NOT NULL COMMENT '团队规则',
  335. PRIMARY KEY (`id`) USING BTREE
  336. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园参数';
  337. -- ----------------------------
  338. -- Table structure for dhc_orchard_dog
  339. -- ----------------------------
  340. DROP TABLE IF EXISTS `dhc_orchard_dog`;
  341. CREATE TABLE `dhc_orchard_dog` (
  342. `id` int(11) NOT NULL AUTO_INCREMENT,
  343. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户编号',
  344. `nickname` varchar(50) NOT NULL COMMENT '用户昵称',
  345. `mobile` varchar(50) NOT NULL COMMENT '用户电话',
  346. `goodsId` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商品id或0',
  347. `dogName` varchar(50) NOT NULL COMMENT '宠物昵称',
  348. `dogLevel` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '宠物等级',
  349. `experience` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物经验值',
  350. `power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '体力活力动力值',
  351. `powerUlimit` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '体力生活上限',
  352. `otherInfo` varchar(500) NOT NULL DEFAULT '0' COMMENT '宠物其他基本信息',
  353. `harvestTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '收货时效',
  354. `sowingTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '播种时效',
  355. `speed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进度玫瑰1000 规0',
  356. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评分',
  357. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  358. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  359. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  360. `optime` int(11) unsigned NOT NULL DEFAULT '0',
  361. `isDel` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '删除状态 1',
  362. PRIMARY KEY (`id`) USING BTREE,
  363. KEY `uid` (`uid`) USING BTREE
  364. ) ENGINE=InnoDB AUTO_INCREMENT=44260 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园宠物记录表';
  365. -- ----------------------------
  366. -- Table structure for dhc_orchard_double_effect
  367. -- ----------------------------
  368. DROP TABLE IF EXISTS `dhc_orchard_double_effect`;
  369. CREATE TABLE `dhc_orchard_double_effect` (
  370. `id` int(11) NOT NULL AUTO_INCREMENT,
  371. `uid` int(11) NOT NULL,
  372. `types` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型',
  373. `mark` varchar(50) NOT NULL DEFAULT '0',
  374. `nums` int(11) unsigned NOT NULL DEFAULT '0',
  375. `msg` varchar(500) NOT NULL DEFAULT '0' COMMENT '消息',
  376. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  377. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  378. `lasttime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '到期时间',
  379. PRIMARY KEY (`id`) USING BTREE
  380. ) ENGINE=InnoDB AUTO_INCREMENT=4202 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
  381. -- ----------------------------
  382. -- Table structure for dhc_orchard_downgrade
  383. -- ----------------------------
  384. DROP TABLE IF EXISTS `dhc_orchard_downgrade`;
  385. CREATE TABLE `dhc_orchard_downgrade` (
  386. `id` int(11) NOT NULL AUTO_INCREMENT,
  387. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  388. `types` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型 1房屋 2 土地 3记录',
  389. `houseLv` int(11) unsigned NOT NULL DEFAULT '0',
  390. `grade` int(11) unsigned NOT NULL DEFAULT '0',
  391. `htime` int(11) unsigned NOT NULL DEFAULT '0',
  392. `info` varchar(500) NOT NULL,
  393. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  394. `status` tinyint(1) unsigned NOT NULL DEFAULT '1',
  395. PRIMARY KEY (`id`) USING BTREE,
  396. UNIQUE KEY `uid` (`uid`,`houseLv`,`grade`,`htime`) USING BTREE
  397. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='房屋掉级记录';
  398. -- ----------------------------
  399. -- Table structure for dhc_orchard_goods
  400. -- ----------------------------
  401. DROP TABLE IF EXISTS `dhc_orchard_goods`;
  402. CREATE TABLE `dhc_orchard_goods` (
  403. `tId` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品ID',
  404. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '定义类型',
  405. `tName` varchar(50) NOT NULL COMMENT '商品名字',
  406. `depict` varchar(500) NOT NULL COMMENT '商品简介',
  407. `price` decimal(10,3) unsigned NOT NULL DEFAULT '0.000' COMMENT '商品价格',
  408. `effect` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '效果值',
  409. `pack` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '一次性购买量 打包购买',
  410. `buyOut` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '购买上限',
  411. `cost` varchar(500) NOT NULL COMMENT '宝箱需要信息',
  412. `chanceInfo` varchar(2000) NOT NULL COMMENT '各商品概率',
  413. `giftDetail` varchar(500) NOT NULL COMMENT '推荐礼包详细信息',
  414. `reclaimLimit` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '会员购买需等级',
  415. `seedUser` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '赠送种子用户',
  416. `seedShop` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '返回平台种子数量',
  417. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  418. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  419. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态0禁用1启用',
  420. `isDel` tinyint(1) NOT NULL DEFAULT '0',
  421. PRIMARY KEY (`tId`) USING BTREE
  422. ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园商品表';
  423. -- ----------------------------
  424. -- Table structure for dhc_orchard_hail_fellow
  425. -- ----------------------------
  426. DROP TABLE IF EXISTS `dhc_orchard_hail_fellow`;
  427. CREATE TABLE `dhc_orchard_hail_fellow` (
  428. `id` int(11) NOT NULL AUTO_INCREMENT,
  429. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  430. `huid` int(11) unsigned NOT NULL DEFAULT '0',
  431. `nickname` varchar(50) NOT NULL,
  432. `mobile` varchar(50) NOT NULL,
  433. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1 通过 0 审核 9 拒绝',
  434. `isAdd` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '发起身份',
  435. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  436. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  437. `isDel` tinyint(1) unsigned NOT NULL DEFAULT '0',
  438. PRIMARY KEY (`id`) USING BTREE
  439. ) ENGINE=InnoDB AUTO_INCREMENT=2201 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园好友记录表';
  440. -- ----------------------------
  441. -- Table structure for dhc_orchard_land
  442. -- ----------------------------
  443. DROP TABLE IF EXISTS `dhc_orchard_land`;
  444. CREATE TABLE `dhc_orchard_land` (
  445. `id` int(11) NOT NULL AUTO_INCREMENT,
  446. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  447. `nickname` varchar(50) NOT NULL DEFAULT '无昵称',
  448. `mobile` varchar(50) NOT NULL DEFAULT '0',
  449. `landLevel` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '土地类型 1普 2红 3 黑 4 金',
  450. `landId` tinyint(2) NOT NULL DEFAULT '1',
  451. `goodsId` int(11) NOT NULL DEFAULT '0' COMMENT '产生种子ID',
  452. `goodsNums` int(11) NOT NULL DEFAULT '0' COMMENT '产生种子数量',
  453. `goodsName` varchar(50) NOT NULL DEFAULT '无',
  454. `fertilize` varchar(500) NOT NULL DEFAULT '0' COMMENT '施肥次数状态',
  455. `plowing` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '翻地状态',
  456. `landStatus` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '土地状态0未种植1种子2嫩芽期3生长期4成熟期5枯萎期',
  457. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  458. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后一次更新时间',
  459. `optime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户操作时间',
  460. `seedtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '种子播种时间',
  461. `wcan` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '浇水状态',
  462. `hcide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '除草状态',
  463. `icide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '除虫状态',
  464. PRIMARY KEY (`id`) USING BTREE,
  465. UNIQUE KEY `uid_2` (`uid`,`landId`) USING BTREE,
  466. KEY `uid` (`uid`) USING BTREE
  467. ) ENGINE=InnoDB AUTO_INCREMENT=45305 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='土地信息';
  468. -- ----------------------------
  469. -- Table structure for dhc_orchard_logs
  470. -- ----------------------------
  471. DROP TABLE IF EXISTS `dhc_orchard_logs`;
  472. CREATE TABLE `dhc_orchard_logs` (
  473. `id` int(11) NOT NULL AUTO_INCREMENT,
  474. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  475. `mobile` varchar(50) NOT NULL,
  476. `disUid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '来源uid',
  477. `landId` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '土地编号',
  478. `types` varchar(50) NOT NULL,
  479. `nums` decimal(11,2) NOT NULL DEFAULT '0.00',
  480. `msg` varchar(500) NOT NULL,
  481. `dataInfo` varchar(5000) NOT NULL DEFAULT '0' COMMENT '附带数据存储',
  482. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  483. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1否2是',
  484. PRIMARY KEY (`id`) USING BTREE,
  485. KEY `uid` (`uid`) USING BTREE,
  486. KEY `uid_2` (`uid`,`landId`,`types`) USING BTREE
  487. ) ENGINE=InnoDB AUTO_INCREMENT=5776043 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园日志表';
  488. -- ----------------------------
  489. -- Table structure for dhc_orchard_order
  490. -- ----------------------------
  491. DROP TABLE IF EXISTS `dhc_orchard_order`;
  492. CREATE TABLE `dhc_orchard_order` (
  493. `id` int(11) NOT NULL AUTO_INCREMENT,
  494. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会员uid',
  495. `nickname` varchar(50) NOT NULL COMMENT '会员信息',
  496. `mobile` varchar(50) NOT NULL COMMENT '会员信息',
  497. `orderId` varchar(50) NOT NULL COMMENT '订单号',
  498. `types` varchar(50) NOT NULL COMMENT '类型',
  499. `coing` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '扣除数量',
  500. `fruit` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '获得数量',
  501. `payStatus` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付状态',
  502. `payTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付时间',
  503. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  504. PRIMARY KEY (`id`) USING BTREE,
  505. KEY `uid` (`uid`) USING BTREE
  506. ) ENGINE=InnoDB AUTO_INCREMENT=52899 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园订单记录表';
  507. -- ----------------------------
  508. -- Table structure for dhc_orchard_package
  509. -- ----------------------------
  510. DROP TABLE IF EXISTS `dhc_orchard_package`;
  511. CREATE TABLE `dhc_orchard_package` (
  512. `id` int(11) NOT NULL AUTO_INCREMENT,
  513. `uid` int(11) unsigned NOT NULL,
  514. `types` varchar(50) NOT NULL,
  515. `info` varchar(500) NOT NULL DEFAULT '0',
  516. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  517. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  518. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  519. PRIMARY KEY (`id`) USING BTREE,
  520. KEY `uid` (`uid`) USING BTREE
  521. ) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园礼包';
  522. -- ----------------------------
  523. -- Table structure for dhc_orchard_sign
  524. -- ----------------------------
  525. DROP TABLE IF EXISTS `dhc_orchard_sign`;
  526. CREATE TABLE `dhc_orchard_sign` (
  527. `id` int(11) NOT NULL AUTO_INCREMENT,
  528. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  529. `config` varchar(500) NOT NULL DEFAULT '0',
  530. `signLevel` tinyint(1) unsigned NOT NULL DEFAULT '0',
  531. `info` varchar(500) NOT NULL DEFAULT '0',
  532. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  533. PRIMARY KEY (`id`) USING BTREE
  534. ) ENGINE=InnoDB AUTO_INCREMENT=163571 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园签到记录表';
  535. -- ----------------------------
  536. -- Table structure for dhc_orchard_statue
  537. -- ----------------------------
  538. DROP TABLE IF EXISTS `dhc_orchard_statue`;
  539. CREATE TABLE `dhc_orchard_statue` (
  540. `id` int(11) NOT NULL AUTO_INCREMENT,
  541. `tid` int(11) NOT NULL COMMENT '神像id',
  542. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'uid',
  543. `model` varchar(50) NOT NULL DEFAULT '0' COMMENT '类型',
  544. `statueName` varchar(50) NOT NULL DEFAULT '0' COMMENT '名称',
  545. `nums` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兑换数量',
  546. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  547. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  548. `lasttime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '过期时间',
  549. PRIMARY KEY (`id`) USING BTREE,
  550. UNIQUE KEY `uid_2` (`uid`,`tid`) USING BTREE,
  551. KEY `uid` (`uid`) USING BTREE
  552. ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园神像记录表';
  553. -- ----------------------------
  554. -- Table structure for dhc_orchard_steal
  555. -- ----------------------------
  556. DROP TABLE IF EXISTS `dhc_orchard_steal`;
  557. CREATE TABLE `dhc_orchard_steal` (
  558. `id` int(11) NOT NULL AUTO_INCREMENT,
  559. `uid` int(11) NOT NULL,
  560. `huid` int(11) NOT NULL,
  561. `dogInfo` text NOT NULL,
  562. `dogStatus` tinyint(1) NOT NULL DEFAULT '0' COMMENT '宠物状态',
  563. `chance` tinyint(4) unsigned NOT NULL DEFAULT '0',
  564. `mt` tinyint(3) unsigned NOT NULL DEFAULT '0',
  565. `landInfo` varchar(5000) NOT NULL DEFAULT '0',
  566. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  567. PRIMARY KEY (`id`) USING BTREE
  568. ) ENGINE=InnoDB AUTO_INCREMENT=22662 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
  569. -- ----------------------------
  570. -- Table structure for dhc_pay
  571. -- ----------------------------
  572. DROP TABLE IF EXISTS `dhc_pay`;
  573. CREATE TABLE `dhc_pay` (
  574. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  575. `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',
  576. `num` int(11) unsigned NOT NULL COMMENT '钻石数量',
  577. `additional` int(11) unsigned NOT NULL COMMENT '赠送的钻石数',
  578. `all` int(11) NOT NULL COMMENT '钻石总数',
  579. PRIMARY KEY (`id`) USING BTREE
  580. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户购买钻石列表(新)';
  581. -- ----------------------------
  582. -- Table structure for dhc_raiders_reward
  583. -- ----------------------------
  584. DROP TABLE IF EXISTS `dhc_raiders_reward`;
  585. CREATE TABLE `dhc_raiders_reward` (
  586. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  587. `rid` int(11) unsigned NOT NULL COMMENT '攻略id',
  588. `uid` int(11) unsigned NOT NULL COMMENT '打赏用户id',
  589. `auth` int(11) unsigned NOT NULL COMMENT '作者id',
  590. `productid` int(11) unsigned NOT NULL COMMENT '打赏产品id',
  591. `productnum` int(11) unsigned NOT NULL COMMENT '打赏产品数量',
  592. `createtime` int(11) unsigned NOT NULL COMMENT '打赏时间',
  593. `discuss` varchar(100) NOT NULL COMMENT '评论',
  594. PRIMARY KEY (`id`) USING BTREE
  595. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='打赏记录表';
  596. -- ----------------------------
  597. -- Table structure for dhc_strategy
  598. -- ----------------------------
  599. DROP TABLE IF EXISTS `dhc_strategy`;
  600. CREATE TABLE `dhc_strategy` (
  601. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  602. `cid` int(11) NOT NULL COMMENT '分类id',
  603. `title` varchar(255) NOT NULL COMMENT '标题',
  604. `thumb` varchar(255) NOT NULL COMMENT '图片',
  605. `content` text NOT NULL COMMENT '内容',
  606. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
  607. PRIMARY KEY (`id`) USING BTREE
  608. ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='游戏攻略内容(新)';
  609. -- ----------------------------
  610. -- Table structure for dhc_strategy_category
  611. -- ----------------------------
  612. DROP TABLE IF EXISTS `dhc_strategy_category`;
  613. CREATE TABLE `dhc_strategy_category` (
  614. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  615. `name` varchar(50) NOT NULL,
  616. `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  617. PRIMARY KEY (`id`) USING BTREE
  618. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='游戏攻略分类(新)';
  619. -- ----------------------------
  620. -- Table structure for dhc_test
  621. -- ----------------------------
  622. DROP TABLE IF EXISTS `dhc_test`;
  623. CREATE TABLE `dhc_test` (
  624. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  625. `content` text NOT NULL COMMENT '测试内容',
  626. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  627. PRIMARY KEY (`id`) USING BTREE
  628. ) ENGINE=InnoDB AUTO_INCREMENT=8718 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='存放测试数据的表(新)';
  629. -- ----------------------------
  630. -- Table structure for dhc_trade_dailydate
  631. -- ----------------------------
  632. DROP TABLE IF EXISTS `dhc_trade_dailydate`;
  633. CREATE TABLE `dhc_trade_dailydate` (
  634. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  635. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  636. `OpeningPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '开盘价格',
  637. `ClosingPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '收盘价格',
  638. `HighestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最高价格',
  639. `LowestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最低价格',
  640. `Volume` int(11) unsigned DEFAULT '0' COMMENT '成交数量',
  641. `Date` int(11) unsigned NOT NULL COMMENT '当日时间',
  642. PRIMARY KEY (`id`) USING BTREE
  643. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='日数据表';
  644. -- ----------------------------
  645. -- Table structure for dhc_trade_dailydates
  646. -- ----------------------------
  647. DROP TABLE IF EXISTS `dhc_trade_dailydates`;
  648. CREATE TABLE `dhc_trade_dailydates` (
  649. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  650. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  651. `OpeningPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '开盘价格',
  652. `ClosingPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '收盘价格',
  653. `HighestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最高价格',
  654. `LowestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最低价格',
  655. `Volume` int(11) unsigned DEFAULT '0' COMMENT '成交数量',
  656. `Date` int(11) unsigned NOT NULL COMMENT '当日时间',
  657. PRIMARY KEY (`id`) USING BTREE
  658. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='日数据表';
  659. -- ----------------------------
  660. -- Table structure for dhc_trade_logs
  661. -- ----------------------------
  662. DROP TABLE IF EXISTS `dhc_trade_logs`;
  663. CREATE TABLE `dhc_trade_logs` (
  664. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  665. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  666. `mobile` varchar(100) NOT NULL COMMENT '手机号',
  667. `num` decimal(10,5) NOT NULL COMMENT '数量',
  668. `logs` varchar(255) NOT NULL COMMENT '操作内容',
  669. `createtime` int(11) unsigned NOT NULL COMMENT '操作时间',
  670. `status` tinyint(4) unsigned NOT NULL COMMENT '状态',
  671. `type` varchar(100) NOT NULL COMMENT '操作类型',
  672. PRIMARY KEY (`id`) USING BTREE
  673. ) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='大盘日志表';
  674. -- ----------------------------
  675. -- Table structure for dhc_trade_order
  676. -- ----------------------------
  677. DROP TABLE IF EXISTS `dhc_trade_order`;
  678. CREATE TABLE `dhc_trade_order` (
  679. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  680. `uid` int(11) unsigned NOT NULL COMMENT '挂单用户id',
  681. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  682. `number` int(11) unsigned NOT NULL COMMENT '挂单数量',
  683. `price` decimal(10,5) unsigned NOT NULL COMMENT '挂单价格',
  684. `goods` varchar(255) NOT NULL COMMENT '挂单货物名称',
  685. `createtime` int(11) unsigned NOT NULL COMMENT '挂单时间',
  686. `type` tinyint(4) NOT NULL COMMENT '挂单类型',
  687. `status` int(11) unsigned NOT NULL COMMENT '挂单状态',
  688. `endtime` int(11) unsigned DEFAULT NULL COMMENT '结束时间',
  689. `dealnum` int(11) unsigned DEFAULT '0' COMMENT '已成交数量',
  690. `bid` int(11) unsigned DEFAULT NULL COMMENT '交易用户id',
  691. `fee` decimal(10,5) DEFAULT '0.00000' COMMENT '手续费',
  692. `dealprice` decimal(10,5) DEFAULT NULL COMMENT '成交价格',
  693. `dealMoney` decimal(11,5) DEFAULT '0.00000' COMMENT '成交价格',
  694. `crontabtime` int(11) unsigned NOT NULL DEFAULT '0',
  695. PRIMARY KEY (`id`) USING BTREE,
  696. KEY `uid` (`uid`) USING BTREE,
  697. KEY `sid` (`sid`) USING BTREE
  698. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='挂单表';
  699. -- ----------------------------
  700. -- Table structure for dhc_trade_product
  701. -- ----------------------------
  702. DROP TABLE IF EXISTS `dhc_trade_product`;
  703. CREATE TABLE `dhc_trade_product` (
  704. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  705. `thumb` varchar(255) NOT NULL COMMENT '产品缩略图',
  706. `startprice` decimal(10,5) unsigned NOT NULL COMMENT '初始价格',
  707. `createtime` int(11) NOT NULL COMMENT '创建时间',
  708. `status` tinyint(4) NOT NULL COMMENT '状态0停用1启用',
  709. `title` varchar(255) NOT NULL COMMENT '产品名称',
  710. `depict` varchar(500) DEFAULT NULL COMMENT '简介',
  711. `rise` decimal(10,4) NOT NULL COMMENT '涨幅',
  712. `fall` decimal(10,4) NOT NULL COMMENT '跌幅',
  713. `poundage` decimal(10,4) NOT NULL COMMENT '交易手续费',
  714. `seedTime` decimal(5,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '种子周期',
  715. `sproutingTime` decimal(5,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '发芽周期',
  716. `growTime` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT '生长周期',
  717. `displayorder` int(11) unsigned DEFAULT '0',
  718. `tradeStatus` tinyint(4) DEFAULT '1' COMMENT '开盘状态',
  719. PRIMARY KEY (`id`) USING BTREE
  720. ) ENGINE=InnoDB AUTO_INCREMENT=90005 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品表';
  721. -- ----------------------------
  722. -- Table structure for dhc_user_config
  723. -- ----------------------------
  724. DROP TABLE IF EXISTS `dhc_user_config`;
  725. CREATE TABLE `dhc_user_config` (
  726. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  727. `payType` varchar(100) NOT NULL COMMENT '支付类型',
  728. `merchant_no` varchar(100) DEFAULT NULL COMMENT '商户号',
  729. `terminal_id` varchar(100) DEFAULT NULL COMMENT '终端号',
  730. `status` tinyint(4) DEFAULT NULL COMMENT '支付启用状态',
  731. `access_token` varchar(100) DEFAULT NULL COMMENT '签名',
  732. `other` text COMMENT '其他配置参数',
  733. PRIMARY KEY (`id`) USING BTREE
  734. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='支付配置表';
  735. -- ----------------------------
  736. -- Table structure for dhc_user_contribution_log
  737. -- ----------------------------
  738. DROP TABLE IF EXISTS `dhc_user_contribution_log`;
  739. CREATE TABLE `dhc_user_contribution_log` (
  740. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  741. `uid` int(11) NOT NULL COMMENT '用户id',
  742. `time` int(11) NOT NULL COMMENT '日期',
  743. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '类型0三代1无限代',
  744. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  745. PRIMARY KEY (`id`) USING BTREE,
  746. UNIQUE KEY `utt` (`uid`,`time`,`type`) USING BTREE
  747. ) ENGINE=InnoDB AUTO_INCREMENT=415886 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  748. -- ----------------------------
  749. -- Table structure for dhc_user_cost
  750. -- ----------------------------
  751. DROP TABLE IF EXISTS `dhc_user_cost`;
  752. CREATE TABLE `dhc_user_cost` (
  753. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  754. `uid` int(11) NOT NULL COMMENT '用户id',
  755. `orderNumber` varchar(255) NOT NULL COMMENT '订单号',
  756. `createtime` int(11) NOT NULL COMMENT '创建时间',
  757. `endtime` int(11) unsigned DEFAULT NULL COMMENT '结束时间',
  758. `sum` decimal(10,5) NOT NULL COMMENT '消费金额',
  759. `charge` decimal(10,5) DEFAULT '0.00000' COMMENT '手续费',
  760. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态1 成功 0 审核 2失败',
  761. `type` varchar(100) NOT NULL COMMENT '消费类型',
  762. PRIMARY KEY (`id`) USING BTREE,
  763. KEY `uid` (`uid`) USING BTREE
  764. ) ENGINE=InnoDB AUTO_INCREMENT=15678 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户消费表';
  765. -- ----------------------------
  766. -- Table structure for dhc_user_give
  767. -- ----------------------------
  768. DROP TABLE IF EXISTS `dhc_user_give`;
  769. CREATE TABLE `dhc_user_give` (
  770. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  771. `uid` int(11) unsigned NOT NULL COMMENT '赠送用户id',
  772. `accept` varchar(100) NOT NULL COMMENT '接受用户id或者帐号',
  773. `productid` int(11) unsigned NOT NULL COMMENT '产品id',
  774. `number` int(11) unsigned NOT NULL COMMENT '产品数量',
  775. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '赠送状态1结束(接受或者2退回撤销),0等待接受',
  776. `title` varchar(100) NOT NULL COMMENT '产品名称',
  777. `createtime` int(11) NOT NULL COMMENT '赠送时间',
  778. `fee` decimal(10,5) NOT NULL COMMENT '手续费',
  779. `giveGold` int(11) unsigned DEFAULT '0' COMMENT '索取金币数量',
  780. PRIMARY KEY (`id`) USING BTREE
  781. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户赠送产品表';
  782. -- ----------------------------
  783. -- Table structure for dhc_user_gold
  784. -- ----------------------------
  785. DROP TABLE IF EXISTS `dhc_user_gold`;
  786. CREATE TABLE `dhc_user_gold` (
  787. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  788. `oid` int(11) unsigned NOT NULL COMMENT '操作员id',
  789. `uid` int(11) unsigned NOT NULL COMMENT '充值用户id',
  790. `gold` float(11,2) DEFAULT '0.00' COMMENT '充值金币数量',
  791. `frozen` float(11,2) DEFAULT '0.00' COMMENT '冻结金币数量',
  792. `createtime` int(11) unsigned NOT NULL COMMENT '操作时间',
  793. PRIMARY KEY (`id`) USING BTREE
  794. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='充值操作表';
  795. -- ----------------------------
  796. -- Table structure for dhc_user_level_log
  797. -- ----------------------------
  798. DROP TABLE IF EXISTS `dhc_user_level_log`;
  799. CREATE TABLE `dhc_user_level_log` (
  800. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  801. `uid` int(11) NOT NULL COMMENT '用户id',
  802. `conetnt` varchar(255) NOT NULL COMMENT '内容',
  803. `level` tinyint(1) NOT NULL COMMENT '新的等级',
  804. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否通知用户0否1是',
  805. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
  806. PRIMARY KEY (`id`) USING BTREE,
  807. KEY `uid` (`uid`) USING BTREE
  808. ) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  809. -- ----------------------------
  810. -- Table structure for dhc_user_log
  811. -- ----------------------------
  812. DROP TABLE IF EXISTS `dhc_user_log`;
  813. CREATE TABLE `dhc_user_log` (
  814. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  815. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  816. `user` varchar(100) NOT NULL COMMENT '用户帐号',
  817. `ip` varchar(100) NOT NULL COMMENT '用户ip',
  818. `logintime` int(11) NOT NULL COMMENT '用户登录时间',
  819. `info` text NOT NULL COMMENT '用户信息',
  820. PRIMARY KEY (`id`) USING BTREE
  821. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户登录表';
  822. -- ----------------------------
  823. -- Table structure for dhc_user_message
  824. -- ----------------------------
  825. DROP TABLE IF EXISTS `dhc_user_message`;
  826. CREATE TABLE `dhc_user_message` (
  827. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  828. `mobile` char(11) NOT NULL COMMENT '手机号',
  829. `sendTime` int(11) NOT NULL COMMENT '发送时间',
  830. `code` char(6) NOT NULL COMMENT '验证码',
  831. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未使用1已使用',
  832. PRIMARY KEY (`id`) USING BTREE
  833. ) ENGINE=InnoDB AUTO_INCREMENT=26964 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户验证短信表';
  834. -- ----------------------------
  835. -- Table structure for dhc_user_pay_order
  836. -- ----------------------------
  837. DROP TABLE IF EXISTS `dhc_user_pay_order`;
  838. CREATE TABLE `dhc_user_pay_order` (
  839. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  840. `uid` int(11) NOT NULL COMMENT '用户id',
  841. `order_sn` varchar(100) NOT NULL COMMENT '订单编号',
  842. `money` decimal(11,2) NOT NULL COMMENT '金额',
  843. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0待支付1已经支付2支付失败-1未进行支付',
  844. `pay_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '钻石表id',
  845. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '类型0身份认证1购买钻石',
  846. `number` int(11) NOT NULL DEFAULT '0' COMMENT '充值的钻石数量',
  847. `pay_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付类型0支付宝',
  848. `pay_time` datetime DEFAULT NULL COMMENT '回调通知时间',
  849. `sn` varchar(255) DEFAULT '' COMMENT '第三方订单号',
  850. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  851. PRIMARY KEY (`id`) USING BTREE,
  852. KEY `uid` (`uid`) USING BTREE
  853. ) ENGINE=InnoDB AUTO_INCREMENT=20158 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户支付日志表(新)';
  854. -- ----------------------------
  855. -- Table structure for dhc_user_pay_order_bak
  856. -- ----------------------------
  857. DROP TABLE IF EXISTS `dhc_user_pay_order_bak`;
  858. CREATE TABLE `dhc_user_pay_order_bak` (
  859. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  860. `uid` int(11) NOT NULL COMMENT '用户id',
  861. `order_sn` varchar(100) NOT NULL COMMENT '订单编号',
  862. `money` decimal(11,2) NOT NULL COMMENT '金额',
  863. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0待支付1已经支付2支付失败',
  864. `is_certify_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否获取过支付宝身份认证信息0否1是',
  865. `pay_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '钻石表id',
  866. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '类型0身份认证1购买钻石',
  867. `number` int(11) NOT NULL DEFAULT '0' COMMENT '充值的钻石数量',
  868. `pay_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付类型0支付宝',
  869. `token` varchar(255) NOT NULL COMMENT '用户保持在线的身份认证',
  870. `pay_time` datetime DEFAULT NULL COMMENT '回调通知时间',
  871. `sn` varchar(255) DEFAULT '' COMMENT '第三方订单号',
  872. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  873. PRIMARY KEY (`id`) USING BTREE,
  874. KEY `uid` (`uid`) USING BTREE
  875. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  876. -- ----------------------------
  877. -- Table structure for dhc_user_product
  878. -- ----------------------------
  879. DROP TABLE IF EXISTS `dhc_user_product`;
  880. CREATE TABLE `dhc_user_product` (
  881. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  882. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  883. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  884. `number` int(11) unsigned DEFAULT '0' COMMENT '产品数量果实',
  885. `frozen` int(11) unsigned DEFAULT '0' COMMENT '产品冻结数量',
  886. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  887. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  888. PRIMARY KEY (`id`) USING BTREE,
  889. UNIQUE KEY `uid` (`uid`,`sid`) USING BTREE
  890. ) ENGINE=InnoDB AUTO_INCREMENT=108103 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户产品仓库表';
  891. -- ----------------------------
  892. -- Table structure for dhc_user_real
  893. -- ----------------------------
  894. DROP TABLE IF EXISTS `dhc_user_real`;
  895. CREATE TABLE `dhc_user_real` (
  896. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  897. `uid` int(11) NOT NULL COMMENT '用户id',
  898. `pid` int(11) NOT NULL COMMENT 'user_pay_order表id',
  899. `name` varchar(255) NOT NULL COMMENT '用户真实姓名',
  900. `idcard` char(18) NOT NULL COMMENT '用户身份证号码 ',
  901. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0待认证1成功2失败',
  902. `certify_id` varchar(255) NOT NULL DEFAULT '',
  903. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  904. PRIMARY KEY (`id`) USING BTREE,
  905. KEY `pid` (`pid`) USING BTREE
  906. ) ENGINE=InnoDB AUTO_INCREMENT=20158 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户实名认证信息(新)';
  907. -- ----------------------------
  908. -- Table structure for dhc_user_real_bak
  909. -- ----------------------------
  910. DROP TABLE IF EXISTS `dhc_user_real_bak`;
  911. CREATE TABLE `dhc_user_real_bak` (
  912. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  913. `uid` int(11) NOT NULL COMMENT '用户id',
  914. `order_sn` varchar(100) NOT NULL COMMENT '订单编号',
  915. `pid` int(11) NOT NULL COMMENT 'user_pay_order表id',
  916. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0待认证1成功2失败',
  917. `token` varchar(255) NOT NULL DEFAULT '' COMMENT '用户保持在线的身份认证',
  918. `certify_id` varchar(255) NOT NULL DEFAULT '',
  919. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  920. PRIMARY KEY (`id`) USING BTREE
  921. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  922. -- ----------------------------
  923. -- Table structure for dhc_user_real_data
  924. -- ----------------------------
  925. DROP TABLE IF EXISTS `dhc_user_real_data`;
  926. CREATE TABLE `dhc_user_real_data` (
  927. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  928. `uid` int(11) NOT NULL COMMENT '用户id',
  929. `order_sn` varchar(100) NOT NULL COMMENT '订单号',
  930. `pid` int(11) NOT NULL COMMENT '支付表id',
  931. `name` varchar(100) NOT NULL COMMENT '用户名',
  932. `card_no` char(18) NOT NULL COMMENT '身份证',
  933. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  934. PRIMARY KEY (`id`) USING BTREE,
  935. KEY `order_sn` (`order_sn`) USING BTREE,
  936. KEY `pid` (`pid`) USING BTREE
  937. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户实名时输入的身份信息(新)';
  938. -- ----------------------------
  939. -- Table structure for dhc_user_recharge
  940. -- ----------------------------
  941. DROP TABLE IF EXISTS `dhc_user_recharge`;
  942. CREATE TABLE `dhc_user_recharge` (
  943. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  944. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  945. `orderNumber` varchar(100) NOT NULL COMMENT '订单号',
  946. `number` int(11) NOT NULL COMMENT '充值数量',
  947. `payType` varchar(100) NOT NULL COMMENT '支付类型',
  948. `payStatus` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '支付状态(1支付成功2待支付3支付失败)',
  949. `createTime` int(11) unsigned NOT NULL COMMENT '创建时间',
  950. PRIMARY KEY (`id`) USING BTREE
  951. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户充值表';
  952. -- ----------------------------
  953. -- Table structure for dhc_user_renascence
  954. -- ----------------------------
  955. DROP TABLE IF EXISTS `dhc_user_renascence`;
  956. CREATE TABLE `dhc_user_renascence` (
  957. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  958. `uid` int(11) NOT NULL COMMENT '重生用户',
  959. `title` varchar(100) NOT NULL COMMENT '产品名称',
  960. `price` decimal(10,5) NOT NULL COMMENT '当前价格',
  961. `number` varchar(100) NOT NULL COMMENT '重生数量',
  962. `createtime` int(11) NOT NULL COMMENT '创建时间',
  963. `charge` decimal(10,5) NOT NULL COMMENT '手续费',
  964. PRIMARY KEY (`id`) USING BTREE
  965. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户产品重生表';
  966. -- ----------------------------
  967. -- Table structure for dhc_user_service
  968. -- ----------------------------
  969. DROP TABLE IF EXISTS `dhc_user_service`;
  970. CREATE TABLE `dhc_user_service` (
  971. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  972. `title` varchar(100) NOT NULL COMMENT '服务名称',
  973. `way` varchar(100) NOT NULL COMMENT '联系方式',
  974. `type` varchar(20) DEFAULT '0' COMMENT '服务类型',
  975. PRIMARY KEY (`id`) USING BTREE
  976. ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='前台服务联系方式展示';
  977. -- ----------------------------
  978. -- Table structure for dhc_user_team
  979. -- ----------------------------
  980. DROP TABLE IF EXISTS `dhc_user_team`;
  981. CREATE TABLE `dhc_user_team` (
  982. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  983. `uid` int(11) NOT NULL COMMENT '用户id',
  984. `parents` text NOT NULL COMMENT '所有级用户',
  985. `direct_amount` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户直推人数',
  986. `team_amount` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户团队推广人数',
  987. `effective_direct` int(11) NOT NULL DEFAULT '0' COMMENT '直推有效用户人数',
  988. `effective_team` int(11) NOT NULL DEFAULT '0' COMMENT '团队有效用户人数',
  989. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  990. PRIMARY KEY (`id`) USING BTREE,
  991. UNIQUE KEY `uid` (`uid`) USING BTREE
  992. ) ENGINE=InnoDB AUTO_INCREMENT=47105 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  993. -- ----------------------------
  994. -- Table structure for dhc_user_team_data
  995. -- ----------------------------
  996. DROP TABLE IF EXISTS `dhc_user_team_data`;
  997. CREATE TABLE `dhc_user_team_data` (
  998. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  999. `uid` int(11) NOT NULL COMMENT '注册用户id',
  1000. `pid` int(11) NOT NULL COMMENT '上级id',
  1001. `level` tinyint(1) NOT NULL COMMENT '第几级上级1直推2二级以此类推',
  1002. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1003. PRIMARY KEY (`id`) USING BTREE,
  1004. KEY `pid` (`pid`,`level`) USING BTREE,
  1005. KEY `uid` (`uid`) USING BTREE
  1006. ) ENGINE=InnoDB AUTO_INCREMENT=345756 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1007. -- ----------------------------
  1008. -- Table structure for dhc_user_team_infinite
  1009. -- ----------------------------
  1010. DROP TABLE IF EXISTS `dhc_user_team_infinite`;
  1011. CREATE TABLE `dhc_user_team_infinite` (
  1012. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1013. `uid` int(11) NOT NULL COMMENT '用户id',
  1014. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1015. `number` int(11) NOT NULL COMMENT '果实数量',
  1016. `xiaoshu` int(11) DEFAULT '0' COMMENT '小数部分',
  1017. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1018. PRIMARY KEY (`id`) USING BTREE,
  1019. KEY `uid` (`uid`) USING BTREE
  1020. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1021. -- ----------------------------
  1022. -- Table structure for dhc_user_team_infinite_date
  1023. -- ----------------------------
  1024. DROP TABLE IF EXISTS `dhc_user_team_infinite_date`;
  1025. CREATE TABLE `dhc_user_team_infinite_date` (
  1026. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1027. `uid` int(11) NOT NULL COMMENT '用户id',
  1028. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1029. `number` int(11) NOT NULL COMMENT '果实数量',
  1030. `xiaoshu` int(11) DEFAULT '0' COMMENT '小数部分',
  1031. `create_at` date NOT NULL COMMENT '创建时间',
  1032. PRIMARY KEY (`id`) USING BTREE,
  1033. KEY `uid` (`uid`) USING BTREE
  1034. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1035. -- ----------------------------
  1036. -- Table structure for dhc_user_team_product
  1037. -- ----------------------------
  1038. DROP TABLE IF EXISTS `dhc_user_team_product`;
  1039. CREATE TABLE `dhc_user_team_product` (
  1040. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1041. `uid` int(11) NOT NULL COMMENT '用户id',
  1042. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1043. `number` int(11) NOT NULL COMMENT '果实数量',
  1044. `xiaoshu` int(4) DEFAULT '0' COMMENT '小数部分',
  1045. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1046. PRIMARY KEY (`id`) USING BTREE,
  1047. KEY `uid` (`uid`) USING BTREE
  1048. ) ENGINE=InnoDB AUTO_INCREMENT=204252 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1049. -- ----------------------------
  1050. -- Table structure for dhc_user_team_product_date
  1051. -- ----------------------------
  1052. DROP TABLE IF EXISTS `dhc_user_team_product_date`;
  1053. CREATE TABLE `dhc_user_team_product_date` (
  1054. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1055. `uid` int(11) NOT NULL COMMENT '用户id',
  1056. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1057. `number` int(11) NOT NULL COMMENT '果实数量',
  1058. `xiaoshu` int(11) DEFAULT '0' COMMENT '小数部分',
  1059. `create_at` date NOT NULL COMMENT '创建时间',
  1060. PRIMARY KEY (`id`) USING BTREE,
  1061. KEY `uid` (`uid`) USING BTREE
  1062. ) ENGINE=InnoDB AUTO_INCREMENT=304426 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1063. -- ----------------------------
  1064. -- Table structure for dhc_user_team_statistics
  1065. -- ----------------------------
  1066. DROP TABLE IF EXISTS `dhc_user_team_statistics`;
  1067. CREATE TABLE `dhc_user_team_statistics` (
  1068. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1069. `uid` int(11) NOT NULL COMMENT '用户',
  1070. `direct_amount` int(11) DEFAULT '0' COMMENT '直推今日新增',
  1071. `team_amount` int(11) DEFAULT '0' COMMENT '团队今日新增',
  1072. `create_at` date NOT NULL COMMENT '日期',
  1073. PRIMARY KEY (`id`) USING BTREE,
  1074. UNIQUE KEY `uid_time` (`uid`,`create_at`) USING BTREE
  1075. ) ENGINE=InnoDB AUTO_INCREMENT=8683 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1076. -- ----------------------------
  1077. -- Table structure for dhc_user_withdraw
  1078. -- ----------------------------
  1079. DROP TABLE IF EXISTS `dhc_user_withdraw`;
  1080. CREATE TABLE `dhc_user_withdraw` (
  1081. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1082. `createtime` int(11) NOT NULL COMMENT '创建时间',
  1083. `accountnumber` varchar(100) NOT NULL COMMENT '银行帐号',
  1084. `goldnumber` int(11) NOT NULL COMMENT '提现金币数量',
  1085. `fee` decimal(10,5) NOT NULL COMMENT '手续费',
  1086. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1审核通过 0 审核中 2已完成 3返回信息有误',
  1087. `uid` int(11) NOT NULL COMMENT '用户id',
  1088. `bankaccount` varchar(100) NOT NULL COMMENT '收款开户银行',
  1089. `withdrawtype` varchar(4) DEFAULT NULL COMMENT '提现类型(1行内转账 2 同城跨行3异地跨行)',
  1090. `province` varchar(100) NOT NULL COMMENT '省份/直辖市',
  1091. `city` varchar(100) NOT NULL COMMENT '市/县',
  1092. `costname` varchar(100) NOT NULL COMMENT '消费类型',
  1093. `realname` varchar(100) DEFAULT NULL COMMENT '提现用户',
  1094. `voucher` text COMMENT '支付凭证',
  1095. PRIMARY KEY (`id`) USING BTREE
  1096. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户提现表';
  1097. -- ----------------------------
  1098. -- Table structure for dhc_virtual_withdraw
  1099. -- ----------------------------
  1100. DROP TABLE IF EXISTS `dhc_virtual_withdraw`;
  1101. CREATE TABLE `dhc_virtual_withdraw` (
  1102. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1103. `uid` int(11) NOT NULL COMMENT '用户id',
  1104. `goldnumber` decimal(11,5) NOT NULL COMMENT '提现金币数量',
  1105. `number` decimal(11,5) NOT NULL COMMENT '提现数量',
  1106. `address` varchar(255) NOT NULL COMMENT '收货地址',
  1107. `createtime` int(11) NOT NULL COMMENT '提现时间',
  1108. `rebate` decimal(10,2) NOT NULL COMMENT '兑换比例',
  1109. `status` tinyint(4) DEFAULT '0' COMMENT '审核状态',
  1110. PRIMARY KEY (`id`) USING BTREE
  1111. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='虚拟币提现表';
  1112. -- ----------------------------
  1113. -- Table structure for dhc_wallet_log
  1114. -- ----------------------------
  1115. DROP TABLE IF EXISTS `dhc_wallet_log`;
  1116. CREATE TABLE `dhc_wallet_log` (
  1117. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1118. `uid` int(11) NOT NULL COMMENT '用户id',
  1119. `num` int(11) NOT NULL COMMENT 'k钻数量',
  1120. `actual_num` int(11) NOT NULL COMMENT '实际数量(减去手续费)',
  1121. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0转入到农场1转出到钱包',
  1122. `content` varchar(255) NOT NULL COMMENT '参数',
  1123. `create_at` int(11) NOT NULL COMMENT '时间',
  1124. PRIMARY KEY (`id`) USING BTREE,
  1125. KEY `uid` (`uid`) USING BTREE
  1126. ) ENGINE=InnoDB AUTO_INCREMENT=31986 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='农场-钱包转入转出记录';
  1127. -- ----------------------------
  1128. -- Table structure for dhc_withdraw_address
  1129. -- ----------------------------
  1130. DROP TABLE IF EXISTS `dhc_withdraw_address`;
  1131. CREATE TABLE `dhc_withdraw_address` (
  1132. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  1133. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  1134. `address` varchar(255) NOT NULL COMMENT '收货地址',
  1135. `createtime` int(11) NOT NULL COMMENT '添加时间',
  1136. PRIMARY KEY (`id`) USING BTREE
  1137. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户虚拟币提现收货地址表';
  1138. SET FOREIGN_KEY_CHECKS = 1;