forked from noikiy/weshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wesambofx.sql
executable file
·8838 lines (8392 loc) · 445 KB
/
wesambofx.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
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
DROP TABLE IF EXISTS `ims_account`;
CREATE TABLE IF NOT EXISTS `ims_account` (
`acid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`hash` varchar(8) NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`isconnect` tinyint(4) NOT NULL,
`isdeleted` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`acid`),
KEY `idx_uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
INSERT INTO `ims_account` (`acid`, `uniacid`, `hash`, `type`, `isconnect`, `isdeleted`) VALUES
(1, 1, 'uRr8qvQV', 1, 0, 0);
DROP TABLE IF EXISTS `ims_account_wechats`;
CREATE TABLE IF NOT EXISTS `ims_account_wechats` (
`acid` int(10) unsigned NOT NULL,
`uniacid` int(10) unsigned NOT NULL,
`token` varchar(32) NOT NULL,
`encodingaeskey` varchar(255) NOT NULL,
`level` tinyint(4) unsigned NOT NULL,
`name` varchar(30) NOT NULL,
`account` varchar(30) NOT NULL,
`original` varchar(50) NOT NULL,
`signature` varchar(100) NOT NULL,
`country` varchar(10) NOT NULL,
`province` varchar(3) NOT NULL,
`city` varchar(15) NOT NULL,
`username` varchar(30) NOT NULL,
`password` varchar(32) NOT NULL,
`lastupdate` int(10) unsigned NOT NULL,
`key` varchar(50) NOT NULL,
`secret` varchar(50) NOT NULL,
`styleid` int(10) unsigned NOT NULL,
`subscribeurl` varchar(120) NOT NULL,
`auth_refresh_token` varchar(255) NOT NULL,
PRIMARY KEY (`acid`),
KEY `idx_key` (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `ims_account_wechats` (`acid`, `uniacid`, `token`, `encodingaeskey`, `level`, `name`, `account`, `original`, `signature`, `country`, `province`, `city`, `username`, `password`, `lastupdate`, `key`, `secret`, `styleid`, `subscribeurl`, `auth_refresh_token`) VALUES
(1, 1, 'omJNpZEhZeHj1ZxFECKkP48B5VFbk1HP', '', 1, 'wesambo', '', '', '', '', '', '', '', '', 0, '', '', 1, '', '');
DROP TABLE IF EXISTS `ims_account_wxapp`;
CREATE TABLE IF NOT EXISTS `ims_account_wxapp` (
`acid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) NOT NULL,
`token` varchar(32) NOT NULL,
`encodingaeskey` varchar(43) NOT NULL,
`level` tinyint(4) NOT NULL,
`account` varchar(30) NOT NULL,
`original` varchar(50) NOT NULL,
`key` varchar(50) NOT NULL,
`secret` varchar(50) NOT NULL,
`name` varchar(30) NOT NULL,
PRIMARY KEY (`acid`),
KEY `uniacid` (`uniacid`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_clerks`;
CREATE TABLE IF NOT EXISTS `ims_activity_clerks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`storeid` int(10) unsigned NOT NULL,
`name` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`mobile` varchar(20) NOT NULL,
`openid` varchar(50) NOT NULL,
`nickname` varchar(30) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`) USING BTREE,
KEY `password` (`password`) USING BTREE,
KEY `openid` (`openid`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_clerk_menu`;
CREATE TABLE IF NOT EXISTS `ims_activity_clerk_menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`displayorder` int(4) NOT NULL,
`pid` int(6) NOT NULL,
`group_name` varchar(20) NOT NULL,
`title` varchar(20) NOT NULL,
`icon` varchar(50) NOT NULL,
`url` varchar(60) NOT NULL,
`type` varchar(20) NOT NULL,
`permission` varchar(50) NOT NULL,
`system` int(2) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
INSERT INTO `ims_activity_clerk_menu` (`id`, `uniacid`, `displayorder`, `pid`, `group_name`, `title`, `icon`, `url`, `type`, `permission`, `system`) VALUES
(1, 0, 0, 0, 'mc', '快捷交易', '', '', '', 'mc_manage', 1),
(2, 0, 0, 1, '', '积分充值', 'fa fa-money', 'credit1', 'modal', 'mc_credit1', 1),
(3, 0, 0, 1, '', '余额充值', 'fa fa-cny', 'credit2', 'modal', 'mc_credit2', 1),
(4, 0, 0, 1, '', '消费', 'fa fa-usd', 'consume', 'modal', 'mc_consume', 1),
(5, 0, 0, 1, '', '发放会员卡', 'fa fa-credit-card', 'card', 'modal', 'mc_card', 1),
(6, 0, 0, 0, 'stat', '数据统计', '', '', '', 'stat_manage', 1),
(7, 0, 0, 6, '', '积分统计', 'fa fa-bar-chart', './index.php?c=stat&a=credit1', 'url', 'stat_credit1', 1),
(8, 0, 0, 6, '', '余额统计', 'fa fa-bar-chart', './index.php?c=stat&a=credit2', 'url', 'stat_credit2', 1),
(9, 0, 0, 6, '', '现金消费统计', 'fa fa-bar-chart', './index.php?c=stat&a=cash', 'url', 'stat_cash', 1),
(10, 0, 0, 6, '', '会员卡统计', 'fa fa-bar-chart', './index.php?c=stat&a=card', 'url', 'stat_card', 1),
(11, 0, 0, 0, 'activity', '系统优惠券核销', '', '', '', 'activity_card_manage', 1),
(12, 0, 0, 11, '', '折扣券核销', 'fa fa-money', './index.php?c=activity&a=consume&do=display&type=1', 'url', 'activity_consume_coupon', 1),
(13, 0, 0, 11, '', '代金券核销', 'fa fa-money', './index.php?c=activity&a=consume&do=display&type=2', 'url', 'activity_consume_token', 1),
(14, 0, 0, 0, 'wechat', '微信卡券核销', '', '', '', 'wechat_card_manage', 1),
(15, 0, 0, 14, '', '卡券核销', 'fa fa-money', './index.php?c=wechat&a=consume', 'url', 'wechat_consume', 1),
(16, 0, 0, 6, '', '收银台收款统计', 'fa fa-bar-chart', './index.php?c=stat&a=paycenter', 'url', 'stat_paycenter', 1);
DROP TABLE IF EXISTS `ims_activity_coupon`;
CREATE TABLE IF NOT EXISTS `ims_activity_coupon` (
`couponid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`type` tinyint(4) NOT NULL,
`title` varchar(30) NOT NULL,
`couponsn` varchar(50) NOT NULL,
`description` text,
`discount` decimal(10,2) NOT NULL,
`condition` decimal(10,2) NOT NULL,
`starttime` int(10) unsigned NOT NULL,
`endtime` int(10) unsigned NOT NULL,
`limit` int(11) NOT NULL,
`dosage` int(11) unsigned NOT NULL,
`amount` int(11) unsigned NOT NULL,
`thumb` varchar(500) NOT NULL,
`credit` int(10) unsigned NOT NULL,
`use_module` tinyint(3) unsigned NOT NULL,
`credittype` varchar(20) NOT NULL,
PRIMARY KEY (`couponid`),
KEY `uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_coupon_allocation`;
CREATE TABLE IF NOT EXISTS `ims_activity_coupon_allocation` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`couponid` int(10) unsigned NOT NULL,
`groupid` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`,`couponid`,`groupid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_coupon_modules`;
CREATE TABLE IF NOT EXISTS `ims_activity_coupon_modules` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`couponid` int(10) unsigned NOT NULL,
`module` varchar(30) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`),
KEY `couponid` (`couponid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_coupon_record`;
CREATE TABLE IF NOT EXISTS `ims_activity_coupon_record` (
`recid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`code` varchar(50) NOT NULL,
`grantmodule` varchar(50) NOT NULL,
`granttime` int(10) unsigned NOT NULL,
`usemodule` varchar(50) NOT NULL,
`usetime` int(10) unsigned NOT NULL,
`status` tinyint(4) NOT NULL,
`operator` varchar(30) NOT NULL,
`clerk_id` int(10) unsigned NOT NULL,
`store_id` int(10) unsigned NOT NULL,
`clerk_type` tinyint(3) unsigned NOT NULL,
`remark` varchar(300) NOT NULL,
`couponid` int(10) unsigned NOT NULL,
PRIMARY KEY (`recid`),
KEY `couponid` (`uid`,`grantmodule`,`usemodule`,`status`),
KEY `uniacid` (`uniacid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_exchange`;
CREATE TABLE IF NOT EXISTS `ims_activity_exchange` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`description` text NOT NULL,
`thumb` varchar(500) NOT NULL,
`type` tinyint(1) unsigned NOT NULL,
`extra` varchar(3000) NOT NULL,
`credit` int(10) unsigned NOT NULL,
`credittype` varchar(10) NOT NULL,
`pretotal` int(11) NOT NULL,
`num` int(11) NOT NULL,
`total` int(10) unsigned NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`starttime` int(10) unsigned NOT NULL,
`endtime` int(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `extra` (`extra`(333)) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_exchange_trades`;
CREATE TABLE IF NOT EXISTS `ims_activity_exchange_trades` (
`tid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`exid` int(10) unsigned NOT NULL,
`type` int(10) unsigned NOT NULL,
`createtime` int(10) unsigned NOT NULL,
PRIMARY KEY (`tid`),
KEY `uniacid` (`uniacid`,`uid`,`exid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_exchange_trades_shipping`;
CREATE TABLE IF NOT EXISTS `ims_activity_exchange_trades_shipping` (
`tid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`exid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`status` tinyint(4) NOT NULL,
`createtime` int(10) unsigned NOT NULL,
`province` varchar(30) NOT NULL,
`city` varchar(30) NOT NULL,
`district` varchar(30) NOT NULL,
`address` varchar(255) NOT NULL,
`zipcode` varchar(6) NOT NULL,
`mobile` varchar(30) NOT NULL,
`name` varchar(30) NOT NULL,
PRIMARY KEY (`tid`),
KEY `uniacid` (`uniacid`),
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_modules`;
CREATE TABLE IF NOT EXISTS `ims_activity_modules` (
`mid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`exid` int(10) unsigned NOT NULL,
`module` varchar(50) NOT NULL,
`uid` int(10) unsigned NOT NULL,
`available` int(10) unsigned NOT NULL,
PRIMARY KEY (`mid`),
KEY `uniacid` (`uniacid`),
KEY `module` (`module`),
KEY `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_modules_record`;
CREATE TABLE IF NOT EXISTS `ims_activity_modules_record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`mid` int(10) unsigned NOT NULL,
`num` tinyint(3) NOT NULL,
`createtime` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `mid` (`mid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_activity_stores`;
CREATE TABLE IF NOT EXISTS `ims_activity_stores` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`business_name` varchar(50) NOT NULL,
`branch_name` varchar(50) NOT NULL,
`category` varchar(255) NOT NULL,
`province` varchar(15) NOT NULL,
`city` varchar(15) NOT NULL,
`district` varchar(15) NOT NULL,
`address` varchar(50) NOT NULL,
`longitude` varchar(15) NOT NULL,
`latitude` varchar(15) NOT NULL,
`telephone` varchar(20) NOT NULL,
`photo_list` varchar(10000) NOT NULL,
`avg_price` int(10) unsigned NOT NULL,
`recommend` varchar(255) NOT NULL,
`special` varchar(255) NOT NULL,
`introduction` varchar(255) NOT NULL,
`open_time` varchar(50) NOT NULL,
`location_id` int(10) unsigned NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`source` tinyint(3) unsigned NOT NULL,
`message` varchar(500) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`),
KEY `location_id` (`location_id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_article_category`;
CREATE TABLE IF NOT EXISTS `ims_article_category` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(30) NOT NULL,
`displayorder` tinyint(3) unsigned NOT NULL,
`type` varchar(15) NOT NULL,
PRIMARY KEY (`id`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_article_news`;
CREATE TABLE IF NOT EXISTS `ims_article_news` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cateid` int(10) unsigned NOT NULL,
`title` varchar(100) NOT NULL,
`content` mediumtext NOT NULL,
`thumb` varchar(255) NOT NULL,
`source` varchar(255) NOT NULL,
`author` varchar(50) NOT NULL,
`displayorder` tinyint(3) unsigned NOT NULL,
`is_display` tinyint(3) unsigned NOT NULL,
`is_show_home` tinyint(3) unsigned NOT NULL,
`createtime` int(10) unsigned NOT NULL,
`click` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `title` (`title`),
KEY `cateid` (`cateid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_article_notice`;
CREATE TABLE IF NOT EXISTS `ims_article_notice` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cateid` int(10) unsigned NOT NULL,
`title` varchar(100) NOT NULL,
`content` mediumtext NOT NULL,
`displayorder` tinyint(3) unsigned NOT NULL,
`is_display` tinyint(3) unsigned NOT NULL,
`is_show_home` tinyint(3) unsigned NOT NULL,
`createtime` int(10) unsigned NOT NULL,
`click` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `title` (`title`),
KEY `cateid` (`cateid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_article_unread_notice`;
CREATE TABLE IF NOT EXISTS `ims_article_unread_notice` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`notice_id` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`is_new` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`),
KEY `notice_id` (`notice_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_basic_reply`;
CREATE TABLE IF NOT EXISTS `ims_basic_reply` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rid` int(10) unsigned NOT NULL,
`content` varchar(1000) NOT NULL,
PRIMARY KEY (`id`),
KEY `rid` (`rid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_business`;
CREATE TABLE IF NOT EXISTS `ims_business` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`weid` int(10) unsigned NOT NULL,
`title` varchar(50) NOT NULL,
`thumb` varchar(255) NOT NULL,
`content` varchar(1000) NOT NULL,
`phone` varchar(15) NOT NULL,
`qq` varchar(15) NOT NULL,
`province` varchar(50) NOT NULL,
`city` varchar(50) NOT NULL,
`dist` varchar(50) NOT NULL,
`address` varchar(500) NOT NULL,
`lng` varchar(10) NOT NULL,
`lat` varchar(10) NOT NULL,
`industry1` varchar(10) NOT NULL,
`industry2` varchar(10) NOT NULL,
`createtime` int(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_lat_lng` (`lng`,`lat`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_attachment`;
CREATE TABLE IF NOT EXISTS `ims_core_attachment` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`filename` varchar(255) NOT NULL,
`attachment` varchar(255) NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`createtime` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
INSERT INTO `ims_core_attachment` (`id`, `uniacid`, `uid`, `filename`, `attachment`, `type`, `createtime`) VALUES
(1, 1, 1, 'logo2.png', 'images/global/TMUmIz29AZ95LUyz3iN9Qa93k3UCvZ.png', 1, 1468651633),
(2, 1, 1, 'logo.jpg', 'images/1/2017/07/P4lj4C3rj84uNxzGa8cZvhGZq89ga3.jpg', 1, 1501146453),
(3, 1, 1, 'logo.jpg', 'images/1/2017/07/WhDrr8BCMm5d8pZFZjJfEPU49DHu9e.jpg', 1, 1501146533);
DROP TABLE IF EXISTS `ims_core_cache`;
CREATE TABLE IF NOT EXISTS `ims_core_cache` (
`key` varchar(50) NOT NULL,
`value` longtext NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `ims_core_cache` (`key`, `value`) VALUES
('account:ticket', 's:0:"";'),
('userbasefields', 'a:45:{s:7:"uniacid";s:17:"同一公众号id";s:7:"groupid";s:8:"分组id";s:7:"credit1";s:6:"积分";s:7:"credit2";s:6:"余额";s:7:"credit3";s:19:"预留积分类型3";s:7:"credit4";s:19:"预留积分类型4";s:7:"credit5";s:19:"预留积分类型5";s:7:"credit6";s:19:"预留积分类型6";s:10:"createtime";s:12:"加入时间";s:6:"mobile";s:12:"手机号码";s:5:"email";s:12:"电子邮箱";s:8:"realname";s:12:"真实姓名";s:8:"nickname";s:6:"昵称";s:6:"avatar";s:6:"头像";s:2:"qq";s:5:"QQ号";s:6:"gender";s:6:"性别";s:5:"birth";s:6:"生日";s:13:"constellation";s:6:"星座";s:6:"zodiac";s:6:"生肖";s:9:"telephone";s:12:"固定电话";s:6:"idcard";s:12:"证件号码";s:9:"studentid";s:6:"学号";s:5:"grade";s:6:"班级";s:7:"address";s:6:"地址";s:7:"zipcode";s:6:"邮编";s:11:"nationality";s:6:"国籍";s:6:"reside";s:9:"居住地";s:14:"graduateschool";s:12:"毕业学校";s:7:"company";s:6:"公司";s:9:"education";s:6:"学历";s:10:"occupation";s:6:"职业";s:8:"position";s:6:"职位";s:7:"revenue";s:9:"年收入";s:15:"affectivestatus";s:12:"情感状态";s:10:"lookingfor";s:13:" 交友目的";s:9:"bloodtype";s:6:"血型";s:6:"height";s:6:"身高";s:6:"weight";s:6:"体重";s:6:"alipay";s:15:"支付宝帐号";s:3:"msn";s:3:"MSN";s:6:"taobao";s:12:"阿里旺旺";s:4:"site";s:6:"主页";s:3:"bio";s:12:"自我介绍";s:8:"interest";s:12:"兴趣爱好";s:8:"password";s:6:"密码";}'),
('usersfields', 'a:46:{s:8:"realname";s:12:"真实姓名";s:8:"nickname";s:6:"昵称";s:6:"avatar";s:6:"头像";s:2:"qq";s:5:"QQ号";s:6:"mobile";s:12:"手机号码";s:3:"vip";s:9:"VIP级别";s:6:"gender";s:6:"性别";s:9:"birthyear";s:12:"出生生日";s:13:"constellation";s:6:"星座";s:6:"zodiac";s:6:"生肖";s:9:"telephone";s:12:"固定电话";s:6:"idcard";s:12:"证件号码";s:9:"studentid";s:6:"学号";s:5:"grade";s:6:"班级";s:7:"address";s:12:"邮寄地址";s:7:"zipcode";s:6:"邮编";s:11:"nationality";s:6:"国籍";s:14:"resideprovince";s:12:"居住地址";s:14:"graduateschool";s:12:"毕业学校";s:7:"company";s:6:"公司";s:9:"education";s:6:"学历";s:10:"occupation";s:6:"职业";s:8:"position";s:6:"职位";s:7:"revenue";s:9:"年收入";s:15:"affectivestatus";s:12:"情感状态";s:10:"lookingfor";s:13:" 交友目的";s:9:"bloodtype";s:6:"血型";s:6:"height";s:6:"身高";s:6:"weight";s:6:"体重";s:6:"alipay";s:15:"支付宝帐号";s:3:"msn";s:3:"MSN";s:5:"email";s:12:"电子邮箱";s:6:"taobao";s:12:"阿里旺旺";s:4:"site";s:6:"主页";s:3:"bio";s:12:"自我介绍";s:8:"interest";s:12:"兴趣爱好";s:7:"uniacid";s:17:"同一公众号id";s:7:"groupid";s:8:"分组id";s:7:"credit1";s:6:"积分";s:7:"credit2";s:6:"余额";s:7:"credit3";s:19:"预留积分类型3";s:7:"credit4";s:19:"预留积分类型4";s:7:"credit5";s:19:"预留积分类型5";s:7:"credit6";s:19:"预留积分类型6";s:10:"createtime";s:12:"加入时间";s:8:"password";s:12:"用户密码";}'),
('setting', 'a:9:{s:9:"copyright";a:26:{s:6:"status";s:1:"0";s:10:"verifycode";s:1:"0";s:6:"reason";s:0:"";s:8:"sitename";s:21:"微上宝分销平台";s:3:"url";s:7:"http://";s:8:"statcode";s:0:"";s:10:"footerleft";s:14:"Copyright 2017";s:11:"footerright";s:19:"All Rights Reserved";s:4:"icon";s:0:"";s:5:"flogo";s:48:"images/global/ez83GNNaav63zt60detv60bZzRGnBV.png";s:6:"slides";s:216:"a:3:{i:0;s:58:"https://img.alicdn.com/tps/TB1pfG4IFXXXXc6XXXXXXXXXXXX.jpg";i:1;s:58:"https://img.alicdn.com/tps/TB1sXGYIFXXXXc5XpXXXXXXXXXX.jpg";i:2;s:58:"https://img.alicdn.com/tps/TB1h9xxIFXXXXbKXXXXXXXXXXXX.jpg";}";s:6:"notice";s:0:"";s:5:"blogo";s:48:"images/global/ez83GNNaav63zt60detv60bZzRGnBV.png";s:8:"baidumap";a:2:{s:3:"lng";s:0:"";s:3:"lat";s:0:"";}s:7:"company";s:24:"广州谷来信息科技";s:4:"skin";s:7:"default";s:14:"companyprofile";s:0:"";s:7:"address";s:27:"广东省广州市天河区";s:6:"person";s:9:"陈先生";s:5:"phone";s:12:"020-88888888";s:2:"qq";s:8:"88888888";s:5:"email";s:13:"[email protected]";s:8:"keywords";s:21:"微上宝分销平台";s:11:"description";s:21:"微上宝分销平台";s:12:"showhomepage";i:1;s:13:"leftmenufixed";i:0;}s:8:"authmode";i:1;s:5:"close";a:2:{s:6:"status";s:1:"0";s:6:"reason";s:0:"";}s:8:"register";a:4:{s:4:"open";i:1;s:6:"verify";i:0;s:4:"code";i:1;s:7:"groupid";i:1;}s:18:"module_receive_ban";a:0:{}s:5:"basic";a:1:{s:8:"template";s:9:"we8_white";}s:10:"module_ban";a:0:{}s:14:"module_upgrade";a:0:{}s:7:"cloudip";a:0:{}}'),
('we7:all_cloud_upgrade_module:', 'a:2:{s:6:"expire";i:1504622913;s:4:"data";a:0:{}}'),
('system_frame', 'a:4:{s:7:"account";a:5:{s:5:"title";s:9:"公众号";s:3:"url";s:41:"./index.php?c=home&a=welcome&do=platform&";s:7:"section";a:4:{s:13:"platform_plus";a:2:{s:5:"title";s:12:"增强功能";s:4:"menu";a:6:{s:14:"platform_reply";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"自动回复";s:3:"url";s:31:"./index.php?c=platform&a=reply&";s:15:"permission_name";s:14:"platform_reply";s:4:"icon";s:11:"wi wi-reply";s:12:"displayorder";i:6;s:2:"id";N;s:14:"sub_permission";a:3:{i:0;a:2:{s:5:"title";s:22:"关键字自动回复 ";s:15:"permission_name";s:14:"platform_reply";}i:1;a:2:{s:5:"title";s:25:"非关键字自动回复 ";s:15:"permission_name";s:22:"platform_reply_special";}i:2;a:2:{s:5:"title";s:19:"欢迎/默认回复";s:15:"permission_name";s:21:"platform_reply_system";}}}s:13:"platform_menu";a:9:{s:9:"is_system";i:1;s:10:"is_display";s:1:"1";s:5:"title";s:15:"自定义菜单";s:3:"url";s:30:"./index.php?c=platform&a=menu&";s:15:"permission_name";s:13:"platform_menu";s:4:"icon";s:16:"wi wi-custommenu";s:12:"displayorder";i:5;s:2:"id";N;s:14:"sub_permission";N;}s:11:"platform_qr";a:9:{s:9:"is_system";i:1;s:10:"is_display";s:1:"1";s:5:"title";s:15:"二维码管理";s:3:"url";s:28:"./index.php?c=platform&a=qr&";s:15:"permission_name";s:11:"platform_qr";s:4:"icon";s:12:"wi wi-qrcode";s:12:"displayorder";i:4;s:2:"id";N;s:14:"sub_permission";a:2:{i:0;a:2:{s:5:"title";s:9:"二维码";s:15:"permission_name";s:11:"platform_qr";}i:1;a:2:{s:5:"title";s:12:"转化链接";s:15:"permission_name";s:15:"platform_url2qr";}}}s:18:"platform_mass_task";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"定时群发";s:3:"url";s:30:"./index.php?c=platform&a=mass&";s:15:"permission_name";s:18:"platform_mass_task";s:4:"icon";s:13:"wi wi-crontab";s:12:"displayorder";i:3;s:2:"id";N;s:14:"sub_permission";N;}s:17:"platform_material";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:16:"素材/编辑器";s:3:"url";s:34:"./index.php?c=platform&a=material&";s:15:"permission_name";s:17:"platform_material";s:4:"icon";s:12:"wi wi-redact";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:13:"platform_site";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:16:"微官网-文章";s:3:"url";s:38:"./index.php?c=site&a=multi&do=display&";s:15:"permission_name";s:13:"platform_site";s:4:"icon";s:10:"wi wi-home";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";a:2:{i:0;a:2:{s:5:"title";s:13:"添加/编辑";s:15:"permission_name";s:18:"platform_site_post";}i:1;a:2:{s:5:"title";s:6:"删除";s:15:"permission_name";s:20:"platform_site_delete";}}}}}s:15:"platform_module";a:3:{s:5:"title";s:12:"应用模块";s:4:"menu";a:0:{}s:10:"is_display";b:1;}s:2:"mc";a:2:{s:5:"title";s:6:"粉丝";s:4:"menu";a:2:{s:7:"mc_fans";a:9:{s:9:"is_system";i:1;s:10:"is_display";s:1:"1";s:5:"title";s:6:"粉丝";s:3:"url";s:24:"./index.php?c=mc&a=fans&";s:15:"permission_name";s:7:"mc_fans";s:4:"icon";s:16:"wi wi-fansmanage";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:9:"mc_member";a:9:{s:9:"is_system";i:1;s:10:"is_display";s:1:"1";s:5:"title";s:6:"会员";s:3:"url";s:26:"./index.php?c=mc&a=member&";s:15:"permission_name";s:9:"mc_member";s:4:"icon";s:10:"wi wi-fans";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}s:7:"profile";a:2:{s:5:"title";s:6:"配置";s:4:"menu";a:1:{s:7:"profile";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"参数配置";s:3:"url";s:33:"./index.php?c=profile&a=passport&";s:15:"permission_name";s:15:"profile_setting";s:4:"icon";s:22:"wi wi-parameter-stting";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}}s:9:"is_system";b:1;s:10:"is_display";b:1;}s:5:"wxapp";a:5:{s:5:"title";s:9:"小程序";s:3:"url";s:38:"./index.php?c=wxapp&a=display&do=home&";s:7:"section";a:2:{s:12:"wxapp_module";a:3:{s:5:"title";s:6:"应用";s:4:"menu";a:0:{}s:10:"is_display";b:1;}s:20:"platform_manage_menu";a:2:{s:5:"title";s:6:"管理";s:4:"menu";a:3:{s:11:"module_link";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"数据同步";s:3:"url";s:53:"./index.php?c=wxapp&a=version&do=module_link_uniacid&";s:15:"permission_name";s:25:"wxapp_module_link_uniacid";s:4:"icon";s:18:"wi wi-data-synchro";s:12:"displayorder";i:3;s:2:"id";N;s:14:"sub_permission";N;}s:13:"wxapp_profile";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"支付参数";s:3:"url";s:30:"./index.php?c=wxapp&a=payment&";s:15:"permission_name";s:13:"wxapp_payment";s:4:"icon";s:16:"wi wi-appsetting";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:14:"front_download";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"小程序下载";s:3:"url";s:48:"./index.php?c=wxapp&a=version&do=front_download&";s:15:"permission_name";s:20:"wxapp_front_download";s:4:"icon";s:20:"wi wi-wxapp-download";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}}s:9:"is_system";b:1;s:10:"is_display";b:1;}s:6:"system";a:5:{s:5:"title";s:12:"系统管理";s:3:"url";s:39:"./index.php?c=home&a=welcome&do=system&";s:7:"section";a:6:{s:10:"wxplatform";a:2:{s:5:"title";s:9:"公众号";s:4:"menu";a:4:{s:14:"system_account";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:16:" 微信公众号";s:3:"url";s:45:"./index.php?c=account&a=manage&account_type=1";s:15:"permission_name";s:14:"system_account";s:4:"icon";s:12:"wi wi-wechat";s:12:"displayorder";i:4;s:2:"id";N;s:14:"sub_permission";a:6:{i:0;a:2:{s:5:"title";s:21:"公众号管理设置";s:15:"permission_name";s:21:"system_account_manage";}i:1;a:2:{s:5:"title";s:15:"添加公众号";s:15:"permission_name";s:19:"system_account_post";}i:2;a:2:{s:5:"title";s:15:"公众号停用";s:15:"permission_name";s:19:"system_account_stop";}i:3;a:2:{s:5:"title";s:18:"公众号回收站";s:15:"permission_name";s:22:"system_account_recycle";}i:4;a:2:{s:5:"title";s:15:"公众号删除";s:15:"permission_name";s:21:"system_account_delete";}i:5;a:2:{s:5:"title";s:15:"公众号恢复";s:15:"permission_name";s:22:"system_account_recover";}}}s:13:"system_module";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"公众号应用";s:3:"url";s:44:"./index.php?c=system&a=module&account_type=1";s:15:"permission_name";s:13:"system_module";s:4:"icon";s:14:"wi wi-wx-apply";s:12:"displayorder";i:3;s:2:"id";N;s:14:"sub_permission";N;}s:15:"system_template";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"微官网模板";s:3:"url";s:32:"./index.php?c=system&a=template&";s:15:"permission_name";s:15:"system_template";s:4:"icon";s:17:"wi wi-wx-template";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:15:"system_platform";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:19:" 微信开放平台";s:3:"url";s:32:"./index.php?c=system&a=platform&";s:15:"permission_name";s:15:"system_platform";s:4:"icon";s:20:"wi wi-exploitsetting";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}s:6:"module";a:2:{s:5:"title";s:9:"小程序";s:4:"menu";a:2:{s:12:"system_wxapp";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"微信小程序";s:3:"url";s:45:"./index.php?c=account&a=manage&account_type=4";s:15:"permission_name";s:12:"system_wxapp";s:4:"icon";s:11:"wi wi-wxapp";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:19:"system_module_wxapp";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"小程序应用";s:3:"url";s:44:"./index.php?c=system&a=module&account_type=4";s:15:"permission_name";s:19:"system_module_wxapp";s:4:"icon";s:17:"wi wi-wxapp-apply";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}s:4:"user";a:2:{s:5:"title";s:13:"帐户/用户";s:4:"menu";a:2:{s:9:"system_my";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"我的帐户";s:3:"url";s:29:"./index.php?c=user&a=profile&";s:15:"permission_name";s:9:"system_my";s:4:"icon";s:10:"wi wi-user";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:11:"system_user";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"用户管理";s:3:"url";s:29:"./index.php?c=user&a=display&";s:15:"permission_name";s:11:"system_user";s:4:"icon";s:16:"wi wi-user-group";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";a:6:{i:0;a:2:{s:5:"title";s:12:"编辑用户";s:15:"permission_name";s:16:"system_user_post";}i:1;a:2:{s:5:"title";s:12:"审核用户";s:15:"permission_name";s:17:"system_user_check";}i:2;a:2:{s:5:"title";s:15:"用户回收站";s:15:"permission_name";s:19:"system_user_recycle";}i:3;a:2:{s:5:"title";s:18:"用户属性设置";s:15:"permission_name";s:18:"system_user_fields";}i:4;a:2:{s:5:"title";s:31:"用户属性设置-编辑字段";s:15:"permission_name";s:23:"system_user_fields_post";}i:5;a:2:{s:5:"title";s:18:"用户注册设置";s:15:"permission_name";s:23:"system_user_registerset";}}}}}s:10:"permission";a:2:{s:5:"title";s:12:"权限管理";s:4:"menu";a:2:{s:19:"system_module_group";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"应用权限组";s:3:"url";s:36:"./index.php?c=system&a=module-group&";s:15:"permission_name";s:19:"system_module_group";s:4:"icon";s:21:"wi wi-appjurisdiction";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:17:"system_user_group";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"用户权限组";s:3:"url";s:27:"./index.php?c=user&a=group&";s:15:"permission_name";s:17:"system_user_group";s:4:"icon";s:22:"wi wi-userjurisdiction";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";a:2:{i:0;a:2:{s:5:"title";s:15:"编辑用户组";s:15:"permission_name";s:22:"system_user_group_post";}i:1;a:2:{s:5:"title";s:15:"删除用户组";s:15:"permission_name";s:21:"system_user_group_del";}}}}}s:7:"acticle";a:2:{s:5:"title";s:13:"文章/公告";s:4:"menu";a:2:{s:14:"system_article";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"文章管理";s:3:"url";s:29:"./index.php?c=article&a=news&";s:15:"permission_name";s:19:"system_article_news";s:4:"icon";s:13:"wi wi-article";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:21:"system_article_notice";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"公告管理";s:3:"url";s:31:"./index.php?c=article&a=notice&";s:15:"permission_name";s:21:"system_article_notice";s:4:"icon";s:12:"wi wi-notice";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}s:5:"cache";a:2:{s:5:"title";s:6:"缓存";s:4:"menu";a:1:{s:26:"system_setting_updatecache";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"更新缓存";s:3:"url";s:35:"./index.php?c=system&a=updatecache&";s:15:"permission_name";s:26:"system_setting_updatecache";s:4:"icon";s:12:"wi wi-update";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}}s:9:"is_system";b:1;s:10:"is_display";b:1;}s:4:"site";a:6:{s:5:"title";s:12:"站点管理";s:3:"url";s:28:"./index.php?c=system&a=site&";s:7:"section";a:2:{s:7:"setting";a:2:{s:5:"title";s:6:"设置";s:4:"menu";a:5:{s:19:"system_setting_site";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"站点设置";s:3:"url";s:28:"./index.php?c=system&a=site&";s:15:"permission_name";s:19:"system_setting_site";s:4:"icon";s:18:"wi wi-site-setting";s:12:"displayorder";i:5;s:2:"id";N;s:14:"sub_permission";N;}s:19:"system_setting_menu";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"菜单设置";s:3:"url";s:28:"./index.php?c=system&a=menu&";s:15:"permission_name";s:19:"system_setting_menu";s:4:"icon";s:18:"wi wi-menu-setting";s:12:"displayorder";i:4;s:2:"id";N;s:14:"sub_permission";N;}s:25:"system_setting_attachment";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"附件设置";s:3:"url";s:34:"./index.php?c=system&a=attachment&";s:15:"permission_name";s:25:"system_setting_attachment";s:4:"icon";s:16:"wi wi-attachment";s:12:"displayorder";i:3;s:2:"id";N;s:14:"sub_permission";N;}s:25:"system_setting_systeminfo";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"系统信息";s:3:"url";s:34:"./index.php?c=system&a=systeminfo&";s:15:"permission_name";s:25:"system_setting_systeminfo";s:4:"icon";s:17:"wi wi-system-info";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:19:"system_setting_logs";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"查看日志";s:3:"url";s:28:"./index.php?c=system&a=logs&";s:15:"permission_name";s:19:"system_setting_logs";s:4:"icon";s:9:"wi wi-log";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}s:7:"utility";a:2:{s:5:"title";s:12:"常用工具";s:4:"menu";a:5:{s:24:"system_utility_filecheck";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:18:"系统文件校验";s:3:"url";s:33:"./index.php?c=system&a=filecheck&";s:15:"permission_name";s:24:"system_utility_filecheck";s:4:"icon";s:10:"wi wi-file";s:12:"displayorder";i:5;s:2:"id";N;s:14:"sub_permission";N;}s:23:"system_utility_optimize";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"性能优化";s:3:"url";s:32:"./index.php?c=system&a=optimize&";s:15:"permission_name";s:23:"system_utility_optimize";s:4:"icon";s:14:"wi wi-optimize";s:12:"displayorder";i:4;s:2:"id";N;s:14:"sub_permission";N;}s:23:"system_utility_database";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:9:"数据库";s:3:"url";s:32:"./index.php?c=system&a=database&";s:15:"permission_name";s:23:"system_utility_database";s:4:"icon";s:9:"wi wi-sql";s:12:"displayorder";i:3;s:2:"id";N;s:14:"sub_permission";N;}s:19:"system_utility_scan";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:12:"木马查杀";s:3:"url";s:28:"./index.php?c=system&a=scan&";s:15:"permission_name";s:19:"system_utility_scan";s:4:"icon";s:12:"wi wi-safety";s:12:"displayorder";i:2;s:2:"id";N;s:14:"sub_permission";N;}s:18:"system_utility_bom";a:9:{s:9:"is_system";i:1;s:10:"is_display";i:1;s:5:"title";s:15:"检测文件BOM";s:3:"url";s:27:"./index.php?c=system&a=bom&";s:15:"permission_name";s:18:"system_utility_bom";s:4:"icon";s:9:"wi wi-bom";s:12:"displayorder";i:1;s:2:"id";N;s:14:"sub_permission";N;}}}}s:7:"founder";b:1;s:9:"is_system";b:1;s:10:"is_display";b:1;}}'),
('module_receive_enable', 'a:13:{s:5:"image";a:0:{}s:5:"voice";a:0:{}s:5:"video";a:0:{}s:10:"shortvideo";a:0:{}s:8:"location";a:0:{}s:4:"link";a:0:{}s:9:"subscribe";a:0:{}s:11:"unsubscribe";a:0:{}s:2:"qr";a:0:{}s:5:"trace";a:0:{}s:5:"click";a:0:{}s:4:"view";a:0:{}s:14:"merchant_order";a:0:{}}');
DROP TABLE IF EXISTS `ims_core_cron`;
CREATE TABLE IF NOT EXISTS `ims_core_cron` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cloudid` int(10) unsigned NOT NULL,
`module` varchar(50) NOT NULL,
`uniacid` int(10) unsigned NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`name` varchar(50) NOT NULL,
`filename` varchar(50) NOT NULL,
`lastruntime` int(10) unsigned NOT NULL,
`nextruntime` int(10) unsigned NOT NULL,
`weekday` tinyint(3) NOT NULL,
`day` tinyint(3) NOT NULL,
`hour` tinyint(3) NOT NULL,
`minute` varchar(255) NOT NULL,
`extra` varchar(5000) NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`createtime` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `createtime` (`createtime`),
KEY `nextruntime` (`nextruntime`),
KEY `uniacid` (`uniacid`),
KEY `cloudid` (`cloudid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_cron_record`;
CREATE TABLE IF NOT EXISTS `ims_core_cron_record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`module` varchar(50) NOT NULL,
`type` varchar(50) NOT NULL,
`tid` int(10) unsigned NOT NULL,
`note` varchar(500) NOT NULL,
`tag` varchar(5000) NOT NULL,
`createtime` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`),
KEY `tid` (`tid`),
KEY `module` (`module`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_menu`;
CREATE TABLE IF NOT EXISTS `ims_core_menu` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`pid` int(10) unsigned NOT NULL,
`title` varchar(20) NOT NULL,
`name` varchar(20) NOT NULL,
`url` varchar(255) NOT NULL,
`append_title` varchar(30) NOT NULL,
`append_url` varchar(255) NOT NULL,
`displayorder` tinyint(3) unsigned NOT NULL,
`type` varchar(15) NOT NULL,
`is_display` tinyint(3) unsigned NOT NULL,
`is_system` tinyint(3) unsigned NOT NULL,
`permission_name` varchar(50) NOT NULL,
`group_name` varchar(30) NOT NULL,
`icon` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=94 ;
INSERT INTO `ims_core_menu` (`id`, `pid`, `title`, `name`, `url`, `append_title`, `append_url`, `displayorder`, `type`, `is_display`, `is_system`, `permission_name`, `group_name`, `icon`) VALUES
(1, 0, '基础设置', 'platform', '', 'fa fa-cog', '', 0, 'url', 1, 1, '', '', ''),
(2, 1, '基本功能', 'platform', '', '', '', 0, 'url', 1, 1, 'platform_basic_function', '', ''),
(3, 2, '文字回复', 'platform', './index.php?c=platform&a=reply&m=basic', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=basic', 0, 'url', 1, 1, 'platform_reply_basic', '', ''),
(4, 2, '图文回复', 'platform', './index.php?c=platform&a=reply&m=news', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=news', 0, 'url', 1, 1, 'platform_reply_news', '', ''),
(5, 2, '音乐回复', 'platform', './index.php?c=platform&a=reply&m=music', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=music', 0, 'url', 1, 1, 'platform_reply_music', '', ''),
(6, 2, '图片回复', 'platform', './index.php?c=platform&a=reply&m=images', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=images', 0, 'url', 1, 1, 'platform_reply_images', '', ''),
(7, 2, '语音回复', 'platform', './index.php?c=platform&a=reply&m=voice', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=voice', 0, 'url', 1, 1, 'platform_reply_voice', '', ''),
(8, 2, '视频回复', 'platform', './index.php?c=platform&a=reply&m=video', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=video', 0, 'url', 1, 1, 'platform_reply_video', '', ''),
(9, 2, '微信卡券回复', 'platform', './index.php?c=platform&a=reply&m=wxcard', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=wxcard', 0, 'url', 1, 1, 'platform_reply_wxcard', '', ''),
(10, 2, '自定义接口回复', 'platform', './index.php?c=platform&a=reply&m=userapi', 'fa fa-plus', './index.php?c=platform&a=reply&do=post&m=userapi', 0, 'url', 1, 1, 'platform_reply_userapi', '', ''),
(11, 2, '系统回复', 'platform', './index.php?c=platform&a=special&do=display&', '', '', 0, 'url', 1, 1, 'platform_reply_system', '', ''),
(12, 1, '高级功能', 'platform', '', '', '', 0, 'url', 1, 1, 'platform_high_function', '', ''),
(13, 12, '常用服务接入', 'platform', './index.php?c=platform&a=service&do=switch&', '', '', 0, 'url', 1, 1, 'platform_service', '', ''),
(14, 12, '自定义菜单', 'platform', './index.php?c=platform&a=menu&', '', '', 0, 'url', 1, 1, 'platform_menu', '', ''),
(15, 12, '特殊消息回复', 'platform', './index.php?c=platform&a=special&do=message&', '', '', 0, 'url', 1, 1, 'platform_special', '', ''),
(16, 12, '二维码管理', 'platform', './index.php?c=platform&a=qr&', '', '', 0, 'url', 1, 1, 'platform_qr', '', ''),
(17, 12, '多客服接入', 'platform', './index.php?c=platform&a=reply&m=custom', '', '', 0, 'url', 1, 1, 'platform_reply_custom', '', ''),
(18, 12, '长链接二维码', 'platform', './index.php?c=platform&a=url2qr&', '', '', 0, 'url', 1, 1, 'platform_url2qr', '', ''),
(19, 1, '数据统计', 'platform', '', '', '', 0, 'url', 1, 1, 'platform_stat', '', ''),
(20, 19, '聊天记录', 'platform', './index.php?c=platform&a=stat&do=history&', '', '', 0, 'url', 1, 1, 'platform_stat_history', '', ''),
(21, 19, '回复规则使用情况', 'platform', './index.php?c=platform&a=stat&do=rule&', '', '', 0, 'url', 1, 1, 'platform_stat_rule', '', ''),
(22, 19, '关键字命中情况', 'platform', './index.php?c=platform&a=stat&do=keyword&', '', '', 0, 'url', 1, 1, 'platform_stat_keyword', '', ''),
(23, 19, '参数', 'platform', './index.php?c=platform&a=stat&do=setting&', '', '', 0, 'url', 1, 1, 'platform_stat_setting', '', ''),
(24, 0, '微站功能', 'site', '', 'fa fa-life-bouy', '', 0, 'url', 1, 1, '', '', ''),
(25, 24, '微站管理', 'site', '', '', '', 0, 'url', 1, 1, 'site_manage', '', ''),
(26, 25, '站点管理', 'site', './index.php?c=site&a=multi&do=display&', 'fa fa-plus', './index.php?c=site&a=multi&do=post&', 0, 'url', 1, 1, 'site_multi_display', '', ''),
(27, 25, '站点添加/编辑', 'site', '', '', '', 0, 'permission', 0, 1, 'site_multi_post', '', ''),
(28, 25, '站点删除', 'site', '', '', '', 0, 'permission', 0, 1, 'site_multi_del', '', ''),
(29, 25, '模板管理', 'site', './index.php?c=site&a=style&do=template&', '', '', 0, 'url', 1, 1, 'site_style_template', '', ''),
(30, 25, '模块模板扩展', 'site', './index.php?c=site&a=style&do=module&', '', '', 0, 'url', 1, 1, 'site_style_module', '', ''),
(31, 24, '特殊页面管理', 'site', '', '', '', 0, 'url', 1, 1, 'site_special_page', '', ''),
(32, 31, '会员中心', 'site', './index.php?c=site&a=editor&do=uc&', '', '', 0, 'url', 1, 1, 'site_editor_uc', '', ''),
(33, 31, '专题页面', 'site', './index.php?c=site&a=editor&do=page&', 'fa fa-plus', './index.php?c=site&a=editor&do=design&', 0, 'url', 1, 1, 'site_editor_page', '', ''),
(34, 24, '功能组件', 'site', '', '', '', 0, 'url', 1, 1, 'site_article', '', ''),
(35, 34, '分类设置', 'site', './index.php?c=site&a=category&', '', '', 0, 'url', 1, 1, 'site_category', '', ''),
(36, 34, '文章管理', 'site', './index.php?c=site&a=article&', '', '', 0, 'url', 1, 1, 'site_article', '', ''),
(37, 0, '粉丝营销', 'mc', '', 'fa fa-gift', '', 0, 'url', 1, 1, '', '', ''),
(38, 37, '粉丝管理', 'mc', '', '', '', 0, 'url', 1, 1, 'mc_fans_manage', '', ''),
(39, 38, '粉丝分组', 'mc', './index.php?c=mc&a=fangroup&', '', '', 0, 'url', 1, 1, 'mc_fangroup', '', ''),
(40, 38, '粉丝', 'mc', './index.php?c=mc&a=fans&', '', '', 0, 'url', 1, 1, 'mc_fans', '', ''),
(41, 37, '会员中心', 'mc', '', '', '', 0, 'url', 1, 1, 'mc_members_manage', '', ''),
(42, 41, '会员中心关键字', 'mc', './index.php?c=platform&a=cover&do=mc&', '', '', 0, 'url', 1, 1, 'platform_cover_mc', '', ''),
(43, 41, '会员', 'mc', './index.php?c=mc&a=member', 'fa fa-plus', './index.php?c=mc&a=member&do=add', 0, 'url', 1, 1, 'mc_member', '', ''),
(44, 41, '会员组', 'mc', './index.php?c=mc&a=group&', '', '', 0, 'url', 1, 1, 'mc_group', '', ''),
(45, 37, '会员卡管理', 'mc', '', '', '', 0, 'url', 1, 1, 'mc_card_manage', '', ''),
(46, 45, '会员卡关键字', 'mc', './index.php?c=platform&a=cover&do=card&', '', '', 0, 'url', 1, 1, 'platform_cover_card', '', ''),
(47, 45, '会员卡管理', 'mc', './index.php?c=mc&a=card&do=manage', '', '', 0, 'url', 1, 1, 'mc_card_manage', '', ''),
(48, 45, '会员卡设置', 'mc', './index.php?c=mc&a=card&do=editor', '', '', 0, 'url', 1, 1, 'mc_card_editor', '', ''),
(49, 45, '会员卡其他功能', 'mc', './index.php?c=mc&a=card&do=other', '', '', 0, 'url', 1, 1, 'mc_card_other', '', ''),
(50, 37, '积分兑换', 'mc', '', '', '', 0, 'url', 1, 1, 'activity_discount_manage', '', ''),
(51, 50, '折扣券', 'mc', './index.php?c=activity&a=coupon&', '', '', 0, 'url', 1, 1, 'activity_coupon_display', '', ''),
(52, 50, '折扣券核销', 'mc', './index.php?c=activity&a=consume&do=display&type=1&status=2', '', '', 0, 'url', 1, 1, 'activity_consume_coupon', '', ''),
(53, 50, '代金券', 'mc', './index.php?c=activity&a=token', '', '', 0, 'url', 1, 1, 'activity_token_display', '', ''),
(54, 50, '代金券核销', 'mc', './index.php?c=activity&a=consume&do=display&type=2&status=2', '', '', 0, 'url', 1, 1, 'activity_consume_token', '', ''),
(55, 50, '真实物品', 'mc', './index.php?c=activity&a=goods', '', '', 0, 'url', 1, 1, 'activity_goods_display', '', ''),
(56, 37, '微信素材&群发', 'mc', '', '', '', 0, 'url', 1, 1, 'material_manage', '', ''),
(57, 56, '素材&群发', 'mc', './index.php?c=material&a=display', '', '', 0, 'url', 1, 1, 'material_display', '', ''),
(58, 56, '定时群发', 'mc', './index.php?c=material&a=mass', '', '', 0, 'url', 1, 1, 'material_mass', '', ''),
(59, 37, '微信卡券管理', 'mc', '', '', '', 0, 'url', 1, 1, 'wechat_card_manage', '', ''),
(60, 59, '卡券列表', 'mc', './index.php?c=wechat&a=card&do=list', '', '', 0, 'url', 1, 1, 'wechat_card_list', '', ''),
(61, 59, '卡券核销', 'mc', './index.php?c=wechat&a=consume', '', '', 0, 'url', 1, 1, 'wechat_consume', '', ''),
(62, 59, '测试白名单', 'mc', './index.php?c=wechat&a=white&do=list', '', '', 0, 'url', 1, 1, 'wechat_white_list', '', ''),
(63, 37, '门店管理', 'mc', '', '', '', 0, 'url', 1, 1, 'activity_store_manage', '', ''),
(64, 63, '门店列表', 'mc', './index.php?c=activity&a=store', '', '', 0, 'url', 1, 1, 'activity_store_list', '', ''),
(65, 63, '店员列表', 'mc', './index.php?c=activity&a=clerk', '', '', 0, 'url', 1, 1, 'activity_clerk_list', '', ''),
(66, 37, '收银台', 'mc', '', '', '', 0, 'url', 1, 1, 'paycenter_manage', '', ''),
(67, 66, '微信刷卡收款', 'mc', './index.php?c=paycenter&a=wxmicro&do=pay', '', '', 0, 'url', 1, 1, 'paycenter_wxmicro_pay', '', ''),
(68, 66, '收银台关键字', 'mc', './index.php?c=platform&a=cover&do=clerk', '', '', 0, 'url', 1, 1, 'paycenter_clerk', '', ''),
(69, 37, '统计中心', 'mc', '', '', '', 0, 'url', 1, 1, 'stat_center', '', ''),
(70, 69, '会员积分统计', 'mc', './index.php?c=stat&a=credit1', '', '', 0, 'url', 1, 1, 'stat_credit1', '', ''),
(71, 69, '会员余额统计', 'mc', './index.php?c=stat&a=credit2', '', '', 0, 'url', 1, 1, 'stat_credit2', '', ''),
(72, 69, '会员现金消费统计', 'mc', './index.php?c=stat&a=cash', '', '', 0, 'url', 1, 1, 'stat_cash', '', ''),
(73, 69, '会员卡统计', 'mc', './index.php?c=stat&a=card', '', '', 0, 'url', 1, 1, 'stat_card', '', ''),
(74, 69, '收银台收款统计', 'mc', './index.php?c=stat&a=paycenter', '', '', 0, 'url', 1, 1, 'stat_paycenter', '', ''),
(75, 0, '功能选项', 'setting', '', 'fa fa-umbrella', '', 0, 'url', 1, 1, '', '', ''),
(76, 75, '公众号选项', 'setting', '', '', '', 0, 'url', 1, 1, 'account_setting', '', ''),
(77, 76, '支付参数', 'setting', './index.php?c=profile&a=payment&', '', '', 0, 'url', 1, 1, 'profile_payment', '', ''),
(78, 76, '借用 oAuth 权限', 'setting', './index.php?c=mc&a=passport&do=oauth&', '', '', 0, 'url', 1, 1, 'mc_passport_oauth', '', ''),
(79, 76, '借用 JS 分享权限', 'setting', './index.php?c=profile&a=jsauth&', '', '', 0, 'url', 1, 1, 'profile_jsauth', '', ''),
(80, 76, '会员字段管理', 'setting', './index.php?c=mc&a=fields', '', '', 0, 'url', 1, 1, 'mc_fields', '', ''),
(81, 76, '微信通知设置', 'setting', './index.php?c=mc&a=tplnotice', '', '', 0, 'url', 1, 1, 'mc_tplnotice', '', ''),
(82, 76, '工作台菜单设置', 'setting', './index.php?c=profile&a=deskmenu', '', '', 0, 'url', 1, 1, 'profile_deskmenu', '', ''),
(83, 76, '会员扩展功能', 'setting', './index.php?c=mc&a=plugin', '', '', 0, 'url', 1, 1, 'mc_plugin', '', ''),
(84, 75, '会员及粉丝选项', 'setting', '', '', '', 0, 'url', 1, 1, 'mc_setting', '', ''),
(85, 84, '积分设置', 'setting', './index.php?c=mc&a=credit&', '', '', 0, 'url', 1, 1, 'mc_credit', '', ''),
(86, 84, '注册设置', 'setting', './index.php?c=mc&a=passport&do=passport&', '', '', 0, 'url', 1, 1, 'mc_passport_passport', '', ''),
(87, 84, '粉丝同步设置', 'setting', './index.php?c=mc&a=passport&do=sync&', '', '', 0, 'url', 1, 1, 'mc_passport_sync', '', ''),
(88, 84, 'UC站点整合', 'setting', './index.php?c=mc&a=uc&', '', '', 0, 'url', 1, 1, 'mc_uc', '', ''),
(89, 84, '邮件通知参数', 'setting', './index.php?c=profile&a=notify', '', '', 0, 'url', 1, 1, 'profile_notify', '', ''),
(90, 75, '其他功能选项', 'setting', '', '', '', 0, 'url', 1, 1, 'others_setting', '', ''),
(91, 0, '扩展功能', 'ext', '', 'fa fa-cubes', '', 0, 'url', 1, 1, '', '', ''),
(92, 91, '管理', 'ext', '', '', '', 0, 'url', 1, 1, '', '', ''),
(93, 92, '扩展功能管理', 'ext', './index.php?c=profile&a=module&', '', '', 0, 'url', 1, 1, 'profile_module', '', '');
DROP TABLE IF EXISTS `ims_core_paylog`;
CREATE TABLE IF NOT EXISTS `ims_core_paylog` (
`plid` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(20) NOT NULL,
`uniacid` int(11) NOT NULL,
`acid` int(10) NOT NULL,
`openid` varchar(40) NOT NULL,
`uniontid` varchar(64) NOT NULL,
`tid` varchar(128) NOT NULL,
`fee` decimal(10,2) NOT NULL,
`status` tinyint(4) NOT NULL,
`module` varchar(50) NOT NULL,
`tag` varchar(2000) NOT NULL,
`is_usecard` tinyint(3) unsigned NOT NULL,
`card_type` tinyint(3) unsigned NOT NULL,
`card_id` varchar(50) NOT NULL,
`card_fee` decimal(10,2) unsigned NOT NULL,
`encrypt_code` varchar(100) NOT NULL,
PRIMARY KEY (`plid`),
KEY `idx_openid` (`openid`),
KEY `idx_tid` (`tid`),
KEY `idx_uniacid` (`uniacid`),
KEY `uniontid` (`uniontid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_performance`;
CREATE TABLE IF NOT EXISTS `ims_core_performance` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL,
`runtime` varchar(10) NOT NULL,
`runurl` varchar(512) NOT NULL,
`runsql` varchar(512) NOT NULL,
`createtime` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_queue`;
CREATE TABLE IF NOT EXISTS `ims_core_queue` (
`qid` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`acid` int(10) unsigned NOT NULL,
`message` varchar(2000) NOT NULL,
`params` varchar(1000) NOT NULL,
`keyword` varchar(1000) NOT NULL,
`response` varchar(2000) NOT NULL,
`module` varchar(50) NOT NULL,
`type` tinyint(3) unsigned NOT NULL,
`dateline` int(10) unsigned NOT NULL,
PRIMARY KEY (`qid`),
KEY `uniacid` (`uniacid`,`acid`),
KEY `module` (`module`),
KEY `dateline` (`dateline`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_resource`;
CREATE TABLE IF NOT EXISTS `ims_core_resource` (
`mid` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`media_id` varchar(100) NOT NULL,
`trunk` int(10) unsigned NOT NULL,
`type` varchar(10) NOT NULL,
`dateline` int(10) unsigned NOT NULL,
PRIMARY KEY (`mid`),
KEY `acid` (`uniacid`),
KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_sendsms_log`;
CREATE TABLE IF NOT EXISTS `ims_core_sendsms_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`mobile` varchar(11) NOT NULL,
`content` varchar(255) NOT NULL,
`result` varchar(255) NOT NULL,
`createtime` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_core_sessions`;
CREATE TABLE IF NOT EXISTS `ims_core_sessions` (
`sid` char(32) NOT NULL,
`uniacid` int(10) unsigned NOT NULL,
`openid` varchar(50) NOT NULL,
`data` varchar(5000) NOT NULL,
`expiretime` int(10) unsigned NOT NULL,
PRIMARY KEY (`sid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `ims_core_sessions` (`sid`, `uniacid`, `openid`, `data`, `expiretime`) VALUES
('1cc20012424929fe4e24283de27e8098', 1, '::1', 'acid|s:1:"1";uniacid|i:1;token|a:3:{s:4:"udS4";i:1475642432;s:4:"rnHL";i:1475642539;s:4:"d3vW";i:1475642657;}', 1475646257),
('bb9f151eeb7d81d2ffca6950c7b9f7d5', 1, '::1', 'acid|s:1:"1";uniacid|i:1;token|a:3:{s:4:"vroV";i:1481269618;s:4:"WEd8";i:1481269618;s:4:"K6Sj";i:1481269619;}', 1481273219);
DROP TABLE IF EXISTS `ims_core_settings`;
CREATE TABLE IF NOT EXISTS `ims_core_settings` (
`key` varchar(200) NOT NULL,
`value` text NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `ims_core_settings` (`key`, `value`) VALUES
('copyright', 'a:26:{s:6:"status";s:1:"0";s:10:"verifycode";s:1:"0";s:6:"reason";s:0:"";s:8:"sitename";s:21:"微上宝分销平台";s:3:"url";s:7:"http://";s:8:"statcode";s:0:"";s:10:"footerleft";s:14:"Copyright 2017";s:11:"footerright";s:19:"All Rights Reserved";s:4:"icon";s:0:"";s:5:"flogo";s:48:"images/global/ez83GNNaav63zt60detv60bZzRGnBV.png";s:6:"slides";s:216:"a:3:{i:0;s:58:"https://img.alicdn.com/tps/TB1pfG4IFXXXXc6XXXXXXXXXXXX.jpg";i:1;s:58:"https://img.alicdn.com/tps/TB1sXGYIFXXXXc5XpXXXXXXXXXX.jpg";i:2;s:58:"https://img.alicdn.com/tps/TB1h9xxIFXXXXbKXXXXXXXXXXXX.jpg";}";s:6:"notice";s:0:"";s:5:"blogo";s:48:"images/global/ez83GNNaav63zt60detv60bZzRGnBV.png";s:8:"baidumap";a:2:{s:3:"lng";s:0:"";s:3:"lat";s:0:"";}s:7:"company";s:24:"广州谷来信息科技";s:4:"skin";s:7:"default";s:14:"companyprofile";s:0:"";s:7:"address";s:27:"广东省广州市天河区";s:6:"person";s:9:"陈先生";s:5:"phone";s:12:"020-88888888";s:2:"qq";s:8:"88888888";s:5:"email";s:13:"[email protected]";s:8:"keywords";s:21:"微上宝分销平台";s:11:"description";s:21:"微上宝分销平台";s:12:"showhomepage";i:1;s:13:"leftmenufixed";i:0;}'),
('authmode', 'i:1;'),
('close', 'a:2:{s:6:"status";s:1:"0";s:6:"reason";s:0:"";}'),
('register', 'a:4:{s:4:"open";i:1;s:6:"verify";i:0;s:4:"code";i:1;s:7:"groupid";i:1;}'),
('module_receive_ban', 'a:0:{}'),
('basic', 'a:1:{s:8:"template";s:9:"we8_white";}'),
('module_ban', 'a:0:{}'),
('module_upgrade', 'a:0:{}'),
('cloudip', 'a:0:{}');
DROP TABLE IF EXISTS `ims_coupon`;
CREATE TABLE IF NOT EXISTS `ims_coupon` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`acid` int(10) unsigned NOT NULL,
`card_id` varchar(50) NOT NULL,
`type` varchar(15) NOT NULL,
`logo_url` varchar(150) NOT NULL,
`code_type` tinyint(3) unsigned NOT NULL,
`brand_name` varchar(15) NOT NULL,
`title` varchar(15) NOT NULL,
`sub_title` varchar(20) NOT NULL,
`color` varchar(15) NOT NULL,
`notice` varchar(15) NOT NULL,
`description` varchar(1000) NOT NULL,
`date_info` varchar(200) NOT NULL,
`quantity` int(10) unsigned NOT NULL,
`use_custom_code` tinyint(3) NOT NULL,
`bind_openid` tinyint(3) unsigned NOT NULL,
`can_share` tinyint(3) unsigned NOT NULL,
`can_give_friend` tinyint(3) unsigned NOT NULL,
`get_limit` tinyint(3) unsigned NOT NULL,
`service_phone` varchar(20) NOT NULL,
`extra` varchar(1000) NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`is_display` tinyint(3) unsigned NOT NULL,
`is_selfconsume` tinyint(3) unsigned NOT NULL,
`promotion_url_name` varchar(10) NOT NULL,
`promotion_url` varchar(100) NOT NULL,
`promotion_url_sub_title` varchar(10) NOT NULL,
`source` tinyint(3) unsigned NOT NULL,
`dosage` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`,`acid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_activity`;
CREATE TABLE IF NOT EXISTS `ims_coupon_activity` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) NOT NULL,
`msg_id` int(10) NOT NULL,
`status` int(10) NOT NULL,
`title` varchar(255) NOT NULL,
`type` int(3) NOT NULL,
`thumb` varchar(255) NOT NULL,
`coupons` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`members` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_groups`;
CREATE TABLE IF NOT EXISTS `ims_coupon_groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) NOT NULL,
`couponid` varchar(255) NOT NULL,
`groupid` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_location`;
CREATE TABLE IF NOT EXISTS `ims_coupon_location` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`acid` int(10) unsigned NOT NULL,
`sid` int(10) unsigned NOT NULL,
`location_id` int(10) unsigned NOT NULL,
`business_name` varchar(50) NOT NULL,
`branch_name` varchar(50) NOT NULL,
`category` varchar(255) NOT NULL,
`province` varchar(15) NOT NULL,
`city` varchar(15) NOT NULL,
`district` varchar(15) NOT NULL,
`address` varchar(50) NOT NULL,
`longitude` varchar(15) NOT NULL,
`latitude` varchar(15) NOT NULL,
`telephone` varchar(20) NOT NULL,
`photo_list` varchar(10000) NOT NULL,
`avg_price` int(10) unsigned NOT NULL,
`open_time` varchar(50) NOT NULL,
`recommend` varchar(255) NOT NULL,
`special` varchar(255) NOT NULL,
`introduction` varchar(255) NOT NULL,
`offset_type` tinyint(3) unsigned NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`message` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`,`acid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_modules`;
CREATE TABLE IF NOT EXISTS `ims_coupon_modules` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`acid` int(10) unsigned NOT NULL,
`couponid` int(10) unsigned NOT NULL,
`module` varchar(30) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`,`acid`),
KEY `couponid` (`couponid`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_record`;
CREATE TABLE IF NOT EXISTS `ims_coupon_record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`acid` int(10) unsigned NOT NULL,
`card_id` varchar(50) NOT NULL,
`openid` varchar(50) NOT NULL,
`friend_openid` varchar(50) NOT NULL,
`givebyfriend` tinyint(3) unsigned NOT NULL,
`code` varchar(50) NOT NULL,
`hash` varchar(32) NOT NULL,
`addtime` int(10) unsigned NOT NULL,
`usetime` int(10) unsigned NOT NULL,
`status` tinyint(3) NOT NULL,
`clerk_name` varchar(15) NOT NULL,
`clerk_id` int(10) unsigned NOT NULL,
`store_id` int(10) unsigned NOT NULL,
`clerk_type` tinyint(3) unsigned NOT NULL,
`couponid` int(10) unsigned NOT NULL,
`uid` int(10) unsigned NOT NULL,
`grantmodule` varchar(255) NOT NULL,
`remark` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`,`acid`),
KEY `card_id` (`card_id`),
KEY `hash` (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_setting`;
CREATE TABLE IF NOT EXISTS `ims_coupon_setting` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`acid` int(10) NOT NULL,
`logourl` varchar(150) NOT NULL,
`whitelist` varchar(1000) NOT NULL,
PRIMARY KEY (`id`),
KEY `uniacid` (`uniacid`,`acid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_coupon_store`;
CREATE TABLE IF NOT EXISTS `ims_coupon_store` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) NOT NULL,
`couponid` varchar(255) NOT NULL,
`storeid` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `couponid` (`couponid`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_cover_reply`;
CREATE TABLE IF NOT EXISTS `ims_cover_reply` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uniacid` int(10) unsigned NOT NULL,
`multiid` int(10) unsigned NOT NULL,
`rid` int(10) unsigned NOT NULL,
`module` varchar(30) NOT NULL,
`do` varchar(30) NOT NULL,
`title` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`thumb` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `rid` (`rid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
INSERT INTO `ims_cover_reply` (`id`, `uniacid`, `multiid`, `rid`, `module`, `do`, `title`, `description`, `thumb`, `url`) VALUES
(1, 1, 0, 7, 'mc', '', '进入个人中心', '', '', './index.php?c=mc&a=home&i=1'),
(2, 1, 1, 8, 'site', '', '进入首页', '', '', './index.php?c=home&i=1&t=1'),
(3, 1, 0, 9, 'ewei_shopv2', '', '', '', '', './index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=article.list'),
(4, 1, 0, 10, 'ewei_shopv2', '', '1', '', '', './index.php?i=1&c=entry&m=ewei_shopv2&do=mobile&r=sign.list');
DROP TABLE IF EXISTS `ims_custom_reply`;
CREATE TABLE IF NOT EXISTS `ims_custom_reply` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rid` int(10) unsigned NOT NULL,
`start1` int(10) NOT NULL,
`end1` int(10) NOT NULL,
`start2` int(10) NOT NULL,
`end2` int(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `rid` (`rid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_ewei_message_mass_sign`;
CREATE TABLE IF NOT EXISTS `ims_ewei_message_mass_sign` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`openid` varchar(50) DEFAULT NULL,
`nickname` varchar(50) DEFAULT NULL,
`taskid` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`log` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_ewei_message_mass_task`;
CREATE TABLE IF NOT EXISTS `ims_ewei_message_mass_task` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`status` tinyint(1) DEFAULT '0',
`processnum` int(11) DEFAULT '1',
`sendnum` int(11) DEFAULT '0',
`messagetype` tinyint(1) DEFAULT '0',
`templateid` int(11) DEFAULT '0',
`resptitle` varchar(255) DEFAULT NULL,
`respthumb` varchar(255) DEFAULT NULL,
`respdesc` varchar(255) DEFAULT NULL,
`respurl` varchar(255) DEFAULT NULL,
`sendlimittype` tinyint(1) DEFAULT '0',
`send_openid` text,
`send_level` int(11) DEFAULT NULL,
`send_group` int(11) DEFAULT NULL,
`send_agentlevel` int(11) DEFAULT NULL,
`customertype` tinyint(1) DEFAULT '0',
`resdesc2` varchar(255) DEFAULT '',
`pagecount` int(11) DEFAULT '0',
`successnum` int(11) DEFAULT '0',
`failnum` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_ewei_message_mass_template`;
CREATE TABLE IF NOT EXISTS `ims_ewei_message_mass_template` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`title` varchar(255) DEFAULT '',
`template_id` varchar(255) DEFAULT '',
`first` text NOT NULL,
`firstcolor` varchar(255) DEFAULT '',
`data` text NOT NULL,
`remark` text NOT NULL,
`remarkcolor` varchar(255) DEFAULT '',
`url` varchar(255) NOT NULL,
`createtime` int(11) DEFAULT '0',
`sendtimes` int(11) DEFAULT '0',
`sendcount` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_ewei_shop_abonus_bill`;
CREATE TABLE IF NOT EXISTS `ims_ewei_shop_abonus_bill` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`billno` varchar(100) DEFAULT '',
`paytype` int(11) DEFAULT '0',
`year` int(11) DEFAULT '0',
`month` int(11) DEFAULT '0',
`week` int(11) DEFAULT '0',
`ordercount` int(11) DEFAULT '0',
`ordermoney` decimal(10,2) DEFAULT '0.00',
`paytime` int(11) DEFAULT '0',
`aagentcount1` int(11) DEFAULT '0',
`aagentcount2` int(11) DEFAULT '0',
`aagentcount3` int(11) DEFAULT '0',
`bonusmoney1` decimal(10,2) DEFAULT '0.00',
`bonusmoney_send1` decimal(10,2) DEFAULT '0.00',
`bonusmoney_pay1` decimal(10,2) DEFAULT '0.00',
`bonusmoney2` decimal(10,2) DEFAULT '0.00',
`bonusmoney_send2` decimal(10,2) DEFAULT '0.00',
`bonusmoney_pay2` decimal(10,2) DEFAULT '0.00',
`bonusmoney3` decimal(10,2) DEFAULT '0.00',
`bonusmoney_send3` decimal(10,2) DEFAULT '0.00',
`bonusmoney_pay3` decimal(10,2) DEFAULT '0.00',
`createtime` int(11) DEFAULT '0',
`status` tinyint(3) DEFAULT '0',
`starttime` int(11) DEFAULT '0',
`endtime` int(11) DEFAULT '0',
`confirmtime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_uniacid` (`uniacid`) USING BTREE,
KEY `idx_paytype` (`paytype`) USING BTREE,
KEY `idx_createtime` (`createtime`) USING BTREE,
KEY `idx_paytime` (`paytime`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_month` (`month`) USING BTREE,
KEY `idx_week` (`week`) USING BTREE,
KEY `idx_year` (`year`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_ewei_shop_abonus_billo`;
CREATE TABLE IF NOT EXISTS `ims_ewei_shop_abonus_billo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`billid` int(11) DEFAULT '0',
`orderid` int(11) DEFAULT '0',
`ordermoney` decimal(10,2) DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `idx_billid` (`billid`) USING BTREE,
KEY `idx_uniacid` (`uniacid`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `ims_ewei_shop_abonus_billp`;
CREATE TABLE IF NOT EXISTS `ims_ewei_shop_abonus_billp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniacid` int(11) DEFAULT '0',
`billid` int(11) DEFAULT '0',
`openid` varchar(255) DEFAULT '',
`payno` varchar(255) DEFAULT '',
`paytype` tinyint(3) DEFAULT '0',
`bonus1` decimal(10,4) DEFAULT '0.0000',
`bonus2` decimal(10,4) DEFAULT '0.0000',
`bonus3` decimal(10,4) DEFAULT '0.0000',
`money1` decimal(10,2) DEFAULT '0.00',
`realmoney1` decimal(10,2) DEFAULT '0.00',
`paymoney1` decimal(10,2) DEFAULT '0.00',
`money2` decimal(10,2) DEFAULT '0.00',
`realmoney2` decimal(10,2) DEFAULT '0.00',
`paymoney2` decimal(10,2) DEFAULT '0.00',
`money3` decimal(10,2) DEFAULT '0.00',
`realmoney3` decimal(10,2) DEFAULT '0.00',
`paymoney3` decimal(10,2) DEFAULT '0.00',
`chargemoney1` decimal(10,2) DEFAULT '0.00',
`chargemoney2` decimal(10,2) DEFAULT '0.00',
`chargemoney3` decimal(10,2) DEFAULT '0.00',
`charge` decimal(10,2) DEFAULT '0.00',
`status` tinyint(3) DEFAULT '0',
`reason` varchar(255) DEFAULT '',
`paytime` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_billid` (`billid`) USING BTREE,