_raw_schema.txt 117 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690
  1. Total tables: 145
  2. ---
  3. === TABLE: activity (rows: 0) ===
  4. CREATE TABLE `activity` (
  5. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  6. `activity_link` varchar(255) DEFAULT NULL,
  7. `create_time` datetime DEFAULT NULL,
  8. `detail` varchar(255) DEFAULT NULL,
  9. `image_url` varchar(255) DEFAULT NULL,
  10. `notice_link` varchar(255) DEFAULT NULL,
  11. `progress` int(11) NOT NULL,
  12. `settings` varchar(255) DEFAULT NULL,
  13. `status` int(11) DEFAULT NULL,
  14. `step` int(11) NOT NULL,
  15. `title` varchar(255) DEFAULT NULL,
  16. `type` int(11) NOT NULL,
  17. `accept_unit` varchar(255) NOT NULL,
  18. `amount_scale` int(11) NOT NULL,
  19. `banner_image_url` varchar(255) DEFAULT NULL,
  20. `content` text,
  21. `contenten` text,
  22. `detailen` varchar(255) DEFAULT NULL,
  23. `end_time` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '结束时间',
  24. `limit_times` int(11) NOT NULL,
  25. `max_limit_amout` decimal(24,8) DEFAULT NULL,
  26. `min_limit_amout` decimal(24,8) DEFAULT NULL,
  27. `price` decimal(18,8) DEFAULT NULL,
  28. `price_scale` int(11) NOT NULL,
  29. `small_image_url` varchar(255) DEFAULT NULL,
  30. `start_time` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '开始时间',
  31. `titleen` varchar(255) DEFAULT NULL,
  32. `total_supply` decimal(24,8) NOT NULL,
  33. `traded_amount` decimal(24,8) DEFAULT NULL,
  34. `unit` varchar(255) NOT NULL,
  35. `freeze_amount` decimal(26,8) DEFAULT NULL,
  36. `levelone_count` int(11) NOT NULL,
  37. `mining_days` int(11) NOT NULL,
  38. `mining_daysprofit` decimal(24,8) DEFAULT NULL,
  39. `mining_invite` decimal(24,8) DEFAULT NULL,
  40. `mining_invitelimit` decimal(24,8) DEFAULT NULL,
  41. `mining_unit` varchar(255) NOT NULL,
  42. `mining_period` int(11) NOT NULL,
  43. `hold_limit` decimal(24,8) DEFAULT NULL,
  44. `hold_unit` varchar(255) DEFAULT NULL,
  45. `locked_days` int(11) NOT NULL,
  46. `locked_fee` decimal(24,8) DEFAULT NULL,
  47. `locked_period` int(11) NOT NULL,
  48. `locked_unit` varchar(255) DEFAULT NULL,
  49. `release_amount` decimal(24,8) DEFAULT NULL,
  50. `release_percent` decimal(24,8) DEFAULT NULL,
  51. `release_times` decimal(24,8) DEFAULT NULL,
  52. `release_type` int(11) NOT NULL,
  53. PRIMARY KEY (`id`) USING BTREE
  54. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='创新实验室'
  55. === TABLE: activity_copy1 (rows: 0) ===
  56. CREATE TABLE `activity_copy1` (
  57. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  58. `activity_link` varchar(255) DEFAULT NULL,
  59. `create_time` datetime DEFAULT NULL,
  60. `detail` varchar(255) DEFAULT NULL,
  61. `image_url` varchar(255) DEFAULT NULL,
  62. `notice_link` varchar(255) DEFAULT NULL,
  63. `progress` int(11) NOT NULL,
  64. `settings` varchar(255) DEFAULT NULL,
  65. `status` int(11) DEFAULT NULL,
  66. `step` int(11) NOT NULL,
  67. `title` varchar(255) DEFAULT NULL,
  68. `type` int(11) NOT NULL,
  69. `accept_unit` varchar(255) NOT NULL,
  70. `amount_scale` int(11) NOT NULL,
  71. `banner_image_url` varchar(255) DEFAULT NULL,
  72. `content` text,
  73. `contenten` text,
  74. `detailen` varchar(255) DEFAULT NULL,
  75. `end_time` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '结束时间',
  76. `limit_times` int(11) NOT NULL,
  77. `max_limit_amout` decimal(24,8) DEFAULT NULL,
  78. `min_limit_amout` decimal(24,8) DEFAULT NULL,
  79. `price` decimal(18,8) DEFAULT NULL,
  80. `price_scale` int(11) NOT NULL,
  81. `small_image_url` varchar(255) DEFAULT NULL,
  82. `start_time` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '开始时间',
  83. `titleen` varchar(255) DEFAULT NULL,
  84. `total_supply` decimal(24,8) NOT NULL,
  85. `traded_amount` decimal(24,8) DEFAULT NULL,
  86. `unit` varchar(255) NOT NULL,
  87. `freeze_amount` decimal(26,8) DEFAULT NULL,
  88. `levelone_count` int(11) NOT NULL,
  89. `mining_days` int(11) NOT NULL,
  90. `mining_daysprofit` decimal(24,8) DEFAULT NULL,
  91. `mining_invite` decimal(24,8) DEFAULT NULL,
  92. `mining_invitelimit` decimal(24,8) DEFAULT NULL,
  93. `mining_unit` varchar(255) NOT NULL,
  94. `mining_period` int(11) NOT NULL,
  95. `hold_limit` decimal(24,8) DEFAULT NULL,
  96. `hold_unit` varchar(255) DEFAULT NULL,
  97. `locked_days` int(11) NOT NULL,
  98. `locked_fee` decimal(24,8) DEFAULT NULL,
  99. `locked_period` int(11) NOT NULL,
  100. `locked_unit` varchar(255) DEFAULT NULL,
  101. `release_amount` decimal(24,8) DEFAULT NULL,
  102. `release_percent` decimal(24,8) DEFAULT NULL,
  103. `release_times` decimal(24,8) DEFAULT NULL,
  104. `release_type` int(11) NOT NULL,
  105. PRIMARY KEY (`id`) USING BTREE
  106. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='创新实验室'
  107. === TABLE: activity_order (rows: 0) ===
  108. CREATE TABLE `activity_order` (
  109. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  110. `activity_id` bigint(20) DEFAULT NULL,
  111. `amount` decimal(24,8) DEFAULT NULL,
  112. `base_symbol` varchar(255) DEFAULT NULL,
  113. `coin_symbol` varchar(255) DEFAULT NULL,
  114. `create_time` datetime DEFAULT NULL,
  115. `freeze_amount` decimal(24,8) DEFAULT NULL,
  116. `member_id` bigint(20) DEFAULT NULL,
  117. `price` decimal(24,8) DEFAULT NULL,
  118. `state` int(11) NOT NULL,
  119. `turnover` decimal(26,16) DEFAULT NULL,
  120. `type` int(11) NOT NULL,
  121. PRIMARY KEY (`id`) USING BTREE
  122. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  123. === TABLE: admin (rows: 2) ===
  124. CREATE TABLE `admin` (
  125. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  126. `avatar` varchar(255) DEFAULT NULL,
  127. `email` varchar(255) DEFAULT NULL,
  128. `enable` int(11) DEFAULT NULL,
  129. `last_login_ip` varchar(255) DEFAULT NULL,
  130. `last_login_time` datetime DEFAULT NULL,
  131. `mobile_phone` varchar(255) NOT NULL,
  132. `password` varchar(255) DEFAULT NULL,
  133. `qq` varchar(255) DEFAULT NULL,
  134. `real_name` varchar(255) NOT NULL,
  135. `role_id` bigint(20) NOT NULL,
  136. `status` int(11) DEFAULT NULL,
  137. `username` varchar(255) NOT NULL,
  138. `department_id` bigint(20) NOT NULL,
  139. PRIMARY KEY (`id`) USING BTREE,
  140. UNIQUE KEY `UK_gfn44sntic2k93auag97juyij` (`username`) USING BTREE,
  141. KEY `FKibjnyhe6m46qfkc6vgbir1ucq` (`department_id`) USING BTREE,
  142. CONSTRAINT `FKnmmt6f2kg0oaxr11uhy7qqf3w` FOREIGN KEY (`department_id`) REFERENCES `department` (`id`)
  143. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='管理员'
  144. === TABLE: admin_access_log (rows: 0) ===
  145. CREATE TABLE `admin_access_log` (
  146. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  147. `access_ip` varchar(255) DEFAULT NULL,
  148. `access_method` varchar(255) DEFAULT NULL,
  149. `access_time` datetime DEFAULT NULL,
  150. `admin_id` bigint(20) DEFAULT NULL,
  151. `module` int(11) DEFAULT NULL,
  152. `operation` varchar(255) DEFAULT NULL,
  153. `uri` varchar(255) DEFAULT NULL,
  154. PRIMARY KEY (`id`) USING BTREE
  155. ) ENGINE=InnoDB AUTO_INCREMENT=4023250 DEFAULT CHARSET=utf8 COMMENT='管理员访问日志'
  156. === TABLE: admin_permission (rows: 277) ===
  157. CREATE TABLE `admin_permission` (
  158. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  159. `title` varchar(255) DEFAULT NULL,
  160. `name` varchar(255) DEFAULT NULL,
  161. `parent_id` bigint(20) DEFAULT NULL,
  162. `sort` int(11) DEFAULT NULL,
  163. `description` varchar(255) DEFAULT NULL,
  164. PRIMARY KEY (`id`)
  165. ) ENGINE=InnoDB AUTO_INCREMENT=292 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='后台菜单'
  166. === TABLE: admin_role (rows: 2) ===
  167. CREATE TABLE `admin_role` (
  168. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  169. `description` varchar(255) DEFAULT NULL,
  170. `role` varchar(255) NOT NULL,
  171. PRIMARY KEY (`id`) USING BTREE
  172. ) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8 COMMENT='后台角色'
  173. === TABLE: admin_role_permission (rows: 478) ===
  174. CREATE TABLE `admin_role_permission` (
  175. `role_id` bigint(20) NOT NULL,
  176. `rule_id` bigint(20) NOT NULL,
  177. UNIQUE KEY `UKplesprlvm1sob8nl9yc5rgh3m` (`role_id`,`rule_id`) USING BTREE,
  178. KEY `FK52rddd3qje4p49iubt08gplb5` (`role_id`) USING BTREE,
  179. KEY `FKqf3fhgl5mjqqb0jeupx7yafh0` (`rule_id`) USING BTREE,
  180. CONSTRAINT `FK52rddd3qje4p49iubt08gplb5` FOREIGN KEY (`role_id`) REFERENCES `admin_role` (`id`),
  181. CONSTRAINT `FKqf3fhgl5mjqqb0jeupx7yafh0` FOREIGN KEY (`rule_id`) REFERENCES `admin_permission` (`id`)
  182. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台用户权限'
  183. === TABLE: advertise (rows: 0) ===
  184. CREATE TABLE `advertise` (
  185. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  186. `advertise_type` int(11) NOT NULL,
  187. `auto` int(11) DEFAULT NULL,
  188. `autoword` varchar(255) DEFAULT NULL,
  189. `coin_unit` varchar(255) DEFAULT NULL,
  190. `create_time` datetime DEFAULT NULL,
  191. `deal_amount` decimal(18,8) DEFAULT NULL COMMENT '交易中数量',
  192. `level` int(11) DEFAULT NULL,
  193. `limit_money` varchar(255) DEFAULT NULL,
  194. `max_limit` decimal(18,2) DEFAULT NULL COMMENT '最高单笔交易额',
  195. `min_limit` decimal(18,2) DEFAULT NULL COMMENT '最低单笔交易额',
  196. `number` decimal(18,8) DEFAULT NULL COMMENT '计划数量',
  197. `pay_mode` varchar(255) DEFAULT NULL,
  198. `premise_rate` decimal(18,6) DEFAULT NULL COMMENT '溢价百分比',
  199. `price` decimal(18,2) DEFAULT NULL COMMENT '交易价格',
  200. `price_type` int(11) NOT NULL,
  201. `remain_amount` decimal(18,8) DEFAULT NULL COMMENT '计划剩余数量',
  202. `remark` varchar(255) DEFAULT NULL,
  203. `status` int(11) DEFAULT NULL,
  204. `audit_status` int(2) DEFAULT '0' COMMENT '审核状态0待审核1审核通过2不通过',
  205. `audit_remark` varchar(255) DEFAULT NULL COMMENT '审核不通过备注',
  206. `time_limit` int(11) DEFAULT NULL,
  207. `update_time` datetime DEFAULT NULL,
  208. `username` varchar(255) DEFAULT NULL,
  209. `version` bigint(20) DEFAULT NULL,
  210. `coin_id` bigint(20) NOT NULL,
  211. `country` varchar(255) NOT NULL,
  212. `member_id` bigint(20) NOT NULL,
  213. PRIMARY KEY (`id`) USING BTREE,
  214. KEY `FK75rse9iecdnimf8ugtf20c43l` (`coin_id`) USING BTREE,
  215. KEY `FK9lueh92242ckyajg17xr9tcie` (`country`) USING BTREE,
  216. KEY `FKspoip5yq9ednwwondsga9c9k6` (`member_id`) USING BTREE,
  217. CONSTRAINT `FK75rse9iecdnimf8ugtf20c43l` FOREIGN KEY (`coin_id`) REFERENCES `otc_coin` (`id`),
  218. CONSTRAINT `FK9lueh92242ckyajg17xr9tcie` FOREIGN KEY (`country`) REFERENCES `country` (`zh_name`),
  219. CONSTRAINT `FKspoip5yq9ednwwondsga9c9k6` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  220. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  221. === TABLE: agent_daily_info (rows: 0) ===
  222. CREATE TABLE `agent_daily_info` (
  223. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  224. `member_id` bigint(20) NOT NULL,
  225. `balance` decimal(19,8) NOT NULL,
  226. `recharge` decimal(19,8) NOT NULL,
  227. `withdraw` decimal(19,8) NOT NULL,
  228. `profit` decimal(19,8) NOT NULL,
  229. `loss` decimal(19,8) NOT NULL,
  230. `fee` decimal(19,8) NOT NULL,
  231. `award` decimal(19,8) NOT NULL,
  232. `create_time` date NOT NULL,
  233. PRIMARY KEY (`id`)
  234. ) ENGINE=InnoDB AUTO_INCREMENT=439220 DEFAULT CHARSET=utf8mb4
  235. === TABLE: agent_info (rows: 0) ===
  236. CREATE TABLE `agent_info` (
  237. `id` bigint(20) NOT NULL,
  238. `name` varchar(200) NOT NULL,
  239. `phone` varchar(200) NOT NULL,
  240. `address` varchar(4000) NOT NULL,
  241. PRIMARY KEY (`id`)
  242. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  243. === TABLE: agent_level (rows: 0) ===
  244. CREATE TABLE `agent_level` (
  245. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  246. `level` int(11) NOT NULL,
  247. `rate` int(11) NOT NULL,
  248. PRIMARY KEY (`id`)
  249. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  250. === TABLE: airdrop_event (rows: 0) ===
  251. CREATE TABLE `airdrop_event` (
  252. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  253. `member_id` bigint(20) NOT NULL,
  254. `source_member_id` bigint(20) NOT NULL,
  255. `source_user_name` varchar(200) NOT NULL,
  256. `type` int(1) NOT NULL,
  257. `source_type` int(2) NOT NULL,
  258. `amount` int(6) NOT NULL,
  259. `content` varchar(200) DEFAULT NULL,
  260. `create_time` datetime NOT NULL,
  261. PRIMARY KEY (`id`),
  262. KEY `member_id` (`member_id`)
  263. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  264. === TABLE: airdrop_mission (rows: 0) ===
  265. CREATE TABLE `airdrop_mission` (
  266. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  267. `member_id` int(20) DEFAULT NULL,
  268. `source_member_id` int(20) NOT NULL,
  269. `max_recharge` decimal(18,8) NOT NULL,
  270. `order_count` int(6) NOT NULL,
  271. `type` int(1) NOT NULL,
  272. `sign_count` int(6) NOT NULL,
  273. `sign_date` date DEFAULT NULL,
  274. `sign_status` int(1) NOT NULL,
  275. `remind_date` date DEFAULT NULL,
  276. PRIMARY KEY (`id`),
  277. UNIQUE KEY `source_member_id` (`source_member_id`)
  278. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  279. === TABLE: airdrop_wallet (rows: 0) ===
  280. CREATE TABLE `airdrop_wallet` (
  281. `id` bigint(20) NOT NULL,
  282. `balance` decimal(18,8) NOT NULL,
  283. `frozen_balance` decimal(18,8) NOT NULL,
  284. `total_balance` decimal(18,8) NOT NULL,
  285. `thawed_balance` decimal(18,8) NOT NULL,
  286. `sign_clear` int(1) NOT NULL,
  287. `order_clear` int(1) NOT NULL,
  288. `first_recharge` decimal(18,8) NOT NULL,
  289. PRIMARY KEY (`id`)
  290. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  291. === TABLE: android_log (rows: 0) ===
  292. CREATE TABLE `android_log` (
  293. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  294. `error` varchar(2000) DEFAULT NULL,
  295. `os` varchar(2000) DEFAULT NULL,
  296. `member_id` bigint(20) DEFAULT NULL,
  297. `create_time` datetime NOT NULL,
  298. PRIMARY KEY (`id`)
  299. ) ENGINE=InnoDB AUTO_INCREMENT=5618427 DEFAULT CHARSET=utf8
  300. === TABLE: announcement (rows: 4) ===
  301. CREATE TABLE `announcement` (
  302. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  303. `content` mediumtext,
  304. `create_time` datetime DEFAULT NULL,
  305. `img_url` varchar(255) DEFAULT NULL,
  306. `is_show` bit(1) DEFAULT NULL,
  307. `is_popup` bit(1) DEFAULT NULL,
  308. `is_top` varchar(255) DEFAULT NULL,
  309. `sort` int(11) NOT NULL,
  310. `title` varchar(255) NOT NULL,
  311. `lang` varchar(255) DEFAULT NULL,
  312. `announcement_classification` int(11) NOT NULL,
  313. PRIMARY KEY (`id`) USING BTREE
  314. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='公告'
  315. === TABLE: app_revision (rows: 2) ===
  316. CREATE TABLE `app_revision` (
  317. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  318. `download_url` varchar(255) DEFAULT NULL,
  319. `platform` int(11) DEFAULT NULL,
  320. `publish_time` datetime DEFAULT NULL,
  321. `remark` varchar(255) DEFAULT NULL,
  322. `version` varchar(255) DEFAULT NULL,
  323. `lowest_version` varchar(255) DEFAULT NULL,
  324. `update_description` text,
  325. PRIMARY KEY (`id`) USING BTREE
  326. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='APP版本'
  327. === TABLE: appeal (rows: 0) ===
  328. CREATE TABLE `appeal` (
  329. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  330. `associate_id` bigint(20) DEFAULT NULL,
  331. `create_time` datetime DEFAULT NULL,
  332. `deal_with_time` datetime DEFAULT NULL,
  333. `initiator_id` bigint(20) DEFAULT NULL,
  334. `is_success` int(11) DEFAULT NULL,
  335. `remark` varchar(500) DEFAULT NULL,
  336. `status` int(11) DEFAULT NULL,
  337. `admin_id` bigint(20) DEFAULT NULL,
  338. `order_id` bigint(20) NOT NULL,
  339. PRIMARY KEY (`id`) USING BTREE,
  340. UNIQUE KEY `UK_todwxorutclquf69bwow70kml` (`order_id`) USING BTREE,
  341. KEY `FKanmcnj859x2tv3y0pv7u05cqa` (`admin_id`) USING BTREE,
  342. CONSTRAINT `FKanmcnj859x2tv3y0pv7u05cqa` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`),
  343. CONSTRAINT `FKs3vo8h01sq39icylq1qdwekn1` FOREIGN KEY (`order_id`) REFERENCES `otc_order` (`id`)
  344. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='OTC投诉'
  345. === TABLE: bug_report (rows: 0) ===
  346. CREATE TABLE `bug_report` (
  347. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  348. `report_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  349. `bug_content` text NOT NULL,
  350. PRIMARY KEY (`id`)
  351. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  352. === TABLE: business_auth_apply (rows: 0) ===
  353. CREATE TABLE `business_auth_apply` (
  354. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  355. `amount` decimal(19,2) DEFAULT NULL,
  356. `auditing_time` datetime DEFAULT NULL,
  357. `auth_info` text,
  358. `certified_business_status` int(11) DEFAULT NULL,
  359. `create_time` datetime DEFAULT NULL,
  360. `deposit_record_id` varchar(255) DEFAULT NULL,
  361. `detail` varchar(255) DEFAULT NULL,
  362. `update_time` datetime DEFAULT NULL,
  363. `business_auth_deposit_id` bigint(20) DEFAULT NULL,
  364. `member_id` bigint(20) DEFAULT NULL,
  365. PRIMARY KEY (`id`) USING BTREE,
  366. KEY `FKds72omottejlk5isd34ha5i10` (`business_auth_deposit_id`) USING BTREE,
  367. KEY `FKdghp8ri44t77ntuw06gicphuu` (`member_id`) USING BTREE,
  368. CONSTRAINT `FKdghp8ri44t77ntuw06gicphuu` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`),
  369. CONSTRAINT `FKds72omottejlk5isd34ha5i10` FOREIGN KEY (`business_auth_deposit_id`) REFERENCES `business_auth_deposit` (`id`)
  370. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='OTC商家申请'
  371. === TABLE: business_auth_deposit (rows: 0) ===
  372. CREATE TABLE `business_auth_deposit` (
  373. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  374. `amount` decimal(18,8) DEFAULT NULL COMMENT '保证金数额',
  375. `create_time` datetime DEFAULT NULL,
  376. `status` int(11) DEFAULT NULL,
  377. `admin_id` bigint(20) DEFAULT NULL,
  378. `coin_id` varchar(255) DEFAULT NULL,
  379. PRIMARY KEY (`id`) USING BTREE,
  380. KEY `FKfj3hxtr3ae1yma9bxeuqc29pj` (`admin_id`) USING BTREE,
  381. KEY `FKjx7799a3pwdtnu43fkpn27kj6` (`coin_id`) USING BTREE,
  382. CONSTRAINT `FKfj3hxtr3ae1yma9bxeuqc29pj` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`),
  383. CONSTRAINT `FKjx7799a3pwdtnu43fkpn27kj6` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  384. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='OTC商家质押币种'
  385. === TABLE: bussiness_cancel_apply (rows: 0) ===
  386. CREATE TABLE `bussiness_cancel_apply` (
  387. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  388. `cancel_apply_time` datetime DEFAULT NULL,
  389. `deposit_record_id` varchar(255) DEFAULT NULL,
  390. `detail` varchar(255) DEFAULT NULL,
  391. `handle_time` datetime DEFAULT NULL,
  392. `reason` varchar(255) DEFAULT NULL,
  393. `status` int(11) DEFAULT NULL,
  394. `member_id` bigint(20) DEFAULT NULL,
  395. PRIMARY KEY (`id`) USING BTREE,
  396. KEY `FKbwtwtm0jd1eqa8dh7e8ychcx1` (`member_id`) USING BTREE,
  397. CONSTRAINT `FKbwtwtm0jd1eqa8dh7e8ychcx1` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  398. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='OTC商家退出'
  399. === TABLE: coin (rows: 38) ===
  400. CREATE TABLE `coin` (
  401. `id` bigint(255) DEFAULT NULL,
  402. `name` varchar(255) NOT NULL,
  403. `can_auto_withdraw` int(11) DEFAULT NULL,
  404. `can_recharge` int(11) DEFAULT NULL,
  405. `can_transfer` int(11) DEFAULT NULL,
  406. `can_withdraw` int(11) DEFAULT NULL,
  407. `cny_rate` double NOT NULL,
  408. `enable_rpc` int(11) DEFAULT NULL,
  409. `is_platform_coin` int(11) DEFAULT NULL,
  410. `max_tx_fee` double NOT NULL,
  411. `max_withdraw_amount` decimal(18,8) DEFAULT NULL COMMENT '最大提币数量',
  412. `min_tx_fee` double NOT NULL,
  413. `min_withdraw_amount` decimal(18,8) DEFAULT NULL COMMENT '最小提币数量',
  414. `name_cn` varchar(255) NOT NULL,
  415. `sort` int(11) NOT NULL,
  416. `status` int(11) DEFAULT NULL,
  417. `unit` varchar(255) NOT NULL,
  418. `usd_rate` double NOT NULL,
  419. `withdraw_threshold` decimal(18,8) DEFAULT NULL COMMENT '提现阈值',
  420. `has_legal` bit(1) NOT NULL DEFAULT b'0',
  421. `cold_wallet_address` varchar(255) DEFAULT NULL,
  422. `miner_fee` decimal(18,8) DEFAULT NULL COMMENT '矿工费',
  423. `withdraw_scale` int(11) DEFAULT '4' COMMENT '提币精度',
  424. `information` varchar(255) DEFAULT NULL,
  425. `infolink` varchar(255) DEFAULT NULL,
  426. `account_type` int(11) DEFAULT '0' COMMENT '币种账户类型',
  427. `deposit_address` varchar(255) DEFAULT NULL,
  428. `min_recharge_amount` decimal(18,8) DEFAULT NULL COMMENT '最小充值数量',
  429. `withdraw_fee_type` int(2) NOT NULL DEFAULT '0',
  430. `withdraw_fee_value` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  431. `can_search` int(1) DEFAULT NULL,
  432. PRIMARY KEY (`name`) USING BTREE
  433. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='币种'
  434. === TABLE: contract_coin (rows: 26) ===
  435. CREATE TABLE `contract_coin` (
  436. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  437. `base_coin_scale` int(11) NOT NULL,
  438. `base_symbol` varchar(255) DEFAULT NULL,
  439. `close_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '平仓手续费',
  440. `coin_scale` int(11) NOT NULL,
  441. `coin_symbol` varchar(255) DEFAULT NULL,
  442. `enable` int(2) DEFAULT '1' COMMENT '状态',
  443. `enable_market_buy` int(2) DEFAULT '1' COMMENT '是否启用市价开仓做多',
  444. `enable_market_sell` int(2) DEFAULT '1' COMMENT '是否启用市价开仓做空',
  445. `enable_open_buy` int(2) DEFAULT '1' COMMENT '是否允许开仓做多',
  446. `enable_open_sell` int(2) DEFAULT '1' COMMENT '是否允许开仓做空',
  447. `enable_trigger_entrust` int(2) DEFAULT '1' COMMENT '是否启用开仓计划委托',
  448. `exchangeable` int(2) DEFAULT '1' COMMENT '是否可交易',
  449. `fee_percent` decimal(18,8) DEFAULT '0.00100000' COMMENT '隔夜费率',
  450. `interval_hour` int(11) DEFAULT '1' COMMENT '点差类型',
  451. `leverage` varchar(255) DEFAULT NULL,
  452. `leverage_type` int(2) DEFAULT '1' COMMENT '点差类型',
  453. `maintenance_margin_rate` decimal(18,8) DEFAULT '0.00500000' COMMENT '维持保证金率',
  454. `maker_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '平多手续费',
  455. `max_share` decimal(18,8) DEFAULT '1000.00000000' COMMENT '最大手数',
  456. `min_share` decimal(18,8) DEFAULT '1.00000000' COMMENT '最小手数',
  457. `name` varchar(255) DEFAULT NULL,
  458. `open_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '开仓手续费',
  459. `share_number` decimal(18,8) DEFAULT '0.00000000' COMMENT '单位手数',
  460. `sort` int(11) NOT NULL,
  461. `spread` decimal(18,8) DEFAULT '0.00000000' COMMENT '点差',
  462. `spread_type` int(2) DEFAULT '1' COMMENT '点差类型',
  463. `symbol` varchar(255) DEFAULT NULL,
  464. `taker_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '平空手续费',
  465. `total_close_fee` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约总平仓手续费',
  466. `total_loss` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约平台亏损',
  467. `total_open_fee` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约总开仓手续费',
  468. `total_profit` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约平台盈利',
  469. `type` int(11) DEFAULT '0' COMMENT '合约类型',
  470. `visible` int(2) DEFAULT '1' COMMENT '前台可见状态',
  471. `max_total_share` decimal(18,8) DEFAULT NULL,
  472. `max_upper_total_share` decimal(18,8) DEFAULT NULL,
  473. `leverage_threshold` int(6) DEFAULT NULL,
  474. `max_top_total_share` decimal(18,8) DEFAULT NULL,
  475. `top_leverage_threshold` int(6) DEFAULT NULL,
  476. `follow_fee` decimal(18,8) DEFAULT NULL,
  477. `min_scale` int(6) NOT NULL DEFAULT '0',
  478. PRIMARY KEY (`id`) USING BTREE
  479. ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='永续合约交易对'
  480. === TABLE: contract_option (rows: 0) ===
  481. CREATE TABLE `contract_option` (
  482. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  483. `close_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '收盘价格',
  484. `close_time` bigint(20) DEFAULT NULL,
  485. `create_time` bigint(20) DEFAULT NULL,
  486. `init_buy` decimal(18,8) DEFAULT '0.00000000' COMMENT '买涨奖池总金额',
  487. `init_sell` decimal(18,8) DEFAULT '0.00000000' COMMENT '买涨奖池总金额',
  488. `open_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '开盘价格',
  489. `open_time` bigint(20) DEFAULT NULL,
  490. `option_no` int(11) DEFAULT '0' COMMENT '合约序号',
  491. `result` int(4) DEFAULT '1' COMMENT '当局结果',
  492. `status` int(4) DEFAULT '1' COMMENT '本期合约状态',
  493. `symbol` varchar(255) DEFAULT NULL,
  494. `total_buy` decimal(18,8) DEFAULT '0.00000000' COMMENT '买涨奖池总金额',
  495. `total_buy_count` int(11) DEFAULT '0' COMMENT '买涨人数',
  496. `total_pl` decimal(18,8) DEFAULT '0.00000000' COMMENT '买涨奖池总金额',
  497. `total_sell` decimal(18,8) DEFAULT '0.00000000' COMMENT '买跌奖池总金额',
  498. `total_sell_count` int(11) DEFAULT '0' COMMENT '买涨人数',
  499. `preset_price` decimal(18,8) DEFAULT NULL COMMENT '预设价格',
  500. PRIMARY KEY (`id`)
  501. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='期权合约开奖记录'
  502. === TABLE: contract_option_coin (rows: 0) ===
  503. CREATE TABLE `contract_option_coin` (
  504. `symbol` varchar(255) NOT NULL,
  505. `amount` varchar(255) DEFAULT NULL,
  506. `base_coin_scale` int(11) DEFAULT '4' COMMENT '基币小数精度',
  507. `base_symbol` varchar(255) DEFAULT NULL,
  508. `close_time_gap` int(11) DEFAULT '300' COMMENT '开盘到收盘时间间隔',
  509. `coin_scale` int(11) DEFAULT '4' COMMENT '交易币小数精度',
  510. `coin_symbol` varchar(255) DEFAULT NULL,
  511. `create_time` datetime DEFAULT NULL,
  512. `enable` int(2) DEFAULT '1' COMMENT '状态',
  513. `enable_buy` int(2) DEFAULT '1' COMMENT '是否允许看涨',
  514. `enable_sell` int(2) DEFAULT '1' COMMENT '是否允许看跌',
  515. `oods` decimal(8,4) DEFAULT '1.0000' COMMENT '赔率',
  516. `fee_percent` decimal(8,4) DEFAULT '0.0000' COMMENT '开仓手续费',
  517. `init_buy_reward` decimal(12,4) DEFAULT '0.0000' COMMENT '初始买涨奖池金额',
  518. `init_sell_reward` decimal(12,4) DEFAULT '0.0000' COMMENT '初始买跌奖池金额',
  519. `max_option_no` int(11) DEFAULT '0' COMMENT '最新期号',
  520. `name` varchar(255) DEFAULT NULL,
  521. `ngnore_percent` decimal(8,4) DEFAULT '0.0001' COMMENT '忽视涨跌幅度',
  522. `open_time_gap` int(11) DEFAULT '300' COMMENT '开始到开盘时间间隔',
  523. `sort` int(11) DEFAULT '0' COMMENT '排序',
  524. `tied_type` int(2) DEFAULT '1' COMMENT '平局处理方式',
  525. `total_profit` decimal(8,4) DEFAULT '0.0000' COMMENT '预测合约总盈利',
  526. `visible` int(2) DEFAULT '1' COMMENT '前台可见状态',
  527. `win_fee_percent` decimal(8,4) DEFAULT '0.0010' COMMENT '赢家手续费',
  528. PRIMARY KEY (`symbol`)
  529. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='期权合约交易对'
  530. === TABLE: contract_option_order (rows: 0) ===
  531. CREATE TABLE `contract_option_order` (
  532. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  533. `base_symbol` varchar(255) DEFAULT NULL,
  534. `bet_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '投注金额',
  535. `coin_symbol` varchar(255) DEFAULT NULL,
  536. `create_time` bigint(20) DEFAULT NULL,
  537. `direction` int(4) DEFAULT '1' COMMENT '方向',
  538. `fee` decimal(18,8) DEFAULT '0.00000000' COMMENT '手续费',
  539. `member_id` bigint(20) DEFAULT NULL,
  540. `option_id` bigint(20) DEFAULT NULL,
  541. `option_no` int(11) DEFAULT '0' COMMENT '合约序号',
  542. `result` int(4) DEFAULT '1' COMMENT '参与结果',
  543. `reward_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '胜利奖金',
  544. `status` int(4) DEFAULT '1' COMMENT '订单状态',
  545. `symbol` varchar(255) DEFAULT NULL,
  546. `win_fee` decimal(18,8) DEFAULT '0.00000000' COMMENT '抽水',
  547. PRIMARY KEY (`id`)
  548. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='期权合约订单'
  549. === TABLE: contract_order_entrust (rows: 0) ===
  550. CREATE TABLE `contract_order_entrust` (
  551. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  552. `base_symbol` varchar(255) DEFAULT NULL,
  553. `close_fee` decimal(18,8) DEFAULT '0.00000000' COMMENT '开仓手续费',
  554. `coin_symbol` varchar(255) DEFAULT NULL,
  555. `contract_id` bigint(20) DEFAULT NULL,
  556. `contract_order_entrust_id` varchar(255) DEFAULT NULL,
  557. `create_time` bigint(20) DEFAULT NULL,
  558. `current_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '下单时价',
  559. `direction` int(11) DEFAULT '1' COMMENT '方向',
  560. `entrust_price` decimal(18,8) DEFAULT NULL,
  561. `entrust_type` int(11) DEFAULT '0' COMMENT '委托订单类型',
  562. `is_blast` int(2) DEFAULT '0' COMMENT '是否是计划委托的委托单',
  563. `is_from_spot` int(2) DEFAULT '0' COMMENT '是否是计划委托的委托单',
  564. `member_id` bigint(20) DEFAULT NULL,
  565. `open_fee` decimal(18,8) DEFAULT '0.00000000' COMMENT '开仓手续费',
  566. `patterns` int(11) DEFAULT '1' COMMENT '仓位模式',
  567. `principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '本金数量',
  568. `principal_unit` varchar(255) DEFAULT NULL,
  569. `profit_and_loss` decimal(18,8) DEFAULT '0.00000000' COMMENT '盈亏',
  570. `share_number` decimal(18,8) DEFAULT '0.00000000' COMMENT '合约面值',
  571. `status` int(11) DEFAULT NULL,
  572. `symbol` varchar(255) DEFAULT NULL,
  573. `traded_price` decimal(18,8) DEFAULT NULL,
  574. `traded_volume` decimal(18,8) DEFAULT '0.00000000' COMMENT '委托数量',
  575. `trigger_price` decimal(18,8) DEFAULT NULL,
  576. `triggering_time` bigint(20) DEFAULT NULL,
  577. `type` int(11) DEFAULT NULL,
  578. `volume` decimal(18,8) DEFAULT '0.00000000' COMMENT '委托数量',
  579. `is_reward` int(2) DEFAULT '0' COMMENT '是否已返佣',
  580. `loss_price` decimal(18,8) DEFAULT '0.00000000',
  581. `loss_entrust_price` decimal(18,8) DEFAULT '0.00000000',
  582. `profit_price` decimal(18,8) DEFAULT '0.00000000',
  583. `profit_entrust_price` decimal(18,8) DEFAULT '0.00000000',
  584. `is_cut` int(2) DEFAULT '0',
  585. `usdt_open_time` bigint(20) DEFAULT '0',
  586. `usdt_open_price` decimal(19,8) DEFAULT '0.00000000',
  587. `is_one_close` int(2) DEFAULT '0',
  588. `is_limit_price` int(2) DEFAULT '0',
  589. `is_market_all_close` int(2) DEFAULT '0',
  590. `is_open` int(2) DEFAULT '0',
  591. `is_reversed_open` int(2) DEFAULT '0',
  592. `leverage` int(6) DEFAULT NULL,
  593. `deal_time` bigint(20) DEFAULT '0',
  594. `position_id` bigint(20) DEFAULT NULL,
  595. `position_type` int(1) NOT NULL,
  596. `money_type` int(1) NOT NULL DEFAULT '1',
  597. `open_type` int(1) DEFAULT NULL,
  598. `close_type` int(1) DEFAULT NULL,
  599. `decimal_scale` int(1) NOT NULL DEFAULT '1',
  600. `is_percentage` int(1) DEFAULT NULL,
  601. `violate_time` int(1) DEFAULT NULL,
  602. `follow_id` bigint(20) DEFAULT NULL,
  603. `follow_system_id` bigint(20) DEFAULT NULL,
  604. `dividend_percent` decimal(18,8) DEFAULT NULL,
  605. `is_special` int(1) DEFAULT NULL,
  606. `percentage_volume` decimal(6,4) DEFAULT NULL,
  607. `cut_type` int(1) DEFAULT NULL,
  608. `min_follow_amount` decimal(18,8) DEFAULT NULL,
  609. `max_follow_amount` decimal(18,8) DEFAULT NULL,
  610. `trigger_counter` int(6) NOT NULL DEFAULT '0',
  611. `is_add` int(1) DEFAULT NULL,
  612. `hedge_id` bigint(20) DEFAULT NULL,
  613. PRIMARY KEY (`id`),
  614. KEY `member_id` (`member_id`),
  615. KEY `position_id` (`position_id`),
  616. KEY `status` (`status`),
  617. KEY `create_time` (`create_time`),
  618. KEY `is_reward` (`is_reward`),
  619. KEY `is_reward_2` (`is_reward`)
  620. ) ENGINE=InnoDB AUTO_INCREMENT=1564039 DEFAULT CHARSET=utf8 COMMENT='永续合约委托'
  621. === TABLE: contract_reward_record (rows: 0) ===
  622. CREATE TABLE `contract_reward_record` (
  623. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  624. `create_time` datetime DEFAULT NULL,
  625. `num` decimal(18,8) DEFAULT NULL COMMENT '奖励数量',
  626. `type` int(11) DEFAULT NULL,
  627. `coin_id` varchar(255) NOT NULL,
  628. `order_id` bigint(20) NOT NULL,
  629. `from_member_id` bigint(20) NOT NULL,
  630. `member_id` bigint(20) NOT NULL,
  631. PRIMARY KEY (`id`),
  632. KEY `FKpealk2hwhjppr85yi2764xhpo` (`coin_id`),
  633. KEY `FK390fr8sh5bnxuc8q23gat1kcl` (`order_id`),
  634. KEY `FK5ofrlnudc62tw7cc4ghapkjmp` (`from_member_id`),
  635. KEY `FKpto449dtrxryaovu5yrg5dm62` (`member_id`),
  636. KEY `create_time` (`create_time`),
  637. CONSTRAINT `FK390fr8sh5bnxuc8q23gat1kcl` FOREIGN KEY (`order_id`) REFERENCES `contract_order_entrust` (`id`),
  638. CONSTRAINT `FK5ofrlnudc62tw7cc4ghapkjmp` FOREIGN KEY (`from_member_id`) REFERENCES `member` (`id`),
  639. CONSTRAINT `FKpealk2hwhjppr85yi2764xhpo` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`),
  640. CONSTRAINT `FKpto449dtrxryaovu5yrg5dm62` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  641. ) ENGINE=InnoDB AUTO_INCREMENT=8586735 DEFAULT CHARSET=utf8 COMMENT='永续合约奖励记录'
  642. === TABLE: contract_second_coin (rows: 0) ===
  643. CREATE TABLE `contract_second_coin` (
  644. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  645. `base_coin_scale` int(11) NOT NULL,
  646. `base_symbol` varchar(255) DEFAULT NULL,
  647. `close_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '平仓手续费',
  648. `coin_scale` int(11) NOT NULL,
  649. `coin_symbol` varchar(255) DEFAULT NULL,
  650. `enable` int(2) DEFAULT '1' COMMENT '状态',
  651. `enable_market_buy` int(2) DEFAULT '1' COMMENT '是否启用市价开仓做多',
  652. `enable_market_sell` int(2) DEFAULT '1' COMMENT '是否启用市价开仓做空',
  653. `enable_open_buy` int(2) DEFAULT '1' COMMENT '是否允许开仓做多',
  654. `enable_open_sell` int(2) DEFAULT '1' COMMENT '是否允许开仓做空',
  655. `enable_trigger_entrust` int(2) DEFAULT '1' COMMENT '是否启用开仓计划委托',
  656. `exchangeable` int(2) DEFAULT '1' COMMENT '是否可交易',
  657. `fee_percent` decimal(18,8) DEFAULT '0.00100000' COMMENT '隔夜费率',
  658. `interval_hour` int(11) DEFAULT '1' COMMENT '点差类型',
  659. `leverage` varchar(255) DEFAULT NULL,
  660. `leverage_type` int(2) DEFAULT '1' COMMENT '点差类型',
  661. `maintenance_margin_rate` decimal(18,8) DEFAULT '0.00500000' COMMENT '维持保证金率',
  662. `maker_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '平多手续费',
  663. `max_share` decimal(18,8) DEFAULT '1000.00000000' COMMENT '最大手数',
  664. `min_share` decimal(18,8) DEFAULT '1.00000000' COMMENT '最小手数',
  665. `name` varchar(255) DEFAULT NULL,
  666. `open_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '开仓手续费',
  667. `share_number` decimal(18,8) DEFAULT '0.00000000' COMMENT '单位手数',
  668. `sort` int(11) NOT NULL,
  669. `spread` decimal(18,8) DEFAULT '0.00000000' COMMENT '点差',
  670. `spread_type` int(2) DEFAULT '1' COMMENT '点差类型',
  671. `symbol` varchar(255) DEFAULT NULL,
  672. `taker_fee` decimal(18,8) DEFAULT '0.00010000' COMMENT '平空手续费',
  673. `total_close_fee` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约总平仓手续费',
  674. `total_loss` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约平台亏损',
  675. `total_open_fee` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约总开仓手续费',
  676. `total_profit` decimal(26,8) DEFAULT '0.00000000' COMMENT '合约平台盈利',
  677. `type` int(11) DEFAULT '0' COMMENT '合约类型',
  678. `visible` int(2) DEFAULT '1' COMMENT '前台可见状态',
  679. PRIMARY KEY (`id`)
  680. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='秒合约交易对'
  681. === TABLE: contract_second_cycle (rows: 0) ===
  682. CREATE TABLE `contract_second_cycle` (
  683. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  684. `cycle_rate` decimal(20,8) DEFAULT '0.00000000' COMMENT '周期赔率',
  685. `cycle_length` bigint(20) DEFAULT NULL COMMENT '周期时长(秒)',
  686. `min_amount` decimal(20,8) DEFAULT '0.00000000' COMMENT '最小数量',
  687. `max_amount` decimal(20,8) DEFAULT '0.00000000' COMMENT '最大数量',
  688. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  689. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  690. PRIMARY KEY (`id`)
  691. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='秒合约周期'
  692. === TABLE: contract_second_order (rows: 0) ===
  693. CREATE TABLE `contract_second_order` (
  694. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  695. `bet_amount` decimal(20,8) DEFAULT '0.00000000' COMMENT '投注金额',
  696. `coin_symbol` varchar(50) DEFAULT NULL,
  697. `symbol` varchar(255) DEFAULT NULL,
  698. `direction` int(4) DEFAULT '1' COMMENT '方向',
  699. `fee` decimal(20,8) DEFAULT '0.00000000' COMMENT '手续费',
  700. `member_id` bigint(20) DEFAULT NULL COMMENT '用户id',
  701. `cycle_id` bigint(20) DEFAULT NULL COMMENT '周期id',
  702. `cycle_rate` decimal(20,8) DEFAULT NULL COMMENT '周期赔率',
  703. `cycle_length` bigint(20) DEFAULT NULL COMMENT '周期时长(秒)',
  704. `open_price` decimal(20,8) DEFAULT '0.00000000' COMMENT '开仓价格',
  705. `close_price` decimal(20,8) DEFAULT '0.00000000' COMMENT '平仓价格',
  706. `pre_close_price` decimal(20,8) DEFAULT '0.00000000' COMMENT '预设平仓价格',
  707. `type` int(2) DEFAULT '0' COMMENT '是否包赔 0否 1是',
  708. `result` int(4) DEFAULT '0' COMMENT '结果 0无结果 1成功 2失败 3撤销',
  709. `win_amount` decimal(20,8) DEFAULT '0.00000000' COMMENT '盈利数量',
  710. `status` int(4) DEFAULT '0' COMMENT '订单状态 0委托中 1持仓中 2平仓 3撤销',
  711. `close_time` datetime DEFAULT NULL COMMENT '结束时间',
  712. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  713. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  714. PRIMARY KEY (`id`) USING BTREE
  715. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='秒合约订单'
  716. === TABLE: contract_second_set (rows: 0) ===
  717. CREATE TABLE `contract_second_set` (
  718. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  719. `start_time` varchar(50) DEFAULT NULL COMMENT '包赔开始时间(时分 HH:mm:ss)',
  720. `end_time` varchar(50) DEFAULT NULL COMMENT '包赔结束时间(时分 HH:mm:ss)',
  721. `order_num` int(4) DEFAULT '0' COMMENT '每天包赔数量',
  722. `limit_rate` decimal(20,8) DEFAULT '0.00000000' COMMENT '超过余额百分比不包赔(小数)',
  723. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  724. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  725. PRIMARY KEY (`id`)
  726. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='秒合约设置'
  727. === TABLE: country (rows: 235) ===
  728. CREATE TABLE `country` (
  729. `zh_name` varchar(255) NOT NULL COMMENT '中文名称',
  730. `area_code` varchar(255) DEFAULT NULL COMMENT '英文名称',
  731. `en_name` varchar(255) DEFAULT NULL COMMENT '区号',
  732. `hk_name` varchar(255) DEFAULT NULL,
  733. `jp_name` varchar(255) NOT NULL,
  734. `kr_name` varchar(255) NOT NULL,
  735. `language` varchar(255) DEFAULT NULL COMMENT '语言',
  736. `local_currency` varchar(255) DEFAULT NULL COMMENT '当地货币缩写',
  737. `sort` int(11) NOT NULL COMMENT '排序',
  738. PRIMARY KEY (`zh_name`) USING BTREE
  739. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='国家信息表'
  740. === TABLE: country1 (rows: 0) ===
  741. CREATE TABLE `country1` (
  742. `zh_name` varchar(255) NOT NULL COMMENT '中文名称',
  743. `area_code` varchar(255) DEFAULT NULL COMMENT '英文名称',
  744. `en_name` varchar(255) DEFAULT NULL COMMENT '区号',
  745. `hk_name` varchar(255) DEFAULT NULL,
  746. `language` varchar(255) DEFAULT NULL COMMENT '语言',
  747. `local_currency` varchar(255) DEFAULT NULL COMMENT '当地货币缩写',
  748. `sort` int(11) NOT NULL COMMENT '排序',
  749. `jp_name` varchar(255) DEFAULT NULL,
  750. `kr_name` varchar(255) DEFAULT NULL,
  751. PRIMARY KEY (`zh_name`) USING BTREE
  752. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='国家信息表'
  753. === TABLE: country2 (rows: 0) ===
  754. CREATE TABLE `country2` (
  755. `zh_name` varchar(255) NOT NULL,
  756. `area_code` int(11) DEFAULT NULL,
  757. `en_name` text,
  758. `hk_name` text,
  759. `language` text,
  760. `local_currency` text,
  761. `sort` int(11) DEFAULT NULL,
  762. `jp_name` text,
  763. `kr_name` text,
  764. PRIMARY KEY (`zh_name`)
  765. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  766. === TABLE: ctc_acceptor (rows: 0) ===
  767. CREATE TABLE `ctc_acceptor` (
  768. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  769. `status` int(11) NOT NULL,
  770. `member_id` bigint(20) DEFAULT NULL,
  771. `cny_in` decimal(18,2) DEFAULT NULL COMMENT '买入CNY',
  772. `cny_out` decimal(18,2) DEFAULT NULL COMMENT '售出CNY',
  773. `usdt_in` decimal(18,2) DEFAULT NULL COMMENT '买入USDT',
  774. `usdt_out` decimal(18,2) DEFAULT NULL COMMENT '售出USDT',
  775. PRIMARY KEY (`id`) USING BTREE,
  776. KEY `FKk3nfn54patdd6rwa0skk70tq6` (`member_id`) USING BTREE,
  777. CONSTRAINT `FKk3nfn54patdd6rwa0skk70tq6` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  778. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CTC商户(USDT)'
  779. === TABLE: ctc_order (rows: 0) ===
  780. CREATE TABLE `ctc_order` (
  781. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  782. `ali_no` varchar(255) DEFAULT NULL,
  783. `qr_code_url` varchar(255) DEFAULT NULL,
  784. `amount` decimal(19,2) DEFAULT NULL,
  785. `bank` varchar(255) DEFAULT NULL,
  786. `branch` varchar(255) DEFAULT NULL,
  787. `card_no` varchar(255) DEFAULT NULL,
  788. `cancel_reason` varchar(255) DEFAULT NULL,
  789. `cancel_time` datetime DEFAULT NULL,
  790. `complete_time` datetime DEFAULT NULL,
  791. `confirm_time` datetime DEFAULT NULL,
  792. `create_time` datetime DEFAULT NULL,
  793. `direction` int(11) NOT NULL,
  794. `money` decimal(18,2) DEFAULT NULL COMMENT '交易金额',
  795. `order_sn` varchar(255) NOT NULL,
  796. `pay_mode` varchar(255) NOT NULL,
  797. `pay_time` datetime DEFAULT NULL,
  798. `price` decimal(18,2) DEFAULT NULL COMMENT '价格',
  799. `remark` varchar(255) DEFAULT NULL,
  800. `status` int(11) NOT NULL,
  801. `unit` varchar(255) NOT NULL,
  802. `qr_we_code_url` varchar(255) DEFAULT NULL,
  803. `wechat` varchar(255) DEFAULT NULL,
  804. `acceptor_id` bigint(20) DEFAULT NULL,
  805. `member_id` bigint(20) DEFAULT NULL,
  806. `real_name` varchar(255) DEFAULT NULL,
  807. PRIMARY KEY (`id`) USING BTREE,
  808. UNIQUE KEY `UK_t212u5lpa982v4yc0ue7c3eab` (`order_sn`) USING BTREE,
  809. KEY `FKgk8nq4d3ouoj9eyo1kfqtw0wq` (`acceptor_id`) USING BTREE,
  810. KEY `FK419ewpncecgofa3j1338d6ma6` (`member_id`) USING BTREE,
  811. CONSTRAINT `FK419ewpncecgofa3j1338d6ma6` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`),
  812. CONSTRAINT `FKgk8nq4d3ouoj9eyo1kfqtw0wq` FOREIGN KEY (`acceptor_id`) REFERENCES `member` (`id`)
  813. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='CTC订单'
  814. === TABLE: cz (rows: 0) ===
  815. CREATE TABLE `cz` (
  816. `id` int(11) NOT NULL AUTO_INCREMENT,
  817. `amount` varchar(255) DEFAULT NULL,
  818. `uid` varchar(16) DEFAULT NULL,
  819. `dz` varchar(255) DEFAULT NULL,
  820. `coinType` varchar(255) DEFAULT NULL,
  821. `time` datetime DEFAULT NULL,
  822. `state` varchar(255) DEFAULT '0',
  823. PRIMARY KEY (`id`) USING BTREE
  824. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC
  825. === TABLE: data_dictionary (rows: 0) ===
  826. CREATE TABLE `data_dictionary` (
  827. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  828. `bond` varchar(255) DEFAULT NULL,
  829. `comment` varchar(255) DEFAULT NULL,
  830. `creation_time` datetime DEFAULT NULL,
  831. `update_time` datetime DEFAULT NULL,
  832. `value` varchar(255) DEFAULT NULL,
  833. PRIMARY KEY (`id`) USING BTREE
  834. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统信息维护'
  835. === TABLE: department (rows: 0) ===
  836. CREATE TABLE `department` (
  837. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  838. `create_time` datetime DEFAULT NULL,
  839. `leader_id` bigint(20) DEFAULT NULL,
  840. `name` varchar(255) NOT NULL,
  841. `remark` varchar(255) DEFAULT NULL,
  842. `update_time` datetime DEFAULT NULL,
  843. PRIMARY KEY (`id`) USING BTREE,
  844. UNIQUE KEY `UK_1t68827l97cwyxo9r1u6t4p7d` (`name`) USING BTREE
  845. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='后台部门'
  846. === TABLE: deposit_record (rows: 0) ===
  847. CREATE TABLE `deposit_record` (
  848. `id` varchar(255) NOT NULL,
  849. `amount` decimal(19,2) DEFAULT NULL,
  850. `status` int(11) DEFAULT NULL,
  851. `coin_id` varchar(255) DEFAULT NULL,
  852. `member_id` bigint(20) DEFAULT NULL,
  853. PRIMARY KEY (`id`) USING BTREE,
  854. KEY `FK7x5q0lmqqtty5i0w5mq09o8r7` (`coin_id`) USING BTREE,
  855. KEY `FKji8p5uoc1ad45npyf72rgf2lx` (`member_id`) USING BTREE,
  856. CONSTRAINT `FK7x5q0lmqqtty5i0w5mq09o8r7` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`),
  857. CONSTRAINT `FKji8p5uoc1ad45npyf72rgf2lx` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  858. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='存款记录'
  859. === TABLE: dividend_start_record (rows: 0) ===
  860. CREATE TABLE `dividend_start_record` (
  861. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  862. `amount` decimal(18,6) DEFAULT NULL COMMENT '数量',
  863. `date` datetime DEFAULT NULL,
  864. `end` bigint(20) DEFAULT NULL,
  865. `end_date` datetime DEFAULT NULL,
  866. `rate` decimal(18,2) DEFAULT NULL COMMENT '比例',
  867. `start` bigint(20) DEFAULT NULL,
  868. `start_date` datetime DEFAULT NULL,
  869. `unit` varchar(255) DEFAULT NULL,
  870. `admin_id` bigint(20) DEFAULT NULL,
  871. PRIMARY KEY (`id`) USING BTREE,
  872. KEY `FK226c1iy2t1dt9tjjo20pum39d` (`admin_id`) USING BTREE,
  873. CONSTRAINT `FK226c1iy2t1dt9tjjo20pum39d` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`)
  874. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='持币分息记录'
  875. === TABLE: entrust_change_history (rows: 0) ===
  876. CREATE TABLE `entrust_change_history` (
  877. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  878. `member_id` bigint(20) NOT NULL,
  879. `type` int(1) NOT NULL,
  880. `amount` decimal(18,8) NOT NULL,
  881. `create_time` datetime NOT NULL,
  882. `unfreeze_time` datetime DEFAULT NULL,
  883. `status` int(2) NOT NULL,
  884. PRIMARY KEY (`id`),
  885. KEY `member_id` (`member_id`),
  886. KEY `status` (`status`)
  887. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  888. === TABLE: exchange_asset_flow (rows: 0) ===
  889. CREATE TABLE `exchange_asset_flow` (
  890. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水序号,自增主键',
  891. `transaction_id` bigint(20) DEFAULT NULL COMMENT '交易ID',
  892. `from_exchange_wallet_id` bigint(20) DEFAULT NULL COMMENT '资金来源钱包id',
  893. `to_exchange_wallet_id` bigint(20) DEFAULT NULL COMMENT '资金去向钱包id',
  894. `coin_symbol` varchar(255) NOT NULL COMMENT '币种名称或代码',
  895. `business_type` int(11) NOT NULL COMMENT '业务类型,具体可取值见上文',
  896. `amount` decimal(26,8) DEFAULT '0.00000000' COMMENT '变动金额,可为正(入金)或负(出金)',
  897. `frozen_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '冻结变动量,可为正(冻结)或负(解冻)',
  898. `available_balance` decimal(26,8) DEFAULT '0.00000000' COMMENT '流水后用户钱包的可用余额',
  899. `fee` decimal(18,8) DEFAULT '0.00000000' COMMENT '手续费,部分业务类型可能产生的手续费',
  900. `remark` varchar(255) DEFAULT NULL COMMENT '流水备注,部分业务类型的备注信息',
  901. `created_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '流水创建时间',
  902. PRIMARY KEY (`id`),
  903. KEY `transaction_id` (`transaction_id`)
  904. ) ENGINE=InnoDB AUTO_INCREMENT=1500 DEFAULT CHARSET=utf8 COMMENT='资产流水表'
  905. === TABLE: exchange_code (rows: 0) ===
  906. CREATE TABLE `exchange_code` (
  907. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  908. `code` varchar(255) DEFAULT NULL,
  909. PRIMARY KEY (`id`)
  910. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  911. === TABLE: exchange_coin (rows: 19) ===
  912. CREATE TABLE `exchange_coin` (
  913. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  914. `symbol` varchar(255) NOT NULL,
  915. `base_coin_scale` int(11) NOT NULL,
  916. `base_symbol` varchar(255) DEFAULT NULL,
  917. `coin_scale` int(11) NOT NULL,
  918. `coin_symbol` varchar(255) DEFAULT NULL,
  919. `enable` int(11) NOT NULL,
  920. `fee` decimal(8,4) DEFAULT NULL COMMENT '交易手续费',
  921. `sell_fee` decimal(8,4) DEFAULT NULL,
  922. `sort` int(11) NOT NULL,
  923. `enable_market_buy` int(11) DEFAULT '1' COMMENT '是否启用市价买',
  924. `enable_market_sell` int(11) DEFAULT '1' COMMENT '是否启用市价卖',
  925. `min_sell_price` decimal(18,8) DEFAULT NULL COMMENT '最低挂单卖价',
  926. `flag` int(11) DEFAULT '0' COMMENT '默认为0,1表示推荐',
  927. `max_trading_order` int(11) DEFAULT '0' COMMENT '最大允许同时交易的订单数,0表示不限制',
  928. `max_trading_time` int(11) DEFAULT '0' COMMENT '委托超时自动下架时间,单位为秒,0表示不过期',
  929. `instrument` varchar(20) DEFAULT NULL COMMENT '交易类型,B2C2特有',
  930. `min_turnover` decimal(18,8) DEFAULT NULL COMMENT '最小挂单成交额',
  931. `max_volume` decimal(18,8) DEFAULT NULL COMMENT '最大下单量',
  932. `min_volume` decimal(18,8) DEFAULT NULL COMMENT '最小下单量',
  933. `zone` int(11) DEFAULT '0',
  934. `clear_time` varchar(30) DEFAULT '1' COMMENT '清盘时间',
  935. `end_time` varchar(30) DEFAULT '1' COMMENT '结束时间',
  936. `publish_price` decimal(18,8) DEFAULT NULL COMMENT ' 分摊发行价格',
  937. `publish_type` int(11) DEFAULT '1' COMMENT '发行活动类型 1:无活动,2:抢购发行,3:分摊发行',
  938. `start_time` varchar(30) DEFAULT '1' COMMENT '开始时间',
  939. `exchangeable` int(11) DEFAULT '1' COMMENT ' 是否可交易',
  940. `publish_amount` decimal(18,8) DEFAULT NULL COMMENT ' 活动发行数量',
  941. `visible` int(11) DEFAULT '1' COMMENT ' 前台可见状态',
  942. `max_buy_price` decimal(18,8) DEFAULT NULL COMMENT '最高买单价',
  943. `robot_type` int(11) DEFAULT '0' COMMENT '机器人类型',
  944. `enable_buy` int(11) DEFAULT '1' COMMENT '是否允许买',
  945. `enable_sell` int(11) DEFAULT '1' COMMENT '是否允许卖',
  946. PRIMARY KEY (`id`)
  947. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='币币交易对'
  948. === TABLE: exchange_deal (rows: 0) ===
  949. CREATE TABLE `exchange_deal` (
  950. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  951. `amount` decimal(32,8) NOT NULL COMMENT '金额',
  952. `price` decimal(32,8) NOT NULL COMMENT '价格',
  953. `type` int(1) DEFAULT NULL COMMENT '1.买入 2.卖出',
  954. `volume` decimal(32,8) NOT NULL COMMENT '数量',
  955. `sell_fee` decimal(16,8) DEFAULT NULL COMMENT '手续费',
  956. `buy_fee` decimal(16,8) NOT NULL COMMENT '手续费',
  957. `buy_commission_rate` decimal(16,8) NOT NULL COMMENT '买入手续费比率',
  958. `sell_commission_rate` decimal(16,8) DEFAULT NULL COMMENT '卖出手续费比列',
  959. `symbol_name` varchar(20) NOT NULL COMMENT '交易对名称',
  960. `buy_order_id` bigint(20) NOT NULL COMMENT '买单id',
  961. `sell_order_id` bigint(20) NOT NULL COMMENT '卖单id',
  962. `buy_account_id` bigint(20) NOT NULL COMMENT '买家id',
  963. `sell_account_id` bigint(20) NOT NULL COMMENT '卖家id',
  964. `deal_time` bigint(20) NOT NULL COMMENT '成交时间',
  965. `is_wallet_update` int(11) NOT NULL DEFAULT '0' COMMENT '0.未更新钱包 1.已更新钱包',
  966. `create_time` bigint(20) NOT NULL,
  967. `coin` varchar(10) NOT NULL COMMENT '交易币种',
  968. `base_coin` varchar(10) NOT NULL COMMENT '基础币种',
  969. PRIMARY KEY (`id`)
  970. ) ENGINE=InnoDB AUTO_INCREMENT=160631 DEFAULT CHARSET=utf8mb4 COMMENT='成交表'
  971. === TABLE: exchange_favor_symbol (rows: 0) ===
  972. CREATE TABLE `exchange_favor_symbol` (
  973. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  974. `add_time` varchar(255) DEFAULT NULL,
  975. `member_id` bigint(20) DEFAULT NULL,
  976. `symbol` varchar(255) DEFAULT NULL,
  977. PRIMARY KEY (`id`) USING BTREE
  978. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易优先符号'
  979. === TABLE: exchange_freeze_history (rows: 0) ===
  980. CREATE TABLE `exchange_freeze_history` (
  981. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  982. `member_id` bigint(20) NOT NULL,
  983. `coin_id` varchar(100) NOT NULL,
  984. `amount` decimal(18,8) NOT NULL,
  985. `created_time` datetime NOT NULL,
  986. `updated_time` datetime NOT NULL,
  987. `unfreeze_time` datetime NOT NULL,
  988. `status` int(2) NOT NULL,
  989. `type` int(2) NOT NULL,
  990. PRIMARY KEY (`id`),
  991. KEY `member_id` (`member_id`)
  992. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  993. === TABLE: exchange_order (rows: 0) ===
  994. CREATE TABLE `exchange_order` (
  995. `order_id` bigint(20) NOT NULL AUTO_INCREMENT,
  996. `amount` decimal(18,8) DEFAULT NULL,
  997. `base_symbol` varchar(255) DEFAULT NULL,
  998. `canceled_time` bigint(20) DEFAULT NULL,
  999. `coin_symbol` varchar(255) DEFAULT NULL,
  1000. `completed_time` bigint(20) DEFAULT NULL,
  1001. `direction` int(11) DEFAULT NULL,
  1002. `member_id` bigint(20) DEFAULT NULL,
  1003. `price` decimal(18,8) DEFAULT NULL,
  1004. `deal_price` decimal(18,8) DEFAULT NULL,
  1005. `trigger_price` decimal(18,8) DEFAULT NULL,
  1006. `fee` decimal(18,8) DEFAULT NULL,
  1007. `status` int(11) DEFAULT NULL,
  1008. `symbol` varchar(255) DEFAULT NULL,
  1009. `time` bigint(20) DEFAULT NULL,
  1010. `traded_amount` decimal(26,16) DEFAULT NULL,
  1011. `turnover` decimal(26,16) DEFAULT NULL,
  1012. `type` int(11) DEFAULT NULL,
  1013. `use_discount` varchar(255) DEFAULT NULL,
  1014. `order_resource` int(11) DEFAULT NULL,
  1015. `fee_rate` decimal(18,8) DEFAULT NULL,
  1016. `trade_status` int(11) NOT NULL DEFAULT '0' COMMENT '撮合状态, 0 待开始 1撮合中 2 撮合停止 3 撮合完成 ',
  1017. `is_completed` int(1) NOT NULL DEFAULT '0',
  1018. `frozen_amount` decimal(18,8) DEFAULT NULL,
  1019. PRIMARY KEY (`order_id`) USING BTREE,
  1020. KEY `symbol` (`symbol`,`member_id`,`status`) USING BTREE,
  1021. KEY `member_id` (`member_id`),
  1022. KEY `index_time` (`time`),
  1023. KEY `index_type` (`type`)
  1024. ) ENGINE=InnoDB AUTO_INCREMENT=365044 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='币币挂单'
  1025. === TABLE: exchange_release_history (rows: 0) ===
  1026. CREATE TABLE `exchange_release_history` (
  1027. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1028. `member_id` bigint(20) NOT NULL,
  1029. `coin_id` varchar(255) NOT NULL,
  1030. `amount` decimal(18,8) NOT NULL,
  1031. `release_time` datetime NOT NULL,
  1032. `created_time` datetime DEFAULT NULL,
  1033. `updated_time` datetime DEFAULT NULL,
  1034. PRIMARY KEY (`id`),
  1035. KEY `member_id` (`member_id`)
  1036. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1037. === TABLE: exchange_statistics_data (rows: 0) ===
  1038. CREATE TABLE `exchange_statistics_data` (
  1039. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1040. `stat_time` datetime NOT NULL COMMENT '统计时间',
  1041. `member_id` bigint(20) NOT NULL COMMENT '用户ID',
  1042. `stat_type` int(8) NOT NULL COMMENT '统计类别1:零点统计,2:16点统计',
  1043. `coin_symbol` varchar(255) DEFAULT NULL COMMENT '资产币种',
  1044. `position_asset_price_usdt` decimal(26,8) DEFAULT NULL COMMENT '持仓资产价格(USDT计价)',
  1045. `daily_profit_loss_usdt` decimal(26,8) DEFAULT NULL COMMENT '当天盈亏(USDT)',
  1046. `frozen_asset_price_usdt` decimal(26,8) DEFAULT NULL COMMENT '持仓资产价格(USDT计价)',
  1047. `created_time` datetime DEFAULT NULL,
  1048. `updated_time` datetime DEFAULT NULL,
  1049. PRIMARY KEY (`id`,`stat_type`,`member_id`,`stat_time`) USING BTREE
  1050. ) ENGINE=InnoDB AUTO_INCREMENT=221797 DEFAULT CHARSET=utf8 COMMENT='现货统计数据表'
  1051. === TABLE: exchange_wallet (rows: 0) ===
  1052. CREATE TABLE `exchange_wallet` (
  1053. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1054. `address` varchar(255) DEFAULT NULL,
  1055. `balance` decimal(26,8) DEFAULT NULL COMMENT '可用余额',
  1056. `frozen_balance` decimal(26,8) DEFAULT NULL COMMENT '冻结余额',
  1057. `pledged_balance` decimal(18,8) DEFAULT NULL,
  1058. `is_lock` int(11) DEFAULT '0' COMMENT '钱包不是锁定',
  1059. `member_id` bigint(20) DEFAULT NULL,
  1060. `to_released` decimal(18,8) DEFAULT NULL COMMENT '待释放总量',
  1061. `daily_released` decimal(18,8) DEFAULT NULL,
  1062. `version` int(11) NOT NULL,
  1063. `coin_id` varchar(255) DEFAULT NULL,
  1064. `release_date` date DEFAULT NULL,
  1065. `open_price` decimal(18,8) DEFAULT '0.00000000',
  1066. `open_time` datetime DEFAULT NULL,
  1067. PRIMARY KEY (`id`) USING BTREE,
  1068. UNIQUE KEY `UKm68bscpof0bpnxocxl4qdnvbe` (`member_id`,`coin_id`) USING BTREE
  1069. ) ENGINE=InnoDB AUTO_INCREMENT=214 DEFAULT CHARSET=utf8 COMMENT='会员钱包'
  1070. === TABLE: experience_event (rows: 0) ===
  1071. CREATE TABLE `experience_event` (
  1072. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1073. `member_id` bigint(20) NOT NULL,
  1074. `source_member_id` bigint(20) NOT NULL,
  1075. `source_user_name` varchar(200) NOT NULL,
  1076. `type` int(1) NOT NULL,
  1077. `source_type` int(2) NOT NULL,
  1078. `amount` int(6) NOT NULL,
  1079. `content` varchar(200) DEFAULT NULL,
  1080. `create_time` datetime NOT NULL,
  1081. PRIMARY KEY (`id`),
  1082. KEY `member_id` (`member_id`)
  1083. ) ENGINE=InnoDB AUTO_INCREMENT=36186 DEFAULT CHARSET=utf8mb4
  1084. === TABLE: experience_mission (rows: 0) ===
  1085. CREATE TABLE `experience_mission` (
  1086. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1087. `member_id` int(20) DEFAULT NULL,
  1088. `source_member_id` int(20) NOT NULL,
  1089. `max_recharge` decimal(18,8) NOT NULL,
  1090. `order_count` int(6) NOT NULL,
  1091. `type` int(1) NOT NULL,
  1092. `sign_count` int(6) NOT NULL,
  1093. `sign_date` date DEFAULT NULL,
  1094. `sign_status` int(1) NOT NULL,
  1095. `remind_date` date DEFAULT NULL,
  1096. PRIMARY KEY (`id`),
  1097. UNIQUE KEY `source_member_id` (`source_member_id`)
  1098. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4
  1099. === TABLE: experience_sign (rows: 0) ===
  1100. CREATE TABLE `experience_sign` (
  1101. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1102. `member_id` bigint(20) NOT NULL,
  1103. `source_member_id` bigint(20) NOT NULL,
  1104. `source_user_name` varchar(200) NOT NULL,
  1105. `sign_count` int(6) NOT NULL,
  1106. `sign_date` date NOT NULL,
  1107. `status` int(1) NOT NULL,
  1108. PRIMARY KEY (`id`)
  1109. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1110. === TABLE: experience_wallet (rows: 0) ===
  1111. CREATE TABLE `experience_wallet` (
  1112. `id` bigint(20) NOT NULL,
  1113. `balance` decimal(18,8) NOT NULL,
  1114. `frozen_balance` decimal(18,8) NOT NULL,
  1115. `total_balance` decimal(18,8) NOT NULL,
  1116. `thawed_balance` decimal(18,8) NOT NULL,
  1117. `sign_clear` int(1) NOT NULL,
  1118. `order_clear` int(1) NOT NULL,
  1119. `first_recharge` decimal(18,8) NOT NULL,
  1120. PRIMARY KEY (`id`)
  1121. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1122. === TABLE: feedback (rows: 0) ===
  1123. CREATE TABLE `feedback` (
  1124. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1125. `create_time` datetime DEFAULT NULL,
  1126. `remark` varchar(255) DEFAULT NULL,
  1127. `member_id` bigint(20) DEFAULT NULL,
  1128. PRIMARY KEY (`id`) USING BTREE,
  1129. KEY `FKmonjtjt92g6gruqyfumtmg8m8` (`member_id`) USING BTREE,
  1130. CONSTRAINT `FKmonjtjt92g6gruqyfumtmg8m8` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  1131. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='反馈'
  1132. === TABLE: financial_item (rows: 0) ===
  1133. CREATE TABLE `financial_item` (
  1134. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1135. `coin_minnum` decimal(19,2) DEFAULT NULL,
  1136. `coin_name` varchar(255) DEFAULT NULL,
  1137. `create_time` datetime DEFAULT NULL,
  1138. `deadline` int(11) NOT NULL,
  1139. `item_desc` varchar(255) DEFAULT NULL,
  1140. `item_id` varchar(255) DEFAULT NULL,
  1141. `item_name` varchar(255) DEFAULT NULL,
  1142. `item_state` int(11) NOT NULL,
  1143. `update_time` datetime DEFAULT NULL,
  1144. `yield` double DEFAULT NULL,
  1145. PRIMARY KEY (`id`) USING BTREE
  1146. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='财务项目'
  1147. === TABLE: financial_order (rows: 0) ===
  1148. CREATE TABLE `financial_order` (
  1149. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1150. `coin_name` varchar(255) DEFAULT NULL,
  1151. `coin_num` decimal(19,2) DEFAULT NULL,
  1152. `create_time` datetime DEFAULT NULL,
  1153. `frozen_days` int(11) NOT NULL,
  1154. `item_id` varchar(255) DEFAULT NULL,
  1155. `member_id` bigint(20) DEFAULT NULL,
  1156. `order_no` bigint(20) DEFAULT NULL,
  1157. `order_state` int(11) NOT NULL,
  1158. `order_usdt_rate` double DEFAULT NULL,
  1159. `plan_revenue_time` datetime DEFAULT NULL,
  1160. `real_income` decimal(19,2) DEFAULT NULL,
  1161. `update_time` datetime DEFAULT NULL,
  1162. PRIMARY KEY (`id`) USING BTREE
  1163. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='财务订单'
  1164. === TABLE: follow_lock_config (rows: 0) ===
  1165. CREATE TABLE `follow_lock_config` (
  1166. `id` int(6) NOT NULL AUTO_INCREMENT,
  1167. `lower_band` int(6) NOT NULL,
  1168. `upper_band` int(6) NOT NULL,
  1169. `lock_amount` int(6) NOT NULL,
  1170. `lock_days` int(6) NOT NULL,
  1171. PRIMARY KEY (`id`)
  1172. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1173. === TABLE: follow_sub_wallet (rows: 0) ===
  1174. CREATE TABLE `follow_sub_wallet` (
  1175. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1176. `member_id` bigint(20) NOT NULL,
  1177. `teacher_id` bigint(20) NOT NULL,
  1178. `balance` decimal(18,8) NOT NULL,
  1179. `frozen_balance` decimal(18,8) NOT NULL,
  1180. `frozen_margin` decimal(18,8) NOT NULL,
  1181. `stop_profit` int(6) NOT NULL,
  1182. `stop_loss` int(6) NOT NULL,
  1183. PRIMARY KEY (`id`)
  1184. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1185. === TABLE: follow_wallet (rows: 0) ===
  1186. CREATE TABLE `follow_wallet` (
  1187. `id` bigint(20) NOT NULL,
  1188. `balance` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  1189. `frozen_balance` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  1190. `frozen_margin` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  1191. `special_balance` decimal(18,8) NOT NULL,
  1192. `special_frozen_balance` decimal(18,8) NOT NULL,
  1193. `special_frozen_margin` decimal(18,8) NOT NULL,
  1194. `leverage` decimal(10,2) NOT NULL DEFAULT '10.00',
  1195. `profit_percent` decimal(10,2) DEFAULT NULL,
  1196. `loss_percent` decimal(10,2) DEFAULT NULL,
  1197. `entrust_status` int(1) DEFAULT NULL,
  1198. `unfreeze_time` datetime DEFAULT NULL,
  1199. `frozen_ct` decimal(18,8) DEFAULT NULL,
  1200. `m_status` int(1) DEFAULT NULL,
  1201. `m_time` datetime DEFAULT NULL,
  1202. PRIMARY KEY (`id`)
  1203. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1204. === TABLE: follow_wallet_item (rows: 0) ===
  1205. CREATE TABLE `follow_wallet_item` (
  1206. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1207. `member_id` bigint(20) NOT NULL,
  1208. `contract_id` bigint(20) NOT NULL,
  1209. `principal_amount` decimal(18,8) NOT NULL,
  1210. PRIMARY KEY (`id`)
  1211. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1212. === TABLE: funding_rate_history (rows: 0) ===
  1213. CREATE TABLE `funding_rate_history` (
  1214. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1215. `contract_id` bigint(20) NOT NULL,
  1216. `funding_rate` decimal(19,8) NOT NULL,
  1217. `funding_time` datetime NOT NULL,
  1218. PRIMARY KEY (`id`)
  1219. ) ENGINE=InnoDB AUTO_INCREMENT=5460 DEFAULT CHARSET=utf8mb4
  1220. === TABLE: game_admit (rows: 0) ===
  1221. CREATE TABLE `game_admit` (
  1222. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1223. `profit` decimal(19,8) NOT NULL,
  1224. `create_time` datetime NOT NULL,
  1225. `result` varchar(2000) NOT NULL,
  1226. `order_id` bigint(20) NOT NULL,
  1227. `admit_status` int(1) NOT NULL,
  1228. `admit_time` datetime DEFAULT NULL,
  1229. PRIMARY KEY (`id`),
  1230. KEY `FKnfc4dntybup7lyxojfvutk4b8` (`order_id`),
  1231. CONSTRAINT `FKnfc4dntybup7lyxojfvutk4b8` FOREIGN KEY (`order_id`) REFERENCES `game_record` (`id`)
  1232. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1233. === TABLE: game_eth (rows: 0) ===
  1234. CREATE TABLE `game_eth` (
  1235. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1236. `hashcode` varchar(255) NOT NULL,
  1237. `create_time` datetime NOT NULL,
  1238. PRIMARY KEY (`id`)
  1239. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1240. === TABLE: game_record (rows: 0) ===
  1241. CREATE TABLE `game_record` (
  1242. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1243. `member_id` bigint(20) NOT NULL,
  1244. `username` varchar(200) NOT NULL,
  1245. `amount` decimal(19,8) NOT NULL,
  1246. `fee` decimal(19,8) NOT NULL,
  1247. `remark` varchar(2000) DEFAULT NULL,
  1248. `batch_name` varchar(2000) NOT NULL,
  1249. `create_time` datetime NOT NULL,
  1250. `clear_time` datetime DEFAULT NULL,
  1251. `profit` decimal(19,8) DEFAULT NULL,
  1252. `status` int(1) NOT NULL,
  1253. `reward_status` int(1) NOT NULL,
  1254. PRIMARY KEY (`id`)
  1255. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1256. === TABLE: game_wallet (rows: 0) ===
  1257. CREATE TABLE `game_wallet` (
  1258. `id` bigint(20) NOT NULL,
  1259. `balance` decimal(19,8) NOT NULL DEFAULT '0.00000000',
  1260. `frozen_balance` decimal(19,8) NOT NULL DEFAULT '0.00000000',
  1261. PRIMARY KEY (`id`)
  1262. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1263. === TABLE: hot_transfer_record (rows: 0) ===
  1264. CREATE TABLE `hot_transfer_record` (
  1265. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1266. `admin_id` bigint(20) DEFAULT NULL,
  1267. `amount` decimal(18,8) DEFAULT NULL COMMENT '转账金额',
  1268. `balance` decimal(18,8) DEFAULT NULL COMMENT '热钱包余额',
  1269. `cold_address` varchar(255) DEFAULT NULL,
  1270. `miner_fee` decimal(18,8) DEFAULT NULL COMMENT '矿工费',
  1271. `transaction_number` varchar(255) DEFAULT NULL,
  1272. `transfer_time` datetime DEFAULT NULL,
  1273. `unit` varchar(255) DEFAULT NULL,
  1274. PRIMARY KEY (`id`) USING BTREE
  1275. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='热传输记录'
  1276. === TABLE: imported_country (rows: 0) ===
  1277. CREATE TABLE `imported_country` (
  1278. `zh_name` varchar(200) NOT NULL,
  1279. `en_name` varchar(200) NOT NULL,
  1280. `area_code` varchar(200) NOT NULL,
  1281. PRIMARY KEY (`zh_name`)
  1282. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1283. === TABLE: init_plate (rows: 0) ===
  1284. CREATE TABLE `init_plate` (
  1285. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1286. `final_price` varchar(255) DEFAULT NULL,
  1287. `init_price` varchar(255) DEFAULT NULL,
  1288. `interference_factor` varchar(255) DEFAULT NULL,
  1289. `relative_time` varchar(255) DEFAULT NULL,
  1290. `symbol` varchar(255) DEFAULT NULL,
  1291. PRIMARY KEY (`id`) USING BTREE
  1292. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1293. === TABLE: legal_wallet_recharge (rows: 0) ===
  1294. CREATE TABLE `legal_wallet_recharge` (
  1295. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1296. `amount` decimal(18,2) NOT NULL COMMENT '充值金额',
  1297. `creation_time` datetime DEFAULT NULL,
  1298. `deal_time` datetime DEFAULT NULL,
  1299. `pay_mode` int(11) NOT NULL,
  1300. `payment_instrument` varchar(255) NOT NULL,
  1301. `remark` varchar(255) DEFAULT NULL,
  1302. `state` int(11) NOT NULL,
  1303. `update_time` datetime DEFAULT NULL,
  1304. `admin_id` bigint(20) DEFAULT NULL,
  1305. `coin_name` varchar(255) NOT NULL,
  1306. `member_id` bigint(20) NOT NULL,
  1307. PRIMARY KEY (`id`) USING BTREE,
  1308. KEY `FKtfjvrkn1oe0yu2tfjh6qcms73` (`admin_id`) USING BTREE,
  1309. KEY `FKsdtoqyvbjpd0bmw4n41ijc0kk` (`coin_name`) USING BTREE,
  1310. KEY `FK170xpb7hoxqoj5ovdrcibs9gn` (`member_id`) USING BTREE,
  1311. CONSTRAINT `FK170xpb7hoxqoj5ovdrcibs9gn` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`),
  1312. CONSTRAINT `FKsdtoqyvbjpd0bmw4n41ijc0kk` FOREIGN KEY (`coin_name`) REFERENCES `coin` (`name`),
  1313. CONSTRAINT `FKtfjvrkn1oe0yu2tfjh6qcms73` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`)
  1314. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='钱包充值记录'
  1315. === TABLE: legal_wallet_withdraw (rows: 0) ===
  1316. CREATE TABLE `legal_wallet_withdraw` (
  1317. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1318. `amount` decimal(18,8) DEFAULT NULL COMMENT '申请总数量',
  1319. `create_time` datetime DEFAULT NULL,
  1320. `deal_time` datetime DEFAULT NULL,
  1321. `pay_mode` int(11) NOT NULL,
  1322. `payment_instrument` varchar(255) DEFAULT NULL,
  1323. `remark` varchar(255) DEFAULT NULL,
  1324. `remit_time` datetime DEFAULT NULL,
  1325. `status` int(11) DEFAULT NULL,
  1326. `admin_id` bigint(20) DEFAULT NULL,
  1327. `coin_name` varchar(255) NOT NULL,
  1328. `member_id` bigint(20) DEFAULT NULL,
  1329. PRIMARY KEY (`id`) USING BTREE,
  1330. KEY `FKe95o0059kwsgmsxxv3amdb0d2` (`admin_id`) USING BTREE,
  1331. KEY `FKbilsav1ug8vjtn4ffghrlogqx` (`coin_name`) USING BTREE,
  1332. KEY `FKcpw5k7o3tchlifu1wqmjhku9t` (`member_id`) USING BTREE,
  1333. CONSTRAINT `FKbilsav1ug8vjtn4ffghrlogqx` FOREIGN KEY (`coin_name`) REFERENCES `coin` (`name`),
  1334. CONSTRAINT `FKcpw5k7o3tchlifu1wqmjhku9t` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`),
  1335. CONSTRAINT `FKe95o0059kwsgmsxxv3amdb0d2` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`)
  1336. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='钱包提币记录'
  1337. === TABLE: locked_order (rows: 0) ===
  1338. CREATE TABLE `locked_order` (
  1339. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1340. `activity_id` bigint(20) DEFAULT NULL,
  1341. `create_time` datetime DEFAULT NULL,
  1342. `current_releaseamount` decimal(18,8) DEFAULT NULL COMMENT '当前周期释放数量',
  1343. `end_time` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '结束时间',
  1344. `image` varchar(255) DEFAULT NULL,
  1345. `locked_days` int(11) NOT NULL,
  1346. `locked_invite` decimal(24,8) DEFAULT NULL,
  1347. `locked_invitelimit` decimal(24,8) DEFAULT NULL,
  1348. `locked_status` int(11) NOT NULL,
  1349. `member_id` bigint(20) NOT NULL,
  1350. `origin_releaseamount` decimal(18,8) DEFAULT NULL COMMENT '原始周期释放数量',
  1351. `period` int(11) NOT NULL,
  1352. `release_currentpercent` decimal(19,2) DEFAULT NULL,
  1353. `release_percent` decimal(19,2) DEFAULT NULL,
  1354. `release_times` decimal(24,8) DEFAULT NULL,
  1355. `release_type` int(11) NOT NULL,
  1356. `release_unit` varchar(255) DEFAULT NULL,
  1357. `released_days` int(11) NOT NULL,
  1358. `title` varchar(255) DEFAULT NULL,
  1359. `total_locked` decimal(18,8) DEFAULT NULL COMMENT '总锁仓',
  1360. `total_release` decimal(18,8) DEFAULT NULL COMMENT '总释放',
  1361. PRIMARY KEY (`id`) USING BTREE
  1362. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='锁仓订单'
  1363. === TABLE: locked_order_detail (rows: 0) ===
  1364. CREATE TABLE `locked_order_detail` (
  1365. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1366. `create_time` datetime DEFAULT NULL,
  1367. `locked_order_id` bigint(20) DEFAULT NULL,
  1368. `member_id` bigint(20) NOT NULL,
  1369. `output` decimal(18,8) DEFAULT NULL COMMENT '矿机当期产出',
  1370. `release_unit` varchar(255) DEFAULT NULL,
  1371. PRIMARY KEY (`id`) USING BTREE
  1372. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='锁仓订单明细'
  1373. === TABLE: member (rows: 0) ===
  1374. CREATE TABLE `member` (
  1375. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1376. `ali_no` varchar(255) DEFAULT NULL,
  1377. `qr_code_url` varchar(255) DEFAULT NULL,
  1378. `appeal_success_times` int(11) NOT NULL,
  1379. `appeal_times` int(11) NOT NULL,
  1380. `application_time` datetime DEFAULT NULL,
  1381. `avatar` varchar(255) DEFAULT NULL,
  1382. `bank` varchar(255) DEFAULT NULL,
  1383. `branch` varchar(255) DEFAULT NULL,
  1384. `card_no` varchar(255) DEFAULT NULL,
  1385. `certified_business_apply_time` datetime DEFAULT NULL,
  1386. `certified_business_check_time` datetime DEFAULT NULL,
  1387. `certified_business_status` int(11) DEFAULT NULL,
  1388. `email` varchar(255) DEFAULT NULL,
  1389. `first_level` int(11) NOT NULL,
  1390. `google_date` datetime DEFAULT NULL,
  1391. `google_key` varchar(255) DEFAULT NULL,
  1392. `google_state` int(11) DEFAULT NULL,
  1393. `id_number` varchar(255) DEFAULT NULL,
  1394. `inviter_id` bigint(20) DEFAULT NULL,
  1395. `jy_password` varchar(255) DEFAULT NULL,
  1396. `last_login_time` datetime DEFAULT NULL,
  1397. `city` varchar(255) DEFAULT NULL,
  1398. `country` varchar(255) DEFAULT NULL,
  1399. `district` varchar(255) DEFAULT NULL,
  1400. `province` varchar(255) DEFAULT NULL,
  1401. `login_count` int(11) NOT NULL,
  1402. `margin` varchar(255) DEFAULT NULL,
  1403. `member_level` int(11) DEFAULT NULL,
  1404. `mobile_phone` varchar(255) DEFAULT NULL,
  1405. `password` varchar(255) NOT NULL,
  1406. `promotion_code` varchar(255) DEFAULT NULL,
  1407. `publish_advertise` int(11) DEFAULT NULL,
  1408. `real_name` varchar(255) DEFAULT NULL,
  1409. `real_name_status` int(11) DEFAULT NULL,
  1410. `nationality` varchar(255) DEFAULT NULL,
  1411. `name` varchar(255) DEFAULT NULL,
  1412. `family_name` varchar(255) DEFAULT NULL,
  1413. `middle_name` varchar(255) DEFAULT NULL,
  1414. `birthdate` varchar(255) DEFAULT NULL,
  1415. `id_type` varchar(255) DEFAULT NULL,
  1416. `registration_time` datetime DEFAULT NULL,
  1417. `registration_ip` varchar(255) DEFAULT NULL,
  1418. `login_ip` varchar(255) DEFAULT NULL,
  1419. `salt` varchar(255) DEFAULT NULL,
  1420. `second_level` int(11) NOT NULL,
  1421. `sign_in_ability` bit(1) NOT NULL DEFAULT b'1',
  1422. `status` int(11) DEFAULT NULL,
  1423. `super_partner` varchar(255) DEFAULT NULL,
  1424. `third_level` int(11) NOT NULL,
  1425. `token` varchar(255) DEFAULT NULL,
  1426. `token_expire_time` datetime DEFAULT NULL,
  1427. `transaction_status` int(11) DEFAULT NULL,
  1428. `transactions` int(11) NOT NULL,
  1429. `username` varchar(255) NOT NULL,
  1430. `qr_we_code_url` varchar(255) DEFAULT NULL,
  1431. `wechat` varchar(255) DEFAULT NULL,
  1432. `local` varchar(255) DEFAULT NULL,
  1433. `usdt_balance` decimal(19,2) DEFAULT '0.00',
  1434. `level_id` int(6) DEFAULT NULL,
  1435. `is_lock` int(2) DEFAULT '0',
  1436. `is_money_lock` int(1) DEFAULT NULL,
  1437. `money_lock_time` datetime DEFAULT NULL,
  1438. `is_trade_lock` int(1) DEFAULT NULL,
  1439. `is_trader` int(1) DEFAULT NULL,
  1440. `disable_reward` int(2) DEFAULT '0',
  1441. `is_valid` int(1) DEFAULT NULL,
  1442. `is_service` int(1) DEFAULT NULL,
  1443. `device_type` int(2) DEFAULT NULL,
  1444. `total_recharge` decimal(19,2) DEFAULT NULL,
  1445. `total_withdraw` decimal(19,2) DEFAULT NULL,
  1446. `today_award` decimal(19,2) DEFAULT NULL,
  1447. `total_award` decimal(19,2) DEFAULT NULL,
  1448. `total_balance` decimal(19,2) DEFAULT NULL,
  1449. `today_order` int(8) DEFAULT NULL,
  1450. `total_profit` decimal(19,2) DEFAULT NULL,
  1451. `total_loss` decimal(19,2) DEFAULT NULL,
  1452. `today_profit` decimal(19,2) DEFAULT NULL,
  1453. `today_loss` decimal(19,2) DEFAULT NULL,
  1454. `total_fee` decimal(19,2) DEFAULT NULL,
  1455. `agent_total_recharge` decimal(19,2) DEFAULT NULL,
  1456. `agent_total_withdraw` decimal(19,2) DEFAULT NULL,
  1457. `agent_total_balance` decimal(19,2) DEFAULT NULL,
  1458. `agent_total_award` decimal(19,2) DEFAULT NULL,
  1459. `agent_total_fee` decimal(19,2) DEFAULT NULL,
  1460. `agent_total_profit` decimal(19,2) DEFAULT NULL,
  1461. `agent_total_loss` decimal(19,2) DEFAULT NULL,
  1462. `agent_total_count` int(10) DEFAULT NULL,
  1463. PRIMARY KEY (`id`) USING BTREE,
  1464. UNIQUE KEY `UK_gc3jmn7c2abyo3wf6syln5t2i` (`username`) USING BTREE,
  1465. UNIQUE KEY `UK_mbmcqelty0fbrvxp1q58dn57t` (`email`) USING BTREE,
  1466. UNIQUE KEY `UK_10ixebfiyeqolglpuye0qb49u` (`mobile_phone`) USING BTREE,
  1467. KEY `FKbt72vgf5myy3uhygc90xna65j` (`local`) USING BTREE,
  1468. KEY `FKog7i1p9vi2jhqfkakv8702exp` (`level_id`),
  1469. CONSTRAINT `FKbt72vgf5myy3uhygc90xna65j` FOREIGN KEY (`local`) REFERENCES `country` (`zh_name`),
  1470. CONSTRAINT `FKog7i1p9vi2jhqfkakv8702exp` FOREIGN KEY (`level_id`) REFERENCES `member_level` (`id`)
  1471. ) ENGINE=InnoDB AUTO_INCREMENT=313988 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='会员表'
  1472. === TABLE: member_address (rows: 0) ===
  1473. CREATE TABLE `member_address` (
  1474. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1475. `address` varchar(255) DEFAULT NULL,
  1476. `create_time` datetime DEFAULT NULL,
  1477. `delete_time` datetime DEFAULT NULL,
  1478. `member_id` bigint(20) DEFAULT NULL,
  1479. `remark` varchar(255) DEFAULT NULL,
  1480. `status` int(11) DEFAULT NULL,
  1481. `coin_id` varchar(255) DEFAULT NULL,
  1482. PRIMARY KEY (`id`) USING BTREE,
  1483. KEY `FKhcqqqntcf8hqmoa6dpo95okyh` (`coin_id`) USING BTREE,
  1484. CONSTRAINT `FKhcqqqntcf8hqmoa6dpo95okyh` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  1485. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员提币地址'
  1486. === TABLE: member_api_key (rows: 0) ===
  1487. CREATE TABLE `member_api_key` (
  1488. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1489. `api_key` varchar(255) DEFAULT NULL,
  1490. `api_name` varchar(255) DEFAULT NULL,
  1491. `bind_ip` varchar(255) DEFAULT NULL,
  1492. `create_time` datetime DEFAULT NULL,
  1493. `expire_time` datetime DEFAULT NULL,
  1494. `member_id` bigint(20) DEFAULT NULL,
  1495. `remark` varchar(255) DEFAULT NULL,
  1496. `secret_key` varchar(255) DEFAULT NULL,
  1497. PRIMARY KEY (`id`)
  1498. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员OpenKey'
  1499. === TABLE: member_application (rows: 0) ===
  1500. CREATE TABLE `member_application` (
  1501. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1502. `audit_status` int(11) NOT NULL,
  1503. `create_time` datetime DEFAULT NULL,
  1504. `id_card` varchar(255) DEFAULT NULL,
  1505. `identity_card_img_front` varchar(255) NOT NULL,
  1506. `identity_card_img_in_hand` varchar(255) NOT NULL,
  1507. `identity_card_img_reverse` varchar(255) NOT NULL,
  1508. `real_name` varchar(255) DEFAULT NULL,
  1509. `reject_reason` varchar(255) DEFAULT NULL,
  1510. `update_time` datetime DEFAULT NULL,
  1511. `member_id` bigint(20) NOT NULL,
  1512. `nationality` varchar(255) DEFAULT NULL,
  1513. `name` varchar(255) DEFAULT NULL,
  1514. `family_name` varchar(255) DEFAULT NULL,
  1515. `middle_name` varchar(255) DEFAULT NULL,
  1516. `birthdate` varchar(255) DEFAULT NULL,
  1517. `id_type` varchar(255) DEFAULT NULL,
  1518. PRIMARY KEY (`id`) USING BTREE,
  1519. KEY `FK2djx7q0j54th0cgj7153qfbl1` (`member_id`) USING BTREE,
  1520. CONSTRAINT `FK2djx7q0j54th0cgj7153qfbl1` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`)
  1521. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='会员实名信息照片'
  1522. === TABLE: member_application_config (rows: 0) ===
  1523. CREATE TABLE `member_application_config` (
  1524. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1525. `promotion_on` int(11) DEFAULT NULL,
  1526. `recharge_coin_on` int(11) DEFAULT NULL,
  1527. `transaction_on` int(11) DEFAULT NULL,
  1528. `withdraw_coin_on` int(11) DEFAULT NULL,
  1529. PRIMARY KEY (`id`) USING BTREE
  1530. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员实名配置'
  1531. === TABLE: member_bonus (rows: 0) ===
  1532. CREATE TABLE `member_bonus` (
  1533. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1534. `arrive_time` varchar(255) DEFAULT NULL,
  1535. `coin_id` varchar(255) DEFAULT NULL,
  1536. `have_time` varchar(255) DEFAULT NULL,
  1537. `mem_bouns` decimal(18,8) DEFAULT NULL COMMENT '分红数量',
  1538. `member_id` bigint(20) DEFAULT NULL,
  1539. `total` decimal(18,8) DEFAULT NULL COMMENT '当天总手续费',
  1540. PRIMARY KEY (`id`) USING BTREE
  1541. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员奖金'
  1542. === TABLE: member_contract_position (rows: 0) ===
  1543. CREATE TABLE `member_contract_position` (
  1544. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1545. `member_id` bigint(20) NOT NULL,
  1546. `leverage` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '杠杆倍数',
  1547. `total_position` decimal(18,8) NOT NULL DEFAULT '0.00000000' COMMENT '总仓位',
  1548. `open_price` decimal(18,8) NOT NULL DEFAULT '0.00000000' COMMENT '开仓均价',
  1549. `closed_open_price` decimal(18,8) DEFAULT NULL,
  1550. `close_price` decimal(18,8) DEFAULT NULL,
  1551. `current_price` decimal(18,8) DEFAULT NULL,
  1552. `principal_amount` decimal(18,8) NOT NULL DEFAULT '0.00000000' COMMENT '多仓保证金',
  1553. `total_principal_amount` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  1554. `frozen_position` decimal(18,8) NOT NULL DEFAULT '0.00000000' COMMENT '开多仓位',
  1555. `closed_position` decimal(18,8) NOT NULL DEFAULT '0.00000000' COMMENT '已平仓',
  1556. `type` int(1) NOT NULL DEFAULT '1',
  1557. `money_type` int(1) NOT NULL DEFAULT '1',
  1558. `direction` int(1) NOT NULL,
  1559. `status` int(1) NOT NULL,
  1560. `usdt_profit` decimal(18,8) NOT NULL DEFAULT '0.00000000' COMMENT 'USDT盈利',
  1561. `share_number` decimal(18,8) DEFAULT '0.00000000',
  1562. `contract_id` bigint(20) NOT NULL,
  1563. `create_time` datetime NOT NULL,
  1564. `open_time` datetime NOT NULL,
  1565. `latest_open_time` datetime NOT NULL,
  1566. `close_time` datetime DEFAULT NULL,
  1567. `open_type` int(2) DEFAULT NULL,
  1568. `close_type` int(2) DEFAULT NULL,
  1569. `is_lock` int(2) DEFAULT '0',
  1570. `decimal_scale` int(1) NOT NULL DEFAULT '1',
  1571. `commission_fee` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  1572. `blasted_amount` decimal(18,8) DEFAULT NULL,
  1573. `violate_time` int(1) DEFAULT NULL,
  1574. `follow_order_id` bigint(20) DEFAULT NULL,
  1575. `follow_position_id` bigint(20) DEFAULT NULL,
  1576. `follow_member_id` bigint(20) DEFAULT NULL,
  1577. `dividend_percent` int(6) DEFAULT NULL,
  1578. `is_special` int(1) DEFAULT NULL,
  1579. PRIMARY KEY (`id`),
  1580. KEY `FKni1vfmlpo78vdm4tvr5woqvpo` (`contract_id`),
  1581. KEY `FKrwdi9njy3efu4b8ym36j0gp05` (`member_id`),
  1582. KEY `follow_position_id` (`follow_position_id`),
  1583. KEY `status` (`status`),
  1584. CONSTRAINT `FK7kj14xpujp48j2jwcfwt9gb7t` FOREIGN KEY (`contract_id`) REFERENCES `contract_coin` (`id`),
  1585. CONSTRAINT `FKrwdi9njy3efu4b8ym36j0gp05` FOREIGN KEY (`member_id`) REFERENCES `user_purse` (`id`),
  1586. CONSTRAINT `member_contract_position_ibfk_1` FOREIGN KEY (`contract_id`) REFERENCES `contract_coin` (`id`)
  1587. ) ENGINE=InnoDB AUTO_INCREMENT=476641 DEFAULT CHARSET=utf8 COMMENT='会员合约钱包仓位'
  1588. === TABLE: member_contract_wallet (rows: 0) ===
  1589. CREATE TABLE `member_contract_wallet` (
  1590. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1591. `coin_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT '币种余额',
  1592. `coin_buy_leverage` decimal(18,8) DEFAULT '0.00000000' COMMENT '做多杠杆倍数',
  1593. `coin_buy_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开多仓位',
  1594. `coin_buy_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '多仓均价',
  1595. `coin_buy_principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '多仓保证金',
  1596. `coin_frozen_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT '冻结余额',
  1597. `coin_frozen_buy_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开多仓位',
  1598. `coin_frozen_sell_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1599. `coin_pattern` int(4) DEFAULT '1' COMMENT '币本位仓位模式',
  1600. `coin_sell_leverage` decimal(18,8) DEFAULT '0.00000000' COMMENT '做空杠杆倍数',
  1601. `coin_sell_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1602. `coin_sell_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '空仓均价',
  1603. `coin_sell_principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '空仓保证金',
  1604. `coin_share_number` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1605. `member_id` bigint(20) DEFAULT NULL,
  1606. `usdt_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT 'USDT余额',
  1607. `usdt_buy_leverage` decimal(18,8) DEFAULT '0.00000000' COMMENT '做多杠杆倍数',
  1608. `usdt_buy_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开多仓位',
  1609. `usdt_buy_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '多仓均价',
  1610. `usdt_buy_principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '多仓保证金',
  1611. `usdt_frozen_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT '冻结余额',
  1612. `usdt_frozen_buy_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开多仓位',
  1613. `usdt_frozen_sell_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1614. `usdt_loss` decimal(18,8) DEFAULT '0.00000000' COMMENT 'USDT亏损',
  1615. `usdt_pattern` int(4) DEFAULT '1' COMMENT '金本位仓位模式',
  1616. `usdt_profit` decimal(18,8) DEFAULT '0.00000000' COMMENT 'USDT盈利',
  1617. `usdt_sell_leverage` decimal(18,8) DEFAULT '0.00000000' COMMENT '做空杠杆倍数',
  1618. `usdt_sell_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1619. `usdt_sell_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '空仓均价',
  1620. `usdt_sell_principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '空仓保证金',
  1621. `usdt_share_number` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1622. `contract_id` bigint(20) DEFAULT NULL,
  1623. `usdt_buy_time` bigint(20) DEFAULT '0',
  1624. `usdt_sell_time` bigint(20) DEFAULT '0',
  1625. `is_lock` int(1) DEFAULT '0',
  1626. PRIMARY KEY (`id`) USING BTREE,
  1627. UNIQUE KEY `UKe17oj0my6ih9ejhlw6m84l1cd` (`member_id`,`contract_id`) USING BTREE,
  1628. KEY `FKni1vfmlpo78vdm4tvr5woqvpo` (`contract_id`) USING BTREE,
  1629. CONSTRAINT `FKni1vfmlpo78vdm4tvr5woqvpo` FOREIGN KEY (`contract_id`) REFERENCES `contract_coin` (`id`)
  1630. ) ENGINE=InnoDB AUTO_INCREMENT=358467 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='会员合约钱包'
  1631. === TABLE: member_contract_wallet统一合约账户bak (rows: 0) ===
  1632. CREATE TABLE `member_contract_wallet统一合约账户bak` (
  1633. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1634. `member_id` bigint(20) DEFAULT NULL,
  1635. `usdt_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT 'USDT余额',
  1636. `usdt_frozen_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT '冻结余额',
  1637. `coin_id` varchar(255) DEFAULT NULL,
  1638. PRIMARY KEY (`id`),
  1639. UNIQUE KEY `UKe17oj0my6ih9ejhlw6m84l1` (`member_id`,`coin_id`)
  1640. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员合约钱包'
  1641. === TABLE: member_contract_wallet_position统一合约账户bak (rows: 0) ===
  1642. CREATE TABLE `member_contract_wallet_position统一合约账户bak` (
  1643. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1644. `member_id` bigint(20) DEFAULT NULL,
  1645. `wallet_id` bigint(20) DEFAULT NULL COMMENT '做多杠杆倍数',
  1646. `usdt_buy_leverage` decimal(18,8) DEFAULT '0.00000000' COMMENT '做多杠杆倍数',
  1647. `usdt_buy_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开多仓位',
  1648. `usdt_buy_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '多仓均价',
  1649. `usdt_buy_principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '多仓保证金',
  1650. `usdt_frozen_buy_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开多仓位',
  1651. `usdt_frozen_sell_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1652. `usdt_loss` decimal(18,8) DEFAULT '0.00000000' COMMENT 'USDT亏损',
  1653. `usdt_pattern` int(4) DEFAULT '1' COMMENT '金本位仓位模式',
  1654. `usdt_profit` decimal(18,8) DEFAULT '0.00000000' COMMENT 'USDT盈利',
  1655. `usdt_sell_leverage` decimal(18,8) DEFAULT '0.00000000' COMMENT '做空杠杆倍数',
  1656. `usdt_sell_position` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1657. `usdt_sell_price` decimal(18,8) DEFAULT '0.00000000' COMMENT '空仓均价',
  1658. `usdt_sell_principal_amount` decimal(18,8) DEFAULT '0.00000000' COMMENT '空仓保证金',
  1659. `usdt_share_number` decimal(18,8) DEFAULT '0.00000000' COMMENT '开空仓位',
  1660. `contract_id` bigint(20) DEFAULT NULL,
  1661. PRIMARY KEY (`id`),
  1662. UNIQUE KEY `UKe17oj0my6ih9ejhlw6m84l1cd` (`member_id`,`contract_id`),
  1663. KEY `FKni1vfmlpo78vdm4tvr5woqvpo` (`contract_id`),
  1664. CONSTRAINT `member_contract_wallet_position统一合约账户bak_ibfk_1` FOREIGN KEY (`contract_id`) REFERENCES `contract_coin` (`id`)
  1665. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员合约钱包仓位'
  1666. === TABLE: member_deposit (rows: 0) ===
  1667. CREATE TABLE `member_deposit` (
  1668. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1669. `address` varchar(255) DEFAULT NULL,
  1670. `amount` decimal(18,8) DEFAULT NULL,
  1671. `create_time` datetime DEFAULT NULL,
  1672. `member_id` bigint(20) DEFAULT NULL,
  1673. `txid` varchar(255) DEFAULT NULL,
  1674. `unit` varchar(255) DEFAULT NULL,
  1675. PRIMARY KEY (`id`) USING BTREE,
  1676. UNIQUE KEY `UKl2ibi99fuxplt8qt3rrpb0q4w` (`txid`,`address`) USING BTREE
  1677. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='会员充值数字币记录'
  1678. === TABLE: member_feedback (rows: 0) ===
  1679. CREATE TABLE `member_feedback` (
  1680. `id` int(11) NOT NULL AUTO_INCREMENT,
  1681. `create_time` datetime NOT NULL,
  1682. `content` mediumtext NOT NULL,
  1683. `contact_information` varchar(255) NOT NULL,
  1684. `member_id` bigint(20) NOT NULL,
  1685. `attachments` varchar(1000) DEFAULT NULL,
  1686. PRIMARY KEY (`id`)
  1687. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  1688. === TABLE: member_finance_order (rows: 0) ===
  1689. CREATE TABLE `member_finance_order` (
  1690. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1691. `num` decimal(20,8) DEFAULT '0.00000000' COMMENT '理财数量',
  1692. `member_id` bigint(20) DEFAULT NULL,
  1693. `status` int(4) DEFAULT '0' COMMENT '订单状态 0持仓中 1撤销',
  1694. `coin_symbol` varchar(50) DEFAULT NULL COMMENT '币种unit',
  1695. `earn_num` decimal(20,8) DEFAULT NULL COMMENT '盈利',
  1696. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1697. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1698. PRIMARY KEY (`id`) USING BTREE
  1699. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='理财订单'
  1700. === TABLE: member_finance_statistic (rows: 0) ===
  1701. CREATE TABLE `member_finance_statistic` (
  1702. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1703. `num` decimal(20,8) DEFAULT '0.00000000' COMMENT '理财数量',
  1704. `member_id` bigint(20) DEFAULT NULL,
  1705. `coin_symbol` varchar(50) DEFAULT NULL COMMENT '币种unit',
  1706. `earn_num` decimal(20,8) DEFAULT NULL COMMENT '累计盈利',
  1707. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1708. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1709. PRIMARY KEY (`id`) USING BTREE,
  1710. UNIQUE KEY `member_id` (`member_id`,`coin_symbol`),
  1711. UNIQUE KEY `UK22ri1cwm7qg2q7l2cp4q4jcsh` (`member_id`,`coin_symbol`)
  1712. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='理财统计表'
  1713. === TABLE: member_history (rows: 0) ===
  1714. CREATE TABLE `member_history` (
  1715. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1716. `member_id` bigint(20) NOT NULL,
  1717. `statistic_date` date NOT NULL,
  1718. `balance` decimal(19,8) NOT NULL,
  1719. `recharge` decimal(19,8) NOT NULL,
  1720. `withdraw` decimal(19,8) NOT NULL,
  1721. `transfer_in` decimal(19,8) NOT NULL,
  1722. `transfer_out` decimal(19,8) NOT NULL,
  1723. `activity_award` decimal(19,8) NOT NULL,
  1724. `promotion_award` decimal(19,8) NOT NULL,
  1725. `dividend` decimal(19,8) NOT NULL,
  1726. `admin_recharge` decimal(19,8) NOT NULL,
  1727. `award` decimal(19,8) NOT NULL,
  1728. `profit` decimal(19,8) NOT NULL,
  1729. `loss` decimal(19,8) NOT NULL,
  1730. `fee` decimal(19,8) NOT NULL,
  1731. `overnight_fee_in` decimal(19,8) NOT NULL,
  1732. `overnight_fee_out` decimal(19,8) NOT NULL,
  1733. `follow_fee` decimal(19,8) NOT NULL,
  1734. `follow_profit` decimal(19,8) NOT NULL,
  1735. `follow_loss` decimal(19,8) NOT NULL,
  1736. `follow_award` decimal(19,8) NOT NULL,
  1737. `follow_dividend_in` decimal(19,8) NOT NULL,
  1738. `follow_dividend_out` decimal(19,8) NOT NULL,
  1739. `follow_overnight_fee_in` decimal(19,8) NOT NULL,
  1740. `follow_overnight_fee_out` decimal(19,8) NOT NULL,
  1741. `game_fee` decimal(19,8) DEFAULT NULL,
  1742. `game_profit` decimal(19,8) DEFAULT NULL,
  1743. `game_loss` decimal(19,8) DEFAULT NULL,
  1744. `game_award` decimal(19,8) DEFAULT NULL,
  1745. `exchange_profit` decimal(19,8) NOT NULL,
  1746. `exchange_loss` decimal(19,8) NOT NULL,
  1747. `exchange_fee` decimal(19,8) NOT NULL,
  1748. `exchange_award` decimal(19,8) NOT NULL,
  1749. PRIMARY KEY (`id`),
  1750. KEY `member_id` (`member_id`),
  1751. KEY `statistic_date` (`statistic_date`)
  1752. ) ENGINE=InnoDB AUTO_INCREMENT=265763 DEFAULT CHARSET=utf8mb4
  1753. === TABLE: member_invite_stastic (rows: 0) ===
  1754. CREATE TABLE `member_invite_stastic` (
  1755. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1756. `btc_reward` decimal(24,8) DEFAULT NULL,
  1757. `estimated_reward` decimal(24,8) DEFAULT NULL,
  1758. `eth_reward` decimal(24,8) DEFAULT NULL,
  1759. `extra_reward` decimal(24,8) DEFAULT NULL,
  1760. `is_robot` int(11) NOT NULL,
  1761. `level_one` int(11) NOT NULL,
  1762. `level_two` int(11) NOT NULL,
  1763. `member_id` bigint(20) DEFAULT NULL,
  1764. `other_reward` varchar(255) DEFAULT NULL,
  1765. `stastic_date` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '统计日期',
  1766. `usdt_reward` decimal(24,8) DEFAULT NULL,
  1767. `user_identify` varchar(255) DEFAULT NULL,
  1768. PRIMARY KEY (`id`) USING BTREE,
  1769. UNIQUE KEY `member_id` (`member_id`) USING BTREE,
  1770. UNIQUE KEY `UK4o6jykp20ax1pybxgxcwsxq01` (`member_id`) USING BTREE
  1771. ) ENGINE=InnoDB AUTO_INCREMENT=14361 DEFAULT CHARSET=utf8 COMMENT='会员邀请记录'
  1772. === TABLE: member_invite_stastic_rank (rows: 0) ===
  1773. CREATE TABLE `member_invite_stastic_rank` (
  1774. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1775. `is_robot` int(11) NOT NULL,
  1776. `level_one` int(11) NOT NULL,
  1777. `level_two` int(11) NOT NULL,
  1778. `member_id` bigint(20) DEFAULT NULL,
  1779. `stastic_date` datetime DEFAULT NULL,
  1780. `type` int(11) NOT NULL,
  1781. `user_identify` varchar(255) DEFAULT NULL,
  1782. PRIMARY KEY (`id`) USING BTREE
  1783. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员邀请等级'
  1784. === TABLE: member_level (rows: 0) ===
  1785. CREATE TABLE `member_level` (
  1786. `id` int(6) NOT NULL AUTO_INCREMENT,
  1787. `is_default` bit(1) NOT NULL,
  1788. `name` varchar(255) NOT NULL,
  1789. `remark` varchar(255) DEFAULT NULL,
  1790. `one_rate` int(6) NOT NULL DEFAULT '0',
  1791. `two_rate` int(6) NOT NULL DEFAULT '0',
  1792. PRIMARY KEY (`id`) USING BTREE
  1793. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员等级'
  1794. === TABLE: member_promotion (rows: 0) ===
  1795. CREATE TABLE `member_promotion` (
  1796. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1797. `invitees_id` bigint(20) DEFAULT NULL,
  1798. `inviter_id` bigint(20) DEFAULT NULL,
  1799. `level` int(11) DEFAULT NULL,
  1800. `create_time` datetime DEFAULT NULL,
  1801. PRIMARY KEY (`id`) USING BTREE
  1802. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员推广'
  1803. === TABLE: member_second_wallet (rows: 0) ===
  1804. CREATE TABLE `member_second_wallet` (
  1805. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1806. `balance` decimal(18,8) DEFAULT '0.00000000' COMMENT '币种余额',
  1807. `frozen_balance` decimal(18,8) DEFAULT '0.00000000' COMMENT '冻结余额',
  1808. `member_id` bigint(20) DEFAULT NULL,
  1809. `coin_id` varchar(255) DEFAULT NULL,
  1810. PRIMARY KEY (`id`) USING BTREE,
  1811. UNIQUE KEY `member_id_and_contract_id` (`member_id`,`coin_id`) USING BTREE,
  1812. KEY `contract_id` (`coin_id`) USING BTREE
  1813. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员秒合约钱包'
  1814. === TABLE: member_sign_record (rows: 0) ===
  1815. CREATE TABLE `member_sign_record` (
  1816. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1817. `amount` decimal(19,2) DEFAULT NULL,
  1818. `creation_time` datetime DEFAULT NULL,
  1819. `coin_name` varchar(255) DEFAULT NULL,
  1820. `member_id` bigint(20) DEFAULT NULL,
  1821. `sign_id` bigint(20) DEFAULT NULL,
  1822. PRIMARY KEY (`id`) USING BTREE,
  1823. KEY `FK7qa42qkaoqxlyvwhxwdstclic` (`coin_name`) USING BTREE,
  1824. KEY `FK2r4i90tejcbf85vhk0d8besle` (`member_id`) USING BTREE,
  1825. KEY `FKq1926wgosqk7ka4kvw8rtxew` (`sign_id`) USING BTREE,
  1826. CONSTRAINT `FK2r4i90tejcbf85vhk0d8besle` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`),
  1827. CONSTRAINT `FK7qa42qkaoqxlyvwhxwdstclic` FOREIGN KEY (`coin_name`) REFERENCES `coin` (`name`),
  1828. CONSTRAINT `FKq1926wgosqk7ka4kvw8rtxew` FOREIGN KEY (`sign_id`) REFERENCES `sign` (`id`)
  1829. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员签章记录'
  1830. === TABLE: member_stat (rows: 0) ===
  1831. CREATE TABLE `member_stat` (
  1832. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1833. `member_id` bigint(20) NOT NULL,
  1834. `total_recharge` decimal(19,2) DEFAULT NULL,
  1835. `total_withdraw` decimal(19,2) DEFAULT NULL,
  1836. `today_award` decimal(19,2) DEFAULT NULL,
  1837. `total_award` decimal(19,2) DEFAULT NULL,
  1838. `total_balance` decimal(19,2) DEFAULT NULL,
  1839. `today_order` int(8) DEFAULT NULL,
  1840. `total_profit` decimal(19,2) DEFAULT NULL,
  1841. `total_loss` decimal(19,2) DEFAULT NULL,
  1842. `today_profit` decimal(19,2) DEFAULT NULL,
  1843. `today_loss` decimal(19,2) DEFAULT NULL,
  1844. `total_fee` decimal(19,2) DEFAULT NULL,
  1845. `agent_total_recharge` decimal(19,2) DEFAULT NULL,
  1846. `agent_total_withdraw` decimal(19,2) DEFAULT NULL,
  1847. `agent_total_balance` decimal(19,2) DEFAULT NULL,
  1848. `agent_total_award` decimal(19,2) DEFAULT NULL,
  1849. `agent_total_fee` decimal(19,2) DEFAULT NULL,
  1850. `agent_total_profit` decimal(19,2) DEFAULT NULL,
  1851. `agent_total_loss` decimal(19,2) DEFAULT NULL,
  1852. `agent_total_follow_fee` decimal(19,2) DEFAULT NULL,
  1853. `agent_total_follow_reward` decimal(19,2) DEFAULT NULL,
  1854. `agent_total_count` int(10) DEFAULT NULL,
  1855. PRIMARY KEY (`id`) USING BTREE
  1856. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='会员统计表'
  1857. === TABLE: member_team_info (rows: 0) ===
  1858. CREATE TABLE `member_team_info` (
  1859. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1860. `member_id` bigint(20) NOT NULL COMMENT '用户id',
  1861. `inviter_id` bigint(20) DEFAULT NULL COMMENT '邀请人id',
  1862. `team_total_amount` decimal(20,6) DEFAULT '0.000000' COMMENT '团队业绩USDT',
  1863. `level` int(2) DEFAULT '0' COMMENT '等级 0普通 1合约矿工 2节点矿工 3高级矿工 4超级矿工 5矿池 ',
  1864. `sys_level` int(2) DEFAULT '0' COMMENT '系统设定级别',
  1865. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1866. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1867. PRIMARY KEY (`id`),
  1868. UNIQUE KEY `member_id` (`member_id`)
  1869. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户团队业绩等级'
  1870. === TABLE: member_team_reward (rows: 0) ===
  1871. CREATE TABLE `member_team_reward` (
  1872. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1873. `member_id` bigint(20) NOT NULL COMMENT '用户id',
  1874. `source_id` bigint(20) DEFAULT NULL COMMENT '来源用户id',
  1875. `source_type` int(2) DEFAULT '0' COMMENT '来源类型 0永续 1期权',
  1876. `num` decimal(20,6) DEFAULT '0.000000' COMMENT '奖励数量',
  1877. `coin_symbol` varchar(50) DEFAULT NULL,
  1878. `type` int(2) DEFAULT '0' COMMENT '奖励类型 0佣金 1推荐奖励',
  1879. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  1880. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  1881. PRIMARY KEY (`id`)
  1882. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户团队奖励记录'
  1883. === TABLE: member_transaction (rows: 0) ===
  1884. CREATE TABLE `member_transaction` (
  1885. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1886. `address` varchar(255) DEFAULT NULL,
  1887. `amount` decimal(26,16) DEFAULT NULL COMMENT '充币金额',
  1888. `create_time` datetime DEFAULT NULL,
  1889. `discount_fee` varchar(255) DEFAULT NULL,
  1890. `fee` decimal(26,16) DEFAULT NULL,
  1891. `flag` int(11) NOT NULL DEFAULT '0',
  1892. `member_id` bigint(20) DEFAULT NULL,
  1893. `real_fee` varchar(255) DEFAULT NULL,
  1894. `symbol` varchar(255) DEFAULT NULL,
  1895. `type` int(11) DEFAULT NULL,
  1896. `direction` int(1) DEFAULT NULL,
  1897. PRIMARY KEY (`id`) USING BTREE,
  1898. KEY `member_id` (`member_id`),
  1899. KEY `create_time` (`create_time`),
  1900. KEY `type` (`type`),
  1901. KEY `symbol` (`symbol`)
  1902. ) ENGINE=InnoDB AUTO_INCREMENT=141690792 DEFAULT CHARSET=utf8 COMMENT='会员交易记录'
  1903. === TABLE: member_transaction_history (rows: 0) ===
  1904. CREATE TABLE `member_transaction_history` (
  1905. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1906. `address` varchar(255) DEFAULT NULL,
  1907. `amount` decimal(26,16) DEFAULT NULL COMMENT '充币金额',
  1908. `create_time` datetime DEFAULT NULL,
  1909. `discount_fee` varchar(255) DEFAULT NULL,
  1910. `fee` decimal(26,16) DEFAULT NULL,
  1911. `flag` int(11) NOT NULL DEFAULT '0',
  1912. `member_id` bigint(20) DEFAULT NULL,
  1913. `real_fee` varchar(255) DEFAULT NULL,
  1914. `symbol` varchar(255) DEFAULT NULL,
  1915. `type` int(11) DEFAULT NULL,
  1916. `direction` int(1) DEFAULT NULL,
  1917. PRIMARY KEY (`id`) USING BTREE,
  1918. KEY `member_id` (`member_id`),
  1919. KEY `create_time` (`create_time`),
  1920. KEY `type` (`type`),
  1921. KEY `symbol` (`symbol`)
  1922. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员交易记录'
  1923. === TABLE: member_wallet (rows: 0) ===
  1924. CREATE TABLE `member_wallet` (
  1925. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1926. `address` varchar(255) DEFAULT NULL,
  1927. `balance` decimal(26,8) DEFAULT NULL COMMENT '可用余额',
  1928. `frozen_balance` decimal(26,8) DEFAULT NULL COMMENT '冻结余额',
  1929. `is_lock` int(11) DEFAULT '0' COMMENT '钱包不是锁定',
  1930. `member_id` bigint(20) DEFAULT NULL,
  1931. `to_released` decimal(18,8) DEFAULT NULL COMMENT '待释放总量',
  1932. `version` int(11) NOT NULL,
  1933. `coin_id` varchar(255) DEFAULT NULL,
  1934. PRIMARY KEY (`id`) USING BTREE,
  1935. UNIQUE KEY `UKm68bscpof0bpnxocxl4qdnvbe` (`member_id`,`coin_id`) USING BTREE,
  1936. KEY `FKf9tgbp9y9py8t9c5xj0lllcib` (`coin_id`) USING BTREE,
  1937. CONSTRAINT `FKf9tgbp9y9py8t9c5xj0lllcib` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  1938. ) ENGINE=InnoDB AUTO_INCREMENT=545928 DEFAULT CHARSET=utf8 COMMENT='会员钱包'
  1939. === TABLE: member_wallet_address_backup (rows: 0) ===
  1940. CREATE TABLE `member_wallet_address_backup` (
  1941. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1942. `address` varchar(255) NOT NULL,
  1943. `member_id` bigint(20) NOT NULL,
  1944. `coin_id` varchar(255) NOT NULL,
  1945. PRIMARY KEY (`id`),
  1946. UNIQUE KEY `ukmemberidcoinid` (`member_id`,`coin_id`)
  1947. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1948. === TABLE: member_wallet_history (rows: 0) ===
  1949. CREATE TABLE `member_wallet_history` (
  1950. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1951. `member_id` int(11) NOT NULL,
  1952. `coin_id` varchar(255) NOT NULL,
  1953. `before_balance` decimal(18,8) NOT NULL,
  1954. `after_balance` decimal(18,8) DEFAULT NULL,
  1955. `before_frozen_balance` decimal(18,8) DEFAULT NULL,
  1956. `after_frozen_balance` decimal(18,8) DEFAULT NULL,
  1957. `op_time` datetime DEFAULT NULL,
  1958. PRIMARY KEY (`id`) USING BTREE
  1959. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='钱包增删记录'
  1960. === TABLE: member_weight_upper (rows: 0) ===
  1961. CREATE TABLE `member_weight_upper` (
  1962. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1963. `create_time` datetime DEFAULT NULL,
  1964. `first_member_id` bigint(20) DEFAULT NULL,
  1965. `member_id` bigint(20) DEFAULT NULL,
  1966. `rate` int(11) DEFAULT NULL,
  1967. `follow_rate` int(11) DEFAULT NULL,
  1968. `dividend_rate` int(11) DEFAULT NULL,
  1969. `wc_rate` int(6) DEFAULT NULL,
  1970. `upper` varchar(255) DEFAULT NULL,
  1971. `all_uppers` varchar(1000) DEFAULT NULL,
  1972. `level` int(2) DEFAULT NULL,
  1973. `is_auto` int(1) DEFAULT NULL,
  1974. PRIMARY KEY (`id`),
  1975. KEY `member_id` (`member_id`)
  1976. ) ENGINE=InnoDB AUTO_INCREMENT=14380 DEFAULT CHARSET=utf8
  1977. === TABLE: mine_conf (rows: 1) ===
  1978. CREATE TABLE `mine_conf` (
  1979. `id` bigint(20) NOT NULL,
  1980. `pledge_quantity` decimal(26,8) NOT NULL COMMENT '最小质押数量',
  1981. `production_ratio` decimal(10,2) NOT NULL COMMENT '产币比例,单位%',
  1982. `bonus_one` decimal(26,8) NOT NULL COMMENT '银牌分红',
  1983. `created_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1984. `updated_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1985. `bonus_two` decimal(26,8) NOT NULL COMMENT '金牌分红',
  1986. `bonus_three` decimal(26,8) NOT NULL COMMENT '合伙人分红',
  1987. `total_quantity` decimal(26,8) NOT NULL COMMENT '矿池总量',
  1988. PRIMARY KEY (`id`)
  1989. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='挖矿配置'
  1990. === TABLE: mine_customer_info (rows: 0) ===
  1991. CREATE TABLE `mine_customer_info` (
  1992. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  1993. `pledge_number` decimal(26,8) NOT NULL COMMENT '质押数量',
  1994. `release_number` decimal(26,8) NOT NULL COMMENT '待解押数量',
  1995. `total_revenue` decimal(26,8) NOT NULL COMMENT '总收益',
  1996. `available_revenue` decimal(26,8) NOT NULL COMMENT '可提取收益',
  1997. `invite_number` int(11) NOT NULL COMMENT '邀请数量',
  1998. `generations` int(11) NOT NULL COMMENT '代',
  1999. `level` int(11) NOT NULL COMMENT '1.银牌商务,2.金牌商务,3.合伙人',
  2000. `member_id` bigint(20) NOT NULL COMMENT '用户id',
  2001. PRIMARY KEY (`id`)
  2002. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客户质押信息'
  2003. === TABLE: mine_income_records (rows: 0) ===
  2004. CREATE TABLE `mine_income_records` (
  2005. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2006. `member_id` bigint(20) NOT NULL COMMENT '用户id',
  2007. `type` int(11) NOT NULL COMMENT '类型:1.收益 2.提出',
  2008. `created_time` datetime NOT NULL,
  2009. `updated_time` datetime NOT NULL,
  2010. `quantity` decimal(26,8) NOT NULL COMMENT '数量',
  2011. PRIMARY KEY (`id`)
  2012. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='收益记录'
  2013. === TABLE: mine_pledge_records (rows: 0) ===
  2014. CREATE TABLE `mine_pledge_records` (
  2015. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2016. `member_id` bigint(20) NOT NULL COMMENT '用户id',
  2017. `type` int(11) NOT NULL COMMENT '类型:1.质押 2.解押',
  2018. `status` int(11) NOT NULL COMMENT '状态:0 待解押 1解押成功',
  2019. `created_time` datetime NOT NULL,
  2020. `updated_time` datetime NOT NULL,
  2021. `quantity` decimal(26,8) NOT NULL COMMENT '数量',
  2022. PRIMARY KEY (`id`)
  2023. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='质押记录'
  2024. === TABLE: mining_order (rows: 0) ===
  2025. CREATE TABLE `mining_order` (
  2026. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2027. `activity_id` bigint(20) DEFAULT NULL,
  2028. `create_time` datetime DEFAULT NULL,
  2029. `current_daysprofit` decimal(18,8) DEFAULT NULL COMMENT '矿机当前日产出',
  2030. `end_time` varchar(30) NOT NULL DEFAULT '2000-01-01 01:00:00' COMMENT '结束时间',
  2031. `member_id` bigint(20) NOT NULL,
  2032. `mining_days` int(11) NOT NULL,
  2033. `mining_daysprofit` decimal(18,8) DEFAULT NULL COMMENT '矿机原始日产出',
  2034. `mining_unit` varchar(255) DEFAULT NULL,
  2035. `mininged_days` int(11) NOT NULL,
  2036. `image` varchar(255) DEFAULT NULL,
  2037. `mining_status` int(11) NOT NULL,
  2038. `period` int(11) NOT NULL,
  2039. `title` varchar(255) DEFAULT NULL,
  2040. `mining_invite` decimal(24,8) DEFAULT NULL,
  2041. `mining_invitelimit` decimal(24,8) DEFAULT NULL,
  2042. `total_profit` decimal(18,8) DEFAULT NULL COMMENT '矿机总产出',
  2043. `type` int(11) NOT NULL,
  2044. PRIMARY KEY (`id`) USING BTREE
  2045. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='挖矿订单'
  2046. === TABLE: mining_order_detail (rows: 0) ===
  2047. CREATE TABLE `mining_order_detail` (
  2048. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2049. `create_time` datetime DEFAULT NULL,
  2050. `member_id` bigint(20) NOT NULL,
  2051. `mining_order_id` bigint(20) DEFAULT NULL,
  2052. `mining_unit` varchar(255) DEFAULT NULL,
  2053. `output` decimal(18,8) DEFAULT NULL COMMENT '矿机当期产出',
  2054. PRIMARY KEY (`id`) USING BTREE
  2055. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='挖矿订单详情'
  2056. === TABLE: money_operation_record (rows: 0) ===
  2057. CREATE TABLE `money_operation_record` (
  2058. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2059. `member_id` bigint(20) NOT NULL,
  2060. `business_id` bigint(20) NOT NULL,
  2061. `amount` decimal(18,8) NOT NULL,
  2062. `remark` varchar(2000) NOT NULL,
  2063. `status` int(1) NOT NULL,
  2064. `create_time` datetime NOT NULL,
  2065. `admit_time` datetime DEFAULT NULL,
  2066. PRIMARY KEY (`id`)
  2067. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  2068. === TABLE: otc_coin (rows: 0) ===
  2069. CREATE TABLE `otc_coin` (
  2070. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2071. `buy_min_amount` decimal(18,8) DEFAULT NULL COMMENT '买入广告最低发布数量',
  2072. `is_platform_coin` int(11) DEFAULT NULL,
  2073. `jy_rate` decimal(18,6) DEFAULT NULL COMMENT '交易手续费率',
  2074. `name` varchar(255) NOT NULL,
  2075. `name_cn` varchar(255) NOT NULL,
  2076. `sell_min_amount` decimal(18,8) DEFAULT NULL COMMENT '卖出广告最低发布数量',
  2077. `sort` int(11) NOT NULL,
  2078. `status` int(11) DEFAULT NULL,
  2079. `unit` varchar(255) NOT NULL,
  2080. PRIMARY KEY (`id`) USING BTREE
  2081. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='OTC币种'
  2082. === TABLE: otc_order (rows: 0) ===
  2083. CREATE TABLE `otc_order` (
  2084. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2085. `advertise_id` bigint(20) NOT NULL,
  2086. `advertise_type` int(11) NOT NULL,
  2087. `ali_no` varchar(255) DEFAULT NULL,
  2088. `qr_code_url` varchar(255) DEFAULT NULL,
  2089. `bank` varchar(255) DEFAULT NULL,
  2090. `branch` varchar(255) DEFAULT NULL,
  2091. `card_no` varchar(255) DEFAULT NULL,
  2092. `cancel_time` datetime DEFAULT NULL,
  2093. `commission` decimal(18,8) DEFAULT NULL COMMENT '手续费',
  2094. `country` varchar(255) NOT NULL,
  2095. `create_time` datetime DEFAULT NULL,
  2096. `customer_id` bigint(20) NOT NULL,
  2097. `customer_name` varchar(255) DEFAULT NULL,
  2098. `customer_real_name` varchar(255) DEFAULT NULL,
  2099. `max_limit` decimal(18,2) DEFAULT NULL COMMENT '最高交易额',
  2100. `member_id` bigint(20) NOT NULL,
  2101. `member_name` varchar(255) DEFAULT NULL,
  2102. `member_real_name` varchar(255) DEFAULT NULL,
  2103. `min_limit` decimal(18,2) DEFAULT NULL COMMENT '最低交易额',
  2104. `money` decimal(18,2) DEFAULT NULL COMMENT '交易金额',
  2105. `number` decimal(18,8) DEFAULT NULL COMMENT '交易数量',
  2106. `order_sn` varchar(255) NOT NULL,
  2107. `pay_mode` varchar(255) NOT NULL,
  2108. `pay_time` datetime DEFAULT NULL,
  2109. `price` decimal(18,2) DEFAULT NULL COMMENT '价格',
  2110. `release_time` datetime DEFAULT NULL,
  2111. `remark` varchar(255) DEFAULT NULL,
  2112. `status` int(11) DEFAULT NULL,
  2113. `time_limit` int(11) DEFAULT NULL,
  2114. `version` bigint(20) DEFAULT NULL,
  2115. `qr_we_code_url` varchar(255) DEFAULT NULL,
  2116. `wechat` varchar(255) DEFAULT NULL,
  2117. `coin_id` bigint(20) NOT NULL,
  2118. PRIMARY KEY (`id`) USING BTREE,
  2119. UNIQUE KEY `UK_qmfpakgu6mowmslv4m5iy43t9` (`order_sn`) USING BTREE,
  2120. KEY `FKjh47nnmiehmu15wqjfwnh8a6u` (`coin_id`) USING BTREE,
  2121. CONSTRAINT `FKjh47nnmiehmu15wqjfwnh8a6u` FOREIGN KEY (`coin_id`) REFERENCES `otc_coin` (`id`)
  2122. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='OTC订单'
  2123. === TABLE: promotion_card (rows: 0) ===
  2124. CREATE TABLE `promotion_card` (
  2125. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2126. `amount` decimal(18,8) DEFAULT NULL COMMENT '单个卡券金额',
  2127. `card_desc` varchar(255) DEFAULT NULL,
  2128. `card_name` varchar(255) NOT NULL,
  2129. `card_no` varchar(255) NOT NULL,
  2130. `count` int(11) NOT NULL,
  2131. `create_time` datetime DEFAULT NULL,
  2132. `exchange_count` int(11) NOT NULL,
  2133. `is_enabled` int(11) NOT NULL,
  2134. `is_free` int(11) NOT NULL,
  2135. `is_lock` int(11) NOT NULL,
  2136. `lock_days` int(11) NOT NULL,
  2137. `member_id` bigint(20) NOT NULL,
  2138. `total_amount` decimal(18,8) DEFAULT NULL COMMENT '所有卡券总金额',
  2139. `coin_id` varchar(255) DEFAULT NULL,
  2140. PRIMARY KEY (`id`) USING BTREE,
  2141. UNIQUE KEY `UK_3781uubel3iuh86ht6yv0n0r7` (`card_no`) USING BTREE,
  2142. KEY `FKem2r42s1av7tfni612176gt9f` (`coin_id`) USING BTREE,
  2143. CONSTRAINT `FKem2r42s1av7tfni612176gt9f` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2144. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合伙人推广卡'
  2145. === TABLE: promotion_card_order (rows: 0) ===
  2146. CREATE TABLE `promotion_card_order` (
  2147. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2148. `amount` decimal(18,8) DEFAULT NULL COMMENT '兑换金额',
  2149. `create_time` datetime DEFAULT NULL,
  2150. `is_free` int(11) NOT NULL,
  2151. `is_lock` int(11) NOT NULL,
  2152. `lock_days` int(11) NOT NULL,
  2153. `member_id` bigint(20) NOT NULL,
  2154. `state` int(11) NOT NULL,
  2155. `card_id` bigint(20) DEFAULT NULL,
  2156. PRIMARY KEY (`id`) USING BTREE,
  2157. KEY `FK1e6ykywfbw68oodq33no4ao8u` (`card_id`) USING BTREE,
  2158. CONSTRAINT `FK1e6ykywfbw68oodq33no4ao8u` FOREIGN KEY (`card_id`) REFERENCES `promotion_card` (`id`)
  2159. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合伙人推广卡订单'
  2160. === TABLE: quick_exchange (rows: 0) ===
  2161. CREATE TABLE `quick_exchange` (
  2162. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2163. `amount` decimal(24,8) DEFAULT '0.00000000',
  2164. `create_time` datetime DEFAULT NULL,
  2165. `ex_amount` decimal(24,8) DEFAULT '0.00000000',
  2166. `from_unit` varchar(255) DEFAULT NULL,
  2167. `member_id` bigint(20) NOT NULL,
  2168. `rate` decimal(24,8) DEFAULT '0.00000000',
  2169. `status` int(11) NOT NULL,
  2170. `to_unit` varchar(255) DEFAULT NULL,
  2171. PRIMARY KEY (`id`)
  2172. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='快速兑换'
  2173. === TABLE: red_envelope (rows: 0) ===
  2174. CREATE TABLE `red_envelope` (
  2175. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2176. `bg_image` varchar(255) DEFAULT NULL,
  2177. `count` int(11) NOT NULL,
  2178. `create_time` datetime DEFAULT NULL,
  2179. `detail` text,
  2180. `envelope_no` varchar(255) NOT NULL,
  2181. `expired_hours` int(11) NOT NULL,
  2182. `invite` int(11) NOT NULL,
  2183. `logo_image` varchar(255) DEFAULT NULL,
  2184. `max_rand` decimal(18,8) DEFAULT NULL COMMENT '最大随机领取额',
  2185. `member_id` bigint(20) DEFAULT NULL,
  2186. `name` varchar(255) DEFAULT NULL,
  2187. `plateform` int(11) NOT NULL,
  2188. `receive_amount` decimal(18,8) DEFAULT NULL COMMENT '领取总额',
  2189. `receive_count` int(11) NOT NULL,
  2190. `state` int(11) NOT NULL,
  2191. `total_amount` decimal(18,8) DEFAULT NULL COMMENT '红包总额',
  2192. `type` int(11) NOT NULL,
  2193. `unit` varchar(255) DEFAULT NULL,
  2194. `invite_user` varchar(255) DEFAULT NULL,
  2195. `invite_user_avatar` varchar(255) DEFAULT NULL,
  2196. PRIMARY KEY (`id`) USING BTREE,
  2197. UNIQUE KEY `UK_kpc525u446ufbpp8a8wxq6b93` (`envelope_no`) USING BTREE
  2198. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2199. === TABLE: red_envelope_detail (rows: 0) ===
  2200. CREATE TABLE `red_envelope_detail` (
  2201. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2202. `amount` decimal(18,8) DEFAULT NULL COMMENT '领取数额',
  2203. `cate` int(11) NOT NULL,
  2204. `create_time` datetime DEFAULT NULL,
  2205. `envelope_id` bigint(20) DEFAULT NULL,
  2206. `member_id` bigint(20) NOT NULL,
  2207. `user_identify` varchar(255) DEFAULT NULL,
  2208. PRIMARY KEY (`id`) USING BTREE
  2209. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2210. === TABLE: reward_activity_setting (rows: 0) ===
  2211. CREATE TABLE `reward_activity_setting` (
  2212. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2213. `info` varchar(255) DEFAULT NULL,
  2214. `status` int(11) DEFAULT NULL,
  2215. `type` int(11) DEFAULT NULL,
  2216. `update_time` datetime DEFAULT NULL,
  2217. `admin_id` bigint(20) DEFAULT NULL,
  2218. `coin_id` varchar(255) NOT NULL,
  2219. PRIMARY KEY (`id`) USING BTREE,
  2220. KEY `FKra9w7qwgbxti55cmkb6kycau7` (`admin_id`) USING BTREE,
  2221. KEY `FKmxq57nrqt4lb9lqpxwc095h1h` (`coin_id`) USING BTREE,
  2222. CONSTRAINT `FKmxq57nrqt4lb9lqpxwc095h1h` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`),
  2223. CONSTRAINT `FKra9w7qwgbxti55cmkb6kycau7` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`)
  2224. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2225. === TABLE: reward_promotion_setting (rows: 0) ===
  2226. CREATE TABLE `reward_promotion_setting` (
  2227. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2228. `effective_time` int(11) NOT NULL,
  2229. `info` varchar(255) DEFAULT NULL,
  2230. `status` int(11) DEFAULT NULL,
  2231. `type` int(11) DEFAULT NULL,
  2232. `update_time` datetime DEFAULT NULL,
  2233. `admin_id` bigint(20) DEFAULT NULL,
  2234. `coin_id` varchar(255) DEFAULT NULL,
  2235. PRIMARY KEY (`id`) USING BTREE,
  2236. KEY `FK7fl96plmj12crmepem7t876u3` (`admin_id`) USING BTREE,
  2237. KEY `FKfhtlsn9g8lj5qecbo596ymhey` (`coin_id`) USING BTREE,
  2238. CONSTRAINT `FK7fl96plmj12crmepem7t876u3` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`),
  2239. CONSTRAINT `FKfhtlsn9g8lj5qecbo596ymhey` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2240. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2241. === TABLE: reward_record (rows: 0) ===
  2242. CREATE TABLE `reward_record` (
  2243. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2244. `amount` decimal(18,8) DEFAULT NULL COMMENT '数目',
  2245. `create_time` datetime DEFAULT NULL,
  2246. `remark` varchar(255) DEFAULT NULL,
  2247. `type` int(11) DEFAULT NULL,
  2248. `coin_id` varchar(255) NOT NULL,
  2249. `member_id` bigint(20) NOT NULL,
  2250. `from_member_id` bigint(20) DEFAULT NULL,
  2251. PRIMARY KEY (`id`) USING BTREE,
  2252. KEY `FKtm2ha75hh60am8n7lco838nmo` (`coin_id`) USING BTREE,
  2253. KEY `FK9m2bd6gjgad67vb6of4waxtov` (`member_id`) USING BTREE,
  2254. KEY `FKf4q35is1vi1erauqyw0ul0cy7` (`from_member_id`),
  2255. CONSTRAINT `FK9m2bd6gjgad67vb6of4waxtov` FOREIGN KEY (`member_id`) REFERENCES `member` (`id`),
  2256. CONSTRAINT `FKf4q35is1vi1erauqyw0ul0cy7` FOREIGN KEY (`from_member_id`) REFERENCES `member` (`id`),
  2257. CONSTRAINT `FKtm2ha75hh60am8n7lco838nmo` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2258. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2259. === TABLE: risk_control (rows: 0) ===
  2260. CREATE TABLE `risk_control` (
  2261. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2262. `member_id` bigint(20) NOT NULL,
  2263. `type` int(2) NOT NULL,
  2264. `content` varchar(1000) NOT NULL,
  2265. `create_time` datetime NOT NULL,
  2266. PRIMARY KEY (`id`)
  2267. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4
  2268. === TABLE: robot_match_conf (rows: 1) ===
  2269. CREATE TABLE `robot_match_conf` (
  2270. `id` bigint(20) NOT NULL,
  2271. `min_amount` decimal(26,8) NOT NULL COMMENT '最小数量',
  2272. `max_amount` decimal(26,8) NOT NULL COMMENT '最大数量',
  2273. `proportion` decimal(20,8) NOT NULL COMMENT '大盘比例:0.0001btc',
  2274. `fixed_offset` decimal(26,16) NOT NULL COMMENT '价格固定偏移量',
  2275. `random_offset` decimal(26,8) NOT NULL COMMENT '价格随机偏移量',
  2276. `handicap_gap` decimal(18,8) DEFAULT NULL,
  2277. `deal_gap` decimal(18,8) DEFAULT NULL,
  2278. `last_btc_price` decimal(18,8) DEFAULT NULL,
  2279. `last_ct_price` decimal(18,8) DEFAULT NULL,
  2280. `status` int(1) NOT NULL,
  2281. PRIMARY KEY (`id`)
  2282. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='配置名称'
  2283. === TABLE: robot_match_plan (rows: 0) ===
  2284. CREATE TABLE `robot_match_plan` (
  2285. `id` bigint(20) NOT NULL,
  2286. `start_time` datetime NOT NULL COMMENT '开盘时间',
  2287. `amplitude` decimal(26,8) NOT NULL COMMENT '幅度:单位%',
  2288. `type` int(11) NOT NULL COMMENT '1涨 2.跌',
  2289. `end_time` datetime NOT NULL COMMENT '结束时间',
  2290. PRIMARY KEY (`id`),
  2291. UNIQUE KEY `robot_match_plan_pk` (`start_time`)
  2292. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='机器人成交计划'
  2293. === TABLE: sign (rows: 0) ===
  2294. CREATE TABLE `sign` (
  2295. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2296. `amount` decimal(19,2) DEFAULT NULL,
  2297. `creation_time` datetime DEFAULT NULL,
  2298. `end_date` date DEFAULT NULL,
  2299. `status` int(11) DEFAULT NULL,
  2300. `coin_name` varchar(255) DEFAULT NULL,
  2301. PRIMARY KEY (`id`) USING BTREE,
  2302. KEY `FK58kn2gi7nvswa8hb76h87wtdl` (`coin_name`) USING BTREE,
  2303. CONSTRAINT `FK58kn2gi7nvswa8hb76h87wtdl` FOREIGN KEY (`coin_name`) REFERENCES `coin` (`name`)
  2304. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2305. === TABLE: symbol_price_bias (rows: 2) ===
  2306. CREATE TABLE `symbol_price_bias` (
  2307. `id` int(10) NOT NULL,
  2308. `symbol` varchar(200) NOT NULL,
  2309. `bias` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  2310. PRIMARY KEY (`id`)
  2311. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  2312. === TABLE: sys_advertise (rows: 0) ===
  2313. CREATE TABLE `sys_advertise` (
  2314. `serial_number` varchar(255) NOT NULL,
  2315. `author` varchar(255) DEFAULT NULL,
  2316. `content` text,
  2317. `create_time` datetime DEFAULT NULL,
  2318. `end_time` varchar(255) NOT NULL,
  2319. `link_url` varchar(255) DEFAULT NULL,
  2320. `name` varchar(255) NOT NULL,
  2321. `remark` varchar(255) DEFAULT NULL,
  2322. `sort` int(11) NOT NULL,
  2323. `start_time` varchar(255) NOT NULL,
  2324. `status` int(11) NOT NULL,
  2325. `sys_advertise_location` int(11) NOT NULL,
  2326. `url` varchar(255) DEFAULT NULL,
  2327. `lang` varchar(255) NOT NULL,
  2328. `display_mode` int(11) DEFAULT '0',
  2329. PRIMARY KEY (`serial_number`) USING BTREE
  2330. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='轮播图'
  2331. === TABLE: sys_config (rows: 1) ===
  2332. CREATE TABLE `sys_config` (
  2333. `id` int(6) NOT NULL AUTO_INCREMENT,
  2334. `promotion_prefix` varchar(255) NOT NULL,
  2335. `contract_margin_rate` int(2) NOT NULL,
  2336. `overnight_rate` int(2) NOT NULL,
  2337. `fine_time_interval` int(6) NOT NULL,
  2338. `follow_special_amount` int(6) NOT NULL,
  2339. `sign_start` decimal(18,8) NOT NULL,
  2340. `sign_type` int(1) NOT NULL,
  2341. `sign_increment` decimal(18,8) NOT NULL,
  2342. `sign_max` decimal(18,8) NOT NULL,
  2343. `promotion_reward` decimal(18,8) NOT NULL,
  2344. `project_name` varchar(200) NOT NULL,
  2345. `project_logo` varchar(1000) NOT NULL,
  2346. `project_avatar` varchar(1000) NOT NULL,
  2347. `project_admin` varchar(1000) NOT NULL,
  2348. `experience_wallet` int(1) NOT NULL,
  2349. `internal_accounts` varchar(2000) DEFAULT NULL,
  2350. `enable_exchange` int(1) NOT NULL,
  2351. `enable_credit` int(1) NOT NULL,
  2352. `funding_rebate` int(2) NOT NULL,
  2353. `system_code` int(1) NOT NULL,
  2354. `special_trader` smallint(2) NOT NULL,
  2355. PRIMARY KEY (`id`)
  2356. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8
  2357. === TABLE: sys_help (rows: 89) ===
  2358. CREATE TABLE `sys_help` (
  2359. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2360. `author` varchar(255) DEFAULT NULL,
  2361. `content` longtext,
  2362. `create_time` datetime DEFAULT NULL,
  2363. `img_url` varchar(255) DEFAULT NULL,
  2364. `is_top` varchar(255) DEFAULT NULL,
  2365. `sort` int(11) NOT NULL,
  2366. `status` int(11) NOT NULL,
  2367. `sys_help_classification` int(11) NOT NULL,
  2368. `title` varchar(255) NOT NULL,
  2369. `lang` varchar(255) DEFAULT NULL,
  2370. PRIMARY KEY (`id`) USING BTREE
  2371. ) ENGINE=InnoDB AUTO_INCREMENT=171 DEFAULT CHARSET=utf8 COMMENT='系统帮助'
  2372. === TABLE: tb_sms (rows: 0) ===
  2373. CREATE TABLE `tb_sms` (
  2374. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2375. `key_id` varchar(255) DEFAULT NULL,
  2376. `key_secret` varchar(255) DEFAULT NULL,
  2377. `sign_id` varchar(255) DEFAULT NULL,
  2378. `sms_name` varchar(255) DEFAULT NULL,
  2379. `sms_status` varchar(255) DEFAULT NULL,
  2380. `template_id` varchar(255) DEFAULT NULL,
  2381. PRIMARY KEY (`id`) USING BTREE
  2382. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='短信Key参数表'
  2383. === TABLE: temporary_purse (rows: 0) ===
  2384. CREATE TABLE `temporary_purse` (
  2385. `id` int(11) DEFAULT NULL,
  2386. `balance` double DEFAULT NULL,
  2387. `frozen_balance` double DEFAULT NULL,
  2388. `frozen_margin` double DEFAULT NULL,
  2389. `e_usdt_address` text,
  2390. `t_usdt_address` text,
  2391. `position_type` int(11) DEFAULT NULL,
  2392. `leverage` double DEFAULT NULL,
  2393. `buy_leverage` text,
  2394. `sell_leverage` text,
  2395. `money_type` int(11) DEFAULT NULL,
  2396. `is_supervised` text
  2397. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  2398. === TABLE: trading_strategy (rows: 0) ===
  2399. CREATE TABLE `trading_strategy` (
  2400. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2401. `name` varchar(200) NOT NULL,
  2402. `volume_type` int(1) NOT NULL,
  2403. `volume_value` decimal(4,2) NOT NULL,
  2404. `profit_count` int(6) NOT NULL,
  2405. `profit_percentage` decimal(4,2) NOT NULL,
  2406. `loss_count` int(6) NOT NULL,
  2407. `loss_percentage` decimal(4,2) NOT NULL,
  2408. PRIMARY KEY (`id`)
  2409. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
  2410. === TABLE: transfer_address (rows: 0) ===
  2411. CREATE TABLE `transfer_address` (
  2412. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2413. `address` varchar(255) DEFAULT NULL,
  2414. `min_amount` decimal(18,2) DEFAULT NULL COMMENT '最低转账数目',
  2415. `status` int(11) DEFAULT NULL,
  2416. `transfer_fee` decimal(18,6) DEFAULT NULL COMMENT '转账手续费率',
  2417. `coin_id` varchar(255) DEFAULT NULL,
  2418. PRIMARY KEY (`id`) USING BTREE,
  2419. KEY `FK7iv0cmmj36ncaw1nx92x15vtu` (`coin_id`) USING BTREE,
  2420. CONSTRAINT `FK7iv0cmmj36ncaw1nx92x15vtu` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2421. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='转账地址'
  2422. === TABLE: transfer_record (rows: 0) ===
  2423. CREATE TABLE `transfer_record` (
  2424. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2425. `address` varchar(255) DEFAULT NULL,
  2426. `amount` decimal(19,2) DEFAULT NULL,
  2427. `create_time` datetime DEFAULT NULL,
  2428. `fee` decimal(18,8) DEFAULT NULL COMMENT '手续费',
  2429. `member_id` bigint(20) DEFAULT NULL,
  2430. `target_member_id` bigint(20) NOT NULL,
  2431. `order_sn` varchar(255) DEFAULT NULL,
  2432. `remark` varchar(255) DEFAULT NULL,
  2433. `coin_id` varchar(255) DEFAULT NULL,
  2434. `status` int(2) NOT NULL,
  2435. `deal_time` datetime DEFAULT NULL,
  2436. `deposit_id` bigint(20) DEFAULT NULL,
  2437. PRIMARY KEY (`id`) USING BTREE,
  2438. KEY `FKkrlf3bglmf2c51sorq9fpue0g` (`coin_id`) USING BTREE,
  2439. KEY `member_id` (`member_id`),
  2440. CONSTRAINT `FKkrlf3bglmf2c51sorq9fpue0g` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2441. ) ENGINE=InnoDB AUTO_INCREMENT=9636 DEFAULT CHARSET=utf8 COMMENT='转账记录'
  2442. === TABLE: user_purse (rows: 0) ===
  2443. CREATE TABLE `user_purse` (
  2444. `id` bigint(20) NOT NULL,
  2445. `balance` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  2446. `frozen_balance` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  2447. `frozen_margin` decimal(18,8) NOT NULL DEFAULT '0.00000000',
  2448. `e_usdt_address` varchar(255) DEFAULT NULL,
  2449. `t_usdt_address` varchar(255) DEFAULT NULL,
  2450. `position_type` int(1) NOT NULL DEFAULT '0',
  2451. `leverage` decimal(10,2) NOT NULL DEFAULT '10.00',
  2452. `buy_leverage` decimal(10,2) DEFAULT '0.00',
  2453. `sell_leverage` decimal(10,2) DEFAULT '0.00',
  2454. `money_type` int(1) NOT NULL DEFAULT '0',
  2455. `is_supervised` int(1) DEFAULT '0',
  2456. PRIMARY KEY (`id`)
  2457. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2458. === TABLE: wallet_trans_record (rows: 0) ===
  2459. CREATE TABLE `wallet_trans_record` (
  2460. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2461. `amount` decimal(26,16) DEFAULT NULL COMMENT '划转金额',
  2462. `create_time` datetime DEFAULT NULL,
  2463. `member_id` bigint(20) DEFAULT NULL,
  2464. `source` int(11) DEFAULT '0' COMMENT '从哪里划转',
  2465. `target` int(11) DEFAULT '0' COMMENT '划转到哪里去',
  2466. `unit` varchar(255) DEFAULT NULL,
  2467. PRIMARY KEY (`id`)
  2468. ) ENGINE=InnoDB AUTO_INCREMENT=159461 DEFAULT CHARSET=utf8 COMMENT='钱包交易记录\r\n'
  2469. === TABLE: website_information (rows: 0) ===
  2470. CREATE TABLE `website_information` (
  2471. `id` bigint(20) NOT NULL,
  2472. `address_icon` varchar(255) DEFAULT NULL,
  2473. `contact` varchar(255) DEFAULT NULL,
  2474. `copyright` varchar(255) DEFAULT NULL,
  2475. `description` varchar(255) DEFAULT NULL,
  2476. `keywords` varchar(255) DEFAULT NULL,
  2477. `logo` varchar(255) DEFAULT NULL,
  2478. `name` varchar(255) DEFAULT NULL,
  2479. `other_information` text,
  2480. `postcode` varchar(255) DEFAULT NULL,
  2481. `url` varchar(255) DEFAULT NULL,
  2482. PRIMARY KEY (`id`) USING BTREE
  2483. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='网站信息\r\n'
  2484. === TABLE: withdraw_backup (rows: 0) ===
  2485. CREATE TABLE `withdraw_backup` (
  2486. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2487. `record_id` bigint(20) NOT NULL,
  2488. `address` varchar(255) NOT NULL,
  2489. `member_id` bigint(20) NOT NULL,
  2490. `coin_id` varchar(255) NOT NULL,
  2491. PRIMARY KEY (`id`),
  2492. UNIQUE KEY `ukmemberidcoinid` (`record_id`,`address`,`member_id`,`coin_id`)
  2493. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2494. === TABLE: withdraw_code_record (rows: 0) ===
  2495. CREATE TABLE `withdraw_code_record` (
  2496. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2497. `create_time` datetime DEFAULT NULL,
  2498. `deal_time` datetime DEFAULT NULL,
  2499. `member_id` bigint(20) DEFAULT NULL,
  2500. `remark` varchar(255) DEFAULT NULL,
  2501. `rmember_id` bigint(20) DEFAULT NULL,
  2502. `status` int(11) DEFAULT NULL,
  2503. `withdraw_amount` decimal(18,8) DEFAULT NULL COMMENT '申请总数量',
  2504. `withdraw_code` varchar(255) DEFAULT NULL,
  2505. `coin_id` varchar(255) NOT NULL,
  2506. PRIMARY KEY (`id`) USING BTREE,
  2507. KEY `FKa3kybqr5vhpnf5a57ridds671` (`coin_id`) USING BTREE,
  2508. CONSTRAINT `FKa3kybqr5vhpnf5a57ridds671` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2509. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
  2510. === TABLE: withdraw_fee_history (rows: 0) ===
  2511. CREATE TABLE `withdraw_fee_history` (
  2512. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2513. `biz_type` varchar(255) DEFAULT NULL,
  2514. `create_time` datetime DEFAULT NULL,
  2515. `fee_amount` decimal(28,8) DEFAULT NULL COMMENT '手续费数量',
  2516. `fee_coin` varchar(255) DEFAULT NULL,
  2517. `fee_type` varchar(255) DEFAULT NULL,
  2518. `symbol` varchar(255) DEFAULT NULL,
  2519. `u_id` bigint(20) DEFAULT NULL,
  2520. `update_time` datetime DEFAULT NULL,
  2521. PRIMARY KEY (`id`) USING BTREE
  2522. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC
  2523. === TABLE: withdraw_record (rows: 0) ===
  2524. CREATE TABLE `withdraw_record` (
  2525. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  2526. `address` varchar(255) DEFAULT NULL,
  2527. `arrived_amount` decimal(18,8) DEFAULT NULL COMMENT '预计到账数量',
  2528. `can_auto_withdraw` int(11) DEFAULT NULL,
  2529. `create_time` datetime DEFAULT NULL,
  2530. `deal_time` datetime DEFAULT NULL,
  2531. `fee` decimal(18,8) DEFAULT NULL COMMENT '手续费',
  2532. `is_auto` int(11) DEFAULT NULL,
  2533. `member_id` bigint(20) DEFAULT NULL,
  2534. `remark` varchar(255) DEFAULT NULL,
  2535. `status` int(11) DEFAULT NULL,
  2536. `total_amount` decimal(18,8) DEFAULT NULL COMMENT '申请总数量',
  2537. `transaction_number` varchar(255) DEFAULT NULL,
  2538. `admin_id` bigint(20) DEFAULT NULL,
  2539. `coin_id` varchar(255) NOT NULL,
  2540. PRIMARY KEY (`id`) USING BTREE,
  2541. KEY `FK2lmq6bcbk4nl3hmqcxbnx2kuc` (`admin_id`) USING BTREE,
  2542. KEY `FK6drad9oqabujy0jsre3minxi` (`coin_id`) USING BTREE,
  2543. CONSTRAINT `FK2lmq6bcbk4nl3hmqcxbnx2kuc` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`),
  2544. CONSTRAINT `FK6drad9oqabujy0jsre3minxi` FOREIGN KEY (`coin_id`) REFERENCES `coin` (`name`)
  2545. ) ENGINE=InnoDB AUTO_INCREMENT=13329 DEFAULT CHARSET=utf8