online.sql 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  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_menus
  203. -- ----------------------------
  204. DROP TABLE IF EXISTS `dhc_menus`;
  205. CREATE TABLE `dhc_menus` (
  206. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  207. `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父级ID',
  208. `title` varchar(255) NOT NULL,
  209. `icon` varchar(255) NOT NULL,
  210. `route` varchar(255) NOT NULL,
  211. PRIMARY KEY (`id`) USING BTREE
  212. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  213. -- ----------------------------
  214. -- Table structure for dhc_message_error_log
  215. -- ----------------------------
  216. DROP TABLE IF EXISTS `dhc_message_error_log`;
  217. CREATE TABLE `dhc_message_error_log` (
  218. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  219. `content` varchar(255) NOT NULL COMMENT '内容',
  220. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  221. PRIMARY KEY (`id`) USING BTREE
  222. ) ENGINE=InnoDB AUTO_INCREMENT=6656 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='短信发送失败日志表';
  223. -- ----------------------------
  224. -- Table structure for dhc_operator_log
  225. -- ----------------------------
  226. DROP TABLE IF EXISTS `dhc_operator_log`;
  227. CREATE TABLE `dhc_operator_log` (
  228. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  229. `uid` int(11) NOT NULL COMMENT '用户id',
  230. `title` varchar(255) NOT NULL COMMENT '操作内容',
  231. `operator` int(11) NOT NULL COMMENT '操作员',
  232. `createtime` int(11) NOT NULL COMMENT '创建时间',
  233. PRIMARY KEY (`id`) USING BTREE
  234. ) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='后台操作员操作日志';
  235. -- ----------------------------
  236. -- Table structure for dhc_orchard_animal
  237. -- ----------------------------
  238. DROP TABLE IF EXISTS `dhc_orchard_animal`;
  239. CREATE TABLE `dhc_orchard_animal` (
  240. `id` int(11) NOT NULL AUTO_INCREMENT,
  241. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  242. `aid` tinyint(1) unsigned NOT NULL DEFAULT '0',
  243. `nums` int(11) unsigned NOT NULL DEFAULT '0',
  244. `title` varchar(50) NOT NULL,
  245. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  246. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  247. `days` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '剩余天数',
  248. `info` varchar(500) DEFAULT NULL COMMENT '备注信息',
  249. `feedtime` int(11) unsigned NOT NULL DEFAULT '0',
  250. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  251. `feednums` int(11) unsigned NOT NULL DEFAULT '0',
  252. PRIMARY KEY (`id`) USING BTREE,
  253. KEY `uid` (`uid`,`aid`,`status`) USING BTREE
  254. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='农场 牧场信息表';
  255. -- ----------------------------
  256. -- Table structure for dhc_orchard_background
  257. -- ----------------------------
  258. DROP TABLE IF EXISTS `dhc_orchard_background`;
  259. CREATE TABLE `dhc_orchard_background` (
  260. `id` int(11) NOT NULL AUTO_INCREMENT,
  261. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  262. `backId` tinyint(11) unsigned NOT NULL DEFAULT '1',
  263. `backName` varchar(50) NOT NULL DEFAULT '0',
  264. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  265. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  266. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  267. PRIMARY KEY (`id`) USING BTREE,
  268. UNIQUE KEY `uid` (`uid`,`backId`) USING BTREE
  269. ) ENGINE=InnoDB AUTO_INCREMENT=44986 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园背景管理';
  270. -- ----------------------------
  271. -- Table structure for dhc_orchard_chest
  272. -- ----------------------------
  273. DROP TABLE IF EXISTS `dhc_orchard_chest`;
  274. CREATE TABLE `dhc_orchard_chest` (
  275. `id` int(11) NOT NULL AUTO_INCREMENT,
  276. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  277. `tId` tinyint(3) unsigned NOT NULL DEFAULT '0',
  278. `nums` int(11) unsigned NOT NULL DEFAULT '0',
  279. `price` decimal(11,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '钻石价格',
  280. `uidStr` varchar(500) DEFAULT NULL COMMENT '会员信息',
  281. `starttime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
  282. `endtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
  283. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  284. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  285. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  286. PRIMARY KEY (`id`) USING BTREE,
  287. UNIQUE KEY `uid` (`uid`,`tId`) USING BTREE
  288. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宝箱记录';
  289. -- ----------------------------
  290. -- Table structure for dhc_orchard_chestlist
  291. -- ----------------------------
  292. DROP TABLE IF EXISTS `dhc_orchard_chestlist`;
  293. CREATE TABLE `dhc_orchard_chestlist` (
  294. `id` int(11) NOT NULL AUTO_INCREMENT,
  295. `uid` int(11) unsigned DEFAULT '0',
  296. `tId` int(11) unsigned DEFAULT '0',
  297. `cid` int(11) unsigned DEFAULT '0',
  298. `disUid` int(11) unsigned DEFAULT '0',
  299. `price` decimal(11,2) unsigned DEFAULT '0.00',
  300. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  301. `starttime` int(11) unsigned DEFAULT '0' COMMENT '开始时间',
  302. `endtime` int(11) unsigned DEFAULT '0',
  303. `createtime` int(11) unsigned DEFAULT '0',
  304. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  305. `isRed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  306. PRIMARY KEY (`id`) USING BTREE,
  307. UNIQUE KEY `uid` (`uid`,`tId`,`cid`,`createtime`) USING BTREE
  308. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宝箱邀请记录表';
  309. -- ----------------------------
  310. -- Table structure for dhc_orchard_config
  311. -- ----------------------------
  312. DROP TABLE IF EXISTS `dhc_orchard_config`;
  313. CREATE TABLE `dhc_orchard_config` (
  314. `id` int(11) NOT NULL AUTO_INCREMENT,
  315. `title` varchar(50) NOT NULL,
  316. `total` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存种子',
  317. `diamond` text NOT NULL COMMENT '果实兑换钻石信息',
  318. `upGrade` tinyint(2) unsigned NOT NULL DEFAULT '12' COMMENT '用户最高等级',
  319. `landInfo` text NOT NULL COMMENT '土地信息',
  320. `landFruit` varchar(500) NOT NULL DEFAULT '0' COMMENT '产生果实信息',
  321. `landUpInfo` varchar(600) NOT NULL DEFAULT '0' COMMENT '土地升级信息',
  322. `duiInfo` varchar(500) NOT NULL DEFAULT '0' COMMENT '兑换设置',
  323. `houseInfo` text NOT NULL COMMENT '房屋升级耗材',
  324. `dogInfo` text NOT NULL COMMENT '宠物升级经验信息',
  325. `statueInfo` varchar(500) NOT NULL DEFAULT '0' COMMENT '神像设置',
  326. `recharge` varchar(500) NOT NULL DEFAULT '0' COMMENT '充值信息',
  327. `background` varchar(500) NOT NULL DEFAULT '0' COMMENT '背景信息',
  328. `rebate` varchar(500) NOT NULL DEFAULT '0' COMMENT '充值返佣金额',
  329. `package` varchar(300) DEFAULT '0' COMMENT '礼包信息',
  330. `indemnify` varchar(300) NOT NULL DEFAULT '0' COMMENT '补偿礼包',
  331. `newGiftPack` varchar(300) DEFAULT NULL COMMENT '新人礼包信息',
  332. `realName` varchar(500) NOT NULL COMMENT '认证礼包',
  333. `sign` varchar(500) NOT NULL DEFAULT '0' COMMENT '签到信息',
  334. `steal` text NOT NULL COMMENT '好友互偷信息',
  335. `downgrade` text COMMENT '土地降级信息',
  336. `EMG` varchar(100) DEFAULT NULL COMMENT 'emg授权',
  337. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  338. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  339. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  340. `Ouid` int(11) unsigned NOT NULL DEFAULT '0',
  341. `pasture` text NOT NULL COMMENT '牧场信息',
  342. `SDiamondHave` int(11) unsigned DEFAULT NULL COMMENT '推荐人需拥有钻石',
  343. `authCodeInfo` varchar(500) DEFAULT NULL COMMENT '商城对接授权信息',
  344. `team` text NOT NULL COMMENT '推广设置',
  345. `teamPoster` text NOT NULL COMMENT '推广海报',
  346. `teamRule` text NOT NULL COMMENT '团队规则',
  347. PRIMARY KEY (`id`) USING BTREE
  348. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园参数';
  349. -- ----------------------------
  350. -- Table structure for dhc_orchard_dog
  351. -- ----------------------------
  352. DROP TABLE IF EXISTS `dhc_orchard_dog`;
  353. CREATE TABLE `dhc_orchard_dog` (
  354. `id` int(11) NOT NULL AUTO_INCREMENT,
  355. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户编号',
  356. `nickname` varchar(50) NOT NULL COMMENT '用户昵称',
  357. `mobile` varchar(50) NOT NULL COMMENT '用户电话',
  358. `goodsId` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商品id或0',
  359. `dogName` varchar(50) NOT NULL COMMENT '宠物昵称',
  360. `dogLevel` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '宠物等级',
  361. `experience` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物经验值',
  362. `power` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '体力活力动力值',
  363. `powerUlimit` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '体力生活上限',
  364. `otherInfo` varchar(500) NOT NULL DEFAULT '0' COMMENT '宠物其他基本信息',
  365. `harvestTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '收货时效',
  366. `sowingTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '播种时效',
  367. `speed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '进度玫瑰1000 规0',
  368. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评分',
  369. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  370. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  371. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  372. `optime` int(11) unsigned NOT NULL DEFAULT '0',
  373. `isDel` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '删除状态 1',
  374. PRIMARY KEY (`id`) USING BTREE,
  375. KEY `uid` (`uid`) USING BTREE
  376. ) ENGINE=InnoDB AUTO_INCREMENT=44260 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园宠物记录表';
  377. -- ----------------------------
  378. -- Table structure for dhc_orchard_double_effect
  379. -- ----------------------------
  380. DROP TABLE IF EXISTS `dhc_orchard_double_effect`;
  381. CREATE TABLE `dhc_orchard_double_effect` (
  382. `id` int(11) NOT NULL AUTO_INCREMENT,
  383. `uid` int(11) NOT NULL,
  384. `types` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型',
  385. `mark` varchar(50) NOT NULL DEFAULT '0',
  386. `nums` int(11) unsigned NOT NULL DEFAULT '0',
  387. `msg` varchar(500) NOT NULL DEFAULT '0' COMMENT '消息',
  388. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  389. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  390. `lasttime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '到期时间',
  391. PRIMARY KEY (`id`) USING BTREE
  392. ) ENGINE=InnoDB AUTO_INCREMENT=4202 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
  393. -- ----------------------------
  394. -- Table structure for dhc_orchard_downgrade
  395. -- ----------------------------
  396. DROP TABLE IF EXISTS `dhc_orchard_downgrade`;
  397. CREATE TABLE `dhc_orchard_downgrade` (
  398. `id` int(11) NOT NULL AUTO_INCREMENT,
  399. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  400. `types` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型 1房屋 2 土地 3记录',
  401. `houseLv` int(11) unsigned NOT NULL DEFAULT '0',
  402. `grade` int(11) unsigned NOT NULL DEFAULT '0',
  403. `htime` int(11) unsigned NOT NULL DEFAULT '0',
  404. `info` varchar(500) NOT NULL,
  405. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  406. `status` tinyint(1) unsigned NOT NULL DEFAULT '1',
  407. PRIMARY KEY (`id`) USING BTREE,
  408. UNIQUE KEY `uid` (`uid`,`houseLv`,`grade`,`htime`) USING BTREE
  409. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='房屋掉级记录';
  410. -- ----------------------------
  411. -- Table structure for dhc_orchard_goods
  412. -- ----------------------------
  413. DROP TABLE IF EXISTS `dhc_orchard_goods`;
  414. CREATE TABLE `dhc_orchard_goods` (
  415. `tId` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品ID',
  416. `type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '定义类型',
  417. `tName` varchar(50) NOT NULL COMMENT '商品名字',
  418. `depict` varchar(500) NOT NULL COMMENT '商品简介',
  419. `price` decimal(10,3) unsigned NOT NULL DEFAULT '0.000' COMMENT '商品价格',
  420. `effect` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '效果值',
  421. `pack` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '一次性购买量 打包购买',
  422. `buyOut` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '购买上限',
  423. `cost` varchar(500) NOT NULL COMMENT '宝箱需要信息',
  424. `chanceInfo` varchar(2000) NOT NULL COMMENT '各商品概率',
  425. `giftDetail` varchar(500) NOT NULL COMMENT '推荐礼包详细信息',
  426. `reclaimLimit` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '会员购买需等级',
  427. `seedUser` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '赠送种子用户',
  428. `seedShop` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '返回平台种子数量',
  429. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  430. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  431. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态0禁用1启用',
  432. `isDel` tinyint(1) NOT NULL DEFAULT '0',
  433. PRIMARY KEY (`tId`) USING BTREE
  434. ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园商品表';
  435. -- ----------------------------
  436. -- Table structure for dhc_orchard_hail_fellow
  437. -- ----------------------------
  438. DROP TABLE IF EXISTS `dhc_orchard_hail_fellow`;
  439. CREATE TABLE `dhc_orchard_hail_fellow` (
  440. `id` int(11) NOT NULL AUTO_INCREMENT,
  441. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  442. `huid` int(11) unsigned NOT NULL DEFAULT '0',
  443. `nickname` varchar(50) NOT NULL,
  444. `mobile` varchar(50) NOT NULL,
  445. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1 通过 0 审核 9 拒绝',
  446. `isAdd` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '发起身份',
  447. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  448. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  449. `isDel` tinyint(1) unsigned NOT NULL DEFAULT '0',
  450. PRIMARY KEY (`id`) USING BTREE
  451. ) ENGINE=InnoDB AUTO_INCREMENT=2201 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园好友记录表';
  452. -- ----------------------------
  453. -- Table structure for dhc_orchard_land
  454. -- ----------------------------
  455. DROP TABLE IF EXISTS `dhc_orchard_land`;
  456. CREATE TABLE `dhc_orchard_land` (
  457. `id` int(11) NOT NULL AUTO_INCREMENT,
  458. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  459. `nickname` varchar(50) NOT NULL DEFAULT '无昵称',
  460. `mobile` varchar(50) NOT NULL DEFAULT '0',
  461. `landLevel` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '土地类型 1普 2红 3 黑 4 金',
  462. `landId` tinyint(2) NOT NULL DEFAULT '1',
  463. `goodsId` int(11) NOT NULL DEFAULT '0' COMMENT '产生种子ID',
  464. `goodsNums` int(11) NOT NULL DEFAULT '0' COMMENT '产生种子数量',
  465. `goodsName` varchar(50) NOT NULL DEFAULT '无',
  466. `fertilize` varchar(500) NOT NULL DEFAULT '0' COMMENT '施肥次数状态',
  467. `plowing` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '翻地状态',
  468. `landStatus` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '土地状态0未种植1种子2嫩芽期3生长期4成熟期5枯萎期',
  469. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  470. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后一次更新时间',
  471. `optime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户操作时间',
  472. `seedtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '种子播种时间',
  473. `wcan` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '浇水状态',
  474. `hcide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '除草状态',
  475. `icide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '除虫状态',
  476. PRIMARY KEY (`id`) USING BTREE,
  477. UNIQUE KEY `uid_2` (`uid`,`landId`) USING BTREE,
  478. KEY `uid` (`uid`) USING BTREE
  479. ) ENGINE=InnoDB AUTO_INCREMENT=45305 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='土地信息';
  480. -- ----------------------------
  481. -- Table structure for dhc_orchard_logs
  482. -- ----------------------------
  483. DROP TABLE IF EXISTS `dhc_orchard_logs`;
  484. CREATE TABLE `dhc_orchard_logs` (
  485. `id` int(11) NOT NULL AUTO_INCREMENT,
  486. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  487. `mobile` varchar(50) NOT NULL,
  488. `disUid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '来源uid',
  489. `landId` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '土地编号',
  490. `types` varchar(50) NOT NULL,
  491. `nums` decimal(11,2) NOT NULL DEFAULT '0.00',
  492. `msg` varchar(500) NOT NULL,
  493. `dataInfo` varchar(5000) NOT NULL DEFAULT '0' COMMENT '附带数据存储',
  494. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  495. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1否2是',
  496. PRIMARY KEY (`id`) USING BTREE,
  497. KEY `uid` (`uid`) USING BTREE,
  498. KEY `uid_2` (`uid`,`landId`,`types`) USING BTREE
  499. ) ENGINE=InnoDB AUTO_INCREMENT=5776043 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园日志表';
  500. -- ----------------------------
  501. -- Table structure for dhc_orchard_order
  502. -- ----------------------------
  503. DROP TABLE IF EXISTS `dhc_orchard_order`;
  504. CREATE TABLE `dhc_orchard_order` (
  505. `id` int(11) NOT NULL AUTO_INCREMENT,
  506. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会员uid',
  507. `nickname` varchar(50) NOT NULL COMMENT '会员信息',
  508. `mobile` varchar(50) NOT NULL COMMENT '会员信息',
  509. `orderId` varchar(50) NOT NULL COMMENT '订单号',
  510. `types` varchar(50) NOT NULL COMMENT '类型',
  511. `coing` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '扣除数量',
  512. `fruit` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '获得数量',
  513. `payStatus` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付状态',
  514. `payTime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付时间',
  515. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  516. PRIMARY KEY (`id`) USING BTREE,
  517. KEY `uid` (`uid`) USING BTREE
  518. ) ENGINE=InnoDB AUTO_INCREMENT=52899 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='淘金果园订单记录表';
  519. -- ----------------------------
  520. -- Table structure for dhc_orchard_package
  521. -- ----------------------------
  522. DROP TABLE IF EXISTS `dhc_orchard_package`;
  523. CREATE TABLE `dhc_orchard_package` (
  524. `id` int(11) NOT NULL AUTO_INCREMENT,
  525. `uid` int(11) unsigned NOT NULL,
  526. `types` varchar(50) NOT NULL,
  527. `info` varchar(500) NOT NULL DEFAULT '0',
  528. `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  529. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  530. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  531. PRIMARY KEY (`id`) USING BTREE,
  532. KEY `uid` (`uid`) USING BTREE
  533. ) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园礼包';
  534. -- ----------------------------
  535. -- Table structure for dhc_orchard_sign
  536. -- ----------------------------
  537. DROP TABLE IF EXISTS `dhc_orchard_sign`;
  538. CREATE TABLE `dhc_orchard_sign` (
  539. `id` int(11) NOT NULL AUTO_INCREMENT,
  540. `uid` int(11) unsigned NOT NULL DEFAULT '0',
  541. `config` varchar(500) NOT NULL DEFAULT '0',
  542. `signLevel` tinyint(1) unsigned NOT NULL DEFAULT '0',
  543. `info` varchar(500) NOT NULL DEFAULT '0',
  544. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  545. PRIMARY KEY (`id`) USING BTREE
  546. ) ENGINE=InnoDB AUTO_INCREMENT=163571 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园签到记录表';
  547. -- ----------------------------
  548. -- Table structure for dhc_orchard_statue
  549. -- ----------------------------
  550. DROP TABLE IF EXISTS `dhc_orchard_statue`;
  551. CREATE TABLE `dhc_orchard_statue` (
  552. `id` int(11) NOT NULL AUTO_INCREMENT,
  553. `tid` int(11) NOT NULL COMMENT '神像id',
  554. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'uid',
  555. `model` varchar(50) NOT NULL DEFAULT '0' COMMENT '类型',
  556. `statueName` varchar(50) NOT NULL DEFAULT '0' COMMENT '名称',
  557. `nums` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兑换数量',
  558. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  559. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  560. `lasttime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '过期时间',
  561. PRIMARY KEY (`id`) USING BTREE,
  562. UNIQUE KEY `uid_2` (`uid`,`tid`) USING BTREE,
  563. KEY `uid` (`uid`) USING BTREE
  564. ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园神像记录表';
  565. -- ----------------------------
  566. -- Table structure for dhc_orchard_steal
  567. -- ----------------------------
  568. DROP TABLE IF EXISTS `dhc_orchard_steal`;
  569. CREATE TABLE `dhc_orchard_steal` (
  570. `id` int(11) NOT NULL AUTO_INCREMENT,
  571. `uid` int(11) NOT NULL,
  572. `huid` int(11) NOT NULL,
  573. `dogInfo` text NOT NULL,
  574. `dogStatus` tinyint(1) NOT NULL DEFAULT '0' COMMENT '宠物状态',
  575. `chance` tinyint(4) unsigned NOT NULL DEFAULT '0',
  576. `mt` tinyint(3) unsigned NOT NULL DEFAULT '0',
  577. `landInfo` varchar(5000) NOT NULL DEFAULT '0',
  578. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  579. PRIMARY KEY (`id`) USING BTREE
  580. ) ENGINE=InnoDB AUTO_INCREMENT=22662 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
  581. -- ----------------------------
  582. -- Table structure for dhc_orchard_user
  583. -- ----------------------------
  584. DROP TABLE IF EXISTS `dhc_orchard_user`;
  585. CREATE TABLE `dhc_orchard_user` (
  586. `id` int(11) NOT NULL AUTO_INCREMENT,
  587. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '会员uid',
  588. `nickname` varchar(50) NOT NULL DEFAULT '无' COMMENT '昵称',
  589. `mobile` varchar(50) NOT NULL DEFAULT '0',
  590. `avatar` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '头像选择id',
  591. `diamonds` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钻石',
  592. `skin` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '皮肤',
  593. `wood` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '木材',
  594. `stone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '石材',
  595. `steel` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钢材',
  596. `grade` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '房屋等级',
  597. `dogFood1` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '普通狗粮',
  598. `dogFood2` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '优质狗粮2',
  599. `roseSeed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玫瑰花种子',
  600. `seed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '普通种子 废弃',
  601. `choe` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '铜锄头',
  602. `shoe` int(1) unsigned NOT NULL DEFAULT '0' COMMENT '银锄头',
  603. `cchest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '铜宝箱',
  604. `schest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '银宝箱',
  605. `gchest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '金宝箱',
  606. `dchest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钻石宝箱',
  607. `ccchest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '超级铜宝箱',
  608. `cschest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '超级银宝箱',
  609. `cgchest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '超级金宝箱',
  610. `cfert` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '化肥',
  611. `wcan` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '洒水壶',
  612. `hcide` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '除草剂',
  613. `icide` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '除虫剂',
  614. `emerald` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '绿宝石',
  615. `purplegem` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '紫宝石',
  616. `sapphire` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '蓝宝石',
  617. `topaz` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '黄宝石',
  618. `gifts` int(11) NOT NULL DEFAULT '0' COMMENT '推荐礼包个数',
  619. `kuguazhi` int(11) unsigned NOT NULL DEFAULT '0',
  620. `feed` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '饲料',
  621. `pasture` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '牧场等级',
  622. `createtime` int(11) unsigned NOT NULL DEFAULT '0',
  623. `updatetime` int(11) unsigned NOT NULL DEFAULT '0',
  624. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态 1正常 9 禁用',
  625. PRIMARY KEY (`id`) USING BTREE,
  626. UNIQUE KEY `uid` (`uid`) USING BTREE
  627. ) ENGINE=InnoDB AUTO_INCREMENT=45110 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='果园会员信息表';
  628. -- ----------------------------
  629. -- Table structure for dhc_pay
  630. -- ----------------------------
  631. DROP TABLE IF EXISTS `dhc_pay`;
  632. CREATE TABLE `dhc_pay` (
  633. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  634. `price` decimal(10,2) unsigned NOT NULL COMMENT '价格',
  635. `num` int(11) unsigned NOT NULL COMMENT '钻石数量',
  636. `additional` int(11) unsigned NOT NULL COMMENT '赠送的钻石数',
  637. `all` int(11) NOT NULL COMMENT '钻石总数',
  638. PRIMARY KEY (`id`) USING BTREE
  639. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户购买钻石列表(新)';
  640. -- ----------------------------
  641. -- Table structure for dhc_raiders_reward
  642. -- ----------------------------
  643. DROP TABLE IF EXISTS `dhc_raiders_reward`;
  644. CREATE TABLE `dhc_raiders_reward` (
  645. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  646. `rid` int(11) unsigned NOT NULL COMMENT '攻略id',
  647. `uid` int(11) unsigned NOT NULL COMMENT '打赏用户id',
  648. `auth` int(11) unsigned NOT NULL COMMENT '作者id',
  649. `productid` int(11) unsigned NOT NULL COMMENT '打赏产品id',
  650. `productnum` int(11) unsigned NOT NULL COMMENT '打赏产品数量',
  651. `createtime` int(11) unsigned NOT NULL COMMENT '打赏时间',
  652. `discuss` varchar(100) NOT NULL COMMENT '评论',
  653. PRIMARY KEY (`id`) USING BTREE
  654. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='打赏记录表';
  655. -- ----------------------------
  656. -- Table structure for dhc_strategy
  657. -- ----------------------------
  658. DROP TABLE IF EXISTS `dhc_strategy`;
  659. CREATE TABLE `dhc_strategy` (
  660. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  661. `cid` int(11) NOT NULL COMMENT '分类id',
  662. `title` varchar(255) NOT NULL COMMENT '标题',
  663. `thumb` varchar(255) NOT NULL COMMENT '图片',
  664. `content` text NOT NULL COMMENT '内容',
  665. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
  666. PRIMARY KEY (`id`) USING BTREE
  667. ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='游戏攻略内容(新)';
  668. -- ----------------------------
  669. -- Table structure for dhc_strategy_category
  670. -- ----------------------------
  671. DROP TABLE IF EXISTS `dhc_strategy_category`;
  672. CREATE TABLE `dhc_strategy_category` (
  673. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  674. `name` varchar(50) NOT NULL,
  675. `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  676. PRIMARY KEY (`id`) USING BTREE
  677. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='游戏攻略分类(新)';
  678. -- ----------------------------
  679. -- Table structure for dhc_test
  680. -- ----------------------------
  681. DROP TABLE IF EXISTS `dhc_test`;
  682. CREATE TABLE `dhc_test` (
  683. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  684. `content` text NOT NULL COMMENT '测试内容',
  685. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  686. PRIMARY KEY (`id`) USING BTREE
  687. ) ENGINE=InnoDB AUTO_INCREMENT=8718 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='存放测试数据的表(新)';
  688. -- ----------------------------
  689. -- Table structure for dhc_trade_dailydate
  690. -- ----------------------------
  691. DROP TABLE IF EXISTS `dhc_trade_dailydate`;
  692. CREATE TABLE `dhc_trade_dailydate` (
  693. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  694. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  695. `OpeningPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '开盘价格',
  696. `ClosingPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '收盘价格',
  697. `HighestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最高价格',
  698. `LowestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最低价格',
  699. `Volume` int(11) unsigned DEFAULT '0' COMMENT '成交数量',
  700. `Date` int(11) unsigned NOT NULL COMMENT '当日时间',
  701. PRIMARY KEY (`id`) USING BTREE
  702. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='日数据表';
  703. -- ----------------------------
  704. -- Table structure for dhc_trade_dailydates
  705. -- ----------------------------
  706. DROP TABLE IF EXISTS `dhc_trade_dailydates`;
  707. CREATE TABLE `dhc_trade_dailydates` (
  708. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  709. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  710. `OpeningPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '开盘价格',
  711. `ClosingPrice` decimal(10,5) unsigned DEFAULT '0.00000' COMMENT '收盘价格',
  712. `HighestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最高价格',
  713. `LowestPrice` decimal(10,5) unsigned NOT NULL COMMENT '最低价格',
  714. `Volume` int(11) unsigned DEFAULT '0' COMMENT '成交数量',
  715. `Date` int(11) unsigned NOT NULL COMMENT '当日时间',
  716. PRIMARY KEY (`id`) USING BTREE
  717. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='日数据表';
  718. -- ----------------------------
  719. -- Table structure for dhc_trade_logs
  720. -- ----------------------------
  721. DROP TABLE IF EXISTS `dhc_trade_logs`;
  722. CREATE TABLE `dhc_trade_logs` (
  723. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  724. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  725. `mobile` varchar(100) NOT NULL COMMENT '手机号',
  726. `num` decimal(10,5) NOT NULL COMMENT '数量',
  727. `logs` varchar(255) NOT NULL COMMENT '操作内容',
  728. `createtime` int(11) unsigned NOT NULL COMMENT '操作时间',
  729. `status` tinyint(4) unsigned NOT NULL COMMENT '状态',
  730. `type` varchar(100) NOT NULL COMMENT '操作类型',
  731. PRIMARY KEY (`id`) USING BTREE
  732. ) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='大盘日志表';
  733. -- ----------------------------
  734. -- Table structure for dhc_trade_order
  735. -- ----------------------------
  736. DROP TABLE IF EXISTS `dhc_trade_order`;
  737. CREATE TABLE `dhc_trade_order` (
  738. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  739. `uid` int(11) unsigned NOT NULL COMMENT '挂单用户id',
  740. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  741. `number` int(11) unsigned NOT NULL COMMENT '挂单数量',
  742. `price` decimal(10,5) unsigned NOT NULL COMMENT '挂单价格',
  743. `goods` varchar(255) NOT NULL COMMENT '挂单货物名称',
  744. `createtime` int(11) unsigned NOT NULL COMMENT '挂单时间',
  745. `type` tinyint(4) NOT NULL COMMENT '挂单类型',
  746. `status` int(11) unsigned NOT NULL COMMENT '挂单状态',
  747. `endtime` int(11) unsigned DEFAULT NULL COMMENT '结束时间',
  748. `dealnum` int(11) unsigned DEFAULT '0' COMMENT '已成交数量',
  749. `bid` int(11) unsigned DEFAULT NULL COMMENT '交易用户id',
  750. `fee` decimal(10,5) DEFAULT '0.00000' COMMENT '手续费',
  751. `dealprice` decimal(10,5) DEFAULT NULL COMMENT '成交价格',
  752. `dealMoney` decimal(11,5) DEFAULT '0.00000' COMMENT '成交价格',
  753. `crontabtime` int(11) unsigned NOT NULL DEFAULT '0',
  754. PRIMARY KEY (`id`) USING BTREE,
  755. KEY `uid` (`uid`) USING BTREE,
  756. KEY `sid` (`sid`) USING BTREE
  757. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='挂单表';
  758. -- ----------------------------
  759. -- Table structure for dhc_trade_product
  760. -- ----------------------------
  761. DROP TABLE IF EXISTS `dhc_trade_product`;
  762. CREATE TABLE `dhc_trade_product` (
  763. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  764. `thumb` varchar(255) NOT NULL COMMENT '产品缩略图',
  765. `startprice` decimal(10,5) unsigned NOT NULL COMMENT '初始价格',
  766. `createtime` int(11) NOT NULL COMMENT '创建时间',
  767. `status` tinyint(4) NOT NULL COMMENT '状态0停用1启用',
  768. `title` varchar(255) NOT NULL COMMENT '产品名称',
  769. `depict` varchar(500) DEFAULT NULL COMMENT '简介',
  770. `rise` decimal(10,4) NOT NULL COMMENT '涨幅',
  771. `fall` decimal(10,4) NOT NULL COMMENT '跌幅',
  772. `poundage` decimal(10,4) NOT NULL COMMENT '交易手续费',
  773. `seedTime` decimal(5,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '种子周期',
  774. `sproutingTime` decimal(5,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '发芽周期',
  775. `growTime` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT '生长周期',
  776. `displayorder` int(11) unsigned DEFAULT '0',
  777. `tradeStatus` tinyint(4) DEFAULT '1' COMMENT '开盘状态',
  778. PRIMARY KEY (`id`) USING BTREE
  779. ) ENGINE=InnoDB AUTO_INCREMENT=90005 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='产品表';
  780. -- ----------------------------
  781. -- Table structure for dhc_user
  782. -- ----------------------------
  783. DROP TABLE IF EXISTS `dhc_user`;
  784. CREATE TABLE `dhc_user` (
  785. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  786. `is_real` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已经实名0否1是',
  787. `user` varchar(50) NOT NULL COMMENT '用户账号',
  788. `superior` varchar(2000) NOT NULL DEFAULT '0' COMMENT '导师推广码',
  789. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '用户状态(1启用 9 停用)',
  790. `salt` varchar(100) NOT NULL COMMENT '盐值',
  791. `token` varchar(500) DEFAULT NULL COMMENT 'token 验证信息',
  792. `password` varchar(100) NOT NULL COMMENT '密码',
  793. `nickname` varchar(255) DEFAULT NULL COMMENT '用户昵称',
  794. `avatar` varchar(255) DEFAULT NULL COMMENT '用户头像',
  795. `balance` int(11) DEFAULT '0' COMMENT '用户余额',
  796. `coing` decimal(12,5) unsigned DEFAULT '0.00000' COMMENT '用户金币数量',
  797. `level` int(11) DEFAULT '1' COMMENT '用户等级',
  798. `realname` varchar(255) DEFAULT '' COMMENT '用户真实姓名',
  799. `idcard` varchar(255) DEFAULT '' COMMENT '用户身份证号',
  800. `idcardFront` varchar(255) DEFAULT NULL COMMENT '身份证正面照片',
  801. `idcardback` varchar(255) DEFAULT NULL COMMENT '身份证反面照片',
  802. `Frozen` decimal(15,5) unsigned DEFAULT '0.00000' COMMENT '金币冻结数量',
  803. `spread` int(11) DEFAULT '0' COMMENT '推广码',
  804. `tencent` varchar(100) DEFAULT NULL COMMENT 'qq号',
  805. `wechet` varchar(100) DEFAULT NULL COMMENT '微信',
  806. `telphone` varchar(100) DEFAULT NULL COMMENT '手机号',
  807. `phone` varchar(100) DEFAULT NULL COMMENT '联系手机号',
  808. `dueBankAccount` varchar(255) DEFAULT NULL COMMENT '开户行用户名',
  809. `dueBank` varchar(255) DEFAULT NULL COMMENT '提现银行',
  810. `accountNumber` varchar(255) DEFAULT NULL COMMENT '提现账户',
  811. `province` varchar(100) DEFAULT NULL COMMENT '省/直辖市',
  812. `city` varchar(100) DEFAULT NULL COMMENT '市/县',
  813. `country` varchar(100) DEFAULT NULL COMMENT '开户区',
  814. `bankaccount` varchar(100) DEFAULT NULL COMMENT '开户行',
  815. `channelRebate` float(10,2) unsigned DEFAULT '0.00' COMMENT '渠道分佣比例',
  816. `salesmanRebate` varchar(500) DEFAULT NULL COMMENT '推广佣金',
  817. `usergroup` varchar(100) DEFAULT '普通用户' COMMENT '用户组',
  818. `spreadfee` decimal(10,5) DEFAULT NULL COMMENT '推广手续费',
  819. `spreadCount` int(11) NOT NULL DEFAULT '0' COMMENT '淘金推荐礼包推荐人数统计',
  820. `smallfruit` tinyint(4) DEFAULT '0' COMMENT '小额果实赠送开关(1开启 0 关闭)',
  821. `authLevel` tinyint(4) DEFAULT '0' COMMENT '作者认证等级',
  822. `idcardStatus` tinyint(4) DEFAULT '0' COMMENT '用户身份证图片验证状态(0为空或失败2审核中1审核通过)',
  823. `lasttime` int(11) DEFAULT NULL COMMENT '登录时间',
  824. `createTime` int(11) NOT NULL COMMENT '注册时间',
  825. `trade_limit_level` int(11) DEFAULT '0' COMMENT '领取大礼包等级',
  826. `payPassword` varchar(100) DEFAULT NULL COMMENT '支付密码',
  827. `userCode` varchar(50) DEFAULT NULL COMMENT 'EMG编号',
  828. `openid` varchar(255) DEFAULT NULL COMMENT '微信openid',
  829. `voucher` text COMMENT '收款凭证',
  830. `repassword` varchar(500) DEFAULT NULL COMMENT '记住密码',
  831. `is_infinite` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否拥有无限代分佣资格0否1是',
  832. `extend_level` tinyint(1) NOT NULL DEFAULT '1' COMMENT '分佣等级',
  833. `invitation_code` char(6) NOT NULL DEFAULT '' COMMENT '邀请码',
  834. `invitation_img` varchar(5000) DEFAULT NULL COMMENT '推广图片的地址',
  835. `pid` int(11) NOT NULL COMMENT '直推用户id',
  836. `wallet_token` char(32) NOT NULL COMMENT '钱包app绑定用的token',
  837. `is_bind_wallet` tinyint(1) NOT NULL DEFAULT '0' COMMENT '该用户是否绑定钱包0否1是',
  838. PRIMARY KEY (`id`) USING BTREE,
  839. UNIQUE KEY `user` (`user`) USING BTREE
  840. ) ENGINE=InnoDB AUTO_INCREMENT=49009 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户表';
  841. -- ----------------------------
  842. -- Table structure for dhc_user_config
  843. -- ----------------------------
  844. DROP TABLE IF EXISTS `dhc_user_config`;
  845. CREATE TABLE `dhc_user_config` (
  846. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  847. `payType` varchar(100) NOT NULL COMMENT '支付类型',
  848. `merchant_no` varchar(100) DEFAULT NULL COMMENT '商户号',
  849. `terminal_id` varchar(100) DEFAULT NULL COMMENT '终端号',
  850. `status` tinyint(4) DEFAULT NULL COMMENT '支付启用状态',
  851. `access_token` varchar(100) DEFAULT NULL COMMENT '签名',
  852. `other` text COMMENT '其他配置参数',
  853. PRIMARY KEY (`id`) USING BTREE
  854. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='支付配置表';
  855. -- ----------------------------
  856. -- Table structure for dhc_user_contribution_log
  857. -- ----------------------------
  858. DROP TABLE IF EXISTS `dhc_user_contribution_log`;
  859. CREATE TABLE `dhc_user_contribution_log` (
  860. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  861. `uid` int(11) NOT NULL COMMENT '用户id',
  862. `time` int(11) NOT NULL COMMENT '日期',
  863. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '类型0三代1无限代',
  864. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  865. PRIMARY KEY (`id`) USING BTREE,
  866. UNIQUE KEY `utt` (`uid`,`time`,`type`) USING BTREE
  867. ) ENGINE=InnoDB AUTO_INCREMENT=415886 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  868. -- ----------------------------
  869. -- Table structure for dhc_user_copy
  870. -- ----------------------------
  871. DROP TABLE IF EXISTS `dhc_user_copy`;
  872. CREATE TABLE `dhc_user_copy` (
  873. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  874. `is_real` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已经实名0否1是',
  875. `user` varchar(50) NOT NULL COMMENT '用户账号',
  876. `superior` varchar(2000) NOT NULL DEFAULT '0' COMMENT '导师推广码',
  877. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '用户状态(1启用 9 停用)',
  878. `salt` varchar(100) NOT NULL COMMENT '盐值',
  879. `token` varchar(500) DEFAULT NULL COMMENT 'token 验证信息',
  880. `password` varchar(100) NOT NULL COMMENT '密码',
  881. `nickname` varchar(255) DEFAULT NULL COMMENT '用户昵称',
  882. `avatar` varchar(255) DEFAULT NULL COMMENT '用户头像',
  883. `balance` int(11) DEFAULT '0' COMMENT '用户余额',
  884. `coing` decimal(12,5) unsigned DEFAULT '0.00000' COMMENT '用户金币数量',
  885. `level` int(11) DEFAULT '1' COMMENT '用户等级',
  886. `realname` varchar(255) DEFAULT '' COMMENT '用户真实姓名',
  887. `idcard` varchar(255) DEFAULT '' COMMENT '用户身份证号',
  888. `idcardFront` varchar(255) DEFAULT NULL COMMENT '身份证正面照片',
  889. `idcardback` varchar(255) DEFAULT NULL COMMENT '身份证反面照片',
  890. `Frozen` decimal(15,5) unsigned DEFAULT '0.00000' COMMENT '金币冻结数量',
  891. `spread` int(11) DEFAULT '0' COMMENT '推广码',
  892. `tencent` varchar(100) DEFAULT NULL COMMENT 'qq号',
  893. `wechet` varchar(100) DEFAULT NULL COMMENT '微信',
  894. `telphone` varchar(100) DEFAULT NULL COMMENT '手机号',
  895. `phone` varchar(100) DEFAULT NULL COMMENT '联系手机号',
  896. `dueBankAccount` varchar(255) DEFAULT NULL COMMENT '开户行用户名',
  897. `dueBank` varchar(255) DEFAULT NULL COMMENT '提现银行',
  898. `accountNumber` varchar(255) DEFAULT NULL COMMENT '提现账户',
  899. `province` varchar(100) DEFAULT NULL COMMENT '省/直辖市',
  900. `city` varchar(100) DEFAULT NULL COMMENT '市/县',
  901. `country` varchar(100) DEFAULT NULL COMMENT '开户区',
  902. `bankaccount` varchar(100) DEFAULT NULL COMMENT '开户行',
  903. `channelRebate` float(10,2) unsigned DEFAULT '0.00' COMMENT '渠道分佣比例',
  904. `salesmanRebate` varchar(500) DEFAULT NULL COMMENT '推广佣金',
  905. `usergroup` varchar(100) DEFAULT '普通用户' COMMENT '用户组',
  906. `spreadfee` decimal(10,5) DEFAULT NULL COMMENT '推广手续费',
  907. `spreadCount` int(11) NOT NULL DEFAULT '0' COMMENT '淘金推荐礼包推荐人数统计',
  908. `smallfruit` tinyint(4) DEFAULT '0' COMMENT '小额果实赠送开关(1开启 0 关闭)',
  909. `authLevel` tinyint(4) DEFAULT '0' COMMENT '作者认证等级',
  910. `idcardStatus` tinyint(4) DEFAULT '0' COMMENT '用户身份证图片验证状态(0为空或失败2审核中1审核通过)',
  911. `lasttime` int(11) DEFAULT NULL COMMENT '登录时间',
  912. `createTime` int(11) NOT NULL COMMENT '注册时间',
  913. `trade_limit_level` int(11) DEFAULT '0' COMMENT '领取大礼包等级',
  914. `payPassword` varchar(100) DEFAULT NULL COMMENT '支付密码',
  915. `userCode` varchar(50) DEFAULT NULL COMMENT 'EMG编号',
  916. `openid` varchar(255) DEFAULT NULL COMMENT '微信openid',
  917. `voucher` text COMMENT '收款凭证',
  918. `repassword` varchar(500) DEFAULT NULL COMMENT '记住密码',
  919. `is_infinite` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否拥有无限代分佣资格0否1是',
  920. `extend_level` tinyint(1) NOT NULL DEFAULT '1' COMMENT '分佣等级',
  921. `invitation_code` char(6) NOT NULL DEFAULT '' COMMENT '邀请码',
  922. `invitation_img` varchar(5000) DEFAULT NULL COMMENT '推广图片的地址',
  923. `pid` int(11) NOT NULL COMMENT '直推用户id',
  924. `wallet_token` char(32) DEFAULT NULL COMMENT '钱包app绑定用的token',
  925. `is_bind_wallet` tinyint(1) NOT NULL DEFAULT '0' COMMENT '该用户是否绑定钱包0否1是',
  926. PRIMARY KEY (`id`) USING BTREE,
  927. UNIQUE KEY `user` (`user`) USING BTREE
  928. ) ENGINE=InnoDB AUTO_INCREMENT=25844 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户表';
  929. -- ----------------------------
  930. -- Table structure for dhc_user_cost
  931. -- ----------------------------
  932. DROP TABLE IF EXISTS `dhc_user_cost`;
  933. CREATE TABLE `dhc_user_cost` (
  934. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  935. `uid` int(11) NOT NULL COMMENT '用户id',
  936. `orderNumber` varchar(255) NOT NULL COMMENT '订单号',
  937. `createtime` int(11) NOT NULL COMMENT '创建时间',
  938. `endtime` int(11) unsigned DEFAULT NULL COMMENT '结束时间',
  939. `sum` decimal(10,5) NOT NULL COMMENT '消费金额',
  940. `charge` decimal(10,5) DEFAULT '0.00000' COMMENT '手续费',
  941. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态1 成功 0 审核 2失败',
  942. `type` varchar(100) NOT NULL COMMENT '消费类型',
  943. PRIMARY KEY (`id`) USING BTREE,
  944. KEY `uid` (`uid`) USING BTREE
  945. ) ENGINE=InnoDB AUTO_INCREMENT=15678 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户消费表';
  946. -- ----------------------------
  947. -- Table structure for dhc_user_give
  948. -- ----------------------------
  949. DROP TABLE IF EXISTS `dhc_user_give`;
  950. CREATE TABLE `dhc_user_give` (
  951. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  952. `uid` int(11) unsigned NOT NULL COMMENT '赠送用户id',
  953. `accept` varchar(100) NOT NULL COMMENT '接受用户id或者帐号',
  954. `productid` int(11) unsigned NOT NULL COMMENT '产品id',
  955. `number` int(11) unsigned NOT NULL COMMENT '产品数量',
  956. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '赠送状态1结束(接受或者2退回撤销),0等待接受',
  957. `title` varchar(100) NOT NULL COMMENT '产品名称',
  958. `createtime` int(11) NOT NULL COMMENT '赠送时间',
  959. `fee` decimal(10,5) NOT NULL COMMENT '手续费',
  960. `giveGold` int(11) unsigned DEFAULT '0' COMMENT '索取金币数量',
  961. PRIMARY KEY (`id`) USING BTREE
  962. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户赠送产品表';
  963. -- ----------------------------
  964. -- Table structure for dhc_user_gold
  965. -- ----------------------------
  966. DROP TABLE IF EXISTS `dhc_user_gold`;
  967. CREATE TABLE `dhc_user_gold` (
  968. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  969. `oid` int(11) unsigned NOT NULL COMMENT '操作员id',
  970. `uid` int(11) unsigned NOT NULL COMMENT '充值用户id',
  971. `gold` float(11,2) DEFAULT '0.00' COMMENT '充值金币数量',
  972. `frozen` float(11,2) DEFAULT '0.00' COMMENT '冻结金币数量',
  973. `createtime` int(11) unsigned NOT NULL COMMENT '操作时间',
  974. PRIMARY KEY (`id`) USING BTREE
  975. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='充值操作表';
  976. -- ----------------------------
  977. -- Table structure for dhc_user_level_log
  978. -- ----------------------------
  979. DROP TABLE IF EXISTS `dhc_user_level_log`;
  980. CREATE TABLE `dhc_user_level_log` (
  981. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  982. `uid` int(11) NOT NULL COMMENT '用户id',
  983. `conetnt` varchar(255) NOT NULL COMMENT '内容',
  984. `level` tinyint(1) NOT NULL COMMENT '新的等级',
  985. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否通知用户0否1是',
  986. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
  987. PRIMARY KEY (`id`) USING BTREE,
  988. KEY `uid` (`uid`) USING BTREE
  989. ) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  990. -- ----------------------------
  991. -- Table structure for dhc_user_log
  992. -- ----------------------------
  993. DROP TABLE IF EXISTS `dhc_user_log`;
  994. CREATE TABLE `dhc_user_log` (
  995. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  996. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  997. `user` varchar(100) NOT NULL COMMENT '用户帐号',
  998. `ip` varchar(100) NOT NULL COMMENT '用户ip',
  999. `logintime` int(11) NOT NULL COMMENT '用户登录时间',
  1000. `info` text NOT NULL COMMENT '用户信息',
  1001. PRIMARY KEY (`id`) USING BTREE
  1002. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户登录表';
  1003. -- ----------------------------
  1004. -- Table structure for dhc_user_message
  1005. -- ----------------------------
  1006. DROP TABLE IF EXISTS `dhc_user_message`;
  1007. CREATE TABLE `dhc_user_message` (
  1008. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1009. `mobile` char(11) NOT NULL COMMENT '手机号',
  1010. `sendTime` int(11) NOT NULL COMMENT '发送时间',
  1011. `code` char(6) NOT NULL COMMENT '验证码',
  1012. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未使用1已使用',
  1013. PRIMARY KEY (`id`) USING BTREE
  1014. ) ENGINE=InnoDB AUTO_INCREMENT=26964 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户验证短信表';
  1015. -- ----------------------------
  1016. -- Table structure for dhc_user_pay_order
  1017. -- ----------------------------
  1018. DROP TABLE IF EXISTS `dhc_user_pay_order`;
  1019. CREATE TABLE `dhc_user_pay_order` (
  1020. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1021. `uid` int(11) NOT NULL COMMENT '用户id',
  1022. `order_sn` varchar(100) NOT NULL COMMENT '订单编号',
  1023. `money` decimal(11,2) NOT NULL COMMENT '金额',
  1024. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0待支付1已经支付2支付失败-1未进行支付',
  1025. `pay_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '钻石表id',
  1026. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '类型0身份认证1购买钻石',
  1027. `number` int(11) NOT NULL DEFAULT '0' COMMENT '充值的钻石数量',
  1028. `pay_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付类型0支付宝',
  1029. `pay_time` datetime DEFAULT NULL COMMENT '回调通知时间',
  1030. `sn` varchar(255) DEFAULT '' COMMENT '第三方订单号',
  1031. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1032. PRIMARY KEY (`id`) USING BTREE,
  1033. KEY `uid` (`uid`) USING BTREE
  1034. ) ENGINE=InnoDB AUTO_INCREMENT=20158 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户支付日志表(新)';
  1035. -- ----------------------------
  1036. -- Table structure for dhc_user_pay_order_bak
  1037. -- ----------------------------
  1038. DROP TABLE IF EXISTS `dhc_user_pay_order_bak`;
  1039. CREATE TABLE `dhc_user_pay_order_bak` (
  1040. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1041. `uid` int(11) NOT NULL COMMENT '用户id',
  1042. `order_sn` varchar(100) NOT NULL COMMENT '订单编号',
  1043. `money` decimal(11,2) NOT NULL COMMENT '金额',
  1044. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态0待支付1已经支付2支付失败',
  1045. `is_certify_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否获取过支付宝身份认证信息0否1是',
  1046. `pay_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '钻石表id',
  1047. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '类型0身份认证1购买钻石',
  1048. `number` int(11) NOT NULL DEFAULT '0' COMMENT '充值的钻石数量',
  1049. `pay_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '支付类型0支付宝',
  1050. `token` varchar(255) NOT NULL COMMENT '用户保持在线的身份认证',
  1051. `pay_time` datetime DEFAULT NULL COMMENT '回调通知时间',
  1052. `sn` varchar(255) DEFAULT '' COMMENT '第三方订单号',
  1053. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1054. PRIMARY KEY (`id`) USING BTREE,
  1055. KEY `uid` (`uid`) USING BTREE
  1056. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1057. -- ----------------------------
  1058. -- Table structure for dhc_user_product
  1059. -- ----------------------------
  1060. DROP TABLE IF EXISTS `dhc_user_product`;
  1061. CREATE TABLE `dhc_user_product` (
  1062. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  1063. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  1064. `sid` int(11) unsigned NOT NULL COMMENT '产品id',
  1065. `number` int(11) unsigned DEFAULT '0' COMMENT '产品数量果实',
  1066. `frozen` int(11) unsigned DEFAULT '0' COMMENT '产品冻结数量',
  1067. `createtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  1068. `updatetime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  1069. PRIMARY KEY (`id`) USING BTREE,
  1070. UNIQUE KEY `uid` (`uid`,`sid`) USING BTREE
  1071. ) ENGINE=InnoDB AUTO_INCREMENT=108103 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户产品仓库表';
  1072. -- ----------------------------
  1073. -- Table structure for dhc_user_real
  1074. -- ----------------------------
  1075. DROP TABLE IF EXISTS `dhc_user_real`;
  1076. CREATE TABLE `dhc_user_real` (
  1077. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1078. `uid` int(11) NOT NULL COMMENT '用户id',
  1079. `pid` int(11) NOT NULL COMMENT 'user_pay_order表id',
  1080. `name` varchar(255) NOT NULL COMMENT '用户真实姓名',
  1081. `idcard` char(18) NOT NULL COMMENT '用户身份证号码 ',
  1082. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0待认证1成功2失败',
  1083. `certify_id` varchar(255) NOT NULL DEFAULT '',
  1084. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1085. PRIMARY KEY (`id`) USING BTREE,
  1086. KEY `pid` (`pid`) USING BTREE
  1087. ) ENGINE=InnoDB AUTO_INCREMENT=20158 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户实名认证信息(新)';
  1088. -- ----------------------------
  1089. -- Table structure for dhc_user_real_bak
  1090. -- ----------------------------
  1091. DROP TABLE IF EXISTS `dhc_user_real_bak`;
  1092. CREATE TABLE `dhc_user_real_bak` (
  1093. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1094. `uid` int(11) NOT NULL COMMENT '用户id',
  1095. `order_sn` varchar(100) NOT NULL COMMENT '订单编号',
  1096. `pid` int(11) NOT NULL COMMENT 'user_pay_order表id',
  1097. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否成功0待认证1成功2失败',
  1098. `token` varchar(255) NOT NULL DEFAULT '' COMMENT '用户保持在线的身份认证',
  1099. `certify_id` varchar(255) NOT NULL DEFAULT '',
  1100. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1101. PRIMARY KEY (`id`) USING BTREE
  1102. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1103. -- ----------------------------
  1104. -- Table structure for dhc_user_real_data
  1105. -- ----------------------------
  1106. DROP TABLE IF EXISTS `dhc_user_real_data`;
  1107. CREATE TABLE `dhc_user_real_data` (
  1108. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1109. `uid` int(11) NOT NULL COMMENT '用户id',
  1110. `order_sn` varchar(100) NOT NULL COMMENT '订单号',
  1111. `pid` int(11) NOT NULL COMMENT '支付表id',
  1112. `name` varchar(100) NOT NULL COMMENT '用户名',
  1113. `card_no` char(18) NOT NULL COMMENT '身份证',
  1114. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1115. PRIMARY KEY (`id`) USING BTREE,
  1116. KEY `order_sn` (`order_sn`) USING BTREE,
  1117. KEY `pid` (`pid`) USING BTREE
  1118. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户实名时输入的身份信息(新)';
  1119. -- ----------------------------
  1120. -- Table structure for dhc_user_recharge
  1121. -- ----------------------------
  1122. DROP TABLE IF EXISTS `dhc_user_recharge`;
  1123. CREATE TABLE `dhc_user_recharge` (
  1124. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  1125. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  1126. `orderNumber` varchar(100) NOT NULL COMMENT '订单号',
  1127. `number` int(11) NOT NULL COMMENT '充值数量',
  1128. `payType` varchar(100) NOT NULL COMMENT '支付类型',
  1129. `payStatus` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '支付状态(1支付成功2待支付3支付失败)',
  1130. `createTime` int(11) unsigned NOT NULL COMMENT '创建时间',
  1131. PRIMARY KEY (`id`) USING BTREE
  1132. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户充值表';
  1133. -- ----------------------------
  1134. -- Table structure for dhc_user_renascence
  1135. -- ----------------------------
  1136. DROP TABLE IF EXISTS `dhc_user_renascence`;
  1137. CREATE TABLE `dhc_user_renascence` (
  1138. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  1139. `uid` int(11) NOT NULL COMMENT '重生用户',
  1140. `title` varchar(100) NOT NULL COMMENT '产品名称',
  1141. `price` decimal(10,5) NOT NULL COMMENT '当前价格',
  1142. `number` varchar(100) NOT NULL COMMENT '重生数量',
  1143. `createtime` int(11) NOT NULL COMMENT '创建时间',
  1144. `charge` decimal(10,5) NOT NULL COMMENT '手续费',
  1145. PRIMARY KEY (`id`) USING BTREE
  1146. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户产品重生表';
  1147. -- ----------------------------
  1148. -- Table structure for dhc_user_service
  1149. -- ----------------------------
  1150. DROP TABLE IF EXISTS `dhc_user_service`;
  1151. CREATE TABLE `dhc_user_service` (
  1152. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  1153. `title` varchar(100) NOT NULL COMMENT '服务名称',
  1154. `way` varchar(100) NOT NULL COMMENT '联系方式',
  1155. `type` varchar(20) DEFAULT '0' COMMENT '服务类型',
  1156. PRIMARY KEY (`id`) USING BTREE
  1157. ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='前台服务联系方式展示';
  1158. -- ----------------------------
  1159. -- Table structure for dhc_user_team
  1160. -- ----------------------------
  1161. DROP TABLE IF EXISTS `dhc_user_team`;
  1162. CREATE TABLE `dhc_user_team` (
  1163. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1164. `uid` int(11) NOT NULL COMMENT '用户id',
  1165. `parents` text NOT NULL COMMENT '所有级用户',
  1166. `direct_amount` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户直推人数',
  1167. `team_amount` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户团队推广人数',
  1168. `effective_direct` int(11) NOT NULL DEFAULT '0' COMMENT '直推有效用户人数',
  1169. `effective_team` int(11) NOT NULL DEFAULT '0' COMMENT '团队有效用户人数',
  1170. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1171. PRIMARY KEY (`id`) USING BTREE,
  1172. UNIQUE KEY `uid` (`uid`) USING BTREE
  1173. ) ENGINE=InnoDB AUTO_INCREMENT=47105 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1174. -- ----------------------------
  1175. -- Table structure for dhc_user_team_data
  1176. -- ----------------------------
  1177. DROP TABLE IF EXISTS `dhc_user_team_data`;
  1178. CREATE TABLE `dhc_user_team_data` (
  1179. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1180. `uid` int(11) NOT NULL COMMENT '注册用户id',
  1181. `pid` int(11) NOT NULL COMMENT '上级id',
  1182. `level` tinyint(1) NOT NULL COMMENT '第几级上级1直推2二级以此类推',
  1183. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1184. PRIMARY KEY (`id`) USING BTREE,
  1185. KEY `pid` (`pid`,`level`) USING BTREE,
  1186. KEY `uid` (`uid`) USING BTREE
  1187. ) ENGINE=InnoDB AUTO_INCREMENT=345756 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1188. -- ----------------------------
  1189. -- Table structure for dhc_user_team_infinite
  1190. -- ----------------------------
  1191. DROP TABLE IF EXISTS `dhc_user_team_infinite`;
  1192. CREATE TABLE `dhc_user_team_infinite` (
  1193. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1194. `uid` int(11) NOT NULL COMMENT '用户id',
  1195. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1196. `number` int(11) NOT NULL COMMENT '果实数量',
  1197. `xiaoshu` int(11) DEFAULT '0' COMMENT '小数部分',
  1198. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1199. PRIMARY KEY (`id`) USING BTREE,
  1200. KEY `uid` (`uid`) USING BTREE
  1201. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1202. -- ----------------------------
  1203. -- Table structure for dhc_user_team_infinite_date
  1204. -- ----------------------------
  1205. DROP TABLE IF EXISTS `dhc_user_team_infinite_date`;
  1206. CREATE TABLE `dhc_user_team_infinite_date` (
  1207. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1208. `uid` int(11) NOT NULL COMMENT '用户id',
  1209. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1210. `number` int(11) NOT NULL COMMENT '果实数量',
  1211. `xiaoshu` int(11) DEFAULT '0' COMMENT '小数部分',
  1212. `create_at` date NOT NULL COMMENT '创建时间',
  1213. PRIMARY KEY (`id`) USING BTREE,
  1214. KEY `uid` (`uid`) USING BTREE
  1215. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1216. -- ----------------------------
  1217. -- Table structure for dhc_user_team_product
  1218. -- ----------------------------
  1219. DROP TABLE IF EXISTS `dhc_user_team_product`;
  1220. CREATE TABLE `dhc_user_team_product` (
  1221. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1222. `uid` int(11) NOT NULL COMMENT '用户id',
  1223. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1224. `number` int(11) NOT NULL COMMENT '果实数量',
  1225. `xiaoshu` int(4) DEFAULT '0' COMMENT '小数部分',
  1226. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  1227. PRIMARY KEY (`id`) USING BTREE,
  1228. KEY `uid` (`uid`) USING BTREE
  1229. ) ENGINE=InnoDB AUTO_INCREMENT=204252 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1230. -- ----------------------------
  1231. -- Table structure for dhc_user_team_product_date
  1232. -- ----------------------------
  1233. DROP TABLE IF EXISTS `dhc_user_team_product_date`;
  1234. CREATE TABLE `dhc_user_team_product_date` (
  1235. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1236. `uid` int(11) NOT NULL COMMENT '用户id',
  1237. `gid` int(11) NOT NULL COMMENT '果实类型id(1化肥,其他一一对应)',
  1238. `number` int(11) NOT NULL COMMENT '果实数量',
  1239. `xiaoshu` int(11) DEFAULT '0' COMMENT '小数部分',
  1240. `create_at` date NOT NULL COMMENT '创建时间',
  1241. PRIMARY KEY (`id`) USING BTREE,
  1242. KEY `uid` (`uid`) USING BTREE
  1243. ) ENGINE=InnoDB AUTO_INCREMENT=304426 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1244. -- ----------------------------
  1245. -- Table structure for dhc_user_team_statistics
  1246. -- ----------------------------
  1247. DROP TABLE IF EXISTS `dhc_user_team_statistics`;
  1248. CREATE TABLE `dhc_user_team_statistics` (
  1249. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1250. `uid` int(11) NOT NULL COMMENT '用户',
  1251. `direct_amount` int(11) DEFAULT '0' COMMENT '直推今日新增',
  1252. `team_amount` int(11) DEFAULT '0' COMMENT '团队今日新增',
  1253. `create_at` date NOT NULL COMMENT '日期',
  1254. PRIMARY KEY (`id`) USING BTREE,
  1255. UNIQUE KEY `uid_time` (`uid`,`create_at`) USING BTREE
  1256. ) ENGINE=InnoDB AUTO_INCREMENT=8683 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  1257. -- ----------------------------
  1258. -- Table structure for dhc_user_withdraw
  1259. -- ----------------------------
  1260. DROP TABLE IF EXISTS `dhc_user_withdraw`;
  1261. CREATE TABLE `dhc_user_withdraw` (
  1262. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  1263. `createtime` int(11) NOT NULL COMMENT '创建时间',
  1264. `accountnumber` varchar(100) NOT NULL COMMENT '银行帐号',
  1265. `goldnumber` int(11) NOT NULL COMMENT '提现金币数量',
  1266. `fee` decimal(10,5) NOT NULL COMMENT '手续费',
  1267. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态1审核通过 0 审核中 2已完成 3返回信息有误',
  1268. `uid` int(11) NOT NULL COMMENT '用户id',
  1269. `bankaccount` varchar(100) NOT NULL COMMENT '收款开户银行',
  1270. `withdrawtype` varchar(4) DEFAULT NULL COMMENT '提现类型(1行内转账 2 同城跨行3异地跨行)',
  1271. `province` varchar(100) NOT NULL COMMENT '省份/直辖市',
  1272. `city` varchar(100) NOT NULL COMMENT '市/县',
  1273. `costname` varchar(100) NOT NULL COMMENT '消费类型',
  1274. `realname` varchar(100) DEFAULT NULL COMMENT '提现用户',
  1275. `voucher` text COMMENT '支付凭证',
  1276. PRIMARY KEY (`id`) USING BTREE
  1277. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户提现表';
  1278. -- ----------------------------
  1279. -- Table structure for dhc_virtual_withdraw
  1280. -- ----------------------------
  1281. DROP TABLE IF EXISTS `dhc_virtual_withdraw`;
  1282. CREATE TABLE `dhc_virtual_withdraw` (
  1283. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1284. `uid` int(11) NOT NULL COMMENT '用户id',
  1285. `goldnumber` decimal(11,5) NOT NULL COMMENT '提现金币数量',
  1286. `number` decimal(11,5) NOT NULL COMMENT '提现数量',
  1287. `address` varchar(255) NOT NULL COMMENT '收货地址',
  1288. `createtime` int(11) NOT NULL COMMENT '提现时间',
  1289. `rebate` decimal(10,2) NOT NULL COMMENT '兑换比例',
  1290. `status` tinyint(4) DEFAULT '0' COMMENT '审核状态',
  1291. PRIMARY KEY (`id`) USING BTREE
  1292. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='虚拟币提现表';
  1293. -- ----------------------------
  1294. -- Table structure for dhc_wallet_log
  1295. -- ----------------------------
  1296. DROP TABLE IF EXISTS `dhc_wallet_log`;
  1297. CREATE TABLE `dhc_wallet_log` (
  1298. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  1299. `uid` int(11) NOT NULL COMMENT '用户id',
  1300. `num` int(11) NOT NULL COMMENT 'k钻数量',
  1301. `actual_num` int(11) NOT NULL COMMENT '实际数量(减去手续费)',
  1302. `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0转入到农场1转出到钱包',
  1303. `content` varchar(255) NOT NULL COMMENT '参数',
  1304. `create_at` int(11) NOT NULL COMMENT '时间',
  1305. PRIMARY KEY (`id`) USING BTREE,
  1306. KEY `uid` (`uid`) USING BTREE
  1307. ) ENGINE=InnoDB AUTO_INCREMENT=31986 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='农场-钱包转入转出记录';
  1308. -- ----------------------------
  1309. -- Table structure for dhc_withdraw_address
  1310. -- ----------------------------
  1311. DROP TABLE IF EXISTS `dhc_withdraw_address`;
  1312. CREATE TABLE `dhc_withdraw_address` (
  1313. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  1314. `uid` int(11) unsigned NOT NULL COMMENT '用户id',
  1315. `address` varchar(255) NOT NULL COMMENT '收货地址',
  1316. `createtime` int(11) NOT NULL COMMENT '添加时间',
  1317. PRIMARY KEY (`id`) USING BTREE
  1318. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户虚拟币提现收货地址表';
  1319. SET FOREIGN_KEY_CHECKS = 1;