adddata.sql 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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_mining`;
  50. CREATE TABLE `lm_mining` (
  51. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  52. `num` int (11) DEFAULT 0 COMMENT '数量',
  53. `mining` int (11) DEFAULT 0 COMMENT '矿池数量',
  54. `enlarge_quota` int (11) DEFAULT 0 COMMENT '放大额度',
  55. `ensure_money` decimal (20,2) DEFAULT '0' COMMENT '保证金',
  56. `breach_money` decimal (20,2) DEFAULT '0' COMMENT '违约金',
  57. `out_game` decimal (20,2) DEFAULT '0' COMMENT '出局手续费',
  58. `direct_push` decimal (20,2) DEFAULT '0' COMMENT '直推获得',
  59. `second_push` decimal (20,2) DEFAULT '0' COMMENT '次推获得',
  60. `create_time` varchar (20)DEFAULT '' COMMENT '创建时间',
  61. `status` int (1)DEFAULT 0 COMMENT '0 进行中 1 暂停中',
  62. PRIMARY KEY (`id`) USING BTREE
  63. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '矿区' ROW_FORMAT = Compact;
  64. DROP TABLE IF EXISTS `lm_banner`;
  65. CREATE TABLE `lm_banner` (
  66. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  67. `image` varchar (255) DEFAULT '' COMMENT '图片',
  68. `status` int (1) DEFAULT '0' COMMENT '0 显示 1 不显示',
  69. `text` text DEFAULT '' COMMENT '内容',
  70. PRIMARY KEY (`id`) USING BTREE
  71. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '轮播图' ROW_FORMAT = Compact;
  72. DROP TABLE IF EXISTS `lm_notice`;
  73. CREATE TABLE `lm_notice` (
  74. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  75. `name` varchar (255) DEFAULT '' COMMENT '标题',
  76. `status` int (1) DEFAULT '0' COMMENT '0 显示 1 不显示',
  77. `text` text DEFAULT '' COMMENT '内容',
  78. PRIMARY KEY (`id`) USING BTREE
  79. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '公告' ROW_FORMAT = Compact;
  80. DROP TABLE IF EXISTS `lm_message`;
  81. CREATE TABLE `lm_message` (
  82. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  83. `type` int (10) DEFAULT '0' COMMENT '0 系统提示 1 资金 2 交易',
  84. `name` varchar (255) DEFAULT '' COMMENT '标题',
  85. `status` int (1) DEFAULT '0' COMMENT '0 未度 1 已读',
  86. `content` varchar (255) DEFAULT '' COMMENT '说明',
  87. PRIMARY KEY (`id`) USING BTREE
  88. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '消息推送' ROW_FORMAT = Compact;
  89. DROP TABLE IF EXISTS `lm_problem`;
  90. CREATE TABLE `lm_problem` (
  91. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  92. `name` varchar (255) DEFAULT '' COMMENT '标题',
  93. `text` text DEFAULT '' COMMENT '说明',
  94. PRIMARY KEY (`id`) USING BTREE
  95. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '常见问题' ROW_FORMAT = Compact;
  96. DROP TABLE IF EXISTS `lm_phone_code`;
  97. CREATE TABLE `lm_phone_code` (
  98. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  99. `phone` varchar (20) DEFAULT '' COMMENT '手机号',
  100. `code` varchar (20) DEFAULT '' COMMENT '验证码',
  101. `add_time` varchar (20) DEFAULT '' COMMENT '验证码',
  102. PRIMARY KEY (`id`) USING BTREE
  103. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '验证码' ROW_FORMAT = Compact;
  104. DROP TABLE IF EXISTS `lm_feedback`;
  105. CREATE TABLE `lm_feedback` (
  106. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  107. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  108. `content` varchar (255)DEFAULT '' COMMENT '内容',
  109. `image` text DEFAULT '' COMMENT '图片,拼接',
  110. `add_time` text DEFAULT '' COMMENT '添加时间',
  111. PRIMARY KEY (`id`) USING BTREE
  112. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '反馈意见' ROW_FORMAT = Compact;
  113. DROP TABLE IF EXISTS `lm_state`;
  114. CREATE TABLE `lm_state` (
  115. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  116. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  117. `order` int (11) DEFAULT 0 COMMENT '订单id',
  118. `content` varchar (255)DEFAULT '' COMMENT '内容',
  119. `image` text DEFAULT '' COMMENT '图片,拼接',
  120. `add_time` text DEFAULT '' COMMENT '添加时间',
  121. PRIMARY KEY (`id`) USING BTREE
  122. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '申述' ROW_FORMAT = Compact;
  123. DROP TABLE IF EXISTS `lm_order`;
  124. CREATE TABLE `lm_order` (
  125. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  126. `type` int (1) DEFAULT 0 COMMENT '0 买入 1 卖出',
  127. `buy_user` int (11) DEFAULT 0 COMMENT '购买用户id',
  128. `push_user` int (11) DEFAULT 0 COMMENT '卖出用户id',
  129. `number` int (11) DEFAULT 0 COMMENT '发布数量',
  130. `enlarge_quota` int (11) DEFAULT 0 COMMENT '放大额度',
  131. `order` varchar (255) DEFAULT '' COMMENT '订单编号',
  132. `mining_id` int (11) DEFAULT 0 COMMENT '区块id',
  133. `status` int (1) DEFAULT 0 COMMENT '0 无匹配或待支付 1 已匹配或已支付 3 已完成 4 已撤销 5 交易失败',
  134. `add_time` varchar (20) DEFAULT '' COMMENT '添加时间',
  135. `stat_time` varchar (20) DEFAULT '' COMMENT '未支付结束时间',
  136. `end_time` varchar (20) DEFAULT '' COMMENT '完成时间',
  137. `msg` varchar (255) DEFAULT '' COMMENT '失败原因',
  138. `image`text DEFAULT '' COMMENT '上传图片,拼接',
  139. `breach_money` decimal (20,2) DEFAULT '0' COMMENT '违约金',
  140. `out_game` decimal (20,2) DEFAULT '0' COMMENT '出局手续费',
  141. PRIMARY KEY (`id`) USING BTREE
  142. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '发布订单' ROW_FORMAT = Compact;
  143. DROP TABLE IF EXISTS `lm_order_frequency`;
  144. CREATE TABLE `lm_order_frequency` (
  145. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  146. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  147. `mining_id` int (11) DEFAULT 0 COMMENT '区块id',
  148. `buy` int (11) DEFAULT 0 COMMENT '买入次数',
  149. `push` int (11) DEFAULT 0 COMMENT '卖出次数',
  150. PRIMARY KEY (`id`) USING BTREE
  151. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '交易次数统计' ROW_FORMAT = Compact;
  152. DROP TABLE IF EXISTS `lm_vendibility_finance`;
  153. CREATE TABLE `lm_vendibility_finance` (
  154. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  155. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  156. `mining_id` int (11) DEFAULT 0 COMMENT '区块id',
  157. `money` decimal (20,2) DEFAULT 0 COMMENT '获得交易区块',
  158. `pool` int(11) DEFAULT 0 COMMENT '矿池数量',
  159. `push_money` decimal (20,2) DEFAULT 0 COMMENT '可售额度',
  160. `add_time` varchar (20) DEFAULT '' COMMENT '添加时间',
  161. `buy` int (11) DEFAULT 0 COMMENT '当前买入次数',
  162. `push` int (11) DEFAULT 0 COMMENT '当前卖出次数',
  163. `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
  164. PRIMARY KEY (`id`) USING BTREE
  165. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '可售余额' ROW_FORMAT = Compact;
  166. DROP TABLE IF EXISTS `lm_commission_finance`;
  167. CREATE TABLE `lm_commission_finance` (
  168. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  169. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  170. `name` varchar (255) DEFAULT '' COMMENT '名称',
  171. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  172. `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
  173. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  174. PRIMARY KEY (`id`) USING BTREE
  175. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '佣金记录' ROW_FORMAT = Compact;
  176. DROP TABLE IF EXISTS `lm_bond_finance`;
  177. CREATE TABLE `lm_bond_finance` (
  178. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  179. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  180. `name` varchar (255) DEFAULT '' COMMENT '名称',
  181. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  182. `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
  183. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  184. PRIMARY KEY (`id`) USING BTREE
  185. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '保证金记录' ROW_FORMAT = Compact;
  186. DROP TABLE IF EXISTS `lm_bond`;
  187. CREATE TABLE `lm_bond` (
  188. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  189. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  190. `type` int (1) DEFAULT 0 COMMENT '0 充值 1 提现',
  191. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  192. `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
  193. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  194. PRIMARY KEY (`id`) USING BTREE
  195. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '保证金提现和充值' ROW_FORMAT = Compact;
  196. DROP TABLE IF EXISTS `lm_general_finance`;
  197. CREATE TABLE `lm_general_finance` (
  198. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  199. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  200. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  201. `actual_money` decimal (20,2) DEFAULT 0 COMMENT '实际到账金额',
  202. `charge_money` decimal (20,2) DEFAULT 0 COMMENT '手续费',
  203. `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
  204. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  205. PRIMARY KEY (`id`) USING BTREE
  206. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '通证充值' ROW_FORMAT = Compact;
  207. DROP TABLE IF EXISTS `lm_general_transfer`;
  208. CREATE TABLE `lm_general_transfer` (
  209. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  210. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  211. `puser_id` int (11) DEFAULT 0 COMMENT '收款用户id',
  212. `account` varchar (255) DEFAULT 0 COMMENT '转账账户',
  213. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  214. `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
  215. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  216. PRIMARY KEY (`id`) USING BTREE
  217. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '通证转账' ROW_FORMAT = Compact;
  218. DROP TABLE IF EXISTS `lm_finance`;
  219. CREATE TABLE `lm_finance` (
  220. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  221. `user_id` int (11) DEFAULT 0 COMMENT '用户id',
  222. `name` varchar (255) DEFAULT 0 COMMENT '金额',
  223. `money` decimal (20,2) DEFAULT 0 COMMENT '金额',
  224. `status` int (1) DEFAULT 0 COMMENT '0 增加 1减少',
  225. `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
  226. PRIMARY KEY (`id`) USING BTREE
  227. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '资产明细' ROW_FORMAT = Compact;
  228. DROP TABLE IF EXISTS `lm_system`;
  229. CREATE TABLE `lm_system` (
  230. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  231. `name` varchar (128) DEFAULT '' COMMENT '变量名称',
  232. `value` text DEFAULT '' COMMENT '内容',
  233. `type` varchar (128) DEFAULT '' COMMENT '类型',
  234. PRIMARY KEY (`id`) USING BTREE
  235. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统设置' ROW_FORMAT = Compact;
  236. DROP TABLE IF EXISTS `lm_about`;
  237. CREATE TABLE `lm_about` (
  238. `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  239. `text` text DEFAULT '' COMMENT '内容',
  240. PRIMARY KEY (`id`) USING BTREE
  241. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '关于我们' ROW_FORMAT = Compact;