adddata.sql 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. DROP TABLE IF EXISTS `lm_user`;
  2. CREATE TABLE `lm_user` (
  3. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  4. `uuid` varchar (128) DEFAULT '' COMMENT 'uuid',
  5. `code` varchar (128) DEFAULT '' COMMENT '邀请码',
  6. `phone` varchar (20) DEFAULT '' COMMENT '手机号',
  7. `mail` varchar (20) DEFAULT '' COMMENT '邮件',
  8. `name` varchar (128) DEFAULT '' COMMENT '呢称',
  9. `pwd` varchar (255) DEFAULT '' COMMENT '密码',
  10. `token` varchar (255) DEFAULT '' COMMENT 'token',
  11. `money` decimal (20,2) DEFAULT '0' COMMENT '通证余额',
  12. `ensure_money` decimal (20,2) DEFAULT '0' COMMENT '保证金',
  13. `push_money` decimal (20,2) DEFAULT '0' COMMENT '可售额度',
  14. `pool_money` decimal (20,2) DEFAULT '0' COMMENT '矿池矿金',
  15. `status` int (1) DEFAULT '0' COMMENT '0 正常 1 禁止登录',
  16. `status_time` varchar (20) DEFAULT '' COMMENT '封号时间',
  17. `add_time` varchar (20) DEFAULT '' COMMENT '创建时间',
  18. `update_time` varchar (20) DEFAULT '' COMMENT '更新时间即使活跃时间',
  19. `vip_level` int (1) DEFAULT 0 COMMENT ' 等级 ',
  20. `is_admin` int (1) DEFAULT 0 COMMENT '0 不是后台账号 1是 ',
  21. `sex` varchar (10) DEFAULT '男' COMMENT '男女 ',
  22. `image` varchar (255) DEFAULT '' COMMENT '头像 ',
  23. `pid` int (11) DEFAULT 0 COMMENT '上级id ',
  24. `team` int (11) DEFAULT 0 COMMENT '团队人数 ',
  25. PRIMARY KEY (`id`) USING BTREE
  26. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户表' ROW_FORMAT = Compact;
  27. DROP TABLE IF EXISTS `lm_user_message`;
  28. CREATE TABLE `lm_user_message` (
  29. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  30. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  31. `phone` varchar (20) DEFAULT '' COMMENT '手机号',
  32. `name` varchar (20) DEFAULT '' COMMENT '银行卡持卡人',
  33. `bank_name` varchar (255) DEFAULT '' COMMENT '银行卡名称',
  34. `bank_number` varchar (255) DEFAULT '' COMMENT '银行卡号',
  35. `bank_branch` varchar (255) DEFAULT '' COMMENT '开户支行',
  36. `ali_pay` varchar (255) DEFAULT '' COMMENT '支付宝账号',
  37. `wx_pay` varchar (255) DEFAULT '' COMMENT '微信账号',
  38. `ali_pay_image` varchar (255) DEFAULT '' COMMENT '支付宝收款码',
  39. `wx_pay_image` varchar (255) DEFAULT '' COMMENT '微信收款码',
  40. PRIMARY KEY (`id`) USING BTREE
  41. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '会员收款信息' ROW_FORMAT = Compact;
  42. DROP TABLE IF EXISTS `lm_user_level`;
  43. CREATE TABLE `lm_user_level` (
  44. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  45. `level` int (11) DEFAULT 0 COMMENT '等级',
  46. `bili` varchar (20) DEFAULT '0' COMMENT '优惠比例',
  47. PRIMARY KEY (`id`) USING BTREE
  48. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '会员等级优惠' ROW_FORMAT = Compact;
  49. DROP TABLE IF EXISTS `lm_banner`;
  50. CREATE TABLE `lm_banner` (
  51. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  52. `image` varchar (255) DEFAULT '' COMMENT '图片',
  53. `status` int (1) DEFAULT '0' COMMENT '0 显示 1 不显示',
  54. `text` text DEFAULT '' COMMENT '内容',
  55. PRIMARY KEY (`id`) USING BTREE
  56. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '轮播图' ROW_FORMAT = Compact;
  57. DROP TABLE IF EXISTS `lm_notice`;
  58. CREATE TABLE `lm_notice` (
  59. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  60. `name` varchar (255) DEFAULT '' COMMENT '标题',
  61. `status` int (1) DEFAULT '0' COMMENT '0 显示 1 不显示',
  62. `text` text DEFAULT '' COMMENT '内容',
  63. PRIMARY KEY (`id`) USING BTREE
  64. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '公告' ROW_FORMAT = Compact;
  65. DROP TABLE IF EXISTS `lm_message`;
  66. CREATE TABLE `lm_message` (
  67. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  68. `type` int (10) DEFAULT '0' COMMENT '0 系统提示 1 资金 2 交易',
  69. `name` varchar (255) DEFAULT '' COMMENT '标题',
  70. `add_time` varchar (20) DEFAULT '' COMMENT '添加时间',
  71. `status` int (1) DEFAULT '0' COMMENT '0 未度 1 已读',
  72. `content` varchar (255) DEFAULT '' COMMENT '说明',
  73. PRIMARY KEY (`id`) USING BTREE
  74. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '消息推送' ROW_FORMAT = Compact;
  75. DROP TABLE IF EXISTS `lm_problem`;
  76. CREATE TABLE `lm_problem` (
  77. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  78. `name` varchar (255) DEFAULT '' COMMENT '标题',
  79. `text` text DEFAULT '' COMMENT '说明',
  80. PRIMARY KEY (`id`) USING BTREE
  81. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '常见问题' ROW_FORMAT = Compact;
  82. DROP TABLE IF EXISTS `lm_phone_code`;
  83. CREATE TABLE `lm_phone_code` (
  84. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  85. `phone` varchar (255) DEFAULT '' COMMENT '手机号',
  86. `code` varchar (20) DEFAULT '' COMMENT '验证码',
  87. `type` int (1) DEFAULT 0 COMMENT '0 手机号码 1 邮箱验证',
  88. `add_time` varchar (20) DEFAULT '' COMMENT '验证码',
  89. PRIMARY KEY (`id`) USING BTREE
  90. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '验证码' ROW_FORMAT = Compact;
  91. DROP TABLE IF EXISTS `lm_feedback`;
  92. CREATE TABLE `lm_feedback` (
  93. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  94. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  95. `content` varchar (255)DEFAULT '' COMMENT '内容',
  96. `image` text DEFAULT '' COMMENT '图片,拼接',
  97. `add_time` text DEFAULT '' COMMENT '添加时间',
  98. PRIMARY KEY (`id`) USING BTREE
  99. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '反馈意见' ROW_FORMAT = Compact;
  100. DROP TABLE IF EXISTS `lm_state`;
  101. CREATE TABLE `lm_state` (
  102. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  103. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  104. `order` int (11) DEFAULT 0 COMMENT '订单id',
  105. `content` varchar (255)DEFAULT '' COMMENT '内容',
  106. `image` text DEFAULT '' COMMENT '图片,拼接',
  107. `add_time` text DEFAULT '' COMMENT '添加时间',
  108. PRIMARY KEY (`id`) USING BTREE
  109. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '申述' ROW_FORMAT = Compact;
  110. DROP TABLE IF EXISTS `lm_mining`;
  111. CREATE TABLE `lm_mining` (
  112. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  113. `num` int (11) DEFAULT 0 COMMENT '数量',
  114. `mining` int (11) DEFAULT 0 COMMENT '矿池数量',
  115. `enlarge_quota` int (11) DEFAULT 0 COMMENT '放大额度',
  116. `ensure_money` decimal (20,2) DEFAULT '0' COMMENT '保证金 买入人缴费',
  117. `breach_money` decimal (20,2) DEFAULT '0' COMMENT '违约金 买入人缴费',
  118. `tong_money` decimal (20,2) DEFAULT '0' COMMENT '手续费 通证卖出人缴费',
  119. `out_game` decimal (20,2) DEFAULT '0' COMMENT '出局通证卖出人手续费',
  120. `direct_push` decimal (20,2) DEFAULT '0' COMMENT '直推获得',
  121. `second_push` decimal (20,2) DEFAULT '0' COMMENT '次推获得',
  122. `create_time` varchar (20)DEFAULT '' COMMENT '创建时间',
  123. `status` int (1)DEFAULT 0 COMMENT '0 进行中 1 暂停中',
  124. PRIMARY KEY (`id`) USING BTREE
  125. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '矿区' ROW_FORMAT = Compact;
  126. DROP TABLE IF EXISTS `lm_order`;
  127. CREATE TABLE `lm_order` (
  128. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  129. `type` int (1) DEFAULT 0 COMMENT '0 买入 1 卖出 废除',
  130. `buy_user` int (11) DEFAULT 0 COMMENT '购买用户id',
  131. `push_user` int (11) DEFAULT 0 COMMENT '卖出用户id',
  132. `number` int (11) DEFAULT 0 COMMENT '发布数量',
  133. `enlarge_quota` int (11) DEFAULT 0 COMMENT '放大额度',
  134. `order` varchar (255) DEFAULT '' COMMENT '订单编号',
  135. `mining_id` int (11) DEFAULT 0 COMMENT '区块id',
  136. `status` int (1) DEFAULT 0 COMMENT '0 未匹配 1 已匹配或待支付 2已上传数据 3 已完成 4 已撤销 5 交易失败',
  137. `add_time` varchar (20) DEFAULT '' COMMENT '添加时间',
  138. `stat_time` varchar (20) DEFAULT '' COMMENT '未支付结束时间',
  139. `end_time` varchar (20) DEFAULT '' COMMENT '完成时间',
  140. `msg` varchar (255) DEFAULT '' COMMENT '失败原因',
  141. `image`text DEFAULT '' COMMENT '上传图片,拼接',
  142. `ensure_money` decimal (20,2) DEFAULT '0' COMMENT '保证金 买入人缴费',
  143. `out_game` decimal (20,2) DEFAULT '0' COMMENT '出局手续费',
  144. `tong_money` decimal (20,2) DEFAULT '0' COMMENT '通证',
  145. PRIMARY KEY (`id`) USING BTREE
  146. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '发布订单' ROW_FORMAT = Compact;
  147. DROP TABLE IF EXISTS `lm_order_frequency`;
  148. CREATE TABLE `lm_order_frequency` (
  149. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  150. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  151. `mining_id` int (11) DEFAULT 0 COMMENT '区块id',
  152. `buy` int (11) DEFAULT 0 COMMENT '买入次数',
  153. `push` int (11) DEFAULT 0 COMMENT '卖出次数',
  154. PRIMARY KEY (`id`) USING BTREE
  155. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '交易次数统计' ROW_FORMAT = Compact;
  156. DROP TABLE IF EXISTS `lm_vendibility_finance`;
  157. CREATE TABLE `lm_vendibility_finance` (
  158. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  159. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  160. `mining_id` int (11) DEFAULT 0 COMMENT '区块id',
  161. `order_id` int (11) DEFAULT 0 COMMENT '订单id',
  162. `money` decimal (20,2) DEFAULT 0 COMMENT '获得交易区块',
  163. `pool` int(11) DEFAULT 0 COMMENT '矿池数量',
  164. `push_money` decimal (20,2) DEFAULT 0 COMMENT '可售额度',
  165. `add_time` varchar (20) DEFAULT '' COMMENT '添加时间',
  166. `buy` int (11) DEFAULT 0 COMMENT '当前买入次数',
  167. `push` int (11) DEFAULT 0 COMMENT '当前卖出次数',
  168. `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
  169. PRIMARY KEY (`id`) USING BTREE
  170. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '可售余额' ROW_FORMAT = Compact;
  171. DROP TABLE IF EXISTS `lm_commission_finance`;
  172. CREATE TABLE `lm_commission_finance` (
  173. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  174. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  175. `name` varchar (255) DEFAULT '' COMMENT '名称',
  176. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  177. `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
  178. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  179. PRIMARY KEY (`id`) USING BTREE
  180. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '佣金记录' ROW_FORMAT = Compact;
  181. DROP TABLE IF EXISTS `lm_bond_finance`;
  182. CREATE TABLE `lm_bond_finance` (
  183. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  184. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  185. `name` varchar (255) DEFAULT '' COMMENT '名称',
  186. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  187. `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
  188. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  189. PRIMARY KEY (`id`) USING BTREE
  190. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '保证金记录' ROW_FORMAT = Compact;
  191. DROP TABLE IF EXISTS `lm_bond`;
  192. CREATE TABLE `lm_bond` (
  193. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  194. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  195. `type` int (1) DEFAULT 0 COMMENT '0 充值 1 提现',
  196. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  197. `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
  198. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  199. PRIMARY KEY (`id`) USING BTREE
  200. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '保证金提现和充值' ROW_FORMAT = Compact;
  201. DROP TABLE IF EXISTS `lm_general_finance`;
  202. CREATE TABLE `lm_general_finance` (
  203. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  204. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  205. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  206. `actual_money` decimal (20,2) DEFAULT 0 COMMENT '实际到账金额',
  207. `charge_money` decimal (20,2) DEFAULT 0 COMMENT '手续费',
  208. `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
  209. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  210. PRIMARY KEY (`id`) USING BTREE
  211. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '通证充值' ROW_FORMAT = Compact;
  212. DROP TABLE IF EXISTS `lm_general_transfer`;
  213. CREATE TABLE `lm_general_transfer` (
  214. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  215. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  216. `puser_id` int (11) DEFAULT 0 COMMENT '收款用户id',
  217. `account` varchar (255) DEFAULT 0 COMMENT '转账账户',
  218. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  219. `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
  220. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  221. PRIMARY KEY (`id`) USING BTREE
  222. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '通证转账' ROW_FORMAT = Compact;
  223. DROP TABLE IF EXISTS `lm_finance`;
  224. CREATE TABLE `lm_finance` (
  225. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  226. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  227. `name` varchar (255) DEFAULT 0 COMMENT '说明',
  228. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  229. `status` int (1) DEFAULT 0 COMMENT '0 增加 1减少',
  230. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  231. PRIMARY KEY (`id`) USING BTREE
  232. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '资产明细' ROW_FORMAT = Compact;
  233. DROP TABLE IF EXISTS `lm_system`;
  234. CREATE TABLE `lm_system` (
  235. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  236. `name` varchar (128) DEFAULT '' COMMENT '变量名称',
  237. `value` text DEFAULT '' COMMENT '内容',
  238. `type` varchar (128) DEFAULT '' COMMENT '类型',
  239. PRIMARY KEY (`id`) USING BTREE
  240. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统设置' ROW_FORMAT = Compact;
  241. DROP TABLE IF EXISTS `lm_about`;
  242. CREATE TABLE `lm_about` (
  243. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  244. `text` text DEFAULT '' COMMENT '内容',
  245. PRIMARY KEY (`id`) USING BTREE
  246. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '关于我们' ROW_FORMAT = Compact;