init.sql 143 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 第九空间-测试服-47.107.237.230
  4. Source Server Type : MySQL
  5. Source Server Version : 80029
  6. Source Host : 47.107.237.230:53306
  7. Source Schema : starepoch_test
  8. Target Server Type : MySQL
  9. Target Server Version : 80029
  10. File Encoding : 65001
  11. Date: 15/06/2022 15:24:27
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for activity
  17. -- ----------------------------
  18. CREATE TABLE `activity` (
  19. `id` bigint NOT NULL,
  20. `created_at` datetime NULL DEFAULT NULL,
  21. `created_by` varchar(255) NULL DEFAULT NULL,
  22. `del` bit(1) NOT NULL,
  23. `modified_at` datetime NULL DEFAULT NULL,
  24. `modified_by` varchar(255) NULL DEFAULT NULL,
  25. `cover` varchar(255) NULL DEFAULT NULL,
  26. `detail` text NULL,
  27. `name` varchar(255) NULL DEFAULT NULL,
  28. `project_id` int NOT NULL,
  29. `content` text NULL,
  30. PRIMARY KEY (`id`) USING BTREE
  31. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  32. -- ----------------------------
  33. -- Records of activity
  34. -- ----------------------------
  35. -- ----------------------------
  36. -- Table structure for activity_collection
  37. -- ----------------------------
  38. CREATE TABLE `activity_collection` (
  39. `id` bigint NOT NULL,
  40. `created_at` datetime NULL DEFAULT NULL,
  41. `created_by` varchar(255) NULL DEFAULT NULL,
  42. `del` bit(1) NOT NULL,
  43. `modified_at` datetime NULL DEFAULT NULL,
  44. `modified_by` varchar(255) NULL DEFAULT NULL,
  45. `award_collection_id` bigint NULL DEFAULT NULL,
  46. `award_collection_name` varchar(255) NULL DEFAULT NULL,
  47. `collection_id` bigint NULL DEFAULT NULL,
  48. `collection_name` varchar(255) NULL DEFAULT NULL,
  49. `name` varchar(255) NULL DEFAULT NULL,
  50. `num` int NOT NULL,
  51. `pic` text NULL,
  52. `stock` int NOT NULL,
  53. `total` int NOT NULL,
  54. `project_id` int NOT NULL,
  55. `end_time` datetime NULL DEFAULT NULL,
  56. `need_collected_num` int NULL DEFAULT NULL,
  57. `start_time` datetime NULL DEFAULT NULL,
  58. `type` int NULL DEFAULT NULL,
  59. PRIMARY KEY (`id`) USING BTREE
  60. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  61. -- ----------------------------
  62. -- Records of activity_collection
  63. -- ----------------------------
  64. -- ----------------------------
  65. -- Table structure for activity_collection_info
  66. -- ----------------------------
  67. CREATE TABLE `activity_collection_info` (
  68. `id` bigint NOT NULL,
  69. `created_at` datetime NULL DEFAULT NULL,
  70. `created_by` varchar(255) NULL DEFAULT NULL,
  71. `del` bit(1) NOT NULL,
  72. `modified_at` datetime NULL DEFAULT NULL,
  73. `modified_by` varchar(255) NULL DEFAULT NULL,
  74. `collection_id` bigint NULL DEFAULT NULL,
  75. `collection_name` varchar(255) NULL DEFAULT NULL,
  76. `must_need_collected` bit(1) NULL DEFAULT NULL,
  77. `num` int NULL DEFAULT NULL,
  78. `activity_id` bigint NULL DEFAULT NULL,
  79. PRIMARY KEY (`id`) USING BTREE,
  80. INDEX `FK1v9a5r3gurk2erxvd49lv89u5`(`activity_id`) USING BTREE,
  81. CONSTRAINT `FK1v9a5r3gurk2erxvd49lv89u5` FOREIGN KEY (`activity_id`) REFERENCES `activity_collection` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  82. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  83. -- ----------------------------
  84. -- Records of activity_collection_info
  85. -- ----------------------------
  86. -- ----------------------------
  87. -- Table structure for activity_invite
  88. -- ----------------------------
  89. CREATE TABLE `activity_invite` (
  90. `id` bigint NOT NULL,
  91. `created_at` datetime NULL DEFAULT NULL,
  92. `created_by` varchar(255) NULL DEFAULT NULL,
  93. `del` bit(1) NOT NULL,
  94. `modified_at` datetime NULL DEFAULT NULL,
  95. `modified_by` varchar(255) NULL DEFAULT NULL,
  96. `award_distribution_type` varchar(255) NULL DEFAULT NULL,
  97. `by_invite_prize` text NULL,
  98. `content` text NULL,
  99. `invite_enddatetime` datetime NULL DEFAULT NULL,
  100. `invite_prize_list` text NULL,
  101. `invite_startdatetime` datetime NULL DEFAULT NULL,
  102. `name` varchar(255) NULL DEFAULT NULL,
  103. `phones` text NULL,
  104. `poster` varchar(255) NULL DEFAULT NULL,
  105. `prl` varchar(255) NULL DEFAULT NULL,
  106. `project_id` int NOT NULL,
  107. `hold_collection_id` bigint NULL DEFAULT NULL,
  108. `inviter_qualifications` int NULL DEFAULT NULL,
  109. `hold_collection_ids` text NULL,
  110. PRIMARY KEY (`id`) USING BTREE
  111. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;
  112. -- ----------------------------
  113. -- Records of activity_invite
  114. -- ----------------------------
  115. -- ----------------------------
  116. -- Table structure for activity_material
  117. -- ----------------------------
  118. CREATE TABLE `activity_material` (
  119. `id` bigint NOT NULL,
  120. `created_at` datetime NULL DEFAULT NULL,
  121. `created_by` varchar(255) NULL DEFAULT NULL,
  122. `del` bit(1) NOT NULL,
  123. `modified_at` datetime NULL DEFAULT NULL,
  124. `modified_by` varchar(255) NULL DEFAULT NULL,
  125. `asset_id` bigint NULL DEFAULT NULL,
  126. `category` varchar(255) NULL DEFAULT NULL,
  127. `collection_id` bigint NULL DEFAULT NULL,
  128. `name` varchar(255) NULL DEFAULT NULL,
  129. `number` int NULL DEFAULT NULL,
  130. `order_id` bigint NULL DEFAULT NULL,
  131. `pic` text NULL,
  132. PRIMARY KEY (`id`) USING BTREE
  133. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  134. -- ----------------------------
  135. -- Records of activity_material
  136. -- ----------------------------
  137. -- ----------------------------
  138. -- Table structure for activity_order
  139. -- ----------------------------
  140. CREATE TABLE `activity_order` (
  141. `id` bigint NOT NULL,
  142. `created_at` datetime NULL DEFAULT NULL,
  143. `created_by` varchar(255) NULL DEFAULT NULL,
  144. `del` bit(1) NOT NULL,
  145. `modified_at` datetime NULL DEFAULT NULL,
  146. `modified_by` varchar(255) NULL DEFAULT NULL,
  147. `activity_collection` varchar(255) NULL DEFAULT NULL,
  148. `activity_collection_id` bigint NULL DEFAULT NULL,
  149. `phone` varchar(255) NULL DEFAULT NULL,
  150. `user_id` bigint NULL DEFAULT NULL,
  151. PRIMARY KEY (`id`) USING BTREE
  152. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  153. -- ----------------------------
  154. -- Records of activity_order
  155. -- ----------------------------
  156. -- ----------------------------
  157. -- Table structure for activity_priority_document
  158. -- ----------------------------
  159. CREATE TABLE `activity_priority_document` (
  160. `id` bigint NOT NULL,
  161. `created_at` datetime NULL DEFAULT NULL,
  162. `created_by` varchar(255) NULL DEFAULT NULL,
  163. `del` bit(1) NOT NULL,
  164. `modified_at` datetime NULL DEFAULT NULL,
  165. `modified_by` varchar(255) NULL DEFAULT NULL,
  166. `advance_purchase_count` int NOT NULL,
  167. `advance_purchase_time` int NOT NULL,
  168. `collection_id` bigint NULL DEFAULT NULL,
  169. `collection_name` varchar(255) NULL DEFAULT NULL,
  170. `name` varchar(255) NULL DEFAULT NULL,
  171. `pic` text NULL,
  172. `project_id` int NOT NULL,
  173. `item_id` int NULL DEFAULT NULL,
  174. `item_name` int NULL DEFAULT NULL,
  175. `minter_id` bigint NULL DEFAULT NULL,
  176. `overdue_time` datetime NULL DEFAULT NULL,
  177. `reset` bit(1) NOT NULL,
  178. `target_collection_id` bigint NULL DEFAULT NULL,
  179. `target_collection_id_list` text NULL,
  180. `text` text NULL,
  181. PRIMARY KEY (`id`) USING BTREE,
  182. INDEX `IDXh1jya5ssbfe165hmv9y5b69ae`(`minter_id`) USING BTREE,
  183. INDEX `IDX3v2etk7srccalesftyf5rfyq`(`reset`) USING BTREE,
  184. INDEX `IDXt764tmbb5k35ws8hn6mmu7wuu`(`collection_id`) USING BTREE
  185. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  186. -- ----------------------------
  187. -- Records of activity_priority_document
  188. -- ----------------------------
  189. -- ----------------------------
  190. -- Table structure for activity_priority_document_detail
  191. -- ----------------------------
  192. CREATE TABLE `activity_priority_document_detail` (
  193. `id` bigint NOT NULL,
  194. `created_at` datetime NULL DEFAULT NULL,
  195. `created_by` varchar(255) NULL DEFAULT NULL,
  196. `del` bit(1) NOT NULL,
  197. `modified_at` datetime NULL DEFAULT NULL,
  198. `modified_by` varchar(255) NULL DEFAULT NULL,
  199. `advance_purchase_count` int NOT NULL,
  200. `advance_purchase_time` int NOT NULL,
  201. `asset_id` bigint NULL DEFAULT NULL,
  202. `collection_id` bigint NULL DEFAULT NULL,
  203. `disabled` bit(1) NOT NULL,
  204. PRIMARY KEY (`id`) USING BTREE,
  205. INDEX `IDXh3qt65qhxieeyk1o4mpe1fqxf`(`collection_id`) USING BTREE
  206. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  207. -- ----------------------------
  208. -- Records of activity_priority_document_detail
  209. -- ----------------------------
  210. -- ----------------------------
  211. -- Table structure for activity_surprise_box
  212. -- ----------------------------
  213. CREATE TABLE `activity_surprise_box` (
  214. `id` bigint NOT NULL,
  215. `created_at` datetime NULL DEFAULT NULL,
  216. `created_by` varchar(255) NULL DEFAULT NULL,
  217. `del` bit(1) NOT NULL,
  218. `modified_at` datetime NULL DEFAULT NULL,
  219. `modified_by` varchar(255) NULL DEFAULT NULL,
  220. `box_sum` int NULL DEFAULT NULL,
  221. `grant_count` int NULL DEFAULT NULL,
  222. `name` varchar(255) NULL DEFAULT NULL,
  223. `project_id` int NOT NULL,
  224. `properties` text NULL,
  225. PRIMARY KEY (`id`) USING BTREE
  226. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  227. -- ----------------------------
  228. -- Records of activity_surprise_box
  229. -- ----------------------------
  230. -- ----------------------------
  231. -- Table structure for adapay_merchant
  232. -- ----------------------------
  233. CREATE TABLE `adapay_merchant` (
  234. `id` bigint NOT NULL,
  235. `created_at` datetime NULL DEFAULT NULL,
  236. `created_by` varchar(255) NULL DEFAULT NULL,
  237. `del` bit(1) NOT NULL,
  238. `modified_at` datetime NULL DEFAULT NULL,
  239. `modified_by` varchar(255) NULL DEFAULT NULL,
  240. `api_key` varchar(255) NULL DEFAULT NULL,
  241. `app_id` varchar(72) NULL DEFAULT NULL,
  242. `mock_key` varchar(255) NULL DEFAULT NULL,
  243. `name` varchar(72) NULL DEFAULT NULL,
  244. `priv_key` text NULL,
  245. `public_key` text NULL,
  246. `selected` bit(1) NOT NULL,
  247. `status` varchar(255) NULL DEFAULT NULL,
  248. `wx_app_id` varchar(255) NULL DEFAULT NULL,
  249. PRIMARY KEY (`id`) USING BTREE,
  250. UNIQUE INDEX `UK_t7m2745vm5owxivq45g6lmsut`(`app_id`) USING BTREE,
  251. UNIQUE INDEX `UK_226ho9bovclgwjf8pvuxdb04s`(`name`) USING BTREE
  252. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  253. -- ----------------------------
  254. -- Records of adapay_merchant
  255. -- ----------------------------
  256. -- ----------------------------
  257. -- Table structure for air_drop
  258. -- ----------------------------
  259. CREATE TABLE `air_drop` (
  260. `id` bigint NOT NULL,
  261. `created_at` datetime NULL DEFAULT NULL,
  262. `created_by` varchar(255) NULL DEFAULT NULL,
  263. `del` bit(1) NOT NULL,
  264. `modified_at` datetime NULL DEFAULT NULL,
  265. `modified_by` varchar(255) NULL DEFAULT NULL,
  266. `collection_id` bigint NULL DEFAULT NULL,
  267. `coupon_id` bigint NULL DEFAULT NULL,
  268. `name` varchar(255) NULL DEFAULT NULL,
  269. `phone` text NULL,
  270. `remark` varchar(255) NULL DEFAULT NULL,
  271. `result` text NULL,
  272. `type` varchar(255) NULL DEFAULT NULL,
  273. `user_ids` text NULL,
  274. `project_id` int NOT NULL,
  275. `drop_count` int NULL DEFAULT NULL,
  276. `drop_price` decimal(10, 2) NULL DEFAULT NULL,
  277. `operation` varchar(255) NULL DEFAULT NULL,
  278. `surprise_box_id` bigint NULL DEFAULT NULL,
  279. PRIMARY KEY (`id`) USING BTREE,
  280. INDEX `IDXf8xftc1c2yg8y5baijk0070rl`(`name`) USING BTREE
  281. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  282. -- ----------------------------
  283. -- Records of air_drop
  284. -- ----------------------------
  285. -- ----------------------------
  286. -- Table structure for appointment
  287. -- ----------------------------
  288. CREATE TABLE `appointment` (
  289. `id` bigint NOT NULL,
  290. `created_at` datetime NULL DEFAULT NULL,
  291. `created_by` varchar(255) NULL DEFAULT NULL,
  292. `del` bit(1) NOT NULL,
  293. `modified_at` datetime NULL DEFAULT NULL,
  294. `modified_by` varchar(255) NULL DEFAULT NULL,
  295. `blind_box_id` bigint NULL DEFAULT NULL,
  296. `user_id` bigint NULL DEFAULT NULL,
  297. PRIMARY KEY (`id`) USING BTREE
  298. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  299. -- ----------------------------
  300. -- Records of appointment
  301. -- ----------------------------
  302. -- ----------------------------
  303. -- Table structure for asset
  304. -- ----------------------------
  305. CREATE TABLE `asset` (
  306. `id` bigint NOT NULL,
  307. `created_at` datetime NULL DEFAULT NULL,
  308. `created_by` varchar(255) NULL DEFAULT NULL,
  309. `del` bit(1) NOT NULL,
  310. `modified_at` datetime NULL DEFAULT NULL,
  311. `modified_by` varchar(255) NULL DEFAULT NULL,
  312. `block_number` decimal(19, 2) NULL DEFAULT NULL,
  313. `gas_used` decimal(19, 2) NULL DEFAULT NULL,
  314. `ipfs_url` varchar(255) NULL DEFAULT NULL,
  315. `minter` varchar(255) NULL DEFAULT NULL,
  316. `minter_avatar` varchar(255) NULL DEFAULT NULL,
  317. `minter_id` bigint NULL DEFAULT NULL,
  318. `name` varchar(255) NULL DEFAULT NULL,
  319. `order_id` bigint NULL DEFAULT NULL,
  320. `out_order_id` bigint NULL DEFAULT NULL,
  321. `out_tx_hash` varchar(255) NULL DEFAULT NULL,
  322. `pic` text NULL,
  323. `price` decimal(10, 2) NULL DEFAULT NULL,
  324. `sell_price` decimal(10, 2) NULL DEFAULT NULL,
  325. `status` varchar(255) NULL DEFAULT NULL,
  326. `token_id` varchar(255) NULL DEFAULT NULL,
  327. `tx_hash` varchar(255) NULL DEFAULT NULL,
  328. `user_id` bigint NULL DEFAULT NULL,
  329. `properties` text NULL,
  330. `collection_id` bigint NULL DEFAULT NULL,
  331. `number` int NOT NULL,
  332. `owner_name` varchar(255) NULL DEFAULT NULL,
  333. `can_resale` bit(1) NOT NULL,
  334. `detail` text NULL,
  335. `public_collection_id` bigint NULL DEFAULT NULL,
  336. `public_show` bit(1) NOT NULL,
  337. `royalties` int NOT NULL,
  338. `service_charge` int NOT NULL,
  339. `category` varchar(255) NULL DEFAULT NULL,
  340. `consignment` bit(1) NOT NULL,
  341. `likes` int NOT NULL,
  342. `owner` varchar(255) NULL DEFAULT NULL,
  343. `owner_avatar` varchar(255) NULL DEFAULT NULL,
  344. `owner_id` bigint NULL DEFAULT NULL,
  345. `privileges` text NULL,
  346. `from_asset_id` bigint NULL DEFAULT NULL,
  347. `chain_token_id` varchar(255) NULL DEFAULT NULL,
  348. `model3d` text NULL,
  349. `project_id` int NOT NULL,
  350. `out_time` datetime NULL DEFAULT NULL,
  351. `compose_name` varchar(255) NULL DEFAULT NULL,
  352. `blind_box_id` bigint NULL DEFAULT NULL,
  353. `categories` varchar(255) NULL DEFAULT NULL,
  354. `variable_type` bit(1) NOT NULL,
  355. PRIMARY KEY (`id`) USING BTREE,
  356. INDEX `IDXn5os9jehi865ew1aw69c3n0gs`(`user_id`) USING BTREE,
  357. INDEX `IDXqygqn7xpy21iotp7863h3440i`(`token_id`) USING BTREE,
  358. INDEX `IDXl88c0btbqwdphcq6tkt1lvrf7`(`collection_id`) USING BTREE,
  359. INDEX `IDXa9re3fexerlxmhcrccqn7xho8`(`minter_id`) USING BTREE,
  360. INDEX `IDXi2s6wcjil5l6331nt3sk2sows`(`owner_id`) USING BTREE,
  361. INDEX `asset_order_id_index`(`order_id`) USING BTREE
  362. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  363. -- ----------------------------
  364. -- Records of asset
  365. -- ----------------------------
  366. -- ----------------------------
  367. -- Table structure for asset_sell_limit
  368. -- ----------------------------
  369. CREATE TABLE `asset_sell_limit` (
  370. `id` bigint NOT NULL,
  371. `created_at` datetime NULL DEFAULT NULL,
  372. `created_by` varchar(255) NULL DEFAULT NULL,
  373. `del` bit(1) NOT NULL,
  374. `modified_at` datetime NULL DEFAULT NULL,
  375. `modified_by` varchar(255) NULL DEFAULT NULL,
  376. `collection_id` bigint NULL DEFAULT NULL,
  377. `collection_name` varchar(255) NULL DEFAULT NULL,
  378. `expire_date_time` datetime NULL DEFAULT NULL,
  379. `expire_seconds` int NULL DEFAULT NULL,
  380. `min_price` decimal(19, 2) NULL DEFAULT NULL,
  381. `project_id` int NOT NULL,
  382. PRIMARY KEY (`id`) USING BTREE
  383. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  384. -- ----------------------------
  385. -- Records of asset_sell_limit
  386. -- ----------------------------
  387. -- ----------------------------
  388. -- Table structure for authority
  389. -- ----------------------------
  390. CREATE TABLE `authority` (
  391. `name` varchar(50) NOT NULL,
  392. `description` varchar(50) NOT NULL,
  393. `hide` bit(1) NOT NULL,
  394. PRIMARY KEY (`name`) USING BTREE
  395. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  396. -- ----------------------------
  397. -- Records of authority
  398. -- ----------------------------
  399. INSERT INTO `authority` VALUES ('ROLE_ADMIN', '高级管理员', b'0');
  400. INSERT INTO `authority` VALUES ('ROLE_DEV', '开发者', b'0');
  401. INSERT INTO `authority` VALUES ('ROLE_MINTER', '铸造者', b'0');
  402. INSERT INTO `authority` VALUES ('ROLE_OPERATOR', '普通管理员', b'0');
  403. INSERT INTO `authority` VALUES ('ROLE_USER', '普通用户', b'0');
  404. -- ----------------------------
  405. -- Table structure for award_activity_collection_info
  406. -- ----------------------------
  407. CREATE TABLE `award_activity_collection_info` (
  408. `id` bigint NOT NULL,
  409. `created_at` datetime NULL DEFAULT NULL,
  410. `created_by` varchar(255) NULL DEFAULT NULL,
  411. `del` bit(1) NOT NULL,
  412. `modified_at` datetime NULL DEFAULT NULL,
  413. `modified_by` varchar(255) NULL DEFAULT NULL,
  414. `activity_id` bigint NULL DEFAULT NULL,
  415. `collection_id` bigint NULL DEFAULT NULL,
  416. `collection_name` varchar(255) NULL DEFAULT NULL,
  417. `drop_type` int NOT NULL DEFAULT 0,
  418. `exchange_num` int NOT NULL DEFAULT 1,
  419. `num` int NULL DEFAULT NULL,
  420. `stock` int NULL DEFAULT NULL,
  421. PRIMARY KEY (`id`) USING BTREE,
  422. INDEX `FKla58velkvjd4hcueqjjtgte50`(`activity_id`) USING BTREE,
  423. CONSTRAINT `FKla58velkvjd4hcueqjjtgte50` FOREIGN KEY (`activity_id`) REFERENCES `activity_collection` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  424. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  425. -- ----------------------------
  426. -- Records of award_activity_collection_info
  427. -- ----------------------------
  428. -- ----------------------------
  429. -- Table structure for banner
  430. -- ----------------------------
  431. CREATE TABLE `banner` (
  432. `id` bigint NOT NULL,
  433. `created_at` datetime NULL DEFAULT NULL,
  434. `created_by` varchar(255) NULL DEFAULT NULL,
  435. `del` bit(1) NOT NULL,
  436. `modified_at` datetime NULL DEFAULT NULL,
  437. `modified_by` varchar(255) NULL DEFAULT NULL,
  438. `link` bit(1) NOT NULL,
  439. `link_content` varchar(255) NULL DEFAULT NULL,
  440. `link_type` varchar(255) NULL DEFAULT NULL,
  441. `name` varchar(255) NULL DEFAULT NULL,
  442. `pic` varchar(255) NULL DEFAULT NULL,
  443. `remark` varchar(255) NULL DEFAULT NULL,
  444. `sort` int NOT NULL,
  445. `type` varchar(255) NULL DEFAULT NULL,
  446. `project_id` int NOT NULL,
  447. PRIMARY KEY (`id`) USING BTREE,
  448. INDEX `IDXkah06yhlxm824q81ru3aomxic`(`type`) USING BTREE
  449. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  450. -- ----------------------------
  451. -- Records of banner
  452. -- ----------------------------
  453. -- ----------------------------
  454. -- Table structure for blind_box_item
  455. -- ----------------------------
  456. CREATE TABLE `blind_box_item` (
  457. `id` bigint NOT NULL,
  458. `created_at` datetime NULL DEFAULT NULL,
  459. `created_by` varchar(255) NULL DEFAULT NULL,
  460. `del` bit(1) NOT NULL,
  461. `modified_at` datetime NULL DEFAULT NULL,
  462. `modified_by` varchar(255) NULL DEFAULT NULL,
  463. `blind_box_id` bigint NULL DEFAULT NULL,
  464. `can_resale` bit(1) NOT NULL,
  465. `collection_id` bigint NULL DEFAULT NULL,
  466. `detail` text NULL,
  467. `minter` varchar(255) NULL DEFAULT NULL,
  468. `minter_avatar` varchar(255) NULL DEFAULT NULL,
  469. `minter_id` bigint NULL DEFAULT NULL,
  470. `name` varchar(255) NULL DEFAULT NULL,
  471. `pic` text NULL,
  472. `price` decimal(10, 2) NULL DEFAULT NULL,
  473. `properties` text NULL,
  474. `rare` bit(1) NOT NULL,
  475. `royalties` int NOT NULL,
  476. `sale` int NOT NULL,
  477. `service_charge` int NOT NULL,
  478. `stock` int NOT NULL,
  479. `total` int NOT NULL,
  480. `category` varchar(255) NULL DEFAULT NULL,
  481. `privileges` text NULL,
  482. `model3d` text NULL,
  483. `project_id` int NOT NULL,
  484. `pic_pattern` varchar(255) NULL DEFAULT NULL,
  485. PRIMARY KEY (`id`) USING BTREE,
  486. INDEX `IDX2a0v9ix4r7xa0c9e0mysp8vcv`(`blind_box_id`) USING BTREE,
  487. INDEX `IDXpts7ljwe64og1h05ssm75ee9j`(`collection_id`) USING BTREE,
  488. INDEX `IDXsn5pqgm83nd6xmdrh7qujdri8`(`minter_id`) USING BTREE
  489. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  490. -- ----------------------------
  491. -- Records of blind_box_item
  492. -- ----------------------------
  493. -- ----------------------------
  494. -- Table structure for blink_box
  495. -- ----------------------------
  496. CREATE TABLE `blink_box` (
  497. `id` bigint NOT NULL,
  498. `created_at` datetime NULL DEFAULT NULL,
  499. `created_by` varchar(255) NULL DEFAULT NULL,
  500. `del` bit(1) NOT NULL,
  501. `modified_at` datetime NULL DEFAULT NULL,
  502. `modified_by` varchar(255) NULL DEFAULT NULL,
  503. `detail` text NULL,
  504. `likes` int NOT NULL,
  505. `minter` varchar(255) NULL DEFAULT NULL,
  506. `minter_avatar` varchar(255) NULL DEFAULT NULL,
  507. `minter_id` bigint NULL DEFAULT NULL,
  508. `name` varchar(255) NULL DEFAULT NULL,
  509. `on_shelf` bit(1) NOT NULL,
  510. `pics` text NULL,
  511. `price` decimal(10, 2) NULL DEFAULT NULL,
  512. `properties` text NULL,
  513. `salable` bit(1) NOT NULL,
  514. `sale` int NOT NULL,
  515. `source` varchar(255) NULL DEFAULT NULL,
  516. `stock` int NOT NULL,
  517. `type` varchar(255) NULL DEFAULT NULL,
  518. PRIMARY KEY (`id`) USING BTREE
  519. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  520. -- ----------------------------
  521. -- Records of blink_box
  522. -- ----------------------------
  523. -- ----------------------------
  524. -- Table structure for child
  525. -- ----------------------------
  526. CREATE TABLE `child` (
  527. `id` bigint NOT NULL,
  528. `created_at` datetime NULL DEFAULT NULL,
  529. `created_by` varchar(255) NULL DEFAULT NULL,
  530. `modified_at` datetime NULL DEFAULT NULL,
  531. `modified_by` varchar(255) NULL DEFAULT NULL,
  532. `child_name` varchar(255) NULL DEFAULT NULL,
  533. `parent_id` bigint NULL DEFAULT NULL,
  534. PRIMARY KEY (`id`) USING BTREE,
  535. INDEX `FK7dag1cncltpyhoc2mbwka356h`(`parent_id`) USING BTREE,
  536. CONSTRAINT `FK7dag1cncltpyhoc2mbwka356h` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  537. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  538. -- ----------------------------
  539. -- Records of child
  540. -- ----------------------------
  541. -- ----------------------------
  542. -- Table structure for city
  543. -- ----------------------------
  544. CREATE TABLE `city` (
  545. `id` bigint NOT NULL,
  546. `created_at` datetime NULL DEFAULT NULL,
  547. `created_by` varchar(255) NULL DEFAULT NULL,
  548. `modified_at` datetime NULL DEFAULT NULL,
  549. `modified_by` varchar(255) NULL DEFAULT NULL,
  550. `name` varchar(255) NULL DEFAULT NULL,
  551. `remark` varchar(255) NULL DEFAULT NULL,
  552. PRIMARY KEY (`id`) USING BTREE
  553. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  554. -- ----------------------------
  555. -- Records of city
  556. -- ----------------------------
  557. -- ----------------------------
  558. -- Table structure for collection_category
  559. -- ----------------------------
  560. CREATE TABLE `collection_category` (
  561. `id` bigint NOT NULL,
  562. `created_at` datetime NULL DEFAULT NULL,
  563. `created_by` varchar(255) NULL DEFAULT NULL,
  564. `del` bit(1) NOT NULL,
  565. `modified_at` datetime NULL DEFAULT NULL,
  566. `modified_by` varchar(255) NULL DEFAULT NULL,
  567. `name` varchar(255) NULL DEFAULT NULL,
  568. `parent_id` bigint NULL DEFAULT NULL,
  569. `project_id` int NOT NULL,
  570. `sort` int NULL DEFAULT NULL,
  571. PRIMARY KEY (`id`) USING BTREE,
  572. INDEX `IDXkkey1va7wkboxpa3t9o04ke79`(`name`) USING BTREE
  573. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  574. -- ----------------------------
  575. -- Records of collection_category
  576. -- ----------------------------
  577. -- ----------------------------
  578. -- Table structure for collection_info
  579. -- ----------------------------
  580. CREATE TABLE `collection_info` (
  581. `id` bigint NOT NULL,
  582. `created_at` datetime NULL DEFAULT NULL,
  583. `created_by` varchar(255) NULL DEFAULT NULL,
  584. `del` bit(1) NOT NULL,
  585. `modified_at` datetime NULL DEFAULT NULL,
  586. `modified_by` varchar(255) NULL DEFAULT NULL,
  587. `detail` text NULL,
  588. `likes` int NOT NULL,
  589. `minter` varchar(255) NULL DEFAULT NULL,
  590. `minter_avatar` varchar(255) NULL DEFAULT NULL,
  591. `minter_id` bigint NULL DEFAULT NULL,
  592. `name` varchar(255) NULL DEFAULT NULL,
  593. `on_shelf` bit(1) NOT NULL,
  594. `pic` text NULL,
  595. `price` decimal(10, 2) NULL DEFAULT NULL,
  596. `sale` int NOT NULL,
  597. `source` varchar(255) NULL DEFAULT NULL,
  598. `stock` int NOT NULL,
  599. `type` varchar(255) NULL DEFAULT NULL,
  600. `properties` text NULL,
  601. `salable` bit(1) NOT NULL,
  602. `can_resale` bit(1) NOT NULL,
  603. `blind_box_id` bigint NULL DEFAULT NULL,
  604. `total` int NOT NULL,
  605. `royalties` int NOT NULL,
  606. `service_charge` int NOT NULL,
  607. `start_time` datetime NULL DEFAULT NULL,
  608. `owner` varchar(255) NULL DEFAULT NULL,
  609. `owner_avatar` varchar(255) NULL DEFAULT NULL,
  610. `owner_id` bigint NULL DEFAULT NULL,
  611. `category` varchar(255) NULL DEFAULT NULL,
  612. `schedule_sale` bit(1) NOT NULL,
  613. `sort` int NOT NULL,
  614. `privileges` text NULL,
  615. `asset_id` bigint NULL DEFAULT NULL,
  616. `current_number` int NULL DEFAULT NULL,
  617. `number` int NULL DEFAULT NULL,
  618. `original_price` decimal(19, 2) NULL DEFAULT NULL,
  619. `model3d` text NULL,
  620. `project_id` int NOT NULL,
  621. `pic_pattern` varchar(255) NULL DEFAULT NULL,
  622. `categories` varchar(255) NULL DEFAULT NULL,
  623. `collection_category_id` bigint NULL DEFAULT NULL,
  624. `limit_buy_count` int NULL DEFAULT NULL,
  625. `variable_collection_id` bigint NULL DEFAULT NULL,
  626. `variable_type` bit(1) NOT NULL,
  627. PRIMARY KEY (`id`) USING BTREE,
  628. INDEX `IDXe68e3dajiefqmfc0jmvvt9l7g`(`type`, `source`) USING BTREE,
  629. INDEX `IDXemw5rwa38vgrskx1b166mveh3`(`minter_id`) USING BTREE,
  630. INDEX `IDX9cqxsb7x36cqj2cxu2l3kk77o`(`on_shelf`) USING BTREE,
  631. INDEX `IDXni57xpcx1cnw1mcfxks7kljcq`(`owner_id`) USING BTREE,
  632. INDEX `IDXjghwfjav02axd296ug2bbekxk`(`asset_id`) USING BTREE,
  633. INDEX `FKqmc45wlywxqeegk6f8v9kunhe`(`collection_category_id`) USING BTREE,
  634. CONSTRAINT `FKqmc45wlywxqeegk6f8v9kunhe` FOREIGN KEY (`collection_category_id`) REFERENCES `collection_category` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  635. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  636. -- ----------------------------
  637. -- Records of collection_info
  638. -- ----------------------------
  639. -- ----------------------------
  640. -- Table structure for commission_record
  641. -- ----------------------------
  642. CREATE TABLE `commission_record` (
  643. `id` bigint NOT NULL,
  644. `created_at` datetime NULL DEFAULT NULL,
  645. `created_by` varchar(255) NULL DEFAULT NULL,
  646. `del` bit(1) NOT NULL,
  647. `modified_at` datetime NULL DEFAULT NULL,
  648. `modified_by` varchar(255) NULL DEFAULT NULL,
  649. `nickname` varchar(255) NULL DEFAULT NULL,
  650. `order_id` bigint NULL DEFAULT NULL,
  651. `phone` varchar(255) NULL DEFAULT NULL,
  652. `share_amount` decimal(19, 2) NULL DEFAULT NULL,
  653. `share_ratio` decimal(19, 2) NULL DEFAULT NULL,
  654. `total_price` decimal(19, 2) NULL DEFAULT NULL,
  655. `user_id` bigint NULL DEFAULT NULL,
  656. PRIMARY KEY (`id`) USING BTREE
  657. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  658. -- ----------------------------
  659. -- Records of commission_record
  660. -- ----------------------------
  661. -- ----------------------------
  662. -- Table structure for coupon
  663. -- ----------------------------
  664. CREATE TABLE `coupon` (
  665. `id` bigint NOT NULL,
  666. `created_at` datetime NULL DEFAULT NULL,
  667. `created_by` varchar(255) NULL DEFAULT NULL,
  668. `del` bit(1) NOT NULL,
  669. `modified_at` datetime NULL DEFAULT NULL,
  670. `modified_by` varchar(255) NULL DEFAULT NULL,
  671. `collection_ids` text NULL,
  672. `expiration` datetime NULL DEFAULT NULL,
  673. `limited` bit(1) NOT NULL,
  674. `name` varchar(255) NULL DEFAULT NULL,
  675. `need_gas` bit(1) NOT NULL,
  676. `remark` varchar(255) NULL DEFAULT NULL,
  677. `project_id` int NOT NULL,
  678. PRIMARY KEY (`id`) USING BTREE
  679. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  680. -- ----------------------------
  681. -- Records of coupon
  682. -- ----------------------------
  683. -- ----------------------------
  684. -- Table structure for district
  685. -- ----------------------------
  686. CREATE TABLE `district` (
  687. `id` bigint NOT NULL,
  688. `created_at` datetime NULL DEFAULT NULL,
  689. `created_by` varchar(255) NULL DEFAULT NULL,
  690. `modified_at` datetime NULL DEFAULT NULL,
  691. `modified_by` varchar(255) NULL DEFAULT NULL,
  692. `full_name` varchar(255) NULL DEFAULT NULL,
  693. `lat` double NOT NULL,
  694. `leaf` bit(1) NOT NULL,
  695. `level` int NOT NULL,
  696. `lng` double NOT NULL,
  697. `name` varchar(255) NULL DEFAULT NULL,
  698. `parent` bigint NULL DEFAULT NULL,
  699. `pinyin` varchar(255) NULL DEFAULT NULL,
  700. `child_count` int NOT NULL,
  701. `city_code` varchar(10) NULL DEFAULT NULL,
  702. `city_count` int NOT NULL,
  703. `district_count` int NOT NULL,
  704. `street_count` int NOT NULL,
  705. `del` bit(1) NOT NULL,
  706. PRIMARY KEY (`id`) USING BTREE
  707. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  708. -- ----------------------------
  709. -- Records of district
  710. -- ----------------------------
  711. -- ----------------------------
  712. -- Table structure for div_money
  713. -- ----------------------------
  714. CREATE TABLE `div_money` (
  715. `id` bigint NOT NULL,
  716. `created_at` datetime NULL DEFAULT NULL,
  717. `created_by` varchar(255) NULL DEFAULT NULL,
  718. `del` bit(1) NOT NULL,
  719. `modified_at` datetime NULL DEFAULT NULL,
  720. `modified_by` varchar(255) NULL DEFAULT NULL,
  721. `amount` decimal(10, 2) NULL DEFAULT NULL,
  722. `fee_flag` bit(1) NOT NULL,
  723. `member_id` varchar(255) NULL DEFAULT NULL,
  724. `order_id` bigint NOT NULL,
  725. `ratio` int NULL DEFAULT NULL,
  726. `rest_amount` decimal(10, 2) NULL DEFAULT NULL,
  727. `status` varchar(255) NULL DEFAULT NULL,
  728. `total_amount` decimal(10, 2) NULL DEFAULT NULL,
  729. `user_id` bigint NULL DEFAULT NULL,
  730. `process_time` datetime NULL DEFAULT NULL,
  731. `transfer_money_id` bigint NULL DEFAULT NULL,
  732. `transfer_result` varchar(255) NULL DEFAULT NULL,
  733. `order_amount` decimal(10, 2) NULL DEFAULT NULL,
  734. `pay_platform` varchar(255) NULL DEFAULT NULL,
  735. `third_account_id` varchar(255) NULL DEFAULT NULL,
  736. `user_fund_account_id` bigint NULL DEFAULT NULL,
  737. PRIMARY KEY (`id`) USING BTREE,
  738. INDEX `IDXg84omvvl6eysqoi1i1l7n089f`(`user_id`) USING BTREE,
  739. INDEX `IDXgi6jes62mg7i6hp7mw4e2j17y`(`order_id`) USING BTREE
  740. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  741. -- ----------------------------
  742. -- Records of div_money
  743. -- ----------------------------
  744. -- ----------------------------
  745. -- Table structure for error_order
  746. -- ----------------------------
  747. CREATE TABLE `error_order` (
  748. `id` bigint NOT NULL,
  749. `created_at` datetime NULL DEFAULT NULL,
  750. `created_by` varchar(255) NULL DEFAULT NULL,
  751. `del` bit(1) NOT NULL,
  752. `modified_at` datetime NULL DEFAULT NULL,
  753. `modified_by` varchar(255) NULL DEFAULT NULL,
  754. `error_message` varchar(255) NULL DEFAULT NULL,
  755. `order_id` bigint NULL DEFAULT NULL,
  756. `pay_method` int NULL DEFAULT NULL,
  757. `transaction_id` varchar(255) NULL DEFAULT NULL,
  758. `type` varchar(255) NULL DEFAULT NULL,
  759. PRIMARY KEY (`id`) USING BTREE
  760. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  761. -- ----------------------------
  762. -- Records of error_order
  763. -- ----------------------------
  764. -- ----------------------------
  765. -- Table structure for exception_log
  766. -- ----------------------------
  767. CREATE TABLE `exception_log` (
  768. `id` bigint NOT NULL,
  769. `description` varchar(255) NULL DEFAULT NULL,
  770. `message` longtext NULL,
  771. `name` varchar(255) NULL DEFAULT NULL,
  772. `req_ip` varchar(255) NULL DEFAULT NULL,
  773. `req_method` varchar(255) NULL DEFAULT NULL,
  774. `req_params` longtext NULL,
  775. `req_url` varchar(255) NULL DEFAULT NULL,
  776. `resp` longtext NULL,
  777. `stack_trace` longtext NULL,
  778. `time` datetime NULL DEFAULT NULL,
  779. `type` varchar(255) NULL DEFAULT NULL,
  780. `user_id` varchar(255) NULL DEFAULT NULL,
  781. `username` varchar(255) NULL DEFAULT NULL,
  782. PRIMARY KEY (`id`) USING BTREE
  783. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  784. -- ----------------------------
  785. -- Records of exception_log
  786. -- ----------------------------
  787. -- ----------------------------
  788. -- Table structure for follow
  789. -- ----------------------------
  790. CREATE TABLE `follow` (
  791. `id` bigint NOT NULL,
  792. `created_at` datetime NULL DEFAULT NULL,
  793. `created_by` varchar(255) NULL DEFAULT NULL,
  794. `del` bit(1) NOT NULL,
  795. `modified_at` datetime NULL DEFAULT NULL,
  796. `modified_by` varchar(255) NULL DEFAULT NULL,
  797. `follow_user_id` bigint NULL DEFAULT NULL,
  798. `user_id` bigint NULL DEFAULT NULL,
  799. PRIMARY KEY (`id`) USING BTREE
  800. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  801. -- ----------------------------
  802. -- Records of follow
  803. -- ----------------------------
  804. -- ----------------------------
  805. -- Table structure for gift_order
  806. -- ----------------------------
  807. CREATE TABLE `gift_order` (
  808. `id` bigint NOT NULL,
  809. `created_at` datetime NULL DEFAULT NULL,
  810. `created_by` varchar(255) NULL DEFAULT NULL,
  811. `del` bit(1) NOT NULL,
  812. `modified_at` datetime NULL DEFAULT NULL,
  813. `modified_by` varchar(255) NULL DEFAULT NULL,
  814. `asset_id` bigint NULL DEFAULT NULL,
  815. `block_number` decimal(19, 2) NULL DEFAULT NULL,
  816. `cancel_time` datetime NULL DEFAULT NULL,
  817. `gas_price` decimal(10, 2) NULL DEFAULT NULL,
  818. `gas_used` decimal(19, 2) NULL DEFAULT NULL,
  819. `pay_method` varchar(255) NULL DEFAULT NULL,
  820. `pay_time` datetime NULL DEFAULT NULL,
  821. `status` int NULL DEFAULT NULL,
  822. `to_user_id` bigint NULL DEFAULT NULL,
  823. `transaction_id` varchar(255) NULL DEFAULT NULL,
  824. `tx_hash` varchar(255) NULL DEFAULT NULL,
  825. `user_id` bigint NULL DEFAULT NULL,
  826. `collection_id` bigint NULL DEFAULT NULL,
  827. `name` varchar(255) NULL DEFAULT NULL,
  828. `project_id` int NOT NULL,
  829. `order_no` varchar(255) NULL DEFAULT NULL,
  830. `ip` varchar(255) NULL DEFAULT NULL,
  831. PRIMARY KEY (`id`) USING BTREE
  832. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  833. -- ----------------------------
  834. -- Records of gift_order
  835. -- ----------------------------
  836. -- ----------------------------
  837. -- Table structure for guid_package
  838. -- ----------------------------
  839. CREATE TABLE `guid_package` (
  840. `id` bigint NOT NULL,
  841. `created_at` datetime NULL DEFAULT NULL,
  842. `created_by` varchar(255) NULL DEFAULT NULL,
  843. `modified_at` datetime NULL DEFAULT NULL,
  844. `modified_by` varchar(255) NULL DEFAULT NULL,
  845. `name` varchar(255) NULL DEFAULT NULL,
  846. `price` decimal(10, 2) NULL DEFAULT NULL,
  847. PRIMARY KEY (`id`) USING BTREE
  848. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  849. -- ----------------------------
  850. -- Records of guid_package
  851. -- ----------------------------
  852. -- ----------------------------
  853. -- Table structure for guide
  854. -- ----------------------------
  855. CREATE TABLE `guide` (
  856. `id` bigint NOT NULL,
  857. `created_at` datetime NULL DEFAULT NULL,
  858. `created_by` varchar(255) NULL DEFAULT NULL,
  859. `modified_at` datetime NULL DEFAULT NULL,
  860. `modified_by` varchar(255) NULL DEFAULT NULL,
  861. `pic` varchar(255) NULL DEFAULT NULL,
  862. `sort` int NOT NULL,
  863. `text` text NULL,
  864. `type` varchar(255) NULL DEFAULT NULL,
  865. `video` varchar(255) NULL DEFAULT NULL,
  866. `voice` varchar(255) NULL DEFAULT NULL,
  867. PRIMARY KEY (`id`) USING BTREE
  868. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  869. -- ----------------------------
  870. -- Records of guide
  871. -- ----------------------------
  872. -- ----------------------------
  873. -- Table structure for hibernate_sequence
  874. -- ----------------------------
  875. CREATE TABLE `hibernate_sequence` (
  876. `next_val` bigint NULL DEFAULT NULL
  877. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  878. -- ----------------------------
  879. -- Records of hibernate_sequence
  880. -- ----------------------------
  881. INSERT INTO `hibernate_sequence` VALUES (2910579);
  882. INSERT INTO `hibernate_sequence` VALUES (2910579);
  883. INSERT INTO `hibernate_sequence` VALUES (2910579);
  884. INSERT INTO `hibernate_sequence` VALUES (1);
  885. INSERT INTO `hibernate_sequence` VALUES (1);
  886. INSERT INTO `hibernate_sequence` VALUES (1);
  887. INSERT INTO `hibernate_sequence` VALUES (1);
  888. INSERT INTO `hibernate_sequence` VALUES (1);
  889. INSERT INTO `hibernate_sequence` VALUES (1);
  890. INSERT INTO `hibernate_sequence` VALUES (1);
  891. INSERT INTO `hibernate_sequence` VALUES (1);
  892. INSERT INTO `hibernate_sequence` VALUES (1);
  893. INSERT INTO `hibernate_sequence` VALUES (1);
  894. INSERT INTO `hibernate_sequence` VALUES (1);
  895. INSERT INTO `hibernate_sequence` VALUES (1);
  896. INSERT INTO `hibernate_sequence` VALUES (1);
  897. INSERT INTO `hibernate_sequence` VALUES (1);
  898. INSERT INTO `hibernate_sequence` VALUES (1);
  899. INSERT INTO `hibernate_sequence` VALUES (1);
  900. INSERT INTO `hibernate_sequence` VALUES (1);
  901. INSERT INTO `hibernate_sequence` VALUES (1);
  902. -- ----------------------------
  903. -- Table structure for identity_auth
  904. -- ----------------------------
  905. CREATE TABLE `identity_auth` (
  906. `id` bigint NOT NULL,
  907. `created_at` datetime NULL DEFAULT NULL,
  908. `created_by` varchar(255) NULL DEFAULT NULL,
  909. `del` bit(1) NOT NULL,
  910. `modified_at` datetime NULL DEFAULT NULL,
  911. `modified_by` varchar(255) NULL DEFAULT NULL,
  912. `email` varchar(255) NULL DEFAULT NULL,
  913. `id_back` varchar(255) NULL DEFAULT NULL,
  914. `id_front` varchar(255) NULL DEFAULT NULL,
  915. `id_no` varchar(255) NULL DEFAULT NULL,
  916. `phone` varchar(255) NULL DEFAULT NULL,
  917. `real_name` varchar(255) NULL DEFAULT NULL,
  918. `status` varchar(255) NULL DEFAULT NULL,
  919. `user_id` bigint NULL DEFAULT NULL,
  920. `org` bit(1) NOT NULL,
  921. `org_license` varchar(255) NULL DEFAULT NULL,
  922. `org_license_expire` varchar(255) NULL DEFAULT NULL,
  923. `org_name` varchar(255) NULL DEFAULT NULL,
  924. `org_no` varchar(255) NULL DEFAULT NULL,
  925. `id_end_date` date NULL DEFAULT NULL,
  926. `id_start_date` date NULL DEFAULT NULL,
  927. PRIMARY KEY (`id`) USING BTREE,
  928. INDEX `idx_userid`(`user_id`) USING BTREE
  929. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  930. -- ----------------------------
  931. -- Records of identity_auth
  932. -- ----------------------------
  933. -- ----------------------------
  934. -- Table structure for invite
  935. -- ----------------------------
  936. CREATE TABLE `invite` (
  937. `id` bigint NOT NULL,
  938. `created_at` datetime NULL DEFAULT NULL,
  939. `created_by` varchar(255) NULL DEFAULT NULL,
  940. `del` bit(1) NOT NULL,
  941. `modified_at` datetime NULL DEFAULT NULL,
  942. `modified_by` varchar(255) NULL DEFAULT NULL,
  943. `code` varchar(255) NULL DEFAULT NULL,
  944. `invite_num` int NOT NULL,
  945. `name` varchar(255) NULL DEFAULT NULL,
  946. `phone` varchar(255) NULL DEFAULT NULL,
  947. `remark` varchar(255) NULL DEFAULT NULL,
  948. PRIMARY KEY (`id`) USING BTREE
  949. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  950. -- ----------------------------
  951. -- Records of invite
  952. -- ----------------------------
  953. -- ----------------------------
  954. -- Table structure for invite_date
  955. -- ----------------------------
  956. CREATE TABLE `invite_date` (
  957. `id` bigint NOT NULL,
  958. `created_at` datetime NULL DEFAULT NULL,
  959. `created_by` varchar(255) NULL DEFAULT NULL,
  960. `del` bit(1) NOT NULL,
  961. `modified_at` datetime NULL DEFAULT NULL,
  962. `modified_by` varchar(255) NULL DEFAULT NULL,
  963. `activity_id` bigint NULL DEFAULT NULL,
  964. `air_drop_award` int NOT NULL,
  965. `automatic_rewards` bit(1) NOT NULL,
  966. `by_invite_prize` text NULL,
  967. `invite_prize_list` text NULL,
  968. `invitee_user_id` bigint NULL DEFAULT NULL,
  969. `inviter_phone` varchar(255) NULL DEFAULT NULL,
  970. `inviter_user_id` bigint NULL DEFAULT NULL,
  971. `name` varchar(255) NULL DEFAULT NULL,
  972. `remark` varchar(255) NULL DEFAULT NULL,
  973. `status` int NOT NULL,
  974. PRIMARY KEY (`id`) USING BTREE,
  975. INDEX `IDXshlxc528pkxkcpvepnvctbe5h`(`activity_id`) USING BTREE,
  976. INDEX `IDX4pn4g9thbds7f312pmvn1be4t`(`inviter_user_id`) USING BTREE,
  977. INDEX `IDXcn9grsrdjmjdu9sqde5rne80h`(`automatic_rewards`) USING BTREE
  978. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  979. -- ----------------------------
  980. -- Records of invite_date
  981. -- ----------------------------
  982. -- ----------------------------
  983. -- Table structure for like_info
  984. -- ----------------------------
  985. CREATE TABLE `like_info` (
  986. `id` bigint NOT NULL,
  987. `created_at` datetime NULL DEFAULT NULL,
  988. `created_by` varchar(255) NULL DEFAULT NULL,
  989. `del` bit(1) NOT NULL,
  990. `modified_at` datetime NULL DEFAULT NULL,
  991. `modified_by` varchar(255) NULL DEFAULT NULL,
  992. `collection_id` bigint NULL DEFAULT NULL,
  993. `user_id` bigint NULL DEFAULT NULL,
  994. PRIMARY KEY (`id`) USING BTREE,
  995. INDEX `IDXpca5elfm2bntg0a7n6wtk09uk`(`user_id`) USING BTREE,
  996. INDEX `IDXosauimvwrf686ni346rsvllur`(`collection_id`) USING BTREE
  997. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  998. -- ----------------------------
  999. -- Records of like_info
  1000. -- ----------------------------
  1001. -- ----------------------------
  1002. -- Table structure for login_log
  1003. -- ----------------------------
  1004. CREATE TABLE `login_log` (
  1005. `id` bigint NOT NULL,
  1006. `created_at` datetime NULL DEFAULT NULL,
  1007. `created_by` varchar(255) NULL DEFAULT NULL,
  1008. `del` bit(1) NOT NULL,
  1009. `modified_at` datetime NULL DEFAULT NULL,
  1010. `modified_by` varchar(255) NULL DEFAULT NULL,
  1011. `browser` varchar(255) NULL DEFAULT NULL,
  1012. `client_type` varchar(255) NULL DEFAULT NULL,
  1013. `ip_address` varchar(255) NULL DEFAULT NULL,
  1014. `login_success` bit(1) NOT NULL,
  1015. `login_time` datetime NULL DEFAULT NULL,
  1016. `login_type` varchar(255) NULL DEFAULT NULL,
  1017. `os` varchar(255) NULL DEFAULT NULL,
  1018. `phone` varchar(255) NULL DEFAULT NULL,
  1019. `user_id` bigint NULL DEFAULT NULL,
  1020. PRIMARY KEY (`id`) USING BTREE,
  1021. INDEX `IDXt9ufvgoi0e1n92n695khl0p2c`(`user_id`) USING BTREE,
  1022. INDEX `IDXq9e7sxajk53cm6yap2riknj5s`(`phone`) USING BTREE
  1023. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1024. -- ----------------------------
  1025. -- Records of login_log
  1026. -- ----------------------------
  1027. -- ----------------------------
  1028. -- Table structure for menu
  1029. -- ----------------------------
  1030. CREATE TABLE `menu` (
  1031. `id` bigint NOT NULL,
  1032. `created_at` datetime NULL DEFAULT NULL,
  1033. `created_by` varchar(255) NULL DEFAULT NULL,
  1034. `modified_at` datetime NULL DEFAULT NULL,
  1035. `modified_by` varchar(255) NULL DEFAULT NULL,
  1036. `active` bit(1) NULL DEFAULT NULL,
  1037. `enabled` bit(1) NULL DEFAULT NULL,
  1038. `icon` varchar(255) NULL DEFAULT NULL,
  1039. `name` varchar(255) NULL DEFAULT NULL,
  1040. `parent` bigint NULL DEFAULT NULL,
  1041. `path` varchar(255) NULL DEFAULT NULL,
  1042. `root` bit(1) NULL DEFAULT NULL,
  1043. `sort` int NULL DEFAULT NULL,
  1044. `category` varchar(255) NULL DEFAULT NULL,
  1045. `del` bit(1) NOT NULL,
  1046. PRIMARY KEY (`id`) USING BTREE
  1047. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1048. -- ----------------------------
  1049. -- Records of menu
  1050. -- ----------------------------
  1051. INSERT INTO `menu` VALUES (3, NULL, NULL, '2021-10-29 14:30:29', '管理员01(724)', b'0', b'1', 'fas fa-desktop', '开发', 2, '', b'1', 15, '开发', b'0');
  1052. INSERT INTO `menu` VALUES (4, NULL, NULL, '2020-07-31 14:31:51', '管理员(1)', b'1', b'1', 'fas fa-code', '代码生成', 3, '/genCodeList', b'0', 5, '开发', b'0');
  1053. INSERT INTO `menu` VALUES (5, NULL, NULL, '2020-07-31 14:31:56', '管理员(1)', b'1', b'1', 'fas fa-bug', '接口调试', 3, '/api', b'0', 6, '开发', b'0');
  1054. INSERT INTO `menu` VALUES (6, NULL, NULL, '2022-05-07 13:58:20', 'guangsheng(2645288)', b'1', b'1', 'fas fa-user', '用户管理', 2, '', b'1', 14, '用户', b'0');
  1055. INSERT INTO `menu` VALUES (8, '2020-07-09 15:01:40', NULL, '2020-07-09 15:01:45', '管理员(1)', b'1', b'1', '', '菜单权限', 9, '/menuAuthority', b'0', 8, NULL, b'0');
  1056. INSERT INTO `menu` VALUES (9, NULL, NULL, '2022-05-07 14:09:12', 'guangsheng(2645288)', b'1', b'1', 'fas fa-cog', '配置', 2, '', b'1', 63, '系统', b'0');
  1057. INSERT INTO `menu` VALUES (10, NULL, NULL, '2020-07-29 16:54:21', '管理员(1)', b'1', b'1', '', '菜单配置', 9, '/menus', b'0', 7, '系统', b'0');
  1058. INSERT INTO `menu` VALUES (14, NULL, NULL, '2020-07-09 15:01:45', '管理员(1)', b'1', b'1', '', '参数配置', 9, '/sysConfigList', b'0', 9, '系统', b'0');
  1059. INSERT INTO `menu` VALUES (16, '2021-10-11 11:10:36', NULL, '2022-05-07 13:56:57', 'guangsheng(2645288)', b'0', NULL, 'fas fa-gift', '藏品管理', NULL, '/collectionList', b'1', 3, '', b'0');
  1060. INSERT INTO `menu` VALUES (17, '2021-10-11 11:13:02', NULL, '2022-05-07 14:09:24', 'guangsheng(2645288)', b'1', NULL, 'fas fa-bars', '订单管理', NULL, '', b'1', 4, NULL, b'0');
  1061. INSERT INTO `menu` VALUES (18, '2021-10-11 11:22:18', NULL, '2022-05-07 13:58:35', 'guangsheng(2645288)', b'0', NULL, 'fas fa-hammer', '铸造者', NULL, '/minterList', b'1', 13, '', b'0');
  1062. INSERT INTO `menu` VALUES (31, '2021-10-13 10:07:58', NULL, '2022-05-07 13:58:40', 'guangsheng(2645288)', b'0', NULL, 'fas fa-address-card', '实名审核', NULL, '/identityAuthList', b'1', 19, NULL, b'0');
  1063. INSERT INTO `menu` VALUES (52, '2021-10-14 16:48:39', NULL, '2022-05-07 14:07:29', 'guangsheng(2645288)', b'0', NULL, 'fas fa-images', '轮播图', NULL, '/bannerList', b'1', 20, NULL, b'0');
  1064. INSERT INTO `menu` VALUES (197, '2021-10-21 11:06:24', NULL, '2022-05-07 13:57:02', 'guangsheng(2645288)', b'0', NULL, 'fas fa-box-open', '盲盒', NULL, '/blindBoxList', b'1', 10, '', b'0');
  1065. INSERT INTO `menu` VALUES (875, '2021-10-29 14:31:18', '管理员01(724)', '2021-10-29 14:31:18', '管理员01(724)', b'1', NULL, '', '账号管理', 9, '/adminList', b'0', 16, NULL, b'0');
  1066. INSERT INTO `menu` VALUES (937, '2021-11-01 13:25:17', NULL, '2021-11-11 15:49:49', '管理员(1)', b'0', NULL, 'fas fa-bars', '普通管理员', NULL, '', b'1', 17, NULL, b'0');
  1067. INSERT INTO `menu` VALUES (1083, '2021-11-02 15:25:23', '管理员01(724)', '2021-11-02 15:25:23', '管理员01(724)', b'1', NULL, '', '特权配置', 9, '/privilegeOptionList', b'0', 18, NULL, b'0');
  1068. INSERT INTO `menu` VALUES (1582, '2021-11-11 15:49:34', NULL, '2021-11-11 15:50:24', '管理员(1)', b'0', NULL, 'fas fa-parachute-box', '空投', NULL, '/airDropList', b'1', 14, NULL, b'0');
  1069. INSERT INTO `menu` VALUES (1583, '2021-11-11 15:51:05', NULL, '2022-05-07 13:57:06', 'guangsheng(2645288)', b'0', NULL, 'fas fa-parachute-box', '空投', NULL, '/airDropList', b'1', 11, NULL, b'0');
  1070. INSERT INTO `menu` VALUES (1597, '2021-11-11 18:06:10', NULL, '2022-05-07 13:57:09', 'guangsheng(2645288)', b'0', NULL, 'fas fa-sticky-note', '兑换券', NULL, '/couponList', b'1', 12, '', b'0');
  1071. INSERT INTO `menu` VALUES (4396, '2021-11-19 21:04:28', NULL, '2022-05-07 14:06:22', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '分销统计', NULL, '/commissionRecordList', b'1', 21, NULL, b'0');
  1072. INSERT INTO `menu` VALUES (4614, '2021-11-23 14:41:27', NULL, '2022-05-07 14:07:34', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '首页推荐', NULL, '/recommendList', b'1', 22, NULL, b'0');
  1073. INSERT INTO `menu` VALUES (81707, '2022-01-20 09:42:36', NULL, '2022-05-07 13:59:44', 'guangsheng(2645288)', b'1', NULL, 'fas fa-bars', '活动管理', NULL, '', b'1', 23, NULL, b'0');
  1074. INSERT INTO `menu` VALUES (571073, '2022-01-26 17:54:12', NULL, '2022-01-26 17:55:09', '管理员(79227)', b'0', NULL, '', '官方订单', 17, '/orderList', b'0', 24, NULL, b'0');
  1075. INSERT INTO `menu` VALUES (571076, '2022-01-26 17:54:27', NULL, '2022-01-26 17:55:12', '管理员(79227)', b'0', NULL, '', '二手订单', 17, '/orderUsedList', b'0', 25, NULL, b'0');
  1076. INSERT INTO `menu` VALUES (571082, '2022-01-26 17:54:49', NULL, '2022-01-26 17:55:14', '管理员(79227)', b'0', NULL, '', '转赠订单', 17, '/giftOrderList', b'0', 26, NULL, b'0');
  1077. INSERT INTO `menu` VALUES (571217, '2022-01-26 18:05:41', NULL, '2022-01-27 10:01:00', '管理员(79227)', b'1', NULL, '', '官方订单', 17, '/orderList', b'0', 27, NULL, b'0');
  1078. INSERT INTO `menu` VALUES (571220, '2022-01-26 18:06:05', NULL, '2022-01-27 10:01:04', '管理员(79227)', b'1', NULL, '', '二手订单', 17, '/orderUsedList', b'0', 28, NULL, b'0');
  1079. INSERT INTO `menu` VALUES (571225, '2022-01-26 18:06:32', NULL, '2022-01-26 18:08:40', '管理员(79227)', b'1', NULL, '', '转赠订单', 17, '/giftOrderList', b'0', 29, NULL, b'0');
  1080. INSERT INTO `menu` VALUES (1234589, '2022-03-02 12:07:32', 'admin(1866)', '2022-03-02 12:07:32', 'admin(1866)', b'1', NULL, '', '支付通道配置', 9, '/adapayMerchantList', b'0', 30, NULL, b'0');
  1081. INSERT INTO `menu` VALUES (2020975, '2022-03-25 19:14:02', NULL, '2022-05-07 14:00:58', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '收集活动', NULL, '/activityCollectionList', b'1', 31, NULL, b'0');
  1082. INSERT INTO `menu` VALUES (2644274, '2022-04-26 21:18:34', NULL, '2022-05-07 14:06:14', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '支付信息记录', NULL, '/paymentInfoList', b'1', 38, NULL, b'0');
  1083. INSERT INTO `menu` VALUES (2644275, '2022-04-26 21:19:00', NULL, '2022-05-07 14:06:16', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '分账信息记录', NULL, '/divMoneyList', b'1', 40, NULL, b'0');
  1084. INSERT INTO `menu` VALUES (2644321, '2022-04-27 17:46:26', NULL, '2022-05-07 14:04:19', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '优先购', NULL, '', b'1', 34, NULL, b'0');
  1085. INSERT INTO `menu` VALUES (2644322, '2022-04-27 17:46:47', '管理员(1)', '2022-04-27 17:46:47', '管理员(1)', b'1', NULL, '', '活动配置', 2644321, '/preemptionList', b'0', 35, NULL, b'0');
  1086. INSERT INTO `menu` VALUES (2644323, '2022-04-27 17:47:04', '管理员(1)', '2022-04-27 17:47:04', '管理员(1)', b'1', NULL, '', '白名单', 2644321, '/preemptionWhiteList', b'0', 36, NULL, b'0');
  1087. INSERT INTO `menu` VALUES (2644438, '2022-04-28 10:55:58', '管理员(1)', '2022-04-28 10:55:58', '管理员(1)', b'1', NULL, '', '项目管理', 9, '/projectList', b'0', 37, NULL, b'0');
  1088. INSERT INTO `menu` VALUES (2644682, '2022-04-28 21:51:35', NULL, '2022-05-07 14:09:34', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '项目管理', NULL, '/projectList', b'1', 32, NULL, b'0');
  1089. INSERT INTO `menu` VALUES (2644683, '2022-04-28 21:52:45', NULL, '2022-04-28 21:53:43', 'bx(2644677)', b'0', NULL, 'fas fa-bars', '项目管理', NULL, '/projectList', b'1', 39, NULL, b'0');
  1090. INSERT INTO `menu` VALUES (2646022, '2022-05-05 18:08:30', NULL, '2022-05-07 14:06:18', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '资产售卖限制', NULL, '/assetSellLimitList', b'1', 41, NULL, b'0');
  1091. INSERT INTO `menu` VALUES (2646112, '2022-05-06 14:50:22', NULL, '2022-05-07 14:04:13', 'guangsheng(2645288)', b'0', NULL, 'fas fa-bars', '惊喜盒子', NULL, '', b'1', 33, NULL, b'0');
  1092. INSERT INTO `menu` VALUES (2646113, '2022-05-06 14:55:18', NULL, '2022-05-06 15:01:50', 'guangsheng(2645288)', b'1', NULL, '', '活动配置', 2646112, '/surpriseBoxList', b'0', 42, NULL, b'0');
  1093. INSERT INTO `menu` VALUES (2646180, '2022-05-07 13:18:11', 'guangsheng(2645288)', '2022-05-07 13:18:11', 'guangsheng(2645288)', b'1', NULL, '', '中奖名单', 2646112, '/supBoxList', b'0', 43, NULL, b'0');
  1094. INSERT INTO `menu` VALUES (2646250, '2022-05-07 13:54:06', NULL, '2022-05-07 13:54:57', 'guangsheng(2645288)', b'1', NULL, 'fas fa-bars', '藏品管理', NULL, '', b'1', 2, NULL, b'0');
  1095. INSERT INTO `menu` VALUES (2646251, '2022-05-07 13:55:19', NULL, '2022-05-24 16:15:14', 'a*01(2644858)', b'1', NULL, '', '藏品', 2646250, '/collectionList', b'0', 45, NULL, b'0');
  1096. INSERT INTO `menu` VALUES (2646252, '2022-05-07 13:55:34', NULL, '2022-05-24 16:15:14', 'a*01(2644858)', b'1', NULL, '', '盲盒', 2646250, '/blindBoxList', b'0', 46, NULL, b'0');
  1097. INSERT INTO `menu` VALUES (2646253, '2022-05-07 13:55:58', 'guangsheng(2645288)', '2022-05-07 13:55:58', 'guangsheng(2645288)', b'1', NULL, '', '空投', 2646250, '/airDropList', b'0', 47, NULL, b'0');
  1098. INSERT INTO `menu` VALUES (2646254, '2022-05-07 13:56:10', 'guangsheng(2645288)', '2022-05-07 13:56:10', 'guangsheng(2645288)', b'1', NULL, '', '兑换卷', 2646250, 'couponList', b'0', 48, NULL, b'0');
  1099. INSERT INTO `menu` VALUES (2646255, '2022-05-07 13:57:38', 'guangsheng(2645288)', '2022-05-07 13:57:38', 'guangsheng(2645288)', b'1', NULL, '', '铸造者', 6, '/minterList', b'0', 49, NULL, b'0');
  1100. INSERT INTO `menu` VALUES (2646256, '2022-05-07 13:57:54', 'guangsheng(2645288)', '2022-05-07 13:57:54', 'guangsheng(2645288)', b'1', NULL, '', '实名审核', 6, '/identityAuthList', b'0', 50, NULL, b'0');
  1101. INSERT INTO `menu` VALUES (2646257, '2022-05-07 13:58:10', 'guangsheng(2645288)', '2022-05-07 13:58:10', 'guangsheng(2645288)', b'1', NULL, '', '用户', 6, '/userList', b'0', 51, NULL, b'0');
  1102. INSERT INTO `menu` VALUES (2646258, '2022-05-07 13:59:32', NULL, '2022-05-13 18:11:07', '*(2647152)', b'1', NULL, '', '邀请管理', 81707, '/inviteList', b'0', 53, NULL, b'0');
  1103. INSERT INTO `menu` VALUES (2646259, '2022-05-07 13:59:58', NULL, '2022-05-13 18:11:06', '*(2647152)', b'1', NULL, '', '收集活动', 81707, '/activityCollectionList', b'0', 54, NULL, b'0');
  1104. INSERT INTO `menu` VALUES (2646260, '2022-05-07 14:01:08', NULL, '2022-05-13 18:11:04', '*(2647152)', b'1', NULL, '', '优先购', 81707, '/preemptionList', b'0', 55, NULL, b'0');
  1105. INSERT INTO `menu` VALUES (2646261, '2022-05-07 14:01:13', NULL, '2022-05-13 18:11:03', '*(2647152)', b'1', NULL, '', '惊喜盒子', 81707, '/surpriseBoxList', b'0', 56, NULL, b'0');
  1106. INSERT INTO `menu` VALUES (2646262, '2022-05-07 14:02:34', NULL, '2022-05-13 18:11:01', '*(2647152)', b'1', NULL, '', '中奖名单', 81707, '/supBoxList', b'0', 57, NULL, b'0');
  1107. INSERT INTO `menu` VALUES (2646263, '2022-05-07 14:04:07', NULL, '2022-05-13 18:11:00', '*(2647152)', b'1', NULL, '', '白名单', 81707, '/preemptionWhiteList', b'0', 68, NULL, b'0');
  1108. INSERT INTO `menu` VALUES (2646264, '2022-05-07 14:04:31', NULL, '2022-05-07 14:09:10', 'guangsheng(2645288)', b'1', NULL, 'fas fa-bars', '统计管理', NULL, '', b'1', 44, NULL, b'0');
  1109. INSERT INTO `menu` VALUES (2646265, '2022-05-07 14:04:50', NULL, '2022-06-08 13:57:05', 'oujihong(2644265)', b'1', NULL, '', '分销统计', 2646264, '/commissionRecordList', b'0', 60, NULL, b'0');
  1110. INSERT INTO `menu` VALUES (2646266, '2022-05-07 14:05:15', NULL, '2022-06-08 13:57:02', 'oujihong(2644265)', b'1', NULL, '', '支付信息记录', 2646264, '/paymentInfoList', b'0', 61, NULL, b'0');
  1111. INSERT INTO `menu` VALUES (2646267, '2022-05-07 14:05:54', NULL, '2022-06-08 13:56:58', 'oujihong(2644265)', b'1', NULL, '', '分账信息记录', 2646264, '/divMoneyList', b'0', 62, NULL, b'0');
  1112. INSERT INTO `menu` VALUES (2646268, '2022-05-07 14:06:10', NULL, '2022-06-08 13:57:05', 'oujihong(2644265)', b'1', NULL, '', '资产售卖限制', 2646264, '/assetSellLimitList', b'0', 59, NULL, b'0');
  1113. INSERT INTO `menu` VALUES (2646269, '2022-05-07 14:06:39', NULL, '2022-05-07 14:09:12', 'guangsheng(2645288)', b'1', NULL, 'fas fa-bars', '首页管理', NULL, '', b'1', 58, NULL, b'0');
  1114. INSERT INTO `menu` VALUES (2646270, '2022-05-07 14:06:56', 'guangsheng(2645288)', '2022-05-07 14:06:56', 'guangsheng(2645288)', b'1', NULL, '', '轮播图', 2646269, '/bannerList', b'0', 64, NULL, b'0');
  1115. INSERT INTO `menu` VALUES (2646271, '2022-05-07 14:07:10', 'guangsheng(2645288)', '2022-05-07 14:07:10', 'guangsheng(2645288)', b'1', NULL, '', '首页推荐', 2646269, '/recommendList', b'0', 65, NULL, b'0');
  1116. INSERT INTO `menu` VALUES (2646272, '2022-05-07 14:15:02', 'guangsheng(2645288)', '2022-05-07 14:15:02', 'guangsheng(2645288)', b'1', NULL, '', '银行卡', 6, '/cardInfoList', b'0', 66, NULL, b'0');
  1117. INSERT INTO `menu` VALUES (2646945, '2022-05-09 15:18:05', 'guangsheng(2645288)', '2022-05-09 15:18:05', 'guangsheng(2645288)', b'1', NULL, '', '分类', 2646250, '/collectionClassList', b'0', 67, NULL, b'0');
  1118. INSERT INTO `menu` VALUES (2647375, '2022-05-13 18:10:43', NULL, '2022-05-13 18:11:07', '*(2647152)', b'1', NULL, '', '邀请有礼', 81707, '/invitationList', b'0', 52, NULL, b'0');
  1119. INSERT INTO `menu` VALUES (2855588, '2022-05-18 19:30:26', '*(2647152)', '2022-05-18 19:30:26', '*(2647152)', b'1', NULL, '', '活动公告', 81707, '/activityList', b'0', 69, NULL, b'0');
  1120. INSERT INTO `menu` VALUES (2865564, '2022-05-27 16:04:34', 'oujihong(2644265)', '2022-05-27 16:04:34', 'oujihong(2644265)', b'1', NULL, '', '资产', 6, '/assetList', b'0', 70, NULL, b'0');
  1121. INSERT INTO `menu` VALUES (2905582, '2022-06-05 13:39:52', NULL, '2022-06-05 13:40:11', 'oujihong(2644265)', b'1', NULL, '', '转账记录', 2646264, 'transferMoneyInfoList', b'0', 71, NULL, b'0');
  1122. INSERT INTO `menu` VALUES (2905671, '2022-06-08 13:56:30', 'oujihong(2644265)', '2022-06-08 13:56:30', 'oujihong(2644265)', b'1', NULL, '', '充值记录', 2646264, '/rechargeOrderList', b'0', 72, NULL, b'0');
  1123. INSERT INTO `menu` VALUES (2905672, '2022-06-08 13:56:51', 'oujihong(2644265)', '2022-06-08 13:56:51', 'oujihong(2644265)', b'1', NULL, '', '提现记录', 2646264, '/withdrawApplyList', b'0', 73, NULL, b'0');
  1124. -- ----------------------------
  1125. -- Table structure for menu_authority
  1126. -- ----------------------------
  1127. CREATE TABLE `menu_authority` (
  1128. `menu_id` bigint NOT NULL,
  1129. `authority` varchar(50) NOT NULL,
  1130. PRIMARY KEY (`menu_id`, `authority`) USING BTREE,
  1131. INDEX `FKlj7sftrck7uk1kcjsy0doo56`(`authority`) USING BTREE,
  1132. CONSTRAINT `FK4hopjqfvkhdagmk110y1jk17q` FOREIGN KEY (`menu_id`) REFERENCES `menu` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1133. CONSTRAINT `FKlj7sftrck7uk1kcjsy0doo56` FOREIGN KEY (`authority`) REFERENCES `authority` (`name`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1134. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1135. -- ----------------------------
  1136. -- Records of menu_authority
  1137. -- ----------------------------
  1138. INSERT INTO `menu_authority` VALUES (6, 'ROLE_ADMIN');
  1139. INSERT INTO `menu_authority` VALUES (8, 'ROLE_ADMIN');
  1140. INSERT INTO `menu_authority` VALUES (9, 'ROLE_ADMIN');
  1141. INSERT INTO `menu_authority` VALUES (10, 'ROLE_ADMIN');
  1142. INSERT INTO `menu_authority` VALUES (14, 'ROLE_ADMIN');
  1143. INSERT INTO `menu_authority` VALUES (16, 'ROLE_ADMIN');
  1144. INSERT INTO `menu_authority` VALUES (17, 'ROLE_ADMIN');
  1145. INSERT INTO `menu_authority` VALUES (18, 'ROLE_ADMIN');
  1146. INSERT INTO `menu_authority` VALUES (31, 'ROLE_ADMIN');
  1147. INSERT INTO `menu_authority` VALUES (52, 'ROLE_ADMIN');
  1148. INSERT INTO `menu_authority` VALUES (197, 'ROLE_ADMIN');
  1149. INSERT INTO `menu_authority` VALUES (875, 'ROLE_ADMIN');
  1150. INSERT INTO `menu_authority` VALUES (1083, 'ROLE_ADMIN');
  1151. INSERT INTO `menu_authority` VALUES (1583, 'ROLE_ADMIN');
  1152. INSERT INTO `menu_authority` VALUES (1597, 'ROLE_ADMIN');
  1153. INSERT INTO `menu_authority` VALUES (4396, 'ROLE_ADMIN');
  1154. INSERT INTO `menu_authority` VALUES (4614, 'ROLE_ADMIN');
  1155. INSERT INTO `menu_authority` VALUES (81707, 'ROLE_ADMIN');
  1156. INSERT INTO `menu_authority` VALUES (571073, 'ROLE_ADMIN');
  1157. INSERT INTO `menu_authority` VALUES (571076, 'ROLE_ADMIN');
  1158. INSERT INTO `menu_authority` VALUES (571082, 'ROLE_ADMIN');
  1159. INSERT INTO `menu_authority` VALUES (571217, 'ROLE_ADMIN');
  1160. INSERT INTO `menu_authority` VALUES (571220, 'ROLE_ADMIN');
  1161. INSERT INTO `menu_authority` VALUES (571225, 'ROLE_ADMIN');
  1162. INSERT INTO `menu_authority` VALUES (1234589, 'ROLE_ADMIN');
  1163. INSERT INTO `menu_authority` VALUES (2020975, 'ROLE_ADMIN');
  1164. INSERT INTO `menu_authority` VALUES (2644274, 'ROLE_ADMIN');
  1165. INSERT INTO `menu_authority` VALUES (2644275, 'ROLE_ADMIN');
  1166. INSERT INTO `menu_authority` VALUES (2644321, 'ROLE_ADMIN');
  1167. INSERT INTO `menu_authority` VALUES (2644322, 'ROLE_ADMIN');
  1168. INSERT INTO `menu_authority` VALUES (2644323, 'ROLE_ADMIN');
  1169. INSERT INTO `menu_authority` VALUES (2644438, 'ROLE_ADMIN');
  1170. INSERT INTO `menu_authority` VALUES (2644682, 'ROLE_ADMIN');
  1171. INSERT INTO `menu_authority` VALUES (2644683, 'ROLE_ADMIN');
  1172. INSERT INTO `menu_authority` VALUES (2646022, 'ROLE_ADMIN');
  1173. INSERT INTO `menu_authority` VALUES (2646112, 'ROLE_ADMIN');
  1174. INSERT INTO `menu_authority` VALUES (2646113, 'ROLE_ADMIN');
  1175. INSERT INTO `menu_authority` VALUES (2646180, 'ROLE_ADMIN');
  1176. INSERT INTO `menu_authority` VALUES (2646250, 'ROLE_ADMIN');
  1177. INSERT INTO `menu_authority` VALUES (2646251, 'ROLE_ADMIN');
  1178. INSERT INTO `menu_authority` VALUES (2646252, 'ROLE_ADMIN');
  1179. INSERT INTO `menu_authority` VALUES (2646253, 'ROLE_ADMIN');
  1180. INSERT INTO `menu_authority` VALUES (2646254, 'ROLE_ADMIN');
  1181. INSERT INTO `menu_authority` VALUES (2646255, 'ROLE_ADMIN');
  1182. INSERT INTO `menu_authority` VALUES (2646256, 'ROLE_ADMIN');
  1183. INSERT INTO `menu_authority` VALUES (2646257, 'ROLE_ADMIN');
  1184. INSERT INTO `menu_authority` VALUES (2646258, 'ROLE_ADMIN');
  1185. INSERT INTO `menu_authority` VALUES (2646259, 'ROLE_ADMIN');
  1186. INSERT INTO `menu_authority` VALUES (2646260, 'ROLE_ADMIN');
  1187. INSERT INTO `menu_authority` VALUES (2646261, 'ROLE_ADMIN');
  1188. INSERT INTO `menu_authority` VALUES (2646262, 'ROLE_ADMIN');
  1189. INSERT INTO `menu_authority` VALUES (2646263, 'ROLE_ADMIN');
  1190. INSERT INTO `menu_authority` VALUES (2646264, 'ROLE_ADMIN');
  1191. INSERT INTO `menu_authority` VALUES (2646265, 'ROLE_ADMIN');
  1192. INSERT INTO `menu_authority` VALUES (2646266, 'ROLE_ADMIN');
  1193. INSERT INTO `menu_authority` VALUES (2646267, 'ROLE_ADMIN');
  1194. INSERT INTO `menu_authority` VALUES (2646268, 'ROLE_ADMIN');
  1195. INSERT INTO `menu_authority` VALUES (2646269, 'ROLE_ADMIN');
  1196. INSERT INTO `menu_authority` VALUES (2646270, 'ROLE_ADMIN');
  1197. INSERT INTO `menu_authority` VALUES (2646271, 'ROLE_ADMIN');
  1198. INSERT INTO `menu_authority` VALUES (2646272, 'ROLE_ADMIN');
  1199. INSERT INTO `menu_authority` VALUES (2646945, 'ROLE_ADMIN');
  1200. INSERT INTO `menu_authority` VALUES (2647375, 'ROLE_ADMIN');
  1201. INSERT INTO `menu_authority` VALUES (2855588, 'ROLE_ADMIN');
  1202. INSERT INTO `menu_authority` VALUES (2865564, 'ROLE_ADMIN');
  1203. INSERT INTO `menu_authority` VALUES (2905582, 'ROLE_ADMIN');
  1204. INSERT INTO `menu_authority` VALUES (2905671, 'ROLE_ADMIN');
  1205. INSERT INTO `menu_authority` VALUES (2905672, 'ROLE_ADMIN');
  1206. INSERT INTO `menu_authority` VALUES (3, 'ROLE_DEV');
  1207. INSERT INTO `menu_authority` VALUES (4, 'ROLE_DEV');
  1208. INSERT INTO `menu_authority` VALUES (5, 'ROLE_DEV');
  1209. INSERT INTO `menu_authority` VALUES (6, 'ROLE_OPERATOR');
  1210. INSERT INTO `menu_authority` VALUES (17, 'ROLE_OPERATOR');
  1211. INSERT INTO `menu_authority` VALUES (52, 'ROLE_OPERATOR');
  1212. INSERT INTO `menu_authority` VALUES (4614, 'ROLE_OPERATOR');
  1213. INSERT INTO `menu_authority` VALUES (571217, 'ROLE_OPERATOR');
  1214. INSERT INTO `menu_authority` VALUES (571220, 'ROLE_OPERATOR');
  1215. INSERT INTO `menu_authority` VALUES (571225, 'ROLE_OPERATOR');
  1216. -- ----------------------------
  1217. -- Table structure for operation_log
  1218. -- ----------------------------
  1219. CREATE TABLE `operation_log` (
  1220. `id` bigint NOT NULL,
  1221. `description` varchar(255) NULL DEFAULT NULL,
  1222. `name` varchar(255) NULL DEFAULT NULL,
  1223. `req_ip` varchar(255) NULL DEFAULT NULL,
  1224. `req_method` varchar(255) NULL DEFAULT NULL,
  1225. `req_params` longtext NULL,
  1226. `req_url` varchar(255) NULL DEFAULT NULL,
  1227. `resp` longtext NULL,
  1228. `time` datetime NULL DEFAULT NULL,
  1229. `type` varchar(255) NULL DEFAULT NULL,
  1230. `user_id` varchar(255) NULL DEFAULT NULL,
  1231. `username` varchar(255) NULL DEFAULT NULL,
  1232. PRIMARY KEY (`id`) USING BTREE
  1233. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1234. -- ----------------------------
  1235. -- Records of operation_log
  1236. -- ----------------------------
  1237. -- ----------------------------
  1238. -- Table structure for order_info
  1239. -- ----------------------------
  1240. CREATE TABLE `order_info` (
  1241. `id` bigint NOT NULL,
  1242. `created_at` datetime NULL DEFAULT NULL,
  1243. `created_by` varchar(255) NULL DEFAULT NULL,
  1244. `del` bit(1) NOT NULL,
  1245. `modified_at` datetime NULL DEFAULT NULL,
  1246. `modified_by` varchar(255) NULL DEFAULT NULL,
  1247. `collection_id` bigint NULL DEFAULT NULL,
  1248. `gas_price` decimal(10, 2) NULL DEFAULT NULL,
  1249. `minter` varchar(255) NULL DEFAULT NULL,
  1250. `minter_avatar` varchar(255) NULL DEFAULT NULL,
  1251. `minter_id` bigint NULL DEFAULT NULL,
  1252. `name` varchar(255) NULL DEFAULT NULL,
  1253. `pay_method` varchar(255) NULL DEFAULT NULL,
  1254. `pay_time` datetime NULL DEFAULT NULL,
  1255. `pic` text NULL,
  1256. `price` decimal(10, 2) NULL DEFAULT NULL,
  1257. `qty` int NOT NULL,
  1258. `status` varchar(255) NULL DEFAULT NULL,
  1259. `total_price` decimal(10, 2) NULL DEFAULT NULL,
  1260. `transaction_id` varchar(255) NULL DEFAULT NULL,
  1261. `tx_hash` varchar(255) NULL DEFAULT NULL,
  1262. `user_id` bigint NULL DEFAULT NULL,
  1263. `address` varchar(255) NULL DEFAULT NULL,
  1264. `contact_name` varchar(255) NULL DEFAULT NULL,
  1265. `contact_phone` varchar(255) NULL DEFAULT NULL,
  1266. `block_number` decimal(19, 2) NULL DEFAULT NULL,
  1267. `gas_used` decimal(19, 2) NULL DEFAULT NULL,
  1268. `properties` text NULL,
  1269. `type` varchar(255) NULL DEFAULT NULL,
  1270. `cancel_time` datetime NULL DEFAULT NULL,
  1271. `can_resale` bit(1) NOT NULL,
  1272. `detail` text NULL,
  1273. `royalties` int NOT NULL,
  1274. `service_charge` int NOT NULL,
  1275. `category` varchar(255) NULL DEFAULT NULL,
  1276. `asset_id` bigint NULL DEFAULT NULL,
  1277. `coupon_id` bigint NULL DEFAULT NULL,
  1278. `hide` bit(1) NOT NULL,
  1279. `invitor` bigint NULL DEFAULT NULL,
  1280. `privileges` text NULL,
  1281. `win_collection_id` bigint NULL DEFAULT NULL,
  1282. `opened` bit(1) NOT NULL,
  1283. `project_id` int NOT NULL,
  1284. `source` varchar(255) NULL DEFAULT NULL,
  1285. `order_no` varchar(255) NULL DEFAULT NULL,
  1286. `ip` varchar(255) NULL DEFAULT NULL,
  1287. `user_ware_house_id` bigint NULL DEFAULT NULL,
  1288. PRIMARY KEY (`id`) USING BTREE,
  1289. INDEX `IDX1eq7bqam0q1soixs07jckkwp4`(`user_id`) USING BTREE,
  1290. INDEX `IDXgag51j8ohmkek0ju4yvhnlwpo`(`status`) USING BTREE,
  1291. INDEX `IDX73e2rlkehwu4hy76kgy6gaa8h`(`asset_id`) USING BTREE,
  1292. INDEX `IDXj83h0tyxn0dl6ub5sh7496m8m`(`collection_id`) USING BTREE,
  1293. INDEX `IDX44qcfxauygckv35hagn5jrqds`(`transaction_id`) USING BTREE,
  1294. INDEX `IDXa3hnh7m7ke6b7p5g3hspr5ynx`(`minter_id`) USING BTREE
  1295. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1296. -- ----------------------------
  1297. -- Records of order_info
  1298. -- ----------------------------
  1299. -- ----------------------------
  1300. -- Table structure for parent
  1301. -- ----------------------------
  1302. CREATE TABLE `parent` (
  1303. `id` bigint NOT NULL,
  1304. `created_at` datetime NULL DEFAULT NULL,
  1305. `created_by` varchar(255) NULL DEFAULT NULL,
  1306. `modified_at` datetime NULL DEFAULT NULL,
  1307. `modified_by` varchar(255) NULL DEFAULT NULL,
  1308. `parent_name` varchar(255) NULL DEFAULT NULL,
  1309. PRIMARY KEY (`id`) USING BTREE
  1310. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1311. -- ----------------------------
  1312. -- Records of parent
  1313. -- ----------------------------
  1314. -- ----------------------------
  1315. -- Table structure for payment_info
  1316. -- ----------------------------
  1317. CREATE TABLE `payment_info` (
  1318. `id` bigint NOT NULL,
  1319. `created_at` datetime NULL DEFAULT NULL,
  1320. `created_by` varchar(255) NULL DEFAULT NULL,
  1321. `del` bit(1) NOT NULL,
  1322. `modified_at` datetime NULL DEFAULT NULL,
  1323. `modified_by` varchar(255) NULL DEFAULT NULL,
  1324. `gift_order_id` bigint NULL DEFAULT NULL,
  1325. `goods_title` varchar(255) NULL DEFAULT NULL,
  1326. `merchant_name` varchar(255) NULL DEFAULT NULL,
  1327. `notify_time` datetime NULL DEFAULT NULL,
  1328. `notify_url` varchar(500) NULL DEFAULT NULL,
  1329. `order_id` bigint NULL DEFAULT NULL,
  1330. `order_no` varchar(255) NULL DEFAULT NULL,
  1331. `pay_amt` varchar(255) NULL DEFAULT NULL,
  1332. `pay_channel` varchar(255) NULL DEFAULT NULL,
  1333. `pay_method` varchar(255) NULL DEFAULT NULL,
  1334. `status` varchar(255) NULL DEFAULT NULL,
  1335. `time_expire` varchar(255) NULL DEFAULT NULL,
  1336. `user_id` bigint NULL DEFAULT NULL,
  1337. `pay_platform` varchar(255) NULL DEFAULT NULL,
  1338. `transaction_id` varchar(255) NULL DEFAULT NULL,
  1339. `apply_refund_time` datetime NULL DEFAULT NULL,
  1340. `pay_time` datetime NULL DEFAULT NULL,
  1341. `project_id` int NULL DEFAULT NULL,
  1342. `refund_no` varchar(255) NULL DEFAULT NULL,
  1343. `refund_reason` varchar(255) NULL DEFAULT NULL,
  1344. `refund_time` datetime NULL DEFAULT NULL,
  1345. `third_pay_no` varchar(255) NULL DEFAULT NULL,
  1346. `token` varchar(255) NULL DEFAULT NULL,
  1347. `user_bank_card_id` bigint NULL DEFAULT NULL,
  1348. `user_fund_account_id` bigint NULL DEFAULT NULL,
  1349. PRIMARY KEY (`id`) USING BTREE,
  1350. UNIQUE INDEX `UK2q5usiexs07x8np55d83srnlh`(`order_no`) USING BTREE,
  1351. INDEX `IDXqreu0jsolb8hwej2ffjsnwi1`(`order_id`) USING BTREE,
  1352. INDEX `IDXb6bvv3fhne61weixp3i0847f`(`gift_order_id`) USING BTREE
  1353. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1354. -- ----------------------------
  1355. -- Records of payment_info
  1356. -- ----------------------------
  1357. -- ----------------------------
  1358. -- Table structure for privilege_option
  1359. -- ----------------------------
  1360. CREATE TABLE `privilege_option` (
  1361. `id` bigint NOT NULL,
  1362. `created_at` datetime NULL DEFAULT NULL,
  1363. `created_by` varchar(255) NULL DEFAULT NULL,
  1364. `del` bit(1) NOT NULL,
  1365. `modified_at` datetime NULL DEFAULT NULL,
  1366. `modified_by` varchar(255) NULL DEFAULT NULL,
  1367. `description` varchar(255) NULL DEFAULT NULL,
  1368. `icon` text NULL,
  1369. `name` varchar(255) NULL DEFAULT NULL,
  1370. `once` bit(1) NOT NULL,
  1371. `refresh_on_transfer` bit(1) NOT NULL,
  1372. `type` varchar(255) NULL DEFAULT NULL,
  1373. PRIMARY KEY (`id`) USING BTREE
  1374. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1375. -- ----------------------------
  1376. -- Records of privilege_option
  1377. -- ----------------------------
  1378. INSERT INTO `privilege_option` VALUES (1089, '2021-11-02 16:57:07', '管理员01(724)', b'0', '2021-11-12 14:52:24', '管理员(1)', '该特权将证明购买者拥有该作品版权使用权利', 'https://cosmoscdn.9space.vip/image/2021-11-12-14-51-44tXFJdJCy.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-51-49ZqLbgbvh.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-52-10sqevVZup.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-52-22BANGuzNs.png', '版权权利', b'0', b'0', 'text');
  1379. INSERT INTO `privilege_option` VALUES (1090, '2021-11-02 16:57:32', '管理员01(724)', b'1', '2021-11-09 14:55:30', '管理员(1)', '里面藏有创作者填写的隐藏内容,持有者才能打开查看', 'https://cosmoscdn.9space.vip/image/2021-11-02-16-57-31irTscxGK.svg', '加密空间', b'1', b'0', 'text');
  1380. INSERT INTO `privilege_option` VALUES (1353, '2021-11-09 15:15:33', '管理员(1)', b'0', '2022-02-18 17:38:39', '第九空间01(4156)', '该作品拥有唯一的二维码,创作者扫描二维码,可使用该作品作为门票', 'https://cosmoscdn.9space.vip/image/2021-11-13-13-10-56AoDRBMfD.png,https://cosmoscdn.9space.vip/image/2021-11-13-13-11-03mHToTmka.png,https://cosmoscdn.9space.vip/image/2021-11-13-13-11-47sVlqzMPG.png,https://cosmoscdn.9space.vip/image/2021-11-13-13-11-51oCFdTSGA.png', '票务', b'0', b'1', 'qrcode');
  1381. INSERT INTO `privilege_option` VALUES (1354, '2021-11-09 15:19:14', '管理员(1)', b'0', '2021-11-13 13:12:02', '管理员(1)', '通过该验证码可在第三方平台进行该作品的校验和使用', 'https://cosmoscdn.9space.vip/image/2021-11-13-13-10-17Sbbzdymi.png,https://cosmoscdn.9space.vip/image/2021-11-13-13-10-27lxvvrVop.png,https://cosmoscdn.9space.vip/image/2021-11-13-13-10-38bWorEEYN.png,https://cosmoscdn.9space.vip/image/2021-11-13-13-12-00oFNIbIEn.png', '兑换锁链', b'0', b'0', 'code');
  1382. INSERT INTO `privilege_option` VALUES (1356, '2021-11-09 15:23:12', '管理员(1)', b'0', '2022-02-18 17:33:52', '第九空间01(4156)', '可在铸造商店进行实物铸造', 'https://cosmoscdn.9space.vip/image/2021-11-12-14-48-02FtoZIkUR.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-48-08YNhvXfpn.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-48-15NrAlwUTe.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-52-28dTxxSaLF.png', '铸造', b'0', b'1', 'exchange');
  1383. INSERT INTO `privilege_option` VALUES (1864, '2021-11-12 14:18:19', '管理员(1)', b'0', '2022-02-18 17:38:47', '第九空间01(4156)', '里面藏有创作者填写的隐藏内容,持有者才能打开查看', 'https://cosmoscdn.9space.vip/image/2021-11-12-14-52-51sSJoYQJK.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-53-00oFTSogIR.png,https://cosmoscdn.9space.vip/image/2021-11-12-14-53-16IygUxQHY.png', '悄悄话', b'0', b'1', 'text');
  1384. -- ----------------------------
  1385. -- Table structure for project
  1386. -- ----------------------------
  1387. CREATE TABLE `project` (
  1388. `id` bigint NOT NULL,
  1389. `created_at` datetime NULL DEFAULT NULL,
  1390. `created_by` varchar(255) NULL DEFAULT NULL,
  1391. `del` bit(1) NOT NULL,
  1392. `modified_at` datetime NULL DEFAULT NULL,
  1393. `modified_by` varchar(255) NULL DEFAULT NULL,
  1394. `ch_name` varchar(255) NULL DEFAULT NULL,
  1395. `en_name` varchar(255) NULL DEFAULT NULL,
  1396. `front_addr` varchar(255) NULL DEFAULT NULL,
  1397. `user_prefix` varchar(255) NULL DEFAULT NULL,
  1398. PRIMARY KEY (`id`) USING BTREE
  1399. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1400. -- ----------------------------
  1401. -- Records of project
  1402. -- ----------------------------
  1403. -- ----------------------------
  1404. -- Table structure for real_name_log
  1405. -- ----------------------------
  1406. CREATE TABLE `real_name_log` (
  1407. `id` bigint NOT NULL,
  1408. `created_at` datetime NULL DEFAULT NULL,
  1409. `created_by` varchar(255) NULL DEFAULT NULL,
  1410. `del` bit(1) NOT NULL,
  1411. `modified_at` datetime NULL DEFAULT NULL,
  1412. `modified_by` varchar(255) NULL DEFAULT NULL,
  1413. `card_no` varchar(255) NULL DEFAULT NULL,
  1414. `change_user_id` bigint NULL DEFAULT NULL,
  1415. `change_user_name` varchar(255) NULL DEFAULT NULL,
  1416. `content` varchar(255) NULL DEFAULT NULL,
  1417. `id_no` varchar(255) NULL DEFAULT NULL,
  1418. `operate_type` varchar(255) NULL DEFAULT NULL,
  1419. `operator_id` bigint NULL DEFAULT NULL,
  1420. `operator_ip` varchar(255) NULL DEFAULT NULL,
  1421. `operator_name` varchar(255) NULL DEFAULT NULL,
  1422. PRIMARY KEY (`id`) USING BTREE
  1423. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1424. -- ----------------------------
  1425. -- Records of real_name_log
  1426. -- ----------------------------
  1427. -- ----------------------------
  1428. -- Table structure for recharge_order
  1429. -- ----------------------------
  1430. CREATE TABLE `recharge_order` (
  1431. `id` bigint NOT NULL,
  1432. `created_at` datetime NULL DEFAULT NULL,
  1433. `created_by` varchar(255) NULL DEFAULT NULL,
  1434. `del` bit(1) NOT NULL,
  1435. `modified_at` datetime NULL DEFAULT NULL,
  1436. `modified_by` varchar(255) NULL DEFAULT NULL,
  1437. `amount` decimal(19, 2) NULL DEFAULT NULL,
  1438. `bank_name` varchar(255) NULL DEFAULT NULL,
  1439. `bank_no` varchar(255) NULL DEFAULT NULL,
  1440. `fee_amt` decimal(19, 2) NULL DEFAULT NULL,
  1441. `finish_time` datetime NULL DEFAULT NULL,
  1442. `front_url` varchar(255) NULL DEFAULT NULL,
  1443. `jump_url` varchar(255) NULL DEFAULT NULL,
  1444. `notify_time` datetime NULL DEFAULT NULL,
  1445. `notify_url` varchar(255) NULL DEFAULT NULL,
  1446. `order_amount` decimal(19, 2) NULL DEFAULT NULL,
  1447. `order_no` varchar(255) NULL DEFAULT NULL,
  1448. `pay_platform` varchar(255) NULL DEFAULT NULL,
  1449. `pay_tool` varchar(255) NULL DEFAULT NULL,
  1450. `pay_voucher` text NULL,
  1451. `related_card_no` varchar(255) NULL DEFAULT NULL,
  1452. `result` varchar(255) NULL DEFAULT NULL,
  1453. `status` varchar(255) NULL DEFAULT NULL,
  1454. `title` varchar(255) NULL DEFAULT NULL,
  1455. `token` varchar(255) NULL DEFAULT NULL,
  1456. `transaction_id` varchar(255) NULL DEFAULT NULL,
  1457. `user_bank_card_id` bigint NULL DEFAULT NULL,
  1458. `user_fee_amt` decimal(19, 2) NULL DEFAULT NULL,
  1459. `user_fund_account_id` bigint NULL DEFAULT NULL,
  1460. `user_id` bigint NULL DEFAULT NULL,
  1461. PRIMARY KEY (`id`) USING BTREE,
  1462. INDEX `IDX92atlqe1b36w7q8h4tr2tv9pf`(`user_id`) USING BTREE,
  1463. INDEX `IDXak1eviphbfufs6rve91nvivbf`(`order_no`) USING BTREE
  1464. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1465. -- ----------------------------
  1466. -- Records of recharge_order
  1467. -- ----------------------------
  1468. -- ----------------------------
  1469. -- Table structure for recommend
  1470. -- ----------------------------
  1471. CREATE TABLE `recommend` (
  1472. `id` bigint NOT NULL,
  1473. `created_at` datetime NULL DEFAULT NULL,
  1474. `created_by` varchar(255) NULL DEFAULT NULL,
  1475. `del` bit(1) NOT NULL,
  1476. `modified_at` datetime NULL DEFAULT NULL,
  1477. `modified_by` varchar(255) NULL DEFAULT NULL,
  1478. `collection_id` bigint NULL DEFAULT NULL,
  1479. `name` varchar(255) NULL DEFAULT NULL,
  1480. `sort` int NOT NULL,
  1481. `type` varchar(255) NULL DEFAULT NULL,
  1482. `pic` varchar(255) NULL DEFAULT NULL,
  1483. `project_id` int NOT NULL,
  1484. PRIMARY KEY (`id`) USING BTREE
  1485. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1486. -- ----------------------------
  1487. -- Records of recommend
  1488. -- ----------------------------
  1489. -- ----------------------------
  1490. -- Table structure for scenic
  1491. -- ----------------------------
  1492. CREATE TABLE `scenic` (
  1493. `id` bigint NOT NULL,
  1494. `created_at` datetime NULL DEFAULT NULL,
  1495. `created_by` varchar(255) NULL DEFAULT NULL,
  1496. `modified_at` datetime NULL DEFAULT NULL,
  1497. `modified_by` varchar(255) NULL DEFAULT NULL,
  1498. `city_id` bigint NULL DEFAULT NULL,
  1499. `name` varchar(255) NULL DEFAULT NULL,
  1500. `pic` varchar(255) NULL DEFAULT NULL,
  1501. `remark` varchar(255) NULL DEFAULT NULL,
  1502. PRIMARY KEY (`id`) USING BTREE
  1503. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1504. -- ----------------------------
  1505. -- Records of scenic
  1506. -- ----------------------------
  1507. -- ----------------------------
  1508. -- Table structure for scenic_spot
  1509. -- ----------------------------
  1510. CREATE TABLE `scenic_spot` (
  1511. `id` bigint NOT NULL,
  1512. `created_at` datetime NULL DEFAULT NULL,
  1513. `created_by` varchar(255) NULL DEFAULT NULL,
  1514. `modified_at` datetime NULL DEFAULT NULL,
  1515. `modified_by` varchar(255) NULL DEFAULT NULL,
  1516. `city_id` bigint NULL DEFAULT NULL,
  1517. `name` varchar(255) NULL DEFAULT NULL,
  1518. `pic` varchar(255) NULL DEFAULT NULL,
  1519. `remark` varchar(255) NULL DEFAULT NULL,
  1520. `scenic_id` bigint NULL DEFAULT NULL,
  1521. `x` int NOT NULL,
  1522. `y` int NOT NULL,
  1523. PRIMARY KEY (`id`) USING BTREE
  1524. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1525. -- ----------------------------
  1526. -- Records of scenic_spot
  1527. -- ----------------------------
  1528. -- ----------------------------
  1529. -- Table structure for sms_record
  1530. -- ----------------------------
  1531. CREATE TABLE `sms_record` (
  1532. `id` bigint NOT NULL,
  1533. `created_at` datetime NULL DEFAULT NULL,
  1534. `created_by` varchar(255) NULL DEFAULT NULL,
  1535. `modified_at` datetime NULL DEFAULT NULL,
  1536. `modified_by` varchar(255) NULL DEFAULT NULL,
  1537. `code` varchar(255) NULL DEFAULT NULL,
  1538. `expired` bit(1) NULL DEFAULT NULL,
  1539. `expires_at` datetime NULL DEFAULT NULL,
  1540. `phone` varchar(255) NULL DEFAULT NULL,
  1541. `scope` varchar(255) NULL DEFAULT NULL,
  1542. `session_id` varchar(255) NULL DEFAULT NULL,
  1543. `del` bit(1) NOT NULL,
  1544. PRIMARY KEY (`id`) USING BTREE,
  1545. INDEX `IDX15i12q4gifq8a8kil7l2bjlty`(`phone`) USING BTREE,
  1546. INDEX `IDX4gr4ycik1fopjfw6rpg22oluj`(`expires_at`) USING BTREE
  1547. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1548. -- ----------------------------
  1549. -- Records of sms_record
  1550. -- ----------------------------
  1551. -- ----------------------------
  1552. -- Table structure for spot
  1553. -- ----------------------------
  1554. CREATE TABLE `spot` (
  1555. `user_id` bigint NOT NULL,
  1556. `authority_name` varchar(50) NOT NULL,
  1557. PRIMARY KEY (`user_id`, `authority_name`) USING BTREE
  1558. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1559. -- ----------------------------
  1560. -- Records of spot
  1561. -- ----------------------------
  1562. -- ----------------------------
  1563. -- Table structure for spot_guid
  1564. -- ----------------------------
  1565. CREATE TABLE `spot_guid` (
  1566. `spot_id` bigint NOT NULL,
  1567. `guid_id` bigint NOT NULL,
  1568. PRIMARY KEY (`spot_id`, `guid_id`) USING BTREE,
  1569. INDEX `FKbftxye4brw7vfq05d7rv0mtca`(`guid_id`) USING BTREE,
  1570. CONSTRAINT `FK5xnrr1sk76u0xy3j15p6r96q9` FOREIGN KEY (`spot_id`) REFERENCES `scenic_spot` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1571. CONSTRAINT `FKbftxye4brw7vfq05d7rv0mtca` FOREIGN KEY (`guid_id`) REFERENCES `guide` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1572. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1573. -- ----------------------------
  1574. -- Records of spot_guid
  1575. -- ----------------------------
  1576. -- ----------------------------
  1577. -- Table structure for super_user
  1578. -- ----------------------------
  1579. CREATE TABLE `super_user` (
  1580. `id` bigint NOT NULL,
  1581. `created_at` datetime NULL DEFAULT NULL,
  1582. `created_by` varchar(255) NULL DEFAULT NULL,
  1583. `modified_at` datetime NULL DEFAULT NULL,
  1584. `modified_by` varchar(255) NULL DEFAULT NULL,
  1585. `avatar` varchar(255) NULL DEFAULT NULL,
  1586. `enabled` bit(1) NOT NULL,
  1587. `nickname` varchar(255) NULL DEFAULT NULL,
  1588. `password` varchar(255) NULL DEFAULT NULL,
  1589. `phone` varchar(255) NULL DEFAULT NULL,
  1590. `username` varchar(50) NOT NULL,
  1591. `del` bit(1) NOT NULL,
  1592. PRIMARY KEY (`id`) USING BTREE,
  1593. UNIQUE INDEX `UK_jfokkpxg19r117eil158ooo9d`(`username`) USING BTREE
  1594. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1595. -- ----------------------------
  1596. -- Records of super_user
  1597. -- ----------------------------
  1598. -- ----------------------------
  1599. -- Table structure for super_user_authority
  1600. -- ----------------------------
  1601. CREATE TABLE `super_user_authority` (
  1602. `user_id` bigint NOT NULL,
  1603. `authority_name` varchar(50) NOT NULL,
  1604. PRIMARY KEY (`user_id`, `authority_name`) USING BTREE,
  1605. INDEX `FKxjxyodse6n0n00ewvoq8xv8`(`authority_name`) USING BTREE,
  1606. CONSTRAINT `FK7p0vq0b1vy9f0sqvgrdqw1q70` FOREIGN KEY (`user_id`) REFERENCES `super_user` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1607. CONSTRAINT `FKxjxyodse6n0n00ewvoq8xv8` FOREIGN KEY (`authority_name`) REFERENCES `authority` (`name`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1608. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1609. -- ----------------------------
  1610. -- Records of super_user_authority
  1611. -- ----------------------------
  1612. -- ----------------------------
  1613. -- Table structure for surprise_box_log
  1614. -- ----------------------------
  1615. CREATE TABLE `surprise_box_log` (
  1616. `id` bigint NOT NULL,
  1617. `created_at` datetime NULL DEFAULT NULL,
  1618. `created_by` varchar(255) NULL DEFAULT NULL,
  1619. `del` bit(1) NOT NULL,
  1620. `modified_at` datetime NULL DEFAULT NULL,
  1621. `modified_by` varchar(255) NULL DEFAULT NULL,
  1622. `collection_id` bigint NULL DEFAULT NULL,
  1623. `name` varchar(255) NULL DEFAULT NULL,
  1624. `phone` varchar(255) NULL DEFAULT NULL,
  1625. `pic_url` text NULL,
  1626. `project_id` int NOT NULL,
  1627. `remarks` varchar(255) NULL DEFAULT NULL,
  1628. `shipments` bit(1) NOT NULL,
  1629. `type` int NULL DEFAULT NULL,
  1630. `user_id` bigint NULL DEFAULT NULL,
  1631. PRIMARY KEY (`id`) USING BTREE
  1632. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1633. -- ----------------------------
  1634. -- Records of surprise_box_log
  1635. -- ----------------------------
  1636. -- ----------------------------
  1637. -- Table structure for sys_config
  1638. -- ----------------------------
  1639. CREATE TABLE `sys_config` (
  1640. `name` varchar(25) NOT NULL,
  1641. `created_at` datetime NULL DEFAULT NULL,
  1642. `created_by` varchar(255) NULL DEFAULT NULL,
  1643. `modified_at` datetime NULL DEFAULT NULL,
  1644. `modified_by` varchar(255) NULL DEFAULT NULL,
  1645. `description` varchar(255) NULL DEFAULT NULL,
  1646. `type` varchar(255) NULL DEFAULT NULL,
  1647. `value` varchar(255) NULL DEFAULT NULL,
  1648. `del` bit(1) NOT NULL,
  1649. `option_map` text NULL,
  1650. PRIMARY KEY (`name`) USING BTREE
  1651. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1652. -- ----------------------------
  1653. -- Records of sys_config
  1654. -- ----------------------------
  1655. INSERT INTO `sys_config` VALUES ('9th_customer_group', '2021-11-23 19:12:54', NULL, '2022-04-19 11:15:54', 'Meng(66637)', '第九空间客服群', 'FILE', 'https://cosmoscdn.9space.vip/image/2022-04-19-11-15-53ceRGzcIa.jpg', b'0', NULL);
  1656. INSERT INTO `sys_config` VALUES ('asset_shelf_check', '2022-04-29 15:51:19', 'system', '2022-04-29 15:51:19', 'system', '二手交易藏品上架检查', 'STRING', '', b'0', NULL);
  1657. INSERT INTO `sys_config` VALUES ('asset_shelf_price_limit', '2022-05-24 17:36:51', 'system', '2022-05-24 17:36:51', 'system', '资产上架价格限制', 'NUMBER', '50000', b'0', NULL);
  1658. INSERT INTO `sys_config` VALUES ('authcode_expiration_time', '2022-06-02 10:43:55', 'system', '2022-06-02 10:43:55', 'system', '图形验证码过期时间(秒)', 'NUMBER', '120', b'0', NULL);
  1659. INSERT INTO `sys_config` VALUES ('bank_card_can_be_bound', '2022-05-13 14:34:06', 'system', '2022-05-13 14:34:06', 'system', '同一个银行卡可以绑定的次数', 'NUMBER', '3', b'0', NULL);
  1660. INSERT INTO `sys_config` VALUES ('binding_bank_card_switch', '2022-05-19 18:45:43', NULL, '2022-05-27 20:45:18', '管理员-梁大官人(2645290)', '汇付绑定银行卡开关', 'BOOLEAN', '0', b'0', NULL);
  1661. INSERT INTO `sys_config` VALUES ('black_user_id', NULL, NULL, '2022-05-20 17:22:12', '管理员(1)', '黑洞账户', 'NUMBER', '1', b'0', NULL);
  1662. INSERT INTO `sys_config` VALUES ('by_invite_collection', '2022-05-07 15:38:15', NULL, '2022-05-11 15:35:17', '芳慧(2647154)', '邀请获得空投惊喜盒子ID(被邀请人)', 'NUMBER', '2647172', b'0', NULL);
  1663. INSERT INTO `sys_config` VALUES ('consume_data', '2022-06-02 21:39:58', 'system', '2022-06-02 21:39:58', 'system', '活动消费排行榜需要补全的数据(与手机号对应)', 'STRING', '0', b'0', NULL);
  1664. INSERT INTO `sys_config` VALUES ('consume_phone', '2022-06-02 21:39:58', 'system', '2022-06-02 21:39:58', 'system', '活动消费排行榜需要补全数据的手机号(多号用逗号隔开)', 'STRING', '0', b'0', NULL);
  1665. INSERT INTO `sys_config` VALUES ('cosmos_customer_group', '2022-01-24 13:52:43', NULL, '2022-04-06 11:12:51', '第九空间01(4156)', 'cosmos客服群', 'FILE', 'https://cosmoscdn.9space.vip/image/2022-04-06-11-12-49KeUUAyqc.jpg', b'0', NULL);
  1666. INSERT INTO `sys_config` VALUES ('days_four_element_count', '2022-05-03 15:35:18', NULL, '2022-05-09 10:10:01', 'li(2644644)', '用户每天银行卡实名认证次数', 'NUMBER', '10', b'0', NULL);
  1667. INSERT INTO `sys_config` VALUES ('default_avatar', '2022-05-03 19:53:15', 'system', '2022-05-03 19:53:15', 'system', '用户默认头像', 'STRING', 'https://cosmoscdn.9space.vip/image/2021-11-26-18-49-04fkFHRAhM.jpg', b'0', NULL);
  1668. INSERT INTO `sys_config` VALUES ('enable_wx_lite', '2021-12-09 20:37:12', NULL, '2021-12-13 20:43:05', '管理员(1)', '使用小程序支付', 'BOOLEAN', '0', b'0', NULL);
  1669. INSERT INTO `sys_config` VALUES ('enable_wx_pub', '2021-12-09 20:37:12', NULL, '2021-12-10 10:19:31', 'admin(1866)', '使用公众号支付', 'BOOLEAN', '0', b'0', NULL);
  1670. INSERT INTO `sys_config` VALUES ('false_data', '2022-05-30 17:14:47', NULL, '2022-05-30 17:22:32', 'oujihong(2644265)', '邀请排行榜假数据(与手机号一一对应)', 'STRING', '300,500', b'0', NULL);
  1671. INSERT INTO `sys_config` VALUES ('false_data_phone_number', '2022-05-30 17:14:47', NULL, '2022-05-30 17:22:15', 'oujihong(2644265)', '邀请排行榜需要造假数据的手机号(多号用逗号隔开)', 'STRING', '13680830210,13143745202', b'0', NULL);
  1672. INSERT INTO `sys_config` VALUES ('four_element_switch', '2022-05-03 15:35:18', NULL, '2022-05-23 18:09:55', 'yang(2644733)', '银行卡实名认证四要素开关', 'BOOLEAN', '0', b'0', NULL);
  1673. INSERT INTO `sys_config` VALUES ('gas_fee', '2021-10-21 17:34:34', NULL, '2022-04-27 20:31:37', 'zhangxiaoyu(2644324)', 'gas费', 'NUMBER', '0.01', b'0', NULL);
  1674. INSERT INTO `sys_config` VALUES ('gift_gas_fee', '2021-12-08 21:04:49', NULL, '2022-04-29 16:02:47', '管理员(1)', '转赠gas费', 'NUMBER', '0.01', b'0', NULL);
  1675. INSERT INTO `sys_config` VALUES ('gift_pay_switch', '2022-04-26 18:14:50', 'system', '2022-04-26 18:14:50', 'system', '转赠支付开关', 'BOOLEAN', '1', b'0', NULL);
  1676. INSERT INTO `sys_config` VALUES ('hold_days', '2021-12-16 01:38:51', NULL, '2022-03-22 12:32:50', 'xiong(1243003)', '持有满几天可销售', 'NUMBER', '0', b'0', NULL);
  1677. INSERT INTO `sys_config` VALUES ('invite_collection', '2022-04-27 15:59:10', NULL, '2022-05-10 11:06:40', 'zhangxiaoyu(2644324)', '邀请获得空投藏品ID', 'NUMBER', '-1', b'0', NULL);
  1678. INSERT INTO `sys_config` VALUES ('invite_enddatetime', '2022-04-27 15:59:10', NULL, '2022-05-12 18:32:59', '芳慧(2647154)', '邀请活动结束时间', 'DATETIME', '2022-05-13 13:21:39', b'0', NULL);
  1679. INSERT INTO `sys_config` VALUES ('invite_num', '2022-04-27 15:59:10', NULL, '2022-05-10 11:06:57', 'zhangxiaoyu(2644324)', '邀请人数', 'NUMBER', '-1', b'0', NULL);
  1680. INSERT INTO `sys_config` VALUES ('invite_startdatetime', '2022-04-27 15:59:10', NULL, '2022-05-12 18:32:16', '芳慧(2647154)', '邀请活动开始时间', 'DATETIME', '2022-05-12 13:21:27', b'0', NULL);
  1681. INSERT INTO `sys_config` VALUES ('lock_order_count_interval', '2022-05-20 15:22:43', 'system', '2022-05-20 15:22:43', 'system', '统计锁单次数周期', 'NUMBER', '24', b'0', NULL);
  1682. INSERT INTO `sys_config` VALUES ('lock_order_limit_number', '2022-05-17 17:14:32', NULL, '2022-05-27 14:51:25', 'oujihong(2644265)', '锁单上限次数', 'NUMBER', '200', b'0', NULL);
  1683. INSERT INTO `sys_config` VALUES ('lock_order_punish_time', '2022-05-17 17:14:33', NULL, '2022-05-17 20:20:13', 'test01(2644237)', '超过锁单上限禁止购买时间', 'NUMBER', '5', b'0', NULL);
  1684. INSERT INTO `sys_config` VALUES ('member_prefix', '2022-06-07 14:45:55', 'system', '2022-06-07 14:45:55', 'system', '第三方账户会员ID前缀(多个平台隔离)', 'STRING', '9th_', b'0', NULL);
  1685. INSERT INTO `sys_config` VALUES ('order_expire_interval', '2022-05-12 21:57:07', 'system', '2022-05-12 21:57:07', 'system', '订单失效时间间隔(分钟)', 'NUMBER', '3', b'0', NULL);
  1686. INSERT INTO `sys_config` VALUES ('pay_platform', '2022-04-07 21:32:54', NULL, '2022-06-14 18:08:27', 'oujihong(2644265)', '默认的支付平台', 'LIST', 'NOTPAY_PLATFORM', b'0', '{\"adapayPlatform\":\"汇付支付\",\"customPlatform\":\"官方支付宝\",\"sandpayPlatform\":\"杉德支付\",\"ikudotpayPlatform\":\"酷点支付\",\"sumpayPlatform\":\"商盟支付\",\"payeasenetPlatform\":\"首信易支付\",\"NOTPAY_PLATFORM\":\"--关闭通道--\"}');
  1687. INSERT INTO `sys_config` VALUES ('picture_compression', '2022-06-14 14:33:59', NULL, '2022-06-14 14:41:47', 'oujihong(2644265)', '图片压缩开关', 'BOOLEAN', '1', b'0', NULL);
  1688. INSERT INTO `sys_config` VALUES ('prefix', '2022-04-27 15:59:10', NULL, '2022-04-28 13:26:34', '汤卓威(2644442)', '用户名前缀', 'STRING', '时光街_', b'0', NULL);
  1689. INSERT INTO `sys_config` VALUES ('ranking_end_time', '2022-05-24 16:08:53', 'system', '2022-05-24 16:08:53', 'system', '成交量排行榜活动结束时间', 'DATETIME', '2022-05-24 20:10:36', b'0', NULL);
  1690. INSERT INTO `sys_config` VALUES ('ranking_start_time', '2022-05-24 16:08:53', 'system', '2022-05-24 16:08:53', 'system', '成交量排行榜活动开始时间', 'DATETIME', '2022-03-21 11:10:36', b'0', NULL);
  1691. INSERT INTO `sys_config` VALUES ('registered_number', '2022-05-12 18:30:05', NULL, '2022-06-14 16:30:32', '芳慧(2864293)', '同一个身份证可注册账号个数', 'NUMBER', '5', b'0', NULL);
  1692. INSERT INTO `sys_config` VALUES ('second_hand_pay_platform', '2022-04-26 18:14:49', NULL, '2022-06-14 18:01:30', 'oujihong(2644265)', '二手交易的支付平台', 'LIST', 'NOTPAY_PLATFORM', b'0', '{\"adapayPlatform\":\"汇付支付\",\"customPlatform\":\"官方支付宝\",\"sandpayPlatform\":\"杉德支付\",\"ikudotpayPlatform\":\"酷点支付\",\"sumpayPlatform\":\"商盟支付\",\"payeasenetPlatform\":\"首信易支付\",\"NOTPAY_PLATFORM\":\"--关闭通道--\"}');
  1693. INSERT INTO `sys_config` VALUES ('share_ratio', '2021-11-19 19:59:46', NULL, '2021-12-08 14:12:21', '管理员(1)', '默认分享分成比例(%)', 'NUMBER', '0', b'0', NULL);
  1694. INSERT INTO `sys_config` VALUES ('tester_user_id', '2022-05-18 13:50:42', 'system', '2022-05-18 13:50:42', 'system', '测试人员ID', 'NUMBER', '1', b'0', NULL);
  1695. INSERT INTO `sys_config` VALUES ('test_named_collectionId', '2022-05-05 21:41:01', NULL, '2022-05-06 12:16:16', '管理员(1)', '指定藏品,多藏品逗号隔开', 'STRING', '2644609', b'0', NULL);
  1696. INSERT INTO `sys_config` VALUES ('test_named_user', '2022-05-05 21:41:01', NULL, '2022-05-06 12:17:22', '管理员(1)', '指定用户ID,多藏品逗号隔开', 'STRING', '2644964,1', b'0', NULL);
  1697. INSERT INTO `sys_config` VALUES ('wallet_free_tips', '2022-06-13 20:52:38', 'system', '2022-06-13 20:52:38', 'system', '钱包免费提示信息', 'STRING', '', b'0', NULL);
  1698. INSERT INTO `sys_config` VALUES ('wx_mp_switch', '2022-05-06 23:08:17', 'system', '2022-05-06 23:08:17', 'system', '微信公众号调用开关', 'BOOLEAN', '0', b'0', NULL);
  1699. -- ----------------------------
  1700. -- Table structure for system_info_log
  1701. -- ----------------------------
  1702. CREATE TABLE `system_info_log` (
  1703. `id` bigint NOT NULL,
  1704. `created_at` datetime NULL DEFAULT NULL,
  1705. `created_by` varchar(255) NULL DEFAULT NULL,
  1706. `del` bit(1) NOT NULL,
  1707. `modified_at` datetime NULL DEFAULT NULL,
  1708. `modified_by` varchar(255) NULL DEFAULT NULL,
  1709. `bank_pay_num` decimal(19, 2) NULL DEFAULT NULL,
  1710. `closing_wallet_num` int NULL DEFAULT NULL,
  1711. `day_recharge_num` decimal(19, 2) NULL DEFAULT NULL,
  1712. `day_withdraw_num` decimal(19, 2) NULL DEFAULT NULL,
  1713. `log_date` date NULL DEFAULT NULL,
  1714. `open_wallet_num` int NULL DEFAULT NULL,
  1715. `register_num` int NULL DEFAULT NULL,
  1716. `total_open_wallet_num` int NULL DEFAULT NULL,
  1717. `wallet_pay_num` decimal(19, 2) NULL DEFAULT NULL,
  1718. PRIMARY KEY (`id`) USING BTREE
  1719. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1720. -- ----------------------------
  1721. -- Records of system_info_log
  1722. -- ----------------------------
  1723. -- ----------------------------
  1724. -- Table structure for test_class
  1725. -- ----------------------------
  1726. CREATE TABLE `test_class` (
  1727. `id` bigint NOT NULL,
  1728. `created_at` datetime NULL DEFAULT NULL,
  1729. `created_by` varchar(255) NULL DEFAULT NULL,
  1730. `del` bit(1) NOT NULL,
  1731. `modified_at` datetime NULL DEFAULT NULL,
  1732. `modified_by` varchar(255) NULL DEFAULT NULL,
  1733. `name` varchar(255) NULL DEFAULT NULL,
  1734. PRIMARY KEY (`id`) USING BTREE
  1735. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1736. -- ----------------------------
  1737. -- Records of test_class
  1738. -- ----------------------------
  1739. -- ----------------------------
  1740. -- Table structure for token_history
  1741. -- ----------------------------
  1742. CREATE TABLE `token_history` (
  1743. `id` bigint NOT NULL,
  1744. `created_at` datetime NULL DEFAULT NULL,
  1745. `created_by` varchar(255) NULL DEFAULT NULL,
  1746. `del` bit(1) NOT NULL,
  1747. `modified_at` datetime NULL DEFAULT NULL,
  1748. `modified_by` varchar(255) NULL DEFAULT NULL,
  1749. `from_avatar` varchar(255) NULL DEFAULT NULL,
  1750. `from_user` varchar(255) NULL DEFAULT NULL,
  1751. `from_user_id` bigint NULL DEFAULT NULL,
  1752. `operation` varchar(255) NULL DEFAULT NULL,
  1753. `price` decimal(10, 2) NULL DEFAULT NULL,
  1754. `to_avatar` varchar(255) NULL DEFAULT NULL,
  1755. `to_user` varchar(255) NULL DEFAULT NULL,
  1756. `to_user_id` bigint NULL DEFAULT NULL,
  1757. `token_id` varchar(255) NULL DEFAULT NULL,
  1758. `project_id` int NOT NULL,
  1759. `asset_id` bigint NULL DEFAULT NULL,
  1760. `order_id` bigint NULL DEFAULT NULL,
  1761. PRIMARY KEY (`id`) USING BTREE,
  1762. INDEX `IDXg00s1821w2wm8w73ajmsscau1`(`token_id`) USING BTREE,
  1763. INDEX `idx_touserid`(`to_user_id`) USING BTREE
  1764. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1765. -- ----------------------------
  1766. -- Records of token_history
  1767. -- ----------------------------
  1768. -- ----------------------------
  1769. -- Table structure for transfer_money_info
  1770. -- ----------------------------
  1771. CREATE TABLE `transfer_money_info` (
  1772. `id` bigint NOT NULL,
  1773. `created_at` datetime NULL DEFAULT NULL,
  1774. `created_by` varchar(255) NULL DEFAULT NULL,
  1775. `del` bit(1) NOT NULL,
  1776. `modified_at` datetime NULL DEFAULT NULL,
  1777. `modified_by` varchar(255) NULL DEFAULT NULL,
  1778. `account_name` varchar(255) NULL DEFAULT NULL,
  1779. `account_no` varchar(255) NULL DEFAULT NULL,
  1780. `account_type` varchar(255) NULL DEFAULT NULL,
  1781. `amount` decimal(10, 2) NULL DEFAULT NULL,
  1782. `status` varchar(255) NULL DEFAULT NULL,
  1783. `to_user_id` bigint NULL DEFAULT NULL,
  1784. `trade_no` varchar(255) NULL DEFAULT NULL,
  1785. `transaction_id` varchar(255) NULL DEFAULT NULL,
  1786. `transfer_date` varchar(255) NULL DEFAULT NULL,
  1787. `transfer_method` varchar(255) NULL DEFAULT NULL,
  1788. `transfer_order_id` varchar(255) NULL DEFAULT NULL,
  1789. `batch_no` varchar(255) NULL DEFAULT NULL,
  1790. `div_money_id` bigint NULL DEFAULT NULL,
  1791. `pay_platform` varchar(255) NULL DEFAULT NULL,
  1792. `reason` varchar(255) NULL DEFAULT NULL,
  1793. `result` varchar(255) NULL DEFAULT NULL,
  1794. `third_account_id` varchar(255) NULL DEFAULT NULL,
  1795. PRIMARY KEY (`id`) USING BTREE,
  1796. UNIQUE INDEX `UK4gakcpqh0h1gx30y6r4jx64tb`(`trade_no`) USING BTREE,
  1797. INDEX `IDXmdibsak5hvvrxcogb11akci76`(`to_user_id`) USING BTREE
  1798. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1799. -- ----------------------------
  1800. -- Records of transfer_money_info
  1801. -- ----------------------------
  1802. -- ----------------------------
  1803. -- Table structure for user
  1804. -- ----------------------------
  1805. CREATE TABLE `user` (
  1806. `id` bigint NOT NULL,
  1807. `created_at` datetime NULL DEFAULT NULL,
  1808. `created_by` varchar(255) NULL DEFAULT NULL,
  1809. `modified_at` datetime NULL DEFAULT NULL,
  1810. `modified_by` varchar(255) NULL DEFAULT NULL,
  1811. `avatar` varchar(255) NULL DEFAULT NULL,
  1812. `city` varchar(255) NULL DEFAULT NULL,
  1813. `country` varchar(255) NULL DEFAULT NULL,
  1814. `email` varchar(255) NULL DEFAULT NULL,
  1815. `language` varchar(255) NULL DEFAULT NULL,
  1816. `nickname` varchar(255) NULL DEFAULT NULL,
  1817. `open_id` varchar(255) NULL DEFAULT NULL,
  1818. `password` varchar(255) NULL DEFAULT NULL,
  1819. `phone` varchar(255) NULL DEFAULT NULL,
  1820. `province` varchar(255) NULL DEFAULT NULL,
  1821. `sex` varchar(255) NULL DEFAULT NULL,
  1822. `username` varchar(50) NOT NULL,
  1823. `del` bit(1) NOT NULL,
  1824. `bg` varchar(255) NULL DEFAULT NULL,
  1825. `followers` int NOT NULL,
  1826. `follows` int NOT NULL,
  1827. `intro` text NULL,
  1828. `auth_status` varchar(255) NULL DEFAULT NULL,
  1829. `real_name` varchar(255) NULL DEFAULT NULL,
  1830. `kms_id` varchar(255) NULL DEFAULT NULL,
  1831. `nft_account` varchar(255) NULL DEFAULT NULL,
  1832. `public_key` varchar(255) NULL DEFAULT NULL,
  1833. `sales` int NOT NULL,
  1834. `trade_code` varchar(255) NULL DEFAULT NULL,
  1835. `admin` bit(1) NOT NULL,
  1836. `share_ratio` decimal(10, 2) NULL DEFAULT NULL,
  1837. `auth_id` bigint NULL DEFAULT NULL,
  1838. `member_id` varchar(255) NULL DEFAULT NULL,
  1839. `settle_account_id` varchar(255) NULL DEFAULT NULL,
  1840. `invite_code` varchar(255) NULL DEFAULT NULL,
  1841. `invitor_name` varchar(255) NULL DEFAULT NULL,
  1842. `invitor_phone` varchar(255) NULL DEFAULT NULL,
  1843. `minter_project_id` int NOT NULL,
  1844. `invitor` bigint NULL DEFAULT NULL,
  1845. `invite_num` int NULL DEFAULT 0,
  1846. `invite_air_drop` int NULL DEFAULT 0,
  1847. `bank_card` bit(1) NOT NULL,
  1848. PRIMARY KEY (`id`) USING BTREE,
  1849. UNIQUE INDEX `UK_sb8bbouer5wak8vyiiy4pf2bx`(`username`) USING BTREE,
  1850. UNIQUE INDEX `UKc5b5fqpocs0w2o3h8goc90e8c`(`member_id`) USING BTREE,
  1851. INDEX `IDX589idila9li6a4arw1t8ht1gx`(`phone`) USING BTREE,
  1852. INDEX `IDXc9pp9de8b7qmvluu50p6i46c7`(`admin`) USING BTREE,
  1853. INDEX `IDXhtotek3rtv2axspgd9outw1cx`(`invitor`) USING BTREE
  1854. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1855. -- ----------------------------
  1856. -- Records of user 默认密码123654abc
  1857. -- ----------------------------
  1858. INSERT INTO `user` VALUES (1, '2020-03-07 18:34:36', NULL, '2022-06-15 15:05:20', '管理员(1)', 'https://cosmoscdn.9space.vip/image/artist.jpg', NULL, NULL, NULL, NULL, '管理员', NULL, '$2a$10$7njcGSDIvYuXKBQeAib8QuRmCxapTMMG/B3.qfUtBWgsDHQfvA91K', NULL, NULL, NULL, 'admin', b'0', NULL, 0, 0, NULL, 'SUCCESS', NULL, NULL, NULL, NULL, 0, NULL, b'1', 5.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, b'0');
  1859. -- ----------------------------
  1860. -- Table structure for user_address
  1861. -- ----------------------------
  1862. CREATE TABLE `user_address` (
  1863. `id` bigint NOT NULL,
  1864. `created_at` datetime NULL DEFAULT NULL,
  1865. `created_by` varchar(255) NULL DEFAULT NULL,
  1866. `del` bit(1) NOT NULL,
  1867. `modified_at` datetime NULL DEFAULT NULL,
  1868. `modified_by` varchar(255) NULL DEFAULT NULL,
  1869. `address` varchar(255) NULL DEFAULT NULL,
  1870. `city_id` varchar(255) NULL DEFAULT NULL,
  1871. `city_name` varchar(255) NULL DEFAULT NULL,
  1872. `def` bit(1) NOT NULL,
  1873. `district_id` bigint NULL DEFAULT NULL,
  1874. `district_name` varchar(255) NULL DEFAULT NULL,
  1875. `name` varchar(255) NULL DEFAULT NULL,
  1876. `phone` varchar(255) NULL DEFAULT NULL,
  1877. `province_id` bigint NULL DEFAULT NULL,
  1878. `province_name` varchar(255) NULL DEFAULT NULL,
  1879. `user_id` bigint NULL DEFAULT NULL,
  1880. PRIMARY KEY (`id`) USING BTREE
  1881. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1882. -- ----------------------------
  1883. -- Records of user_address
  1884. -- ----------------------------
  1885. -- ----------------------------
  1886. -- Table structure for user_authority
  1887. -- ----------------------------
  1888. CREATE TABLE `user_authority` (
  1889. `user_id` bigint NOT NULL,
  1890. `authority_name` varchar(50) NOT NULL,
  1891. PRIMARY KEY (`user_id`, `authority_name`) USING BTREE,
  1892. INDEX `idx_authorityname`(`authority_name`) USING BTREE
  1893. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1894. -- ----------------------------
  1895. -- Records of user_authority
  1896. -- ----------------------------
  1897. INSERT INTO `user_authority` VALUES (1, 'ROLE_ADMIN');
  1898. -- ----------------------------
  1899. -- Table structure for user_bank_card
  1900. -- ----------------------------
  1901. CREATE TABLE `user_bank_card` (
  1902. `id` bigint NOT NULL,
  1903. `created_at` datetime NULL DEFAULT NULL,
  1904. `created_by` varchar(255) NULL DEFAULT NULL,
  1905. `del` bit(1) NOT NULL,
  1906. `modified_at` datetime NULL DEFAULT NULL,
  1907. `modified_by` varchar(255) NULL DEFAULT NULL,
  1908. `bank` varchar(255) NULL DEFAULT NULL,
  1909. `bank_name` varchar(255) NULL DEFAULT NULL,
  1910. `bank_no` varchar(255) NULL DEFAULT NULL,
  1911. `card_type` varchar(255) NULL DEFAULT NULL,
  1912. `card_type_desc` varchar(255) NULL DEFAULT NULL,
  1913. `user_id` bigint NULL DEFAULT NULL,
  1914. `phone` varchar(255) NULL DEFAULT NULL,
  1915. `id_no` varchar(255) NULL DEFAULT NULL,
  1916. `real_name` varchar(255) NULL DEFAULT NULL,
  1917. `pay_platform` varchar(255) NULL DEFAULT NULL,
  1918. `bind_order_no` varchar(255) NULL DEFAULT NULL,
  1919. `third_account_id` varchar(255) NULL DEFAULT NULL,
  1920. `third_bank_id` varchar(255) NULL DEFAULT NULL,
  1921. `token` varchar(255) NULL DEFAULT NULL,
  1922. `unbind_order_no` varchar(255) NULL DEFAULT NULL,
  1923. PRIMARY KEY (`id`) USING BTREE,
  1924. UNIQUE INDEX `UK32pokndfety4yl5talcj81fqd`(`bind_order_no`) USING BTREE,
  1925. UNIQUE INDEX `UKaq28ndgn3ackirsqwoe0vs5q9`(`unbind_order_no`) USING BTREE
  1926. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1927. -- ----------------------------
  1928. -- Records of user_bank_card
  1929. -- ----------------------------
  1930. -- ----------------------------
  1931. -- Table structure for user_coupon
  1932. -- ----------------------------
  1933. CREATE TABLE `user_coupon` (
  1934. `id` bigint NOT NULL,
  1935. `created_at` datetime NULL DEFAULT NULL,
  1936. `created_by` varchar(255) NULL DEFAULT NULL,
  1937. `del` bit(1) NOT NULL,
  1938. `modified_at` datetime NULL DEFAULT NULL,
  1939. `modified_by` varchar(255) NULL DEFAULT NULL,
  1940. `collection_ids` text NULL,
  1941. `coupon_id` bigint NULL DEFAULT NULL,
  1942. `expiration` datetime NULL DEFAULT NULL,
  1943. `limited` bit(1) NOT NULL,
  1944. `name` varchar(255) NULL DEFAULT NULL,
  1945. `need_gas` bit(1) NOT NULL,
  1946. `remark` varchar(255) NULL DEFAULT NULL,
  1947. `use_time` datetime NULL DEFAULT NULL,
  1948. `used` bit(1) NOT NULL,
  1949. `user_id` bigint NULL DEFAULT NULL,
  1950. `project_id` int NOT NULL,
  1951. PRIMARY KEY (`id`) USING BTREE
  1952. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1953. -- ----------------------------
  1954. -- Records of user_coupon
  1955. -- ----------------------------
  1956. -- ----------------------------
  1957. -- Table structure for user_fund_account
  1958. -- ----------------------------
  1959. CREATE TABLE `user_fund_account` (
  1960. `id` bigint NOT NULL,
  1961. `created_at` datetime NULL DEFAULT NULL,
  1962. `created_by` varchar(255) NULL DEFAULT NULL,
  1963. `del` bit(1) NOT NULL,
  1964. `modified_at` datetime NULL DEFAULT NULL,
  1965. `modified_by` varchar(255) NULL DEFAULT NULL,
  1966. `account_name` varchar(255) NULL DEFAULT NULL,
  1967. `account_no` varchar(255) NULL DEFAULT NULL,
  1968. `account_type` int NULL DEFAULT NULL,
  1969. `primary_flag` bit(1) NOT NULL,
  1970. `user_id` bigint NULL DEFAULT NULL,
  1971. `account_error` varchar(255) NULL DEFAULT NULL,
  1972. `account_status` varchar(255) NULL DEFAULT NULL,
  1973. `apply_time` datetime NULL DEFAULT NULL,
  1974. `cancel_time` datetime NULL DEFAULT NULL,
  1975. `gateway_url` varchar(255) NULL DEFAULT NULL,
  1976. `notify_time` datetime NULL DEFAULT NULL,
  1977. `order_no` varchar(255) NULL DEFAULT NULL,
  1978. `register_phone` varchar(255) NULL DEFAULT NULL,
  1979. `third_bank_id` varchar(255) NULL DEFAULT NULL,
  1980. `third_bank_no` varchar(255) NULL DEFAULT NULL,
  1981. `third_user_id` varchar(255) NULL DEFAULT NULL,
  1982. `token` varchar(255) NULL DEFAULT NULL,
  1983. `user_bank_card_id` bigint NULL DEFAULT NULL,
  1984. PRIMARY KEY (`id`) USING BTREE,
  1985. UNIQUE INDEX `UKh4qaf1er9y2o8c56biv04l7i4`(`user_id`, `account_type`) USING BTREE,
  1986. UNIQUE INDEX `UKbvvdcin4b42eud8986s82j32c`(`order_no`) USING BTREE
  1987. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  1988. -- ----------------------------
  1989. -- Records of user_fund_account
  1990. -- ----------------------------
  1991. -- ----------------------------
  1992. -- Table structure for user_fund_change_log
  1993. -- ----------------------------
  1994. CREATE TABLE `user_fund_change_log` (
  1995. `id` bigint NOT NULL,
  1996. `created_at` datetime NULL DEFAULT NULL,
  1997. `created_by` varchar(255) NULL DEFAULT NULL,
  1998. `del` bit(1) NOT NULL,
  1999. `modified_at` datetime NULL DEFAULT NULL,
  2000. `modified_by` varchar(255) NULL DEFAULT NULL,
  2001. `amount` decimal(19, 2) NULL DEFAULT NULL,
  2002. `change_type` varchar(255) NULL DEFAULT NULL,
  2003. `description` varchar(255) NULL DEFAULT NULL,
  2004. `finish_time` datetime NULL DEFAULT NULL,
  2005. `order_no` varchar(255) NULL DEFAULT NULL,
  2006. `order_time` datetime NULL DEFAULT NULL,
  2007. `status` varchar(255) NULL DEFAULT NULL,
  2008. `user_fund_account_id` bigint NULL DEFAULT NULL,
  2009. `user_id` bigint NULL DEFAULT NULL,
  2010. PRIMARY KEY (`id`) USING BTREE,
  2011. INDEX `IDXq5lnsfc0dx6oitvn15y58eu5k`(`user_id`) USING BTREE,
  2012. INDEX `IDXe2e5d84e45cfoqlg4gr5hkea`(`order_no`) USING BTREE
  2013. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  2014. -- ----------------------------
  2015. -- Records of user_fund_change_log
  2016. -- ----------------------------
  2017. -- ----------------------------
  2018. -- Table structure for user_token
  2019. -- ----------------------------
  2020. CREATE TABLE `user_token` (
  2021. `id` bigint NOT NULL,
  2022. `created_at` datetime NULL DEFAULT NULL,
  2023. `created_by` varchar(255) NULL DEFAULT NULL,
  2024. `del` bit(1) NOT NULL,
  2025. `modified_at` datetime NULL DEFAULT NULL,
  2026. `modified_by` varchar(255) NULL DEFAULT NULL,
  2027. `token` varchar(255) NULL DEFAULT NULL,
  2028. `user_id` bigint NULL DEFAULT NULL,
  2029. PRIMARY KEY (`id`) USING BTREE,
  2030. INDEX `IDX6dm5bsjbr1sablsdk0lk66oap`(`user_id`) USING BTREE
  2031. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  2032. -- ----------------------------
  2033. -- Records of user_token
  2034. -- ----------------------------
  2035. -- ----------------------------
  2036. -- Table structure for user_ware_house
  2037. -- ----------------------------
  2038. CREATE TABLE `user_ware_house` (
  2039. `id` bigint NOT NULL,
  2040. `created_at` datetime NULL DEFAULT NULL,
  2041. `created_by` varchar(255) NULL DEFAULT NULL,
  2042. `del` bit(1) NOT NULL,
  2043. `modified_at` datetime NULL DEFAULT NULL,
  2044. `modified_by` varchar(255) NULL DEFAULT NULL,
  2045. `item_id` int NULL DEFAULT NULL,
  2046. `item_name` varchar(255) NULL DEFAULT NULL,
  2047. `activity_priority_document_id` bigint NULL DEFAULT NULL,
  2048. `advance_purchase_count` int NOT NULL,
  2049. `advance_purchase_time` int NOT NULL,
  2050. `asset_id` bigint NULL DEFAULT NULL,
  2051. `disabled` bit(1) NOT NULL,
  2052. `minter_id` bigint NULL DEFAULT NULL,
  2053. `name` varchar(255) NULL DEFAULT NULL,
  2054. `overdue_time` datetime NULL DEFAULT NULL,
  2055. `phone` varchar(255) NULL DEFAULT NULL,
  2056. `project_id` int NOT NULL,
  2057. `target_collection_id` bigint NULL DEFAULT NULL,
  2058. `target_collection_id_list` text NULL,
  2059. `text` varchar(255) NULL DEFAULT NULL,
  2060. `user_id` bigint NULL DEFAULT NULL,
  2061. PRIMARY KEY (`id`) USING BTREE,
  2062. INDEX `IDXm4xypqxvrbnpb7ndy4epadi1s`(`user_id`) USING BTREE,
  2063. INDEX `IDX6n4nxr0a5jcfgunvxac151dk0`(`item_name`) USING BTREE,
  2064. INDEX `IDX3nwmjd7wmd5naiu3uv0p7y6v5`(`item_id`) USING BTREE,
  2065. INDEX `IDXrdg8wnrps48qslmhregj3bf8n`(`asset_id`) USING BTREE
  2066. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  2067. -- ----------------------------
  2068. -- Records of user_ware_house
  2069. -- ----------------------------
  2070. -- ----------------------------
  2071. -- Table structure for withdraw_apply
  2072. -- ----------------------------
  2073. CREATE TABLE `withdraw_apply` (
  2074. `id` bigint NOT NULL,
  2075. `created_at` datetime NULL DEFAULT NULL,
  2076. `created_by` varchar(255) NULL DEFAULT NULL,
  2077. `del` bit(1) NOT NULL,
  2078. `modified_at` datetime NULL DEFAULT NULL,
  2079. `modified_by` varchar(255) NULL DEFAULT NULL,
  2080. `amount` decimal(19, 2) NULL DEFAULT NULL,
  2081. `auth_way` varchar(255) NULL DEFAULT NULL,
  2082. `bank_name` varchar(255) NULL DEFAULT NULL,
  2083. `bank_no` varchar(255) NULL DEFAULT NULL,
  2084. `fee_amt` decimal(19, 2) NULL DEFAULT NULL,
  2085. `finish_time` datetime NULL DEFAULT NULL,
  2086. `front_url` varchar(255) NULL DEFAULT NULL,
  2087. `jump_url` varchar(255) NULL DEFAULT NULL,
  2088. `notify_time` datetime NULL DEFAULT NULL,
  2089. `notify_url` varchar(255) NULL DEFAULT NULL,
  2090. `order_amount` decimal(19, 2) NULL DEFAULT NULL,
  2091. `order_no` varchar(255) NULL DEFAULT NULL,
  2092. `pay_platform` varchar(255) NULL DEFAULT NULL,
  2093. `related_card_no` varchar(255) NULL DEFAULT NULL,
  2094. `result` varchar(255) NULL DEFAULT NULL,
  2095. `status` varchar(255) NULL DEFAULT NULL,
  2096. `title` varchar(255) NULL DEFAULT NULL,
  2097. `token` varchar(255) NULL DEFAULT NULL,
  2098. `transaction_id` varchar(255) NULL DEFAULT NULL,
  2099. `user_bank_card_id` bigint NULL DEFAULT NULL,
  2100. `user_fee_amt` decimal(19, 2) NULL DEFAULT NULL,
  2101. `user_fund_account_id` bigint NULL DEFAULT NULL,
  2102. `user_id` bigint NULL DEFAULT NULL,
  2103. PRIMARY KEY (`id`) USING BTREE,
  2104. INDEX `IDXqoekq1jkrchw3har5rc4jlyye`(`user_id`) USING BTREE,
  2105. INDEX `IDXhnx0c67tcocbtjq1nsvmpypce`(`order_no`) USING BTREE
  2106. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 ;
  2107. -- ----------------------------
  2108. -- Records of withdraw_apply
  2109. -- ----------------------------
  2110. SET FOREIGN_KEY_CHECKS = 1;