-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaultdb.sql
More file actions
4321 lines (3976 loc) · 204 KB
/
defaultdb.sql
File metadata and controls
4321 lines (3976 loc) · 204 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Navicat MySQL Data Transfer
Source Server : NMKR Mainnet DigitalOcean
Source Server Type : MySQL
Source Server Version : 80035
Source Host : nmkr-studio-mainnet-do-user-17704078-0.h.db.ondigitalocean.com:25060
Source Schema : defaultdb
Target Server Type : MySQL
Target Server Version : 80035
File Encoding : 65001
Date: 01/10/2025 16:15:48
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for activeblockchains
-- ----------------------------
DROP TABLE IF EXISTS `activeblockchains`;
CREATE TABLE "activeblockchains" (
"id" int NOT NULL AUTO_INCREMENT,
"name" varchar(255) NOT NULL,
"image" varchar(255) NOT NULL,
"enabled" tinyint(1) NOT NULL,
"smallestentity" varchar(255) NOT NULL,
"coinname" varchar(255) NOT NULL,
"explorerurladdress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"explorerurltx" varchar(255) NOT NULL,
"explorerurlcollection" varchar(255) NOT NULL,
"factor" bigint NOT NULL,
"hasnft" tinyint(1) NOT NULL DEFAULT '1',
"hasft" tinyint(1) NOT NULL DEFAULT '0',
"collectionmustbecreatedonnewproject" tinyint(1) NOT NULL DEFAULT '0',
"collectionaddressmustbefunded" tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY ("id")
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for adahandles
-- ----------------------------
DROP TABLE IF EXISTS `adahandles`;
CREATE TABLE "adahandles" (
"id" int NOT NULL AUTO_INCREMENT,
"policyid" varchar(255) NOT NULL,
"prefix" varchar(255) NOT NULL,
"comment" varchar(255) DEFAULT NULL,
PRIMARY KEY ("id") USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for adminlogins
-- ----------------------------
DROP TABLE IF EXISTS `adminlogins`;
CREATE TABLE "adminlogins" (
"id" int NOT NULL AUTO_INCREMENT,
"email" varchar(255) NOT NULL,
"password" varchar(255) NOT NULL,
"salt" varchar(255) NOT NULL,
"state" enum('active','notactive','blocked','locked','deleted') NOT NULL,
"created" datetime NOT NULL,
"ipaddress" varchar(255) NOT NULL,
"failedlogon" int NOT NULL,
"twofactor" enum('none','sms','google') NOT NULL,
"mobilenumber" varchar(255) DEFAULT NULL,
"lockeduntil" datetime DEFAULT NULL,
"pendingpassword" varchar(255) DEFAULT NULL,
"pendingpasswordcreated" datetime DEFAULT NULL,
PRIMARY KEY ("id") USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=215709 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for adminmintandsendaddresses
-- ----------------------------
DROP TABLE IF EXISTS `adminmintandsendaddresses`;
CREATE TABLE "adminmintandsendaddresses" (
"id" int NOT NULL AUTO_INCREMENT,
"address" varchar(255) NOT NULL,
"privateskey" longtext NOT NULL,
"privatevkey" longtext NOT NULL,
"lovelace" bigint NOT NULL DEFAULT '0',
"addressblocked" tinyint(1) NOT NULL DEFAULT '0',
"blockcounter" int NOT NULL DEFAULT '0',
"salt" varchar(255) NOT NULL,
"lasttxhash" varchar(255) DEFAULT NULL,
"lasttxdate" datetime DEFAULT NULL,
"reservationtoken" varchar(255) DEFAULT NULL,
"coin" enum('ADA','SOL','APT','ETH','MATIC','HBAR','BTC') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'ADA',
"seed" text,
"lastcheckforutxo" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY ("id")
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for airdrops
-- ----------------------------
DROP TABLE IF EXISTS `airdrops`;
CREATE TABLE "airdrops" (
"id" int NOT NULL AUTO_INCREMENT,
"nftproject_id" int NOT NULL,
"created" datetime NOT NULL,
"mintandsend_id" int DEFAULT NULL,
"message" varchar(255) DEFAULT NULL,
"recevieraddress" varchar(255) NOT NULL,
"uid" varchar(255) NOT NULL,
"nft_id" int DEFAULT NULL,
PRIMARY KEY ("id"),
KEY "airdrops_nftprojects" ("nftproject_id"),
KEY "airdrops_mintandsend" ("mintandsend_id"),
KEY "airdrops_uid" ("uid"),
KEY "airdrops_nfts" ("nft_id"),
CONSTRAINT "airdrops_mintandsend" FOREIGN KEY ("mintandsend_id") REFERENCES "mintandsend" ("id") ON DELETE SET NULL,
CONSTRAINT "airdrops_nftprojects" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE CASCADE,
CONSTRAINT "airdrops_nfts" FOREIGN KEY ("nft_id") REFERENCES "nfts" ("id") ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=98928 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for apikeyaccess
-- ----------------------------
DROP TABLE IF EXISTS `apikeyaccess`;
CREATE TABLE "apikeyaccess" (
"id" int NOT NULL AUTO_INCREMENT,
"apikey_id" int NOT NULL,
"accessfrom" varchar(255) NOT NULL,
"state" enum('allowed','forbidden') NOT NULL,
"description" varchar(255) NOT NULL DEFAULT '',
"order" int NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "apikeyaccess_apikeys" ("apikey_id") USING BTREE,
CONSTRAINT "apikeyaccess_apikeys" FOREIGN KEY ("apikey_id") REFERENCES "apikeys" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=632 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for apikeys
-- ----------------------------
DROP TABLE IF EXISTS `apikeys`;
CREATE TABLE "apikeys" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL DEFAULT '0',
"apikeyhash" varchar(255) NOT NULL,
"created" datetime NOT NULL,
"expiration" datetime NOT NULL,
"state" enum('active','revoked','deleted') DEFAULT NULL,
"purchaserandomnft" tinyint(1) DEFAULT NULL,
"uploadnft" tinyint(1) DEFAULT NULL,
"listnft" tinyint(1) DEFAULT NULL,
"makepayouts" tinyint(1) DEFAULT NULL,
"comment" varchar(255) DEFAULT NULL,
"purchasespecificnft" tinyint(1) DEFAULT NULL,
"checkaddresses" tinyint(1) DEFAULT NULL,
"createprojects" tinyint(1) DEFAULT NULL,
"apikeystartandend" varchar(255) DEFAULT NULL,
"listprojects" tinyint(1) DEFAULT NULL,
"walletvalidation" tinyint(1) DEFAULT NULL,
"paymenttransactions" tinyint(1) DEFAULT NULL,
PRIMARY KEY ("id") USING BTREE,
UNIQUE KEY "apikey" ("apikeyhash") USING BTREE,
KEY "apikeys_customers" ("customer_id") USING BTREE,
CONSTRAINT "apikeys_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=4867 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for apilogs
-- ----------------------------
DROP TABLE IF EXISTS `apilogs`;
CREATE TABLE "apilogs" (
"id" int NOT NULL AUTO_INCREMENT,
"nftproject_id" int NOT NULL,
"apifunction" enum('reservenftrandom','reservenftspecific','mintandsend','mintandsign','checkaddress') NOT NULL,
"year" int NOT NULL,
"month" int NOT NULL,
"day" int NOT NULL,
"hour" int NOT NULL,
"minute" int NOT NULL,
"ratelimtexceed" int NOT NULL DEFAULT '0',
"apicalls" int NOT NULL DEFAULT '0',
PRIMARY KEY ("id"),
UNIQUE KEY "apilog1" ("year","month","day","hour","minute","nftproject_id"),
KEY "apilogs_projects" ("nftproject_id"),
CONSTRAINT "apilogs_projects" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for backgroundserver
-- ----------------------------
DROP TABLE IF EXISTS `backgroundserver`;
CREATE TABLE "backgroundserver" (
"id" int NOT NULL AUTO_INCREMENT,
"ipaddress" varchar(255) NOT NULL,
"url" varchar(255) NOT NULL DEFAULT '',
"name" varchar(255) NOT NULL,
"state" enum('active','notactive') DEFAULT NULL,
"checkpaymentaddresses" tinyint(1) NOT NULL DEFAULT '0',
"checkdoublepayments" tinyint(1) NOT NULL DEFAULT '0',
"checkpolicies" tinyint(1) NOT NULL DEFAULT '0',
"executedatabasecommands" tinyint(1) NOT NULL DEFAULT '0',
"checkforfreepaymentaddresses" tinyint(1) NOT NULL DEFAULT '0',
"checkcustomeraddresses" tinyint(1) NOT NULL DEFAULT '0',
"checkforpremintedaddresses" tinyint(1) NOT NULL DEFAULT '0',
"executepayoutrequests" tinyint(1) NOT NULL DEFAULT '0',
"checkfordoublepayments" tinyint(1) NOT NULL DEFAULT '0',
"checkforexpirednfts" tinyint(1) NOT NULL DEFAULT '0',
"checkforburningendpoints" tinyint(1) NOT NULL,
"checkprojectaddresses" tinyint(1) NOT NULL DEFAULT '0',
"checkmintandsend" tinyint(1) NOT NULL DEFAULT '0',
"checklegacyauctions" tinyint(1) NOT NULL DEFAULT '0',
"checklegacydirectsales" tinyint(1) NOT NULL DEFAULT '0',
"checknotificationqueue" tinyint(1) NOT NULL DEFAULT '0',
"executesubmissions" tinyint(1) NOT NULL DEFAULT '0',
"checkdecentralsubmits" tinyint(1) NOT NULL DEFAULT '0',
"checkroyaltysplitaddresses" tinyint(1) NOT NULL DEFAULT '0',
"checktransactionconfirmations" tinyint(1) NOT NULL DEFAULT '0',
"checkbuyinsmartcontractaddresses" tinyint(1) NOT NULL DEFAULT '0',
"checkcustomerchargeaddresses" tinyint(1) NOT NULL DEFAULT '0',
"stopserver" tinyint(1) NOT NULL DEFAULT '0',
"pauseserver" tinyint(1) NOT NULL DEFAULT '0',
"ratelimitperminute" int NOT NULL DEFAULT '0',
"mintxcheckdoublepayments" int NOT NULL DEFAULT '10',
"lastlifesign" datetime NOT NULL,
"runningversion" varchar(255) NOT NULL,
"nodeversion" varchar(255) NOT NULL,
"monitorthisserver" tinyint(1) NOT NULL DEFAULT '0',
"actualtask" varchar(255) DEFAULT NULL,
"checkvalidationaddresses" tinyint(1) NOT NULL DEFAULT '0',
"actualprojectid" int DEFAULT NULL,
"syncprogress" varchar(255) DEFAULT NULL,
"epoch" varchar(255) DEFAULT NULL,
"slot" varchar(255) DEFAULT NULL,
"block" varchar(255) DEFAULT NULL,
"era" varchar(255) DEFAULT NULL,
"operatingsystem" varchar(255) DEFAULT NULL,
"checkpaymentaddressessolana" tinyint(1) NOT NULL DEFAULT '0',
"checkmintandsendsolana" tinyint(1) NOT NULL DEFAULT '0',
"checkpoliciessolana" tinyint(1) NOT NULL DEFAULT '0',
"installedmemory" varchar(255) DEFAULT NULL,
"checkcustomeraddressessolana" tinyint(1) NOT NULL DEFAULT '0',
"checkrates" tinyint(1) NOT NULL DEFAULT '0',
"checkpaymentaddressescoin" varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
"checkmintandsendcoin" varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
"checkpoliciescoin" varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
"checkcustomeraddressescoin" varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
"digitaloceanserver" tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY ("id")
) ENGINE=InnoDB AUTO_INCREMENT=244 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for backgroundtaskslog
-- ----------------------------
DROP TABLE IF EXISTS `backgroundtaskslog`;
CREATE TABLE "backgroundtaskslog" (
"id" bigint NOT NULL AUTO_INCREMENT,
"logmessage" varchar(255) NOT NULL,
"created" datetime NOT NULL,
"additionaldata" longtext,
PRIMARY KEY ("id") USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1495954927 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for blockedipaddresses
-- ----------------------------
DROP TABLE IF EXISTS `blockedipaddresses`;
CREATE TABLE "blockedipaddresses" (
"id" int NOT NULL AUTO_INCREMENT,
"ipaddress" char(50) NOT NULL,
"blockeduntil" datetime NOT NULL,
"blockcounter" int NOT NULL,
PRIMARY KEY ("id"),
UNIQUE KEY "ipaddress" ("ipaddress")
) ENGINE=InnoDB AUTO_INCREMENT=7466 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for burnigendpoints
-- ----------------------------
DROP TABLE IF EXISTS `burnigendpoints`;
CREATE TABLE "burnigendpoints" (
"id" int NOT NULL AUTO_INCREMENT,
"nftproject_id" int NOT NULL,
"address" varchar(255) NOT NULL,
"privateskey" longtext NOT NULL,
"privatevkey" longtext NOT NULL,
"lovelace" bigint NOT NULL,
"salt" varchar(255) NOT NULL,
"validuntil" datetime NOT NULL,
"state" enum('active','notactive') NOT NULL DEFAULT 'active',
"fixnfts" tinyint(1) NOT NULL DEFAULT '0',
"shownotification" tinyint(1) NOT NULL DEFAULT '0',
"blockchain" enum('Cardano','Solana') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'Cardano',
PRIMARY KEY ("id"),
KEY "buningendpoints_nftprojects" ("nftproject_id"),
KEY "validuntil" ("validuntil"),
CONSTRAINT "buningendpoints_nftprojects" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=17182 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for buyoutsmartcontractaddresses
-- ----------------------------
DROP TABLE IF EXISTS `buyoutsmartcontractaddresses`;
CREATE TABLE "buyoutsmartcontractaddresses" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"address" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"skey" text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"vkey" text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"salt" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"lovelace" bigint NOT NULL,
"state" enum('active','payment_received','finished','expired','error','inprogress','refunded') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"expiredate" datetime NOT NULL,
"lockamount" bigint NOT NULL,
"outgoingtxhash" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
"smartcontracttxhash" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"logfile" text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
"transactionid" varchar(255) NOT NULL,
"receiveraddress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
"additionalamount" bigint NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "buyoutsmartcontractaddresses_customers" ("customer_id"),
CONSTRAINT "buyoutsmartcontractaddresses_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for buyoutsmartcontractaddresses_nfts
-- ----------------------------
DROP TABLE IF EXISTS `buyoutsmartcontractaddresses_nfts`;
CREATE TABLE "buyoutsmartcontractaddresses_nfts" (
"id" int NOT NULL AUTO_INCREMENT,
"buyoutsmartcontractaddresses_iid" int NOT NULL,
"tokennameinhex" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"policyid" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"tokencount" bigint NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "buyoutsmartcontractaddresses" ("buyoutsmartcontractaddresses_iid") USING BTREE,
CONSTRAINT "buyoutsmartcontractaddresses" FOREIGN KEY ("buyoutsmartcontractaddresses_iid") REFERENCES "buyoutsmartcontractaddresses" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for buyoutsmartcontractaddresses_receivers
-- ----------------------------
DROP TABLE IF EXISTS `buyoutsmartcontractaddresses_receivers`;
CREATE TABLE "buyoutsmartcontractaddresses_receivers" (
"id" int NOT NULL AUTO_INCREMENT,
"buyoutsmartcontractaddresses_id" int NOT NULL,
"receiveraddress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"lovelace" bigint NOT NULL,
"pkh" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "buyoutsmartcontractaddresses_2" ("buyoutsmartcontractaddresses_id") USING BTREE,
CONSTRAINT "buyoutsmartcontractaddresses_2" FOREIGN KEY ("buyoutsmartcontractaddresses_id") REFERENCES "buyoutsmartcontractaddresses" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for countedwhitelist
-- ----------------------------
DROP TABLE IF EXISTS `countedwhitelist`;
CREATE TABLE "countedwhitelist" (
"id" int NOT NULL AUTO_INCREMENT,
"saleconditions_id" int NOT NULL,
"address" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"stakeaddress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
"maxcount" bigint NOT NULL DEFAULT '1',
"created" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY ("id") USING BTREE,
KEY "countedwhitelist_saleconditions" ("saleconditions_id") USING BTREE,
CONSTRAINT "countedwhitelist_saleconditions" FOREIGN KEY ("saleconditions_id") REFERENCES "nftprojectsaleconditions" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=735565 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for countedwhitelistusedaddresses
-- ----------------------------
DROP TABLE IF EXISTS `countedwhitelistusedaddresses`;
CREATE TABLE "countedwhitelistusedaddresses" (
"id" int NOT NULL AUTO_INCREMENT,
"countedwhitelist_id" int NOT NULL,
"usedaddress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"originatoraddress" varchar(255) NOT NULL,
"transactionid" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"created" datetime NOT NULL,
"countnft" bigint NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "countedwhitelistusedaddresses_countedwhitelist" ("countedwhitelist_id") USING BTREE,
CONSTRAINT "countedwhitelistusedaddresses_countedwhitelist" FOREIGN KEY ("countedwhitelist_id") REFERENCES "countedwhitelist" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=32924 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for countries
-- ----------------------------
DROP TABLE IF EXISTS `countries`;
CREATE TABLE "countries" (
"id" int NOT NULL AUTO_INCREMENT,
"iso" char(2) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
"name" varchar(80) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
"nicename" varchar(80) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
"iso3" char(3) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
"numcode" smallint DEFAULT NULL,
"phonecode" int NOT NULL,
PRIMARY KEY ("id") USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=242 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for counttotal
-- ----------------------------
DROP TABLE IF EXISTS `counttotal`;
CREATE TABLE "counttotal" (
"counttotal" int NOT NULL,
PRIMARY KEY ("counttotal") USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for custodialwallets
-- ----------------------------
DROP TABLE IF EXISTS `custodialwallets`;
CREATE TABLE "custodialwallets" (
"id" int NOT NULL AUTO_INCREMENT,
"uid" varchar(255) NOT NULL,
"customer_id" int NOT NULL,
"walletname" varchar(255) NOT NULL,
"address" varchar(255) NOT NULL,
"skey" text NOT NULL,
"vkey" text NOT NULL,
"seedphrase" text NOT NULL,
"salt" varchar(255) NOT NULL,
"wallettype" enum('enterprise','base') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"created" datetime NOT NULL,
"lastcheckforutxo" datetime DEFAULT NULL,
"state" enum('active','blocked','notactive','deleted') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"pincode" varchar(255) NOT NULL,
PRIMARY KEY ("id"),
KEY "custodialwallets_customers" ("customer_id"),
CONSTRAINT "custodialwallets_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=834 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for customeraddresses
-- ----------------------------
DROP TABLE IF EXISTS `customeraddresses`;
CREATE TABLE "customeraddresses" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"address" varchar(255) NOT NULL,
"seedphrase" text,
"vkey" text,
"skey" text,
"blockchain" enum('Cardano','Solana') DEFAULT NULL,
"state" enum('active','notactive') DEFAULT NULL,
"lastchecked" datetime DEFAULT NULL,
"salt" varchar(255) NOT NULL,
PRIMARY KEY ("id"),
KEY "customeraddresses_customers" ("customer_id"),
CONSTRAINT "customeraddresses_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for customerlogins
-- ----------------------------
DROP TABLE IF EXISTS `customerlogins`;
CREATE TABLE "customerlogins" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"created" datetime NOT NULL,
"ipaddress" varchar(255) NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "customerlogins_customers" ("customer_id") USING BTREE,
CONSTRAINT "customerlogins_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=63540 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for customers
-- ----------------------------
DROP TABLE IF EXISTS `customers`;
CREATE TABLE "customers" (
"id" int NOT NULL AUTO_INCREMENT,
"email" varchar(255) NOT NULL,
"password" varchar(255) NOT NULL,
"salt" varchar(255) NOT NULL,
"company" varchar(255) DEFAULT NULL,
"firstname" varchar(255) DEFAULT NULL,
"lastname" varchar(255) DEFAULT NULL,
"street" varchar(255) DEFAULT NULL,
"zip" varchar(8) DEFAULT NULL,
"city" varchar(255) DEFAULT NULL,
"country_id" int NOT NULL,
"ustid" varchar(255) DEFAULT NULL,
"confirmationcode" varchar(255) DEFAULT NULL,
"state" enum('active','notactive','blocked','locked','deleted') NOT NULL,
"created" datetime NOT NULL,
"ipaddress" varchar(255) NOT NULL,
"failedlogon" int NOT NULL,
"twofactor" enum('none','sms','google') NOT NULL,
"mobilenumber" varchar(255) DEFAULT NULL,
"lockeduntil" datetime DEFAULT NULL,
"avatarid" int NOT NULL,
"pendingpassword" varchar(255) DEFAULT NULL,
"pendingpasswordcreated" datetime DEFAULT NULL,
"sendmailonlogon" tinyint(1) NOT NULL,
"sendmailonlogonfailure" tinyint(1) NOT NULL,
"sendmailonpayout" tinyint(1) NOT NULL,
"sendmailonnews" tinyint(1) NOT NULL,
"sendmailonservice" tinyint(1) NOT NULL,
"adaaddress" varchar(255) DEFAULT NULL,
"privatevkey" longtext,
"privateskey" longtext,
"lovelace" bigint DEFAULT NULL,
"addressblocked" tinyint(1) NOT NULL DEFAULT '0',
"blockcounter" int NOT NULL DEFAULT '0',
"sendmailonsale" tinyint(1) NOT NULL DEFAULT '0',
"defaultsettings_id" int NOT NULL DEFAULT '3',
"marketplacesettings_id" int NOT NULL DEFAULT '1',
"checkaddressalways" tinyint(1) NOT NULL DEFAULT '0',
"ftppassword" varchar(255) DEFAULT NULL,
"referal" varchar(255) DEFAULT NULL,
"checkaddresscount" int NOT NULL DEFAULT '0',
"lastcheckforutxo" datetime DEFAULT NULL,
"comments" longtext,
"twofactorenabled" datetime DEFAULT NULL,
"kycaccesstoken" varchar(255) DEFAULT NULL,
"kycprocessed" datetime DEFAULT NULL,
"kycstatus" varchar(255) DEFAULT NULL,
"checkkycstate" enum('always','untilgreen','never') NOT NULL DEFAULT 'untilgreen',
"showkycstate" tinyint(1) NOT NULL DEFAULT '1',
"showpayoutbutton" tinyint(1) NOT NULL DEFAULT '0',
"kycresultmessage" longtext,
"splitroyaltyaddressespercentage" int NOT NULL DEFAULT '200' COMMENT '200 = 2 percent',
"purchasedmints" int NOT NULL DEFAULT '0' COMMENT 'Will not used anymore - use newpurchasedmints now',
"defaultpromotion_id" int DEFAULT NULL,
"lasttxhash" varchar(255) DEFAULT NULL,
"stakevkey" text,
"stakeskey" text,
"internalaccount" tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Mark if this account is uses as internal account',
"chargemintandsendcostslovelace" bigint NOT NULL DEFAULT '0',
"connectedwallettype" varchar(255) DEFAULT NULL,
"connectedwalletchangeaddress" varchar(255) DEFAULT NULL,
"donotneedtolocktokens" tinyint(1) NOT NULL DEFAULT '0',
"kycprovider" varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT 'Yoti or IAMX',
"newpurchasedmints" float(12,2) NOT NULL DEFAULT '0.00' COMMENT 'New Mint Coupons with comma. So we can have also 0,5 mint coupons for an update',
"solanaseedphrase" text,
"solanapublickey" varchar(255) DEFAULT NULL,
"lamports" bigint NOT NULL DEFAULT '0',
"soladdressblocked" tinyint(1) NOT NULL DEFAULT '0',
"sollastcheckforutxo" datetime DEFAULT NULL,
"subcustomer_id" int DEFAULT NULL,
"subcustomerdescription" varchar(255) DEFAULT NULL,
"subcustomerexternalid" varchar(255) DEFAULT NULL,
"aptosaddress" varchar(255) DEFAULT NULL,
"aptosprivatekey" varchar(255) DEFAULT NULL,
"aptosseed" varchar(255) DEFAULT NULL,
"aptaddressblocked" tinyint(1) NOT NULL DEFAULT '0',
"aptlastcheckforutxo" datetime DEFAULT NULL,
"octas" bigint NOT NULL DEFAULT '0',
"two2falogin" tinyint(1) NOT NULL DEFAULT '1',
"two2facreatewallet" tinyint(1) NOT NULL DEFAULT '1',
"two2faexportkeys" tinyint(1) NOT NULL DEFAULT '1',
"two2fapaymentsmanagedwallets" tinyint(1) NOT NULL DEFAULT '1',
"two2fadeleteprojects" tinyint(1) NOT NULL DEFAULT '1',
"two2facreateapikey" tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY ("id") USING BTREE,
KEY "customers_countries" ("country_id") USING BTREE,
KEY "customers_settings" ("defaultsettings_id"),
KEY "customers_marketplacesettings" ("marketplacesettings_id"),
KEY "customers_promotions" ("defaultpromotion_id"),
KEY "customers_customers" ("subcustomer_id"),
CONSTRAINT "customers_countries" FOREIGN KEY ("country_id") REFERENCES "countries" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT "customers_customers" FOREIGN KEY ("subcustomer_id") REFERENCES "customers" ("id") ON DELETE RESTRICT,
CONSTRAINT "customers_marketplacesettings" FOREIGN KEY ("marketplacesettings_id") REFERENCES "smartcontractsmarketplacesettings" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT "customers_promotions" FOREIGN KEY ("defaultpromotion_id") REFERENCES "promotions" ("id") ON DELETE SET NULL,
CONSTRAINT "customers_settings" FOREIGN KEY ("defaultsettings_id") REFERENCES "settings" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=223365 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for customerwallets
-- ----------------------------
DROP TABLE IF EXISTS `customerwallets`;
CREATE TABLE "customerwallets" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"walletaddress" varchar(255) NOT NULL,
"created" datetime NOT NULL,
"state" enum('active','deleted','notactive') NOT NULL,
"ipaddress" varchar(255) DEFAULT NULL,
"comment" varchar(255) DEFAULT NULL,
"confirmationcode" varchar(255) DEFAULT NULL,
"confirmationvalid" datetime DEFAULT NULL,
"hash" varchar(255) DEFAULT NULL,
"confirmationdate" datetime DEFAULT NULL,
"cointype" enum('ADA','ETH','USDC','SOL','APT','HBAR','BTC') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'ADA',
PRIMARY KEY ("id") USING BTREE,
KEY "customerwallets_customers" ("customer_id") USING BTREE,
CONSTRAINT "customerwallets_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=13160 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for defaulttemplates
-- ----------------------------
DROP TABLE IF EXISTS `defaulttemplates`;
CREATE TABLE "defaulttemplates" (
"id" int NOT NULL AUTO_INCREMENT,
"template" longtext NOT NULL,
"description" varchar(255) NOT NULL,
PRIMARY KEY ("id") USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for digitalidentities
-- ----------------------------
DROP TABLE IF EXISTS `digitalidentities`;
CREATE TABLE "digitalidentities" (
"id" int NOT NULL AUTO_INCREMENT,
"nftproject_id" int NOT NULL,
"policyid" varchar(255) NOT NULL,
"created" datetime NOT NULL,
"state" enum('active','notactive','expired','tokencreated','didresultreceived','canceled','error') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"didprovider" enum('NMKR','IAMX') NOT NULL,
"didjsonresult" text,
"didresultreceived" datetime DEFAULT NULL,
"tokenjson" text,
"resultmessage" text,
"ipfshash" varchar(255) DEFAULT NULL,
PRIMARY KEY ("id"),
KEY "digitalidentities_projects" ("nftproject_id"),
KEY "digitalidentities_policyid" ("policyid"),
CONSTRAINT "digitalidentities_projects" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=534 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for directsales
-- ----------------------------
DROP TABLE IF EXISTS `directsales`;
CREATE TABLE "directsales" (
"id" int NOT NULL AUTO_INCREMENT,
"smartcontract_id" int NOT NULL,
"transactionid" varchar(255) NOT NULL,
"nftproject_id" int DEFAULT NULL,
"customer_id" int DEFAULT NULL,
"price" bigint NOT NULL,
"selleraddress" varchar(255) DEFAULT NULL,
"buyer" varchar(255) DEFAULT NULL,
"created" datetime NOT NULL,
"state" enum('deleted','prepared','waitingforbid','sold','canceled','readytosignbyseller','readytosignbybuyer','auctionexpired','waitingforsale','waitingforlocknft','submitted','confirmed','readytosignbysellercancel') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
"royaltyfeespercent" float(12,2) DEFAULT NULL,
"royaltyaddress" varchar(255) DEFAULT NULL,
"marketplacefeepercent" float(12,2) DEFAULT NULL,
"nmkrfeepercent" float(12,2) DEFAULT NULL,
"refererfeepercent" float(12,2) DEFAULT NULL,
"locknftstxinhashid" varchar(255) DEFAULT NULL,
"solddate" datetime DEFAULT NULL,
"lockamount" bigint NOT NULL DEFAULT '2000000',
"name" varchar(255) NOT NULL,
"nmkrpaylink" varchar(255) DEFAULT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "directsales_nftprojects" ("nftproject_id") USING BTREE,
KEY "directsales_customers" ("customer_id") USING BTREE,
KEY "directsales_smartcontracts" ("smartcontract_id") USING BTREE,
CONSTRAINT "directsales_ibfk_1" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT "directsales_ibfk_2" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT "directsales_ibfk_3" FOREIGN KEY ("smartcontract_id") REFERENCES "smartcontracts" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for directsales_nfts
-- ----------------------------
DROP TABLE IF EXISTS `directsales_nfts`;
CREATE TABLE "directsales_nfts" (
"id" int NOT NULL AUTO_INCREMENT,
"directsale_id" int NOT NULL,
"policyid" varchar(255) NOT NULL,
"tokennamehex" varchar(255) NOT NULL,
"ipfshash" varchar(255) NOT NULL,
"metadata" text,
"tokencount" bigint NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "directsales_nfts_directsales" ("directsale_id") USING BTREE,
CONSTRAINT "directsales_nfts_directsales" FOREIGN KEY ("directsale_id") REFERENCES "directsales" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for emailtemplates
-- ----------------------------
DROP TABLE IF EXISTS `emailtemplates`;
CREATE TABLE "emailtemplates" (
"id" int NOT NULL AUTO_INCREMENT,
"templatename" varchar(255) NOT NULL,
"language" varchar(2) NOT NULL,
"textemail" longtext,
"htmlemail" longtext,
"emailsubject" varchar(255) NOT NULL,
PRIMARY KEY ("id") USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for faq
-- ----------------------------
DROP TABLE IF EXISTS `faq`;
CREATE TABLE "faq" (
"id" int NOT NULL AUTO_INCREMENT,
"question" longtext NOT NULL,
"answer" longtext NOT NULL,
"language" varchar(2) NOT NULL,
"state" enum('active','notactive') NOT NULL,
"faqcategory_id" int NOT NULL,
PRIMARY KEY ("id"),
KEY "faq_faqcategories" ("faqcategory_id"),
CONSTRAINT "faq_faqcategories" FOREIGN KEY ("faqcategory_id") REFERENCES "faqcategories" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for faqcategories
-- ----------------------------
DROP TABLE IF EXISTS `faqcategories`;
CREATE TABLE "faqcategories" (
"id" int NOT NULL AUTO_INCREMENT,
"categoryname" varchar(255) NOT NULL,
"language" varchar(2) NOT NULL,
PRIMARY KEY ("id")
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for getaccesstokensuser
-- ----------------------------
DROP TABLE IF EXISTS `getaccesstokensuser`;
CREATE TABLE "getaccesstokensuser" (
"id" int NOT NULL AUTO_INCREMENT,
"friendlyname" varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
"secret" varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
"state" enum('active','notactive') CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
"customer_id" int DEFAULT NULL,
PRIMARY KEY ("id"),
UNIQUE KEY "secret" ("secret"),
KEY "getaccesstokensuser_customers" ("customer_id"),
CONSTRAINT "getaccesstokensuser_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for gettokensipaddresses
-- ----------------------------
DROP TABLE IF EXISTS `gettokensipaddresses`;
CREATE TABLE "gettokensipaddresses" (
"id" int NOT NULL AUTO_INCREMENT,
"ipaddress" varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
"friendlyname" varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
PRIMARY KEY ("id")
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for informationtexts
-- ----------------------------
DROP TABLE IF EXISTS `informationtexts`;
CREATE TABLE "informationtexts" (
"id" int NOT NULL AUTO_INCREMENT,
"informationtext" longtext NOT NULL,
"created" datetime NOT NULL,
"state" enum('active','notactive') DEFAULT NULL,
PRIMARY KEY ("id")
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for invoicedetails
-- ----------------------------
DROP TABLE IF EXISTS `invoicedetails`;
CREATE TABLE "invoicedetails" (
"id" int NOT NULL AUTO_INCREMENT,
"invoice_id" int NOT NULL,
"description" varchar(255) NOT NULL,
"count" int NOT NULL,
"pricesingleada" double(20,6) NOT NULL,
"pricesingleeur" double(20,2) NOT NULL,
"pricetotalada" double(20,6) NOT NULL,
"pricetotaleur" double(20,2) NOT NULL,
"averageadarate" double(20,6) NOT NULL,
"mintcostsada" double(20,6) NOT NULL DEFAULT '0.000000',
"mintcostseur" double(20,6) NOT NULL DEFAULT '0.000000',
PRIMARY KEY ("id"),
KEY "invoicedetails" ("invoice_id"),
CONSTRAINT "invoicedetails" FOREIGN KEY ("invoice_id") REFERENCES "invoices" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=226063 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for invoices
-- ----------------------------
DROP TABLE IF EXISTS `invoices`;
CREATE TABLE "invoices" (
"id" int NOT NULL AUTO_INCREMENT,
"invoiceno" int NOT NULL,
"customer_id" int NOT NULL,
"company" varchar(255) DEFAULT NULL,
"firstname" varchar(255) NOT NULL,
"lastname" varchar(255) NOT NULL,
"street" varchar(255) NOT NULL,
"zip" varchar(255) NOT NULL,
"city" varchar(255) NOT NULL,
"country_id" int NOT NULL,
"ustid" varchar(255) DEFAULT NULL,
"invoicedate" datetime NOT NULL,
"adarate" double(20,6) NOT NULL,
"netada" double(20,6) NOT NULL,
"neteur" double(20,2) NOT NULL,
"usteur" double(20,2) NOT NULL,
"grosseur" double(20,2) NOT NULL,
"discounteur" double(20,2) NOT NULL,
"discountpercent" double(12,2) NOT NULL,
"billingperiod" varchar(255) DEFAULT NULL,
"taxrate" double(12,2) NOT NULL,
PRIMARY KEY ("id"),
KEY "invoices_customers" ("customer_id"),
KEY "invoices_countries" ("country_id"),
CONSTRAINT "invoices_countries" FOREIGN KEY ("country_id") REFERENCES "countries" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT "invoices_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=14635 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for ip2location_db11
-- ----------------------------
DROP TABLE IF EXISTS `ip2location_db11`;
CREATE TABLE "ip2location_db11" (
"ip_from" int unsigned NOT NULL,
"ip_to" int unsigned NOT NULL,
"country_code" char(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
"country_name" varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
"region_name" varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
"city_name" varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
"latitude" double DEFAULT NULL,
"longitude" double DEFAULT NULL,
"zip_code" varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
"time_zone" varchar(8) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
PRIMARY KEY ("ip_from","ip_to"),
KEY "idx_ip_from" ("ip_from"),
KEY "idx_ip_to" ("ip_to"),
KEY "idx_ip_from_to" ("ip_from","ip_to")
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin;
-- ----------------------------
-- Table structure for ipfsuploads
-- ----------------------------
DROP TABLE IF EXISTS `ipfsuploads`;
CREATE TABLE "ipfsuploads" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"created" datetime NOT NULL,
"ipfshash" varchar(255) NOT NULL,
"mimetype" varchar(255) NOT NULL,
"name" varchar(255) NOT NULL,
"filesize" bigint NOT NULL DEFAULT '0',
PRIMARY KEY ("id"),
KEY "ipfsuploads_customers" ("customer_id"),
KEY "ipfsuploads_ipfshash" ("ipfshash","customer_id"),
CONSTRAINT "ipfsuploads_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=32956 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for kycmedia
-- ----------------------------
DROP TABLE IF EXISTS `kycmedia`;
CREATE TABLE "kycmedia" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"mimetype" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"documenttype" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"base64uri" longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci,
"content" binary(1) DEFAULT NULL,
"contenttext" text,
PRIMARY KEY ("id") USING BTREE,
KEY "kycmedia_customers" ("customer_id") USING BTREE,
CONSTRAINT "kycmedia_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=16646 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Table structure for legacyauctions
-- ----------------------------
DROP TABLE IF EXISTS `legacyauctions`;
CREATE TABLE "legacyauctions" (
"id" int NOT NULL AUTO_INCREMENT,
"auctionname" varchar(255) DEFAULT NULL,
"address" varchar(255) NOT NULL,
"skey" text NOT NULL,
"vkey" text NOT NULL,
"salt" varchar(255) NOT NULL,
"nftproject_id" int DEFAULT NULL,
"customer_id" int DEFAULT NULL,
"minbet" bigint NOT NULL,
"actualbet" bigint NOT NULL,
"runsuntil" datetime NOT NULL,
"selleraddress" varchar(255) DEFAULT NULL,
"highestbidder" varchar(255) DEFAULT NULL,
"created" datetime NOT NULL,
"state" enum('active','notactive','finished','ended','deleted','canceled','waitforlock') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Active=Address will monitored, Notactive=Adress not monitored, Finished=Auction finnished, but still monitoring, Ended=Auction finished, not any longer monitoring',
"royaltyfeespercent" float(12,2) DEFAULT NULL,
"royaltyaddress" varchar(255) DEFAULT NULL,
"marketplacefeepercent" float(12,2) DEFAULT NULL,
"locknftstxinhashid" varchar(255) DEFAULT NULL,
"uid" varchar(32) DEFAULT NULL,
"log" text,
PRIMARY KEY ("id") USING BTREE,
UNIQUE KEY "legacyauctions_uid" ("uid"),
KEY "legacyauctions_nftprojects" ("nftproject_id") USING BTREE,
KEY "legacyauctions_customers" ("customer_id"),
CONSTRAINT "legacyauctions_customers" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT "legacyauctions_nftprojects" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=391 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for legacyauctions_nfts
-- ----------------------------
DROP TABLE IF EXISTS `legacyauctions_nfts`;
CREATE TABLE "legacyauctions_nfts" (
"id" int NOT NULL AUTO_INCREMENT,
"legacyauction_id" int NOT NULL,
"policyid" varchar(255) NOT NULL,
"tokennamehex" varchar(255) NOT NULL,
"ipfshash" varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
"metadata" text,
"tokencount" bigint NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "legaceauctionsnfts_legacyauctions" ("legacyauction_id") USING BTREE,
CONSTRAINT "legaceauctionsnfts_legacyauctions" FOREIGN KEY ("legacyauction_id") REFERENCES "legacyauctions" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for legacyauctionshistory
-- ----------------------------
DROP TABLE IF EXISTS `legacyauctionshistory`;
CREATE TABLE "legacyauctionshistory" (
"id" int NOT NULL AUTO_INCREMENT,
"legacyauction_id" int NOT NULL,
"txhash" varchar(255) NOT NULL,
"senderaddress" varchar(255) NOT NULL,
"bidamount" bigint NOT NULL,
"created" datetime NOT NULL,
"state" enum('seller','outbid','invalid','expired','buyer') NOT NULL,
"returntxhash" varchar(255) DEFAULT NULL,
PRIMARY KEY ("id"),
KEY "legacyauctionshistory_legcyauctions" ("legacyauction_id"),
CONSTRAINT "legacyauctionshistory_legcyauctions" FOREIGN KEY ("legacyauction_id") REFERENCES "legacyauctions" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=415 DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for legacydirectsales
-- ----------------------------
DROP TABLE IF EXISTS `legacydirectsales`;
CREATE TABLE "legacydirectsales" (
"id" int NOT NULL AUTO_INCREMENT,
"address" varchar(255) NOT NULL,
"skey" text NOT NULL,
"vkey" text NOT NULL,
"salt" varchar(255) NOT NULL,
"nftproject_id" int DEFAULT NULL,
"customer_id" int DEFAULT NULL,
"price" bigint NOT NULL,
"selleraddress" varchar(255) DEFAULT NULL,
"buyer" varchar(255) DEFAULT NULL,
"created" datetime NOT NULL,
"state" enum('active','notactive','finished','ended') NOT NULL COMMENT 'Active=Address will monitored, Notactive=Adress not monitored, Finished=Auction finnished, but still monitoring, Ended=Auction finished, not any longer monitoring',
"royaltyfeespercent" float(12,2) DEFAULT NULL,
"royaltyaddress" varchar(255) DEFAULT NULL,
"marketplacefeepercent" float(12,2) DEFAULT NULL,
"locknftstxinhashid" varchar(255) DEFAULT NULL,
"solddate" datetime DEFAULT NULL,
"lockamount" bigint NOT NULL DEFAULT '2000000',
PRIMARY KEY ("id") USING BTREE,
KEY "legacyauctions_nftprojects" ("nftproject_id") USING BTREE,
KEY "legacyauctions_customers" ("customer_id") USING BTREE,
CONSTRAINT "legacydirectsales_ibfk_1" FOREIGN KEY ("customer_id") REFERENCES "customers" ("id") ON DELETE SET NULL ON UPDATE RESTRICT,
CONSTRAINT "legacydirectsales_ibfk_2" FOREIGN KEY ("nftproject_id") REFERENCES "nftprojects" ("id") ON DELETE SET NULL ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for legacydirectsales_nfts
-- ----------------------------
DROP TABLE IF EXISTS `legacydirectsales_nfts`;
CREATE TABLE "legacydirectsales_nfts" (
"id" int NOT NULL AUTO_INCREMENT,
"legacydirectsale_id" int NOT NULL,
"policyid" varchar(255) NOT NULL,
"tokennamehex" varchar(255) NOT NULL,
"ipfshash" varchar(255) NOT NULL,
"metadata" text,
"tokencount" bigint NOT NULL,
PRIMARY KEY ("id") USING BTREE,
KEY "legacydirectsales_nfts_legacy_directsales" ("legacydirectsale_id") USING BTREE,
CONSTRAINT "legacydirectsales_nfts_legacy_directsales" FOREIGN KEY ("legacydirectsale_id") REFERENCES "legacydirectsales" ("id") ON DELETE CASCADE ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-- ----------------------------
-- Table structure for lockedassets
-- ----------------------------
DROP TABLE IF EXISTS `lockedassets`;
CREATE TABLE "lockedassets" (
"id" int NOT NULL AUTO_INCREMENT,
"customer_id" int NOT NULL,
"created" datetime NOT NULL,
"changeaddress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"lockwalletpkh" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"lockassetaddress" varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
"lovelace" bigint NOT NULL,
"lockeduntil" datetime NOT NULL,
"policyscript" text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
"locktxid" varchar(255) NOT NULL,
"unlocked" datetime DEFAULT NULL,
"unlocktxid" varchar(255) DEFAULT NULL,
"walletname" varchar(255) DEFAULT NULL,
"confirmedlock" tinyint(1) DEFAULT NULL,