-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame_init.sql
2681 lines (2604 loc) · 330 KB
/
game_init.sql
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 : localhost
Source Server Type : MySQL
Source Server Version : 50733
Source Host : localhost:8001
Source Schema : game_init
Target Server Type : MySQL
Target Server Version : 50733
File Encoding : 65001
Date: 17/07/2021 23:36:49
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for caipiao_admingroup
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_admingroup`;
CREATE TABLE `caipiao_admingroup` (
`groupid` smallint(6) NOT NULL AUTO_INCREMENT,
`groupname` varchar(30) NOT NULL,
`level` smallint(6) NOT NULL,
PRIMARY KEY (`groupid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of caipiao_admingroup
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_admingroup` VALUES (1, '超级管理员', 1);
COMMIT;
-- ----------------------------
-- Table structure for caipiao_adminlog
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_adminlog`;
CREATE TABLE `caipiao_adminlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`username` char(60) NOT NULL,
`type` char(20) NOT NULL COMMENT 'login 登入,logout 登出,act 操作',
`info` varchar(60) NOT NULL,
`ip` char(20) NOT NULL,
`iparea` varchar(60) NOT NULL COMMENT 'ip地区',
`time` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `userid` (`userid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_adminloginerror
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_adminloginerror`;
CREATE TABLE `caipiao_adminloginerror` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` char(30) NOT NULL,
`ip` char(20) NOT NULL,
`time` int(11) NOT NULL,
`errornum` smallint(6) NOT NULL,
`locktime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_adminmember
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_adminmember`;
CREATE TABLE `caipiao_adminmember` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupid` smallint(6) NOT NULL,
`username` char(60) NOT NULL,
`email` char(60) NOT NULL,
`password` char(64) NOT NULL,
`safecode` mediumint(9) NOT NULL DEFAULT '1234',
`loginip` char(20) NOT NULL,
`iparea` char(20) NOT NULL,
`logintime` int(11) NOT NULL,
`islock` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `groupid` (`groupid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of caipiao_adminmember
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_adminmember` VALUES (1, 1, 'admin', '', 'MDAwMDAwMDAwML2Idt2F3bVqhs1tbQ', 123456, '172.17.0.1', '局域网', 1626435112, 0);
COMMIT;
-- ----------------------------
-- Table structure for caipiao_adminsession
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_adminsession`;
CREATE TABLE `caipiao_adminsession` (
`sid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`username` char(60) NOT NULL,
`sessionid` char(32) NOT NULL,
`ip` char(20) NOT NULL COMMENT '登录ip',
`time` int(11) NOT NULL COMMENT '登录时间',
PRIMARY KEY (`sid`) USING BTREE,
KEY `userid` (`userid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_agbetrecord
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_agbetrecord`;
CREATE TABLE `caipiao_agbetrecord` (
`AgID` int(11) NOT NULL AUTO_INCREMENT,
`DataType` varchar(25) DEFAULT NULL,
`BillNo` varchar(45) DEFAULT NULL,
`PlayerName` varchar(45) DEFAULT NULL,
`AgentCode` varchar(25) DEFAULT NULL,
`GameCode` varchar(35) DEFAULT NULL,
`NetAmount` decimal(10,0) DEFAULT NULL,
`BetTime` datetime DEFAULT NULL,
`GameType` varchar(15) DEFAULT NULL,
`BetAmount` decimal(10,0) DEFAULT NULL,
`ValidBetAmount` decimal(10,0) DEFAULT NULL,
`Flag` int(4) DEFAULT NULL,
`TableCode` varchar(15) DEFAULT NULL,
`LoginIP` varchar(255) DEFAULT NULL,
`RecalcuTime` datetime DEFAULT NULL,
`PlatformType` varchar(15) DEFAULT NULL,
`CreateDate` datetime DEFAULT NULL,
`Round` varchar(15) DEFAULT NULL,
`BeforeCredit` decimal(10,0) DEFAULT NULL,
PRIMARY KEY (`AgID`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_agentlink
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_agentlink`;
CREATE TABLE `caipiao_agentlink` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`username` char(60) NOT NULL,
`proxy` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1代理 0玩家',
`tpltype` tinyint(1) NOT NULL DEFAULT '0' COMMENT '模版类型 0默认',
`usenum` int(11) NOT NULL COMMENT '使用次数',
`okusenum` int(11) NOT NULL COMMENT '已经使用的次数',
`fandian` decimal(6,1) NOT NULL,
`oddtime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `uid` (`uid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_banklist
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_banklist`;
CREATE TABLE `caipiao_banklist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL COMMENT '会员ID',
`username` char(30) NOT NULL COMMENT '会员昵称',
`bankaddress` varchar(80) NOT NULL COMMENT '开户行地址',
`bankname` varchar(60) NOT NULL COMMENT '开户银行',
`bankcode` char(20) NOT NULL,
`bankbranch` varchar(80) NOT NULL COMMENT '开户网点',
`accountname` varchar(30) NOT NULL COMMENT '开户姓名',
`banknumber` varchar(22) NOT NULL COMMENT '银行卡号',
`isdefault` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1默认',
`state` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0审核中 1默认 2驳回',
`date` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `username` (`username`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='会员银行绑定表';
-- ----------------------------
-- Table structure for caipiao_bbbetrecord
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_bbbetrecord`;
CREATE TABLE `caipiao_bbbetrecord` (
`bbId` int(11) NOT NULL AUTO_INCREMENT,
`UserName` varchar(25) DEFAULT NULL,
`WagersID` varchar(35) DEFAULT NULL,
`WagersDate` datetime DEFAULT NULL,
`SerialID` varchar(35) DEFAULT NULL,
`RoundNo` varchar(25) DEFAULT NULL,
`GameType` varchar(25) DEFAULT NULL,
`WagerDetail` varchar(45) DEFAULT NULL,
`GameCode` varchar(25) DEFAULT NULL,
`Result` varchar(25) DEFAULT NULL,
`Card` varchar(25) DEFAULT NULL,
`BetAmount` decimal(10,0) DEFAULT NULL,
`Origin` varchar(15) DEFAULT NULL,
`Commissionable` decimal(10,0) DEFAULT NULL,
`Payoff` decimal(10,0) DEFAULT NULL,
`ExchangeRate` decimal(10,0) DEFAULT NULL,
PRIMARY KEY (`bbId`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_caipiao
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_caipiao`;
CREATE TABLE `caipiao_caipiao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`typeid` char(20) NOT NULL COMMENT '彩票分类(ssc、k3)',
`title` varchar(80) NOT NULL COMMENT '彩种名称',
`ftitle` varchar(180) NOT NULL COMMENT '彩种简介',
`firsttime` char(8) DEFAULT NULL,
`endtime` char(8) DEFAULT NULL,
`qishu` smallint(3) NOT NULL,
`name` char(30) NOT NULL COMMENT '彩种标示(唯一)',
`ftime` smallint(6) NOT NULL DEFAULT '120' COMMENT '停止投注间隔',
`isopen` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否开启',
`issys` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0第三方彩票 1系统彩票',
`closetime1` time NOT NULL DEFAULT '00:00:00',
`closetime2` time NOT NULL DEFAULT '00:00:00',
`expecttime` smallint(6) NOT NULL DEFAULT '1' COMMENT '多久1期 最少1分钟',
`iswh` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1维护',
`allsort` smallint(6) NOT NULL,
`listorder` smallint(6) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `typeid` (`typeid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=132 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of caipiao_caipiao
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_caipiao` VALUES (16, 'k3', '北京快3', '全天44期', '09:22:45', '23:42:45', 44, 'bjk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 2, 3);
INSERT INTO `caipiao_caipiao` VALUES (17, 'k3', '江苏快3', '全天41期', '08:50:30', '22:10:30', 41, 'jsk3', 5, 0, 0, '00:00:00', '00:00:00', 5, 0, 21, 2);
INSERT INTO `caipiao_caipiao` VALUES (18, 'k3', '湖北快3', '全天39期', '09:20:30', '22:00:30', 39, 'hubk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 50, 4);
INSERT INTO `caipiao_caipiao` VALUES (19, 'k3', '广西快3', '全天40期', '09:30:45', '22:30:45', 40, 'gxk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 100, 9);
INSERT INTO `caipiao_caipiao` VALUES (20, 'k3', '安徽快3', '全天40期', '08:50:50', '21:55:50', 40, 'ahk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 3, 11);
INSERT INTO `caipiao_caipiao` VALUES (21, 'k3', '上海快3', '全天41期', '08:58:00', '22:18:00', 41, 'shk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 102, 6);
INSERT INTO `caipiao_caipiao` VALUES (53, 'k3', '河北快3', '全天41期', '08:50:00', '22:10:00', 41, 'hebk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 40, 5);
INSERT INTO `caipiao_caipiao` VALUES (84, 'k3', '江西快3', '全天84期', '09:04:00', '22:54:00', 144, 'jxk3', 60, 0, 1, '00:00:00', '00:50:00', 10, 0, 100, 8);
INSERT INTO `caipiao_caipiao` VALUES (91, 'k3', '无敌快3', '1分钟1期', '00:00:00', '23:55:00', 717, 'f1k3', 20, 1, 1, '00:00:00', '23:50:00', 1, 0, 1, 1);
INSERT INTO `caipiao_caipiao` VALUES (92, 'k3', '幸运快3', '1分钟1期', '00:00:00', '23:30:00', 1439, 'f5k3', 10, 1, 1, '00:00:00', '23:59:00', 1, 0, 100, 10);
INSERT INTO `caipiao_caipiao` VALUES (93, 'k3', '吉林快3', '全天41期', '09:30:40', '23:50:40', 41, 'jlk3', 120, 1, 0, '00:00:00', '00:00:00', 0, 0, 20, 7);
INSERT INTO `caipiao_caipiao` VALUES (98, 'ssc', '天津时时彩', '全天42期', '09:20:30', '23:00:30', 42, 'tjssc', 120, 1, 0, '00:00:00', '00:00:00', 1, 0, 100, 3);
INSERT INTO `caipiao_caipiao` VALUES (99, 'ssc', '新疆时时彩', '全天48期', '10:20:30', '23:40:30', 48, 'xjssc', 120, 1, 0, '00:00:00', '00:00:00', 20, 0, 100, 2);
INSERT INTO `caipiao_caipiao` VALUES (100, 'ssc', '重庆时时彩', '全天59期', '07:30:45', '23:50:45', 59, 'cqssc', 180, 1, 0, '00:00:00', '00:00:00', 20, 0, 0, 1);
INSERT INTO `caipiao_caipiao` VALUES (102, 'pk10', '北京赛车', '全天44期', '09:30:40', '23:50:40', 44, 'bjpk10', 60, 1, 0, '00:00:00', '00:00:00', 20, 0, 5, 1);
INSERT INTO `caipiao_caipiao` VALUES (103, 'keno', '北京快乐8', '全天179期', '09:05:00', '23:55:00', 179, 'bjkeno', 60, 1, 0, '00:00:00', '00:00:00', 1, 0, 102, 1);
INSERT INTO `caipiao_caipiao` VALUES (104, 'x5', '广东11选5', '全天42期', '09:30:30', '23:10:30', 42, 'gd11x5', 120, 1, 0, '00:00:00', '00:00:00', 20, 0, 100, 1);
INSERT INTO `caipiao_caipiao` VALUES (105, 'x5', '上海11选5', '全天45期', '09:20:50', '23:40:50', 45, 'sh11x5', 120, 1, 0, '00:00:00', '00:00:00', 20, 0, 16, 2);
INSERT INTO `caipiao_caipiao` VALUES (107, 'x5', '江西11选5', '全天42期', '09:30:30', '23:10:30', 42, 'jx11x5', 120, 1, 0, '00:00:00', '00:00:00', 20, 0, 11, 4);
INSERT INTO `caipiao_caipiao` VALUES (108, 'dpc', '福彩3D', '全天一期', '21:15:00', '21:15:00', 1, 'fc3d', 600, 1, 0, '00:00:00', '00:00:00', 1, 0, 19, 1);
INSERT INTO `caipiao_caipiao` VALUES (109, 'dpc', '排列三', '全天一期', '20:30:00', '20:30:00', 1, 'pl3', 600, 1, 0, '00:00:00', '00:00:00', 1, 0, 17, 2);
INSERT INTO `caipiao_caipiao` VALUES (111, 'dpc', '极速3D', '5分钟1期', '', '', 180, 'df3d', 60, 1, 1, '08:30:00', '23:30:00', 5, 0, 18, 110);
INSERT INTO `caipiao_caipiao` VALUES (112, 'x5', '五分11选5', '5分钟1期', '', '', 180, 'df11x5', 30, 1, 1, '08:30:00', '23:30:00', 5, 0, 100, 112);
INSERT INTO `caipiao_caipiao` VALUES (113, 'keno', '二分快乐8', '2分钟1期', '', '', 420, 'dfkeno', 10, 1, 1, '08:30:00', '22:30:00', 2, 0, 15, 113);
INSERT INTO `caipiao_caipiao` VALUES (114, 'pk10', '幸运飞艇', '全天180期', '13:09:35', '23:59:35', 180, 'dfpk10', 10, 1, 1, '13:10:00', '04:00:00', 5, 0, 6, 114);
INSERT INTO `caipiao_caipiao` VALUES (116, 'lhc', '香港六合彩', '每周三期', '', '', 0, 'lhc', 300, 0, 0, '00:00:00', '00:00:00', 1, 1, 12, 115);
INSERT INTO `caipiao_caipiao` VALUES (117, 'lhc', '幸运六合彩', '2分钟1期', '', '', 420, 'dflhc', 10, 1, 1, '00:01:00', '23:58:00', 2, 0, 13, 117);
INSERT INTO `caipiao_caipiao` VALUES (121, 'ssc', '大富分分彩', '1分钟1期', '', '', 1350, 'yfssc', 10, 1, 1, '01:00:00', '23:30:00', 1, 0, 22, 121);
INSERT INTO `caipiao_caipiao` VALUES (122, 'ssc', '幸运二分彩', '2分钟一期', '', '', 675, 'efssc', 20, 1, 1, '01:00:00', '23:30:00', 2, 0, 10, 1);
INSERT INTO `caipiao_caipiao` VALUES (123, 'ssc', '幸运五分彩', '5分钟一期', '', '', 288, 'wfssc', 30, 1, 1, '00:00:00', '23:55:00', 5, 0, 9, 1);
INSERT INTO `caipiao_caipiao` VALUES (125, 'ssc', '腾讯分分彩', '1分钟1期', '00:00:00', '23:59:00', 1440, 'xtxssc', 10, 1, 0, '00:00:00', '23:59:00', 1, 0, 11, 1);
INSERT INTO `caipiao_caipiao` VALUES (130, 'pk10', '极速赛车', '5分钟1期', '00:00:00', '23:30:00', 288, 'xypk10', 10, 1, 1, '00:00:00', '23:55:00', 5, 0, 4, 1);
INSERT INTO `caipiao_caipiao` VALUES (131, 'ssc', '澳洲时时彩', '5分钟1期', '09:00:00', '23:58:00', 288, 'oldssc', 20, 1, 1, '00:00:00', '23:55:00', 5, 0, 8, 131);
COMMIT;
-- ----------------------------
-- Table structure for caipiao_caipiaotimes
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_caipiaotimes`;
CREATE TABLE `caipiao_caipiaotimes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(20) NOT NULL,
`expect` int(11) NOT NULL,
`starttime` time NOT NULL,
`stoptime` time NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `name` (`name`) USING BTREE,
KEY `expect` (`expect`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_category
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_category`;
CREATE TABLE `caipiao_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parentid` int(11) NOT NULL,
`catname` varchar(120) NOT NULL COMMENT '栏目名称',
`listorder` smallint(6) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='栏目管理';
-- ----------------------------
-- Records of caipiao_category
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_category` VALUES (29, 0, '帮助中心', 1);
INSERT INTO `caipiao_category` VALUES (30, 0, '网站介绍', 100);
INSERT INTO `caipiao_category` VALUES (33, 29, '帮助指南', 1);
INSERT INTO `caipiao_category` VALUES (34, 29, '安全问题', 2);
INSERT INTO `caipiao_category` VALUES (35, 29, '充值问题', 3);
INSERT INTO `caipiao_category` VALUES (36, 29, '购彩问题', 4);
INSERT INTO `caipiao_category` VALUES (37, 29, '提现问题', 5);
INSERT INTO `caipiao_category` VALUES (38, 29, '账户安全', 6);
INSERT INTO `caipiao_category` VALUES (39, 29, '玩法限制', 7);
INSERT INTO `caipiao_category` VALUES (40, 29, '快三技巧攻略', 8);
INSERT INTO `caipiao_category` VALUES (41, 0, '优惠活动', 200);
INSERT INTO `caipiao_category` VALUES (46, 29, '代理合作', 42);
COMMIT;
-- ----------------------------
-- Table structure for caipiao_chat_list
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_chat_list`;
CREATE TABLE `caipiao_chat_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text NOT NULL,
`uid` int(11) NOT NULL,
`create_at` int(11) NOT NULL,
`type` smallint(11) NOT NULL,
`name` varchar(50) NOT NULL,
`level` int(2) NOT NULL,
`head` varchar(50) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_commission
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_commission`;
CREATE TABLE `caipiao_commission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL COMMENT '代理人ID',
`username` varchar(255) NOT NULL,
`share_rate` int(5) NOT NULL COMMENT '合营比例',
`yesterday_balance` decimal(14,2) NOT NULL COMMENT '前一天所有下级会员的余额',
`balance` decimal(14,2) NOT NULL COMMENT '当前所有会员的余额',
`recharge` decimal(14,2) NOT NULL COMMENT '充值',
`withdraw` decimal(14,2) NOT NULL COMMENT '提现',
`commission` decimal(14,2) NOT NULL COMMENT '佣金',
`status` tinyint(1) NOT NULL COMMENT '0 冻结中;1已发放到余额',
`remarks` text COMMENT '备注',
`date` char(11) DEFAULT NULL COMMENT '结算日期',
`created_at` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='代理佣金结算';
-- ----------------------------
-- Table structure for caipiao_cp_game_order
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_cp_game_order`;
CREATE TABLE `caipiao_cp_game_order` (
`id` varchar(50) NOT NULL COMMENT '注单ID',
`game_type_id` varchar(10) DEFAULT NULL COMMENT '游戏ID',
`game_type_name` varchar(20) DEFAULT NULL COMMENT '游戏名称',
`round_id` varchar(50) DEFAULT NULL COMMENT '牌局ID',
`round_no` varchar(200) DEFAULT NULL COMMENT '牌局编号',
`table_code` varchar(20) DEFAULT NULL COMMENT '游戏桌号',
`platform_name` varchar(200) DEFAULT NULL COMMENT '厅名称',
`platform_id` varchar(100) DEFAULT NULL COMMENT '厅 id',
`series_id` bigint(20) DEFAULT NULL COMMENT '彩系id',
`series_name` varchar(200) DEFAULT NULL COMMENT '彩系名称',
`bet_amount` decimal(20,4) DEFAULT NULL COMMENT '投注额',
`valid_bet_amount` decimal(20,4) DEFAULT NULL COMMENT '有效投注额',
`net_amount` decimal(20,4) DEFAULT NULL COMMENT '输赢金额',
`pumping_amount` decimal(20,4) DEFAULT NULL COMMENT '抽水',
`pay_amount` decimal(20,4) DEFAULT NULL COMMENT '派彩额',
`before_amount` decimal(20,4) DEFAULT NULL COMMENT '下注前余额',
`currency` varchar(10) DEFAULT NULL COMMENT '币种',
`create_at` bigint(20) DEFAULT NULL COMMENT '开始时间=当前该注单的投注时间 或该注单创建时间',
`net_at` bigint(20) DEFAULT NULL COMMENT '结束时间=当前注单被结算的时间',
`recalcu_at` bigint(20) DEFAULT NULL COMMENT '注单重新结算时间',
`updated_at` bigint(20) DEFAULT NULL COMMENT '更新时间 如果更新了盘口的状态时间',
`match_start_time` bigint(20) DEFAULT NULL COMMENT '比赛开始时间',
`cancel_at` bigint(20) DEFAULT NULL COMMENT '注单撤销时间',
`risk_unlock_at` bigint(20) DEFAULT NULL COMMENT '风控解锁时间',
`player_name` varchar(100) DEFAULT NULL COMMENT '玩家账号',
`nick_name` varchar(200) DEFAULT NULL COMMENT '昵称',
`player_id` varchar(20) DEFAULT NULL COMMENT '玩家编号',
`device_type` int(11) DEFAULT NULL COMMENT '设备类型',
`login_ip` varchar(20) DEFAULT NULL COMMENT '玩家IP',
`agent_code` varchar(20) DEFAULT NULL COMMENT '商户编号',
`agent_id` varchar(50) DEFAULT NULL COMMENT '商户ID',
`agent_name` varchar(500) DEFAULT NULL COMMENT '商户名称',
`parent_agent_id` varchar(50) DEFAULT NULL COMMENT '父商户ID',
`parent_agent_code` varchar(20) DEFAULT NULL COMMENT '父商户编号',
`bet_status` int(11) DEFAULT NULL COMMENT '注单状态',
`order_type` int(11) DEFAULT NULL COMMENT '注单类型',
`cancel_status` int(11) DEFAULT NULL COMMENT '撤单标志',
`cancel_type` int(11) DEFAULT NULL COMMENT '撤单类型',
`signature` varchar(100) DEFAULT NULL COMMENT '签名',
`table_name` varchar(100) DEFAULT NULL COMMENT '桌台名',
`is_tester` int(11) DEFAULT NULL COMMENT '是否正式账户',
`play_options_id` varchar(20) DEFAULT NULL COMMENT '投注项ID',
`play_option_name` text COMMENT '投注项名称',
`odds_value` varchar(500) DEFAULT NULL COMMENT '赔率',
`play_id` bigint(20) DEFAULT NULL COMMENT '玩法ID',
`play_name` varchar(50) DEFAULT NULL COMMENT '玩法名称',
`play_level_id` varchar(10) DEFAULT NULL COMMENT '玩法级ID',
`play_level` varchar(20) DEFAULT NULL COMMENT '玩法群名',
`data_source` varchar(5) DEFAULT NULL COMMENT '注单来源',
`bd_load_time` bigint(20) DEFAULT NULL COMMENT 'B端同步时间',
`bd_update_time` bigint(20) DEFAULT NULL COMMENT 'B端修改时间',
`ticket_plan_no` varchar(32) DEFAULT NULL COMMENT '奖期号',
`bet_count` bigint(20) DEFAULT NULL COMMENT '注数',
`bet_multiple` bigint(20) DEFAULT NULL COMMENT '倍数',
`bet_model` decimal(20,4) DEFAULT NULL COMMENT '投注模式:1, 0.1, 0.01, 0.001, 2, 0.2, 0.02, 0.002',
`bet_rebate` decimal(20,4) DEFAULT NULL COMMENT '投注返点',
`bet_prize` varchar(500) DEFAULT NULL COMMENT '奖金:多奖级逗号隔开',
`risk_status` int(11) DEFAULT NULL COMMENT '状态1待风控,2风控通过,3风控锁定,4风控解锁.',
`risk_unlock_by` varchar(50) DEFAULT NULL COMMENT '风控解锁人',
`single_game` int(11) DEFAULT NULL COMMENT '是否单式玩法:false:否',
`base_rate` varchar(500) DEFAULT NULL COMMENT '基准返奖率',
`bonus_reduce_rate` varchar(500) DEFAULT NULL COMMENT '返奖率下调幅度',
`directly_mode` int(11) DEFAULT NULL COMMENT '结算模式,false.代理,true.直客',
`member_rebate` decimal(20,4) DEFAULT NULL COMMENT '用户返点值',
`judge_result_cn` varchar(100) DEFAULT NULL COMMENT '开奖结果',
`win_count` bigint(20) DEFAULT NULL COMMENT '中奖注数',
`solo` int(11) DEFAULT NULL COMMENT '是否单挑 false: 否, true: 是',
`chase_id` varchar(50) DEFAULT NULL COMMENT '追号单id',
`chase_plan_id` varchar(50) DEFAULT NULL COMMENT '追号排期表ID',
`group_mode` int(11) DEFAULT NULL COMMENT '盘面1:标准盘,2:双面盘 3:特色.',
`series_type` int(11) DEFAULT NULL COMMENT '系列类型: false传统 true特色',
`cancel_by` varchar(100) DEFAULT NULL COMMENT '注单撤销人account',
`cancel_desc` varchar(200) DEFAULT NULL COMMENT '注单撤销说明',
`bet_num` text COMMENT '投注号码',
`dama_amount` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '已记录打码金额',
`dama_state` tinyint(1) NOT NULL DEFAULT '0' COMMENT '打码状态,已计入打码完成',
`details` text COMMENT '注单详情',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_czddh
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_czddh`;
CREATE TABLE `caipiao_czddh` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`paytype` char(20) NOT NULL COMMENT '支付宝 alipay QQ钱包 tenpay 微信:weixin',
`uid` int(11) NOT NULL,
`username` char(60) NOT NULL,
`trano` char(60) NOT NULL,
`threetrano` char(255) NOT NULL,
`amount` decimal(14,2) NOT NULL,
`oddtime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `trano` (`trano`) USING BTREE,
KEY `threetrano` (`threetrano`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='平台充值订单与第三方订单关系表';
-- ----------------------------
-- Table structure for caipiao_dailifandian
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_dailifandian`;
CREATE TABLE `caipiao_dailifandian` (
`id` mediumint(8) NOT NULL AUTO_INCREMENT,
`uid` mediumint(8) DEFAULT NULL,
`username` char(20) DEFAULT NULL,
`trano` char(20) DEFAULT NULL,
`amount` decimal(10,3) DEFAULT NULL,
`touzhujine` decimal(10,3) DEFAULT NULL,
`fandian` decimal(6,1) DEFAULT NULL,
`xiajiid` mediumint(8) DEFAULT NULL,
`xiajiuser` char(20) DEFAULT NULL COMMENT '//涓嬬骇',
`xiajifandian` decimal(6,1) DEFAULT NULL,
`shenhe` tinyint(2) DEFAULT '0' COMMENT '//1閫氳繃,0,绛夊緟,-1澶辫触',
`oddtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_dailifenhong
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_dailifenhong`;
CREATE TABLE `caipiao_dailifenhong` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trano` char(60) NOT NULL,
`uid` int(11) NOT NULL,
`username` char(20) NOT NULL,
`tzsumamount` decimal(14,4) NOT NULL,
`fjsumamount` decimal(14,4) NOT NULL,
`yingkui` decimal(14,4) NOT NULL,
`fanwei` char(60) NOT NULL,
`bili` char(10) NOT NULL,
`amount` decimal(14,4) NOT NULL,
`oddtime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `trano` (`trano`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_dailiyongjin
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_dailiyongjin`;
CREATE TABLE `caipiao_dailiyongjin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`listorder` smallint(6) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '1',
`addtime` int(11) NOT NULL,
`uid` int(11) NOT NULL COMMENT '会员ID',
`username` char(30) NOT NULL COMMENT '会员昵称',
`touzhuedu` decimal(10,2) NOT NULL COMMENT '下线流水',
`yongjinfw` char(30) NOT NULL COMMENT '佣金范围',
`amount` decimal(10,2) NOT NULL COMMENT '佣金金额',
`yjtype` char(10) NOT NULL COMMENT '佣金类型',
`oddtime` int(11) NOT NULL COMMENT '领取时间',
`shenhe` tinyint(4) NOT NULL COMMENT '审核状态',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_dj_game_order
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_dj_game_order`;
CREATE TABLE `caipiao_dj_game_order` (
`id` varchar(50) NOT NULL COMMENT '注单ID',
`game_type_id` varchar(50) DEFAULT NULL COMMENT '游戏ID',
`game_type_name` varchar(20) DEFAULT NULL COMMENT '游戏名称',
`round_id` varchar(50) DEFAULT NULL COMMENT '牌局ID',
`round_no` varchar(200) DEFAULT NULL COMMENT '牌局编号',
`table_code` varchar(20) DEFAULT NULL COMMENT '游戏桌号',
`platform_name` varchar(200) DEFAULT NULL COMMENT '厅名称',
`platform_id` varchar(100) DEFAULT NULL COMMENT '厅 id',
`series_id` bigint(20) DEFAULT NULL COMMENT '彩系id',
`series_name` varchar(200) DEFAULT NULL COMMENT '彩系名称',
`bet_amount` decimal(20,4) DEFAULT NULL COMMENT '投注额',
`valid_bet_amount` decimal(20,4) DEFAULT NULL COMMENT '有效投注额',
`net_amount` decimal(20,4) DEFAULT NULL COMMENT '输赢金额',
`pumping_amount` decimal(20,4) DEFAULT NULL COMMENT '抽水',
`pay_amount` decimal(20,4) DEFAULT NULL COMMENT '派彩额',
`before_amount` decimal(20,4) DEFAULT NULL COMMENT '下注前余额',
`currency` varchar(10) DEFAULT NULL COMMENT '币种',
`create_at` bigint(20) DEFAULT NULL COMMENT '开始时间=当前该注单的投注时间 或该注单创建时间',
`net_at` bigint(20) DEFAULT NULL COMMENT '结束时间=当前注单被结算的时间',
`recalcu_at` bigint(20) DEFAULT NULL COMMENT '注单重新结算时间',
`updated_at` bigint(20) DEFAULT NULL COMMENT '更新时间 如果更新了盘口的状态时间',
`match_start_time` bigint(20) DEFAULT NULL COMMENT '比赛开始时间',
`cancel_at` bigint(20) DEFAULT NULL COMMENT '注单撤销时间',
`risk_unlock_at` bigint(20) DEFAULT NULL COMMENT '风控解锁时间',
`player_name` varchar(100) DEFAULT NULL COMMENT '玩家账号',
`nick_name` varchar(200) DEFAULT NULL COMMENT '昵称',
`player_id` varchar(20) DEFAULT NULL COMMENT '玩家编号',
`device_type` int(11) DEFAULT NULL COMMENT '设备类型',
`login_ip` varchar(20) DEFAULT NULL COMMENT '玩家IP',
`agent_code` varchar(20) DEFAULT NULL COMMENT '商户编号',
`agent_id` varchar(50) DEFAULT NULL COMMENT '商户ID',
`agent_name` varchar(500) DEFAULT NULL COMMENT '商户名称',
`parent_agent_id` varchar(50) DEFAULT NULL COMMENT '父商户ID',
`parent_agent_code` varchar(20) DEFAULT NULL COMMENT '父商户编号',
`bet_status` int(11) DEFAULT NULL COMMENT '注单状态',
`order_type` int(11) DEFAULT NULL COMMENT '注单类型',
`cancel_status` int(11) DEFAULT NULL COMMENT '撤单标志',
`cancel_type` int(11) DEFAULT NULL COMMENT '撤单类型',
`signature` varchar(100) DEFAULT NULL COMMENT '签名',
`table_name` varchar(100) DEFAULT NULL COMMENT '桌台名',
`is_tester` int(11) DEFAULT NULL COMMENT '是否正式账户',
`play_options_id` varchar(20) DEFAULT NULL COMMENT '投注项ID',
`play_option_name` text COMMENT '投注项名称',
`odds_value` varchar(500) DEFAULT NULL COMMENT '赔率',
`play_id` bigint(20) DEFAULT NULL COMMENT '玩法ID',
`play_name` varchar(50) DEFAULT NULL COMMENT '玩法名称',
`play_level_id` varchar(10) DEFAULT NULL COMMENT '玩法级ID',
`play_level` varchar(20) DEFAULT NULL COMMENT '玩法群名',
`data_source` varchar(5) DEFAULT NULL COMMENT '注单来源',
`bd_load_time` bigint(20) DEFAULT NULL COMMENT 'B端同步时间',
`bd_update_time` bigint(20) DEFAULT NULL COMMENT 'B端修改时间',
`series_type` int(11) DEFAULT NULL COMMENT '"串关类型 1 普通注单 2:2 串 1\r\n3:3 串 1…"',
`round_id_dj` varchar(100) DEFAULT NULL COMMENT '游戏ID',
`tournament_id` varchar(100) DEFAULT NULL COMMENT '联赛ID',
`match_id` varchar(100) DEFAULT NULL COMMENT '比赛ID',
`match_type` int(11) DEFAULT NULL COMMENT '比赛类型',
`market_id` varchar(100) DEFAULT NULL COMMENT '盘口ID',
`market_cn_name` varchar(500) DEFAULT NULL COMMENT '盘口简称',
`team_name` varchar(200) DEFAULT NULL COMMENT '战队名称',
`round` int(11) DEFAULT NULL COMMENT '局数',
`is_live` int(11) DEFAULT NULL COMMENT '赛事阶段 1-初盘 2-滚盘',
`confirm_type` int(11) DEFAULT NULL COMMENT '"确认方式 1-自动确认 2-手动待\r\n确认 3-手动确认 4-手动拒绝"',
`settle_count` varchar(200) DEFAULT NULL COMMENT '结算统计',
`team_id` varchar(100) DEFAULT NULL COMMENT '战队ID',
`details` text,
`match_info` varchar(255) DEFAULT NULL COMMENT '赛事简称 map 结构.key 值为 联赛ID tournamentId',
`dama_amount` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '已记录打码金额',
`dama_state` tinyint(1) NOT NULL DEFAULT '0' COMMENT '打码状态,已计入打码完成',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_dy_game_order
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_dy_game_order`;
CREATE TABLE `caipiao_dy_game_order` (
`id` varchar(50) NOT NULL COMMENT '注单ID',
`game_type_id` varchar(10) DEFAULT NULL COMMENT '游戏ID',
`game_type_name` varchar(20) DEFAULT NULL COMMENT '游戏名称',
`round_id` varchar(50) DEFAULT NULL COMMENT '牌局ID',
`round_no` varchar(200) DEFAULT NULL COMMENT '牌局编号',
`table_code` varchar(20) DEFAULT NULL COMMENT '游戏桌号',
`platform_name` varchar(200) DEFAULT NULL COMMENT '厅名称',
`platform_id` varchar(100) DEFAULT NULL COMMENT '厅 id',
`series_id` bigint(20) DEFAULT NULL COMMENT '彩系id',
`series_name` varchar(200) DEFAULT NULL COMMENT '彩系名称',
`bet_amount` decimal(20,4) DEFAULT NULL COMMENT '投注额',
`valid_bet_amount` decimal(20,4) DEFAULT NULL COMMENT '有效投注额',
`net_amount` decimal(20,4) DEFAULT NULL COMMENT '输赢金额',
`pumping_amount` decimal(20,4) DEFAULT NULL COMMENT '抽水',
`pay_amount` decimal(20,4) DEFAULT NULL COMMENT '派彩额',
`before_amount` decimal(20,4) DEFAULT NULL COMMENT '下注前余额',
`currency` varchar(10) DEFAULT NULL COMMENT '币种',
`create_at` bigint(20) DEFAULT NULL COMMENT '开始时间=当前该注单的投注时间 或该注单创建时间',
`net_at` bigint(20) DEFAULT NULL COMMENT '结束时间=当前注单被结算的时间',
`recalcu_at` bigint(20) DEFAULT NULL COMMENT '注单重新结算时间',
`updated_at` bigint(20) DEFAULT NULL COMMENT '更新时间 如果更新了盘口的状态时间',
`match_start_time` bigint(20) DEFAULT NULL COMMENT '比赛开始时间',
`cancel_at` bigint(20) DEFAULT NULL COMMENT '注单撤销时间',
`risk_unlock_at` bigint(20) DEFAULT NULL COMMENT '风控解锁时间',
`player_name` varchar(100) DEFAULT NULL COMMENT '玩家账号',
`nick_name` varchar(200) DEFAULT NULL COMMENT '昵称',
`player_id` varchar(20) DEFAULT NULL COMMENT '玩家编号',
`device_type` int(11) DEFAULT NULL COMMENT '设备类型',
`login_ip` varchar(20) DEFAULT NULL COMMENT '玩家IP',
`agent_code` varchar(20) DEFAULT NULL COMMENT '商户编号',
`agent_id` varchar(50) DEFAULT NULL COMMENT '商户ID',
`agent_name` varchar(500) DEFAULT NULL COMMENT '商户名称',
`parent_agent_id` varchar(50) DEFAULT NULL COMMENT '父商户ID',
`parent_agent_code` varchar(20) DEFAULT NULL COMMENT '父商户编号',
`bet_status` int(11) DEFAULT NULL COMMENT '注单状态',
`order_type` int(11) DEFAULT NULL COMMENT '注单类型',
`cancel_status` int(11) DEFAULT NULL COMMENT '撤单标志',
`cancel_type` int(11) DEFAULT NULL COMMENT '撤单类型',
`signature` varchar(100) DEFAULT NULL COMMENT '签名',
`table_name` varchar(100) DEFAULT NULL COMMENT '桌台名',
`is_tester` int(11) DEFAULT NULL COMMENT '是否正式账户',
`play_options_id` varchar(20) DEFAULT NULL COMMENT '投注项ID',
`play_option_name` text COMMENT '投注项名称',
`odds_value` varchar(500) DEFAULT NULL COMMENT '赔率',
`play_id` bigint(20) DEFAULT NULL COMMENT '玩法ID',
`play_name` varchar(50) DEFAULT NULL COMMENT '玩法名称',
`play_level_id` varchar(10) DEFAULT NULL COMMENT '玩法级ID',
`play_level` varchar(20) DEFAULT NULL COMMENT '玩法群名',
`data_source` varchar(5) DEFAULT NULL COMMENT '注单来源',
`bd_load_time` bigint(20) DEFAULT NULL COMMENT 'B端同步时间',
`bd_update_time` bigint(20) DEFAULT NULL COMMENT 'B端修改时间',
`room_type` bigint(20) DEFAULT NULL COMMENT '房间类型',
`game_room` varchar(100) DEFAULT NULL COMMENT '游戏房间',
`game_flag` int(11) DEFAULT NULL COMMENT '游戏分类标识(0捕鱼类,1电子类)',
`dama_amount` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '已记录打码金额',
`dama_state` tinyint(1) NOT NULL DEFAULT '0' COMMENT '打码状态,已计入打码完成',
`details` text COMMENT '注单详情',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_fanshui
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_fanshui`;
CREATE TABLE `caipiao_fanshui` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trano` char(60) NOT NULL,
`listorder` smallint(6) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '1',
`addtime` int(11) NOT NULL,
`uid` int(11) NOT NULL COMMENT '会员ID',
`username` char(30) NOT NULL COMMENT '会员昵称',
`groupname` char(30) NOT NULL COMMENT '领取反水时会员等级',
`bili` char(10) NOT NULL COMMENT '反水比例',
`touzhuedu` decimal(20,2) NOT NULL COMMENT '流水额度',
`amount` decimal(20,2) NOT NULL COMMENT '反水金额',
`oddtime` int(11) NOT NULL COMMENT '领取时间',
`shenhe` tinyint(4) NOT NULL COMMENT '审核状态',
`yongjinfw` char(80) NOT NULL COMMENT '反水范围',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_fields
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_fields`;
CREATE TABLE `caipiao_fields` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(120) NOT NULL,
`tbname` char(30) NOT NULL,
`name` char(30) NOT NULL,
`fieldtype` char(20) NOT NULL COMMENT '字段类型',
`length` smallint(6) NOT NULL COMMENT '字段长度',
`istitle` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否标题字段',
`islist` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否列表显示',
`remark` varchar(60) NOT NULL COMMENT '备注',
`setting` text NOT NULL,
`listorder` smallint(6) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_fuddetail
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_fuddetail`;
CREATE TABLE `caipiao_fuddetail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trano` char(20) NOT NULL DEFAULT '' COMMENT '单号',
`uid` int(11) NOT NULL COMMENT '会员ID',
`username` char(30) NOT NULL COMMENT '会员昵称',
`type` char(30) NOT NULL COMMENT 'order代购 cancel撤单 reward返奖 commission返点 activity活动 transferPlatform平台转帐 backwater百家乐返水 backpoint百家乐返点 rollback后台撤单 editcommission修正手续费 editrecharge修正充值 editwithdraw修正提款 editactivity修正活动 downrecharge下级充值 upwithdraw上级提款 withdrawFailure提款失败',
`typename` varchar(60) NOT NULL COMMENT '类型名称',
`amount` decimal(14,2) NOT NULL COMMENT '金额',
`amountbefor` decimal(14,2) NOT NULL COMMENT '账变前金额',
`amountafter` decimal(14,2) NOT NULL COMMENT '账变后金额',
`oddtime` int(11) NOT NULL COMMENT '时间',
`remark` varchar(180) NOT NULL COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE,
KEY `uid` (`uid`) USING BTREE,
KEY `type` (`type`) USING BTREE,
KEY `trano` (`trano`) USING BTREE,
KEY `username` (`username`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='账户明细';
-- ----------------------------
-- Table structure for caipiao_gonggao
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_gonggao`;
CREATE TABLE `caipiao_gonggao` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`oddtime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of caipiao_gonggao
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_gonggao` VALUES (1, '欢迎来到钻石娱乐!', '\n欢迎来到钻石娱乐,钻石娱乐进行颠覆性技术升级,行业内视讯直播最低延迟,100%图像识别率,视频同步开牌等系列大幅度提升用户体验的技术革新。钻石娱乐,与您共度美好时光!', 1596252711);
COMMIT;
-- ----------------------------
-- Table structure for caipiao_jinjijiangli
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_jinjijiangli`;
CREATE TABLE `caipiao_jinjijiangli` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trano` char(60) NOT NULL COMMENT '//流水号',
`listorder` smallint(6) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT '1',
`addtime` int(11) NOT NULL,
`uid` mediumtext NOT NULL COMMENT '会员ID',
`username` char(20) NOT NULL COMMENT '会员名称',
`groupid` mediumtext NOT NULL COMMENT '会员组ID',
`beforegroupname` varchar(20) DEFAULT NULL COMMENT '//晋级前等级',
`groupname` varchar(20) NOT NULL COMMENT '会员组名称',
`jlje` decimal(10,0) NOT NULL COMMENT '晋级奖励金额',
`point` float NOT NULL COMMENT '积晋级时积分',
`oddtime` int(11) NOT NULL COMMENT '奖励时间',
`shenhe` tinyint(4) NOT NULL COMMENT '审核',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_kaijiang
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_kaijiang`;
CREATE TABLE `caipiao_kaijiang` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`addtime` int(11) NOT NULL,
`name` char(30) NOT NULL COMMENT '彩票标识',
`title` varchar(30) NOT NULL COMMENT '彩票名称',
`opencode` char(59) NOT NULL COMMENT '开奖号码',
`sourcecode` char(255) NOT NULL,
`remarks` char(255) NOT NULL COMMENT '第三方快乐彩结果',
`expect` char(40) NOT NULL COMMENT '期号',
`opentime` int(11) NOT NULL COMMENT '开奖时间',
`isdraw` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未开奖 1开奖',
`source` varchar(30) NOT NULL COMMENT '来源',
`drawtime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `name` (`name`) USING BTREE,
KEY `isdraw` (`isdraw`) USING BTREE,
KEY `expect` (`expect`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='开奖管理';
-- ----------------------------
-- Table structure for caipiao_kenolimitred
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_kenolimitred`;
CREATE TABLE `caipiao_kenolimitred` (
`id` tinyint(4) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`mixmoney` int(11) NOT NULL,
`maxmoney` bigint(20) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_linebanklist
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_linebanklist`;
CREATE TABLE `caipiao_linebanklist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bankname` varchar(60) NOT NULL COMMENT '银行名称',
`accountname` varchar(30) NOT NULL COMMENT '开户姓名',
`banknumber` char(22) NOT NULL COMMENT '开户卡号',
`banklogo` char(120) NOT NULL COMMENT '银行logo',
`listorder` smallint(6) NOT NULL,
`state` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1开启 0关闭',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_member
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_member`;
CREATE TABLE `caipiao_member` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parentid` int(11) NOT NULL DEFAULT '0' COMMENT '上线会员ID',
`groupid` smallint(6) NOT NULL DEFAULT '1',
`jinjijilu` tinyint(2) DEFAULT '1' COMMENT '//晋级记录',
`username` char(60) NOT NULL DEFAULT '',
`nickname` varchar(20) NOT NULL DEFAULT '' COMMENT '昵称',
`proxy` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1代理 0普通',
`isnb` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1内部会员 0正常',
`email` char(60) NOT NULL DEFAULT '',
`phone` char(12) NOT NULL DEFAULT '' COMMENT '手机号码',
`userbankname` varchar(30) NOT NULL DEFAULT '' COMMENT '银行真实姓名',
`password` char(32) NOT NULL DEFAULT '',
`tradepassword` char(32) NOT NULL DEFAULT '' COMMENT '资金密码',
`sex` tinyint(3) DEFAULT '1' COMMENT '//性别',
`balance` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '金额',
`yesterday_balance` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '昨天的结算金额',
`point` int(14) NOT NULL DEFAULT '0' COMMENT '积分',
`xima` decimal(14,2) NOT NULL DEFAULT '0.00' COMMENT '洗码余额 0可提现',
`fandian` decimal(6,1) NOT NULL DEFAULT '0.0' COMMENT '会员通用返点',
`tel` char(20) NOT NULL DEFAULT '',
`face` varchar(255) DEFAULT NULL,
`qq` char(20) NOT NULL DEFAULT '',
`loginip` char(20) NOT NULL DEFAULT '',
`iparea` char(11) NOT NULL DEFAULT '',
`regtime` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间',
`regip` char(20) NOT NULL DEFAULT '' COMMENT '注册IP',
`source` varchar(30) NOT NULL DEFAULT '' COMMENT '注册来源',
`logintime` int(11) NOT NULL DEFAULT '0',
`loginsource` char(20) NOT NULL DEFAULT '' COMMENT 'pc,mobile',
`onlinetime` int(11) NOT NULL DEFAULT '0' COMMENT '最后在线时间',
`islock` tinyint(1) NOT NULL DEFAULT '0',
`birthday` date DEFAULT NULL,
`zijin_num` varchar(2) NOT NULL DEFAULT '0',
`mlogin_num` varchar(2) NOT NULL DEFAULT '0',
`mzijin_num` varchar(2) NOT NULL DEFAULT '0',
`xiaoxi` int(10) NOT NULL DEFAULT '0' COMMENT '未读消息数',
`beizhu` varchar(800) NOT NULL DEFAULT '',
`agent_code` char(10) NOT NULL DEFAULT '' COMMENT '推广码',
`share_rate` int(10) NOT NULL DEFAULT '0' COMMENT '合营比例',
`return_water_date` char(10) NOT NULL DEFAULT '' COMMENT '返水日期',
`last_login_game` varchar(10) DEFAULT '',
`ob_balance` decimal(14,4) NOT NULL DEFAULT '0.0000',
PRIMARY KEY (`id`) USING BTREE,
KEY `groupid` (`groupid`) USING BTREE,
KEY `onlinetime` (`onlinetime`) USING BTREE,
KEY `isnb` (`isnb`) USING BTREE,
KEY `proxy` (`proxy`) USING BTREE,
KEY `username` (`username`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_member_third_game
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_member_third_game`;
CREATE TABLE `caipiao_member_third_game` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`game_code` varchar(6) NOT NULL,
`game_type` varchar(6) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of caipiao_member_third_game
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_member_third_game` VALUES (1, 1, 'ob', 'fish');
INSERT INTO `caipiao_member_third_game` VALUES (2, 3, 'ob', 'qp');
INSERT INTO `caipiao_member_third_game` VALUES (3, 3, 'ob', 'fish');
INSERT INTO `caipiao_member_third_game` VALUES (4, 3, 'ob', 'zr');
INSERT INTO `caipiao_member_third_game` VALUES (5, 3, 'ob', 'cp');
INSERT INTO `caipiao_member_third_game` VALUES (6, 4, 'ob', 'zr');
INSERT INTO `caipiao_member_third_game` VALUES (7, 3, 'ob', 'ty');
INSERT INTO `caipiao_member_third_game` VALUES (8, 3, 'ob', 'dj');
INSERT INTO `caipiao_member_third_game` VALUES (9, 1, 'ob', 'ty');
INSERT INTO `caipiao_member_third_game` VALUES (10, 1, 'ob', 'qp');
INSERT INTO `caipiao_member_third_game` VALUES (11, 2, 'ob', 'qp');
INSERT INTO `caipiao_member_third_game` VALUES (12, 2, 'ob', 'ty');
INSERT INTO `caipiao_member_third_game` VALUES (13, 2, 'ob', 'fish');
INSERT INTO `caipiao_member_third_game` VALUES (14, 5, 'ob', 'qp');
COMMIT;
-- ----------------------------
-- Table structure for caipiao_membergroup
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_membergroup`;
CREATE TABLE `caipiao_membergroup` (
`groupid` int(11) NOT NULL AUTO_INCREMENT,
`listorder` smallint(6) NOT NULL,
`groupstatus` tinyint(4) NOT NULL DEFAULT '1',
`addtime` int(11) NOT NULL,
`groupname` char(80) NOT NULL,
`isagent` tinyint(4) NOT NULL COMMENT '是否代理',
`isdefautreg` tinyint(4) NOT NULL COMMENT '注册默认',
`lowest` smallint(6) NOT NULL DEFAULT '2' COMMENT '最低投注',
`highest` int(11) NOT NULL COMMENT '最高投注',
`fanshui` char(255) NOT NULL COMMENT '0.1 ==返水0.1%',
`touhan` char(20) NOT NULL COMMENT '头衔',
`shengjiedu` char(30) NOT NULL COMMENT '输额度 | 隔开',
`rifanyonglv` char(255) NOT NULL COMMENT '日返佣:今天领昨天的;下线会员打码总额:10000-100000|1%; 多个记录使用 "#" 隔开',
`yuefanyonglv` char(255) NOT NULL COMMENT '月返佣:当月领上月的;下线会员打码总额:10000-100000|1%; 多个记录使用 "#" 隔开',
`jjje` float NOT NULL COMMENT '晋级金额',
`tiaoji` float NOT NULL COMMENT '跳级奖励',
`configs` longtext NOT NULL,
`level` smallint(6) NOT NULL,
PRIMARY KEY (`groupid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of caipiao_membergroup
-- ----------------------------
BEGIN;
INSERT INTO `caipiao_membergroup` VALUES (1, 0, 1, 1456912144, 'VIP1', 0, 1, 2, 10000, '100-2000|0.1;2000-10000|0.2;10000-200000|0.3', '农民', '0', '0', '', 0, 0, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (2, 1, 1, 1492393617, 'VIP2', 0, 0, 2, 0, '100-2000|0.2;2000-10000|0.3;10000-200000|0.4', '地主', '10', '0', '', 1, 1, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (3, 2, 1, 1492393701, 'VIP3', 0, 0, 2, 0, '100-2000|0.3;2000-10000|0.4;10000-200000|0.5', '知县', '200', '0', '', 5, 6, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (4, 3, 1, 1456974912, 'VIP4', 0, 0, 2, 0, '100-2000|0.4;2000-10000|0.5;10000-200000|0.6', '通判', '1000', '0', '', 10, 16, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (5, 4, 1, 1492395106, 'VIP5', 0, 0, 2, 0, '100-2000|0.5;2000-10000|0.5;10000-200000|0.5', '知府', '10000', '0', '', 58, 74, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (6, 5, 1, 1492395119, 'VIP6', 0, 0, 2, 0, '100-2000|0.6;2000-10000|0.7;10000-200000|0.8', '总督', '50000', '0', '', 318, 392, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (7, 6, 1, 1469113035, 'VIP7', 0, 0, 2, 0, '100-2000|0.6;2000-10000|0.7;10000-200000|0.8', '巡抚', '250000', '0', '', 1688, 2080, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (8, 7, 1, 1492394070, 'VIP8', 0, 0, 2, 0, '100-2000|0.7;2000-10000|0.8;10000-200000|0.9', '丞相', '1000000', '0', '', 6888, 8968, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (9, 8, 1, 1469113237, 'VIP9', 0, 0, 2, 0, '100-2000|1;2000-10000|1.1;10000-200000|1.2', '帝王', '5000000', '0', '', 38888, 47856, '', 0);
INSERT INTO `caipiao_membergroup` VALUES (10, 9, 1, 1469113531, '代理', 1, 1, 2, 0, '100-2000|0.1;2000-10000|0.5;10000-200000|1;200000-1000000|1.5', '阎罗王', '申请', '100-2000|0.8;2000-10000|1.2;10000-100000|1.5', '100-2000|0.8;2000-10000|1.2;100-100000|1.5', 0, 0, 'a:56:{s:11:\"min_k3ethfx\";i:0;s:11:\"max_k3ethfx\";i:0;s:11:\"min_k3ethdx\";i:0;s:11:\"max_k3ethdx\";i:0;s:12:\"min_k3ebthbz\";i:0;s:12:\"max_k3ebthbz\";i:0;s:11:\"min_k3sthdx\";i:0;s:11:\"max_k3sthdx\";i:0;s:11:\"min_k3sthtx\";i:0;s:11:\"max_k3sthtx\";i:0;s:12:\"min_k3sbthbz\";i:0;s:12:\"max_k3sbthbz\";i:0;s:11:\"min_k3slhtx\";i:0;s:11:\"max_k3slhtx\";i:0;s:11:\"min_k3slhdx\";i:0;s:11:\"max_k3slhdx\";i:0;s:9:\"min_k3hz3\";i:0;s:9:\"max_k3hz3\";i:0;s:9:\"min_k3hz4\";i:0;s:9:\"max_k3hz4\";i:0;s:9:\"min_k3hz5\";i:0;s:9:\"max_k3hz5\";i:0;s:9:\"min_k3hz6\";i:0;s:9:\"max_k3hz6\";i:0;s:9:\"min_k3hz7\";i:0;s:9:\"max_k3hz7\";i:0;s:9:\"min_k3hz8\";i:0;s:9:\"max_k3hz8\";i:0;s:9:\"min_k3hz9\";i:0;s:9:\"max_k3hz9\";i:0;s:10:\"min_k3hz10\";i:0;s:10:\"max_k3hz10\";i:0;s:10:\"min_k3hz11\";i:0;s:10:\"max_k3hz11\";i:0;s:10:\"min_k3hz12\";i:0;s:10:\"max_k3hz12\";i:0;s:10:\"min_k3hz13\";i:0;s:10:\"max_k3hz13\";i:0;s:10:\"min_k3hz14\";i:0;s:10:\"max_k3hz14\";i:0;s:10:\"min_k3hz15\";i:0;s:10:\"max_k3hz15\";i:0;s:10:\"min_k3hz16\";i:0;s:10:\"max_k3hz16\";i:0;s:10:\"min_k3hz17\";i:0;s:10:\"max_k3hz17\";i:0;s:10:\"min_k3hz18\";i:0;s:10:\"max_k3hz18\";i:0;s:11:\"min_k3hzbig\";i:0;s:11:\"max_k3hzbig\";i:0;s:13:\"min_k3hzsmall\";i:0;s:13:\"max_k3hzsmall\";i:0;s:11:\"min_k3hzodd\";i:0;s:11:\"max_k3hzodd\";i:0;s:12:\"min_k3hzeven\";i:0;s:12:\"max_k3hzeven\";i:0;}', 0);
INSERT INTO `caipiao_membergroup` VALUES (11, 11, 1, 0, '总代', 0, 0, 2, 0, '100-2000|0.2;2000-10000|1.0;10000-200000|1.5;200000-1000000|2.0', '玉帝', '', '', '', 0, 0, '', 0);
COMMIT;
-- ----------------------------
-- Table structure for caipiao_memberlog
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_memberlog`;
CREATE TABLE `caipiao_memberlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`username` char(60) NOT NULL,
`type` char(20) NOT NULL COMMENT 'login 登入,logout 登出,withdraw提款',
`info` varchar(60) NOT NULL,
`ip` char(20) NOT NULL,
`iparea` varchar(60) NOT NULL COMMENT 'ip地区',
`time` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `userid` (`userid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_memberloginerror
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_memberloginerror`;
CREATE TABLE `caipiao_memberloginerror` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` char(30) NOT NULL,
`ip` char(20) NOT NULL,
`time` int(11) NOT NULL,
`errornum` smallint(6) NOT NULL,
`locktime` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for caipiao_membersession
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_membersession`;
CREATE TABLE `caipiao_membersession` (
`sid` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`username` char(60) NOT NULL,
`sessionid` char(32) NOT NULL,
`ip` char(20) NOT NULL COMMENT '登录ip',
`time` int(11) NOT NULL COMMENT '登录时间',
PRIMARY KEY (`sid`) USING BTREE,
KEY `userid` (`userid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for caipiao_message
-- ----------------------------
DROP TABLE IF EXISTS `caipiao_message`;
CREATE TABLE `caipiao_message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sentid` int(11) NOT NULL COMMENT '发送人id 系统:system',
`sentname` char(20) NOT NULL COMMENT '发送人昵称 系统:system',
`senttitle` varchar(255) NOT NULL COMMENT '标题',
`sentcontext` text NOT NULL COMMENT '信件内容',
`receid` int(11) NOT NULL COMMENT '收件人id 系统:system',
`recename` char(20) NOT NULL COMMENT '收件人昵称 系统:system',
`senttime` int(11) NOT NULL COMMENT '发送时间',
`readtime` int(11) NOT NULL DEFAULT '0' COMMENT '读取时间',
`is_read` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已读',