forked from java110/MicroCommunity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMicroCommunity.sql
3429 lines (2757 loc) · 588 KB
/
MicroCommunity.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
CREATE DATABASE /*!32312 IF NOT EXISTS*/`TT` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `TT`;
/*Table structure for table `a_agent` */
DROP TABLE IF EXISTS `a_agent`;
CREATE TABLE `a_agent` (
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`name` varchar(100) NOT NULL COMMENT '代理商名称',
`address` varchar(200) NOT NULL COMMENT '代理商地址',
`tel` varchar(11) NOT NULL COMMENT '电话',
`nearby_landmarks` varchar(200) DEFAULT NULL COMMENT '地标,如王府井北60米',
`map_x` varchar(20) NOT NULL COMMENT '地区 x坐标',
`map_y` varchar(20) NOT NULL COMMENT '地区 y坐标',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `agent_id` (`agent_id`),
UNIQUE KEY `idx_agent_agent_id` (`agent_id`),
KEY `idx_agent_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `a_agent` */
insert into `a_agent`(`agent_id`,`b_id`,`name`,`address`,`tel`,`nearby_landmarks`,`map_x`,`map_y`,`create_time`,`status_cd`) values ('8020181223000001','60234567894','方博家园123','青海省西宁市城中区129号123','17797173952','王府井旁40米','102.801909','37.597263','2018-12-23 08:52:58','0');
/*Table structure for table `a_agent_attr` */
DROP TABLE IF EXISTS `a_agent_attr`;
CREATE TABLE `a_agent_attr` (
`b_id` varchar(30) NOT NULL COMMENT '订单ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`agent_id` varchar(30) NOT NULL COMMENT '用户ID',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`VALUE` varchar(50) NOT NULL COMMENT '属性值',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `attr_id` (`attr_id`),
KEY `idx_agent_attr_b_id` (`b_id`),
KEY `idx_agent_attr_agent_id` (`agent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `a_agent_attr` */
insert into `a_agent_attr`(`b_id`,`attr_id`,`agent_id`,`spec_cd`,`VALUE`,`create_time`,`status_cd`) values ('19234567894','112018122300000002','8020181223000001','1001','02','2018-12-23 08:52:58','1');
/*Table structure for table `a_agent_cerdentials` */
DROP TABLE IF EXISTS `a_agent_cerdentials`;
CREATE TABLE `a_agent_cerdentials` (
`agent_cerdentials_id` varchar(30) NOT NULL COMMENT '代理商证件ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`credentials_cd` varchar(12) NOT NULL COMMENT '证件类型,对应于 credentials表',
`value` varchar(50) NOT NULL COMMENT '证件号码',
`validity_period` date NOT NULL COMMENT '有效期,如果是长期有效 写成 3000/1/1',
`positive_photo` varchar(100) DEFAULT NULL COMMENT '正面照片',
`negative_photo` varchar(100) DEFAULT NULL COMMENT '反面照片',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `agent_cerdentials_id` (`agent_cerdentials_id`),
KEY `idx_agent_cerdentials_b_id` (`b_id`),
KEY `idx_agent_cerdentials_agent_id` (`agent_id`),
KEY `idx__agent_cerdentials_id` (`agent_cerdentials_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `a_agent_cerdentials` */
insert into `a_agent_cerdentials`(`agent_cerdentials_id`,`b_id`,`agent_id`,`credentials_cd`,`value`,`validity_period`,`positive_photo`,`negative_photo`,`create_time`,`status_cd`) values ('8220181223000004','116234567894','8020181223000001','1','632126XXXXXXXX2012','3000-02-01','1234567.jpg','11.jpg','2018-12-23 08:57:11','1');
/*Table structure for table `a_agent_photo` */
DROP TABLE IF EXISTS `a_agent_photo`;
CREATE TABLE `a_agent_photo` (
`agent_photo_id` varchar(30) NOT NULL COMMENT '代理商照片ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`agent_photo_type_cd` varchar(12) NOT NULL COMMENT '代理商照片类型,T 门头照 I 内景照',
`photo` varchar(100) NOT NULL COMMENT '照片',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `agent_photo_id` (`agent_photo_id`),
KEY `idx_agent_photo_b_id` (`b_id`),
KEY `idx_agent_photo_agent_id` (`agent_id`),
KEY `idx_agent_photo_agent_photo_id` (`agent_photo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `a_agent_photo` */
insert into `a_agent_photo`(`agent_photo_id`,`b_id`,`agent_id`,`agent_photo_type_cd`,`photo`,`create_time`,`status_cd`) values ('8120181223000003','95234567894','8020181223000001','T','123456789.jpg','2018-12-23 08:55:17','1');
/*Table structure for table `a_agent_user` */
DROP TABLE IF EXISTS `a_agent_user`;
CREATE TABLE `a_agent_user` (
`agent_user_id` varchar(30) NOT NULL COMMENT '代理商用户ID',
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`rel_cd` varchar(30) NOT NULL COMMENT '用户和代理商关系 详情查看 agent_user_rel表',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `agent_user_id` (`agent_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `a_agent_user` */
insert into `a_agent_user`(`agent_user_id`,`agent_id`,`b_id`,`user_id`,`rel_cd`,`create_time`,`status_cd`) values ('8320181223000005','8020181223000001','31234567894','123','600311000001','2018-12-23 08:58:41','1');
/*Table structure for table `agent_user_rel` */
DROP TABLE IF EXISTS `agent_user_rel`;
CREATE TABLE `agent_user_rel` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`rel_cd` varchar(12) NOT NULL COMMENT '代理商用户关系编码',
`name` varchar(50) NOT NULL COMMENT '代理商用户关系编码名称',
`description` varchar(200) DEFAULT NULL COMMENT '描述',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `rel_cd` (`rel_cd`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `agent_user_rel` */
/*Table structure for table `building_owner` */
DROP TABLE IF EXISTS `building_owner`;
CREATE TABLE `building_owner` (
`member_id` varchar(30) NOT NULL COMMENT '业主成员ID',
`owner_id` varchar(30) NOT NULL COMMENT '业主ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`name` varchar(12) NOT NULL COMMENT '业主名称',
`sex` int(11) NOT NULL COMMENT '性别',
`age` int(11) NOT NULL COMMENT '年龄',
`link` varchar(11) NOT NULL COMMENT '联系人手机号',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,0, 在用 1失效',
`owner_type_cd` varchar(4) NOT NULL DEFAULT '1001' COMMENT '1001 业主本人 1002 家庭成员',
UNIQUE KEY `member_id` (`member_id`),
UNIQUE KEY `idx_owner_id` (`member_id`),
KEY `idx_owner_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `building_owner` */
insert into `building_owner`(`member_id`,`owner_id`,`b_id`,`name`,`sex`,`age`,`link`,`user_id`,`remark`,`create_time`,`status_cd`,`owner_type_cd`) values ('772019051712520001','772019051712520001','202019051885450002','张三1',1,25,'17797173941','30518940136629616640','test','2019-05-17 14:11:35','0','1001'),('772019051730670001','772019051730670001','202019052646680008','吴学文',0,23,'17797173942','30518940136629616640','','2019-05-17 14:29:39','1','1001'),('772019051807130001','772019051807130001','202019051851950019','吴梓豪',1,2,'17797173940','30518940136629616640','测试','2019-05-17 16:49:05','0','1001'),('772019051824170001','772019051824170001','202019051886350015','张颖',1,32,'18909789999','30518940136629616640','','2019-05-18 10:43:20','0','1001'),('772019051826810003','772019051730670001','202019051966520002','张三安1',1,18,'17797173991','30518940136629616640','','2019-05-18 12:04:49','0','1002'),('772019051853860001','','202019051842650002','找大难',1,25,'17797177777','30518940136629616640','','2019-05-18 08:11:18','0','1001'),('772019051856610003','','202019051887830008','xxx',1,14,'18977777777','30518940136629616640','','2019-05-18 08:19:18','0','1001'),('772019051860030001','772019051860030001','202019051843140008','王茜茜1',1,26,'18909789998','30518940136629616640','1234','2019-05-18 08:32:16','0','1001'),('772019051883280002','','202019051801160005','王大拿',0,25,'17797173444','30518940136629616640','','2019-05-18 08:12:10','0','1001'),('772019051901000001','772019051932200003','202019051983570004','黄晓明',0,40,'13397089678','30518940136629616640','','2019-05-19 01:50:54','0','1002'),('772019051923410001','772019051730670001','202019051966970002','闪粉',1,12,'17797173909','30518940136629616640','','2019-05-19 00:26:56','0','1002'),('772019051932200003','772019051932200003','202019051944770006','皮晓兰',1,30,'18909786789','30518940136629616640','','2019-05-19 00:44:19','0','1001'),('772019051940060006','772019051932200003','202019051971540013','皮皮男',0,13,'17798788881','30518940136629616640','','2019-05-19 00:55:36','0','1002'),('772019051948380005','772019051932200003','202019051901950011','皮皮虾',1,18,'18909789996','30518940136629616640','','2019-05-19 00:51:20','0','1002'),('772019051994430002','772019051730670001','202019051933500004','王霞霞',1,25,'18909789999','30518940136629616640','','2019-05-19 00:27:43','0','1002'),('772019051998120004','772019051932200003','202019051931590002','皮皮',0,3,'17798789001','30518940136629616640','','2019-05-19 00:44:57','1','1002'),('772019052337170001','772019052337170001','202019052616520011','张三',1,888,'13812345678','30518940136629616640','','2019-05-23 06:53:34','0','1001'),('772019052630240001','772019052630240001','202019052616400013','潘杰',1,38,'18888888888','30518940136629616640','皓晨潘杰','2019-05-26 12:50:33','0','1001');
/*Table structure for table `building_owner_room_rel` */
DROP TABLE IF EXISTS `building_owner_room_rel`;
CREATE TABLE `building_owner_room_rel` (
`rel_id` varchar(30) NOT NULL COMMENT '关系ID',
`owner_id` varchar(30) NOT NULL COMMENT '业主ID',
`room_id` varchar(30) NOT NULL COMMENT '房间ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`state` varchar(4) NOT NULL COMMENT '业务状态 2001 业主未迁入 2002 业主迁入 2003 业主迁出',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,0, 在用 1失效',
UNIQUE KEY `rel_id` (`rel_id`),
UNIQUE KEY `idx_borr_rel_id` (`rel_id`),
UNIQUE KEY `idx_orr_rel_id` (`rel_id`),
KEY `idx_borr_b_id` (`b_id`),
KEY `idx_orr_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `building_owner_room_rel` */
insert into `building_owner_room_rel`(`rel_id`,`owner_id`,`room_id`,`b_id`,`state`,`user_id`,`remark`,`create_time`,`status_cd`) values ('12313','123123','752019050811420005','123123','0000','123123','','2019-05-21 02:50:26','1'),('234234','123123','752019050811420005','12313','0000','123213','','2019-05-21 02:51:47','0'),('782019052227190001','772019051824170001','752019050876320004','202019052268080002','2001','30518940136629616640','','2019-05-22 13:36:52','0'),('782019052243940001','772019051824170001','752019050994740002','202019052250200004','2001','30518940136629616640','','2019-05-22 15:21:46','0'),('782019052281900002','772019051824170001','752019050994740002','202019052219400002','2001','30518940136629616640','','2019-05-22 13:38:07','1'),('782019052290990001','772019051730670001','752019050845270003','202019052255290002','2001','30518940136629616640','','2019-05-21 16:30:15','0'),('782019052299880001','772019051932200003','752019050870640002','202019052282950002','2001','30518940136629616640','','2019-05-22 03:53:32','0'),('782019060213970001','772019052630240001','752019050790250003','202019060284310002','2001','30518940136629616640','','2019-06-02 04:48:10','1'),('782019060243470001','772019052630240001','752019050860300001','202019060225140005','2001','30518940136629616640','','2019-06-02 05:22:44','0'),('782019060259310001','772019052630240001','752019050860300001','202019060296240002','2001','30518940136629616640','','2019-06-02 03:40:03','1'),('782019060480000001','772019052337170001','752019050896140002','202019060411750008','2001','30518940136629616640','','2019-06-04 06:57:59','0');
/*Table structure for table `building_room` */
DROP TABLE IF EXISTS `building_room`;
CREATE TABLE `building_room` (
`room_id` varchar(30) NOT NULL COMMENT '房屋ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`room_num` varchar(12) NOT NULL COMMENT '房屋编号',
`unit_id` varchar(30) NOT NULL COMMENT '单元ID',
`layer` int(11) NOT NULL COMMENT '层数',
`section` int(11) NOT NULL COMMENT '室',
`apartment` varchar(4) NOT NULL COMMENT '户型',
`built_up_area` decimal(6,2) NOT NULL COMMENT '建筑面积',
`unit_price` decimal(12,2) NOT NULL COMMENT '每平米单价',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
`state` varchar(4) NOT NULL COMMENT '房屋状态,如房屋出售等,请查看state 表',
UNIQUE KEY `room_id` (`room_id`),
UNIQUE KEY `idx_room_id` (`room_id`),
KEY `idx_room_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `building_room` */
insert into `building_room`(`room_id`,`b_id`,`room_num`,`unit_id`,`layer`,`section`,`apartment`,`built_up_area`,`unit_price`,`user_id`,`remark`,`create_time`,`status_cd`,`state`) values ('752019050790250003','202019050955970004','1123','742019050304250004',12,2,'1010','95.46','4800.00','30518940136629616640','测试','2019-05-07 15:35:55','0','2002'),('752019050811420005','202019050812510002','1113','742019050396500001',11,3,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 08:57:24','1',''),('752019050814710001','202019051397610016','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 06:07:27','1','2001'),('752019050845270003','202019050838100006','1121','742019050396500001',12,2,'2020','87.90','4800.00','30518940136629616640','','2019-05-08 07:40:32','0',''),('752019050856240001','202019050927090006','1113','742019050304250004',11,2,'2020','97.45','4700.00','30518940136629616640','','2019-05-08 05:36:20','0','2003'),('752019050860300001','202019050942230008','1124','742019050304250004',12,3,'2020','124.89','4800.00','30518940136629616640','隔壁老王','2019-05-07 17:55:40','0','2004'),('752019050861590001','202019050801410008','12345','742019050396500001',22,8,'2020','129.99','10000.00','30518940136629616640','','2019-05-08 10:57:30','1',''),('752019050870640002','202019050835720004','1124','742019050396500001',12,2,'2020','97.09','4800.00','30518940136629616640','测试','2019-05-08 07:39:39','0',''),('752019050876320004','202019050858950008','1122','742019050396500001',12,4,'2020','127.98','4800.00','30518940136629616640','','2019-05-08 07:41:21','0',''),('752019050896140002','202019050812980004','1121','742019050304250004',12,2,'2020','92.34','4800.00','30518940136629616640','','2019-05-07 17:57:46','0',''),('752019050906680001','202019050968960002','2121','742019050362220003',12,2,'2020','97.33','4800.00','30518940136629616640','','2019-05-09 06:10:53','0','2001'),('752019050994740002','202019050942660010','2123','742019050362220003',12,2,'2020','97.88','4800.00','30518940136629616640','','2019-05-09 05:29:53','0','');
/*Table structure for table `building_room_attr` */
DROP TABLE IF EXISTS `building_room_attr`;
CREATE TABLE `building_room_attr` (
`b_id` varchar(30) NOT NULL COMMENT '订单ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`room_id` varchar(30) NOT NULL COMMENT '房屋ID',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`value` varchar(50) NOT NULL COMMENT '属性值',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `attr_id` (`attr_id`),
KEY `idx_b_attr_b_id` (`b_id`),
KEY `idx_attr_room_id` (`room_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `building_room_attr` */
/*Table structure for table `building_unit` */
DROP TABLE IF EXISTS `building_unit`;
CREATE TABLE `building_unit` (
`unit_id` varchar(30) NOT NULL COMMENT '单元ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`unit_num` varchar(12) NOT NULL COMMENT '单元编号',
`floor_id` varchar(30) NOT NULL COMMENT '楼ID',
`layer_count` int(11) NOT NULL COMMENT '总层数',
`lift` varchar(4) NOT NULL COMMENT '是否有电梯 1010有 2020 无',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效',
UNIQUE KEY `unit_id` (`unit_id`),
UNIQUE KEY `idx_unit_id` (`unit_id`),
KEY `idx_unit_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `building_unit` */
insert into `building_unit`(`unit_id`,`b_id`,`unit_num`,`floor_id`,`layer_count`,`lift`,`user_id`,`remark`,`create_time`,`status_cd`) values ('742019050304250004','202019050399040008','001','732019042188750002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:18','0'),('742019050325230001','202019050357280004','001','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 11:37:00','0'),('742019050344140006','202019050328930012','002','732019042218110002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:37','0'),('742019050358480002','202019050467640002','002','732019042181450002',33,'1010','30518940136629616640','测试','2019-05-03 09:52:42','1'),('742019050362220003','202019050354360006','002','732019042188750002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:09','0'),('742019050374590007','202019050346780002','0011','732019042644990001',31,'2020','30518940136629616640','测试1','2019-05-03 10:01:33','0'),('742019050389780008','202019050307280016','002','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 10:01:49','0'),('742019050396500001','202019050398970002','001','732019042181450002',33,'1010','30518940136629616640','测试','2019-05-03 09:52:13','0'),('742019050398030005','202019050318680010','001','732019042218110002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:30','0'),('742019050466970002','202019050486630010','001','732019042790640002',33,'1010','30518940136629616640','123456','2019-05-04 10:48:39','0'),('742019050493150001','202019050486680006','002','732019042181450002',33,'1010','30518940136629616640','123456','2019-05-04 13:45:47','1'),('742019050497530002','202019050422440008','001','732019042921980002',33,'2020','30518940136629616640','','2019-05-04 13:47:01','0'),('742019050702710001','202019050745870002','001','732019042715940003',33,'1010','30518940136629616640','','2019-05-06 16:08:48','0'),('742019050785380002','202019050722290004','001','732019042773170001',33,'1010','30518940136629616640','','2019-05-06 19:41:42','0');
/*Table structure for table `business_agent` */
DROP TABLE IF EXISTS `business_agent`;
CREATE TABLE `business_agent` (
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`name` varchar(100) NOT NULL COMMENT '代理商名称',
`address` varchar(200) NOT NULL COMMENT '代理商地址',
`tel` varchar(11) NOT NULL COMMENT '电话',
`nearby_landmarks` varchar(200) DEFAULT NULL COMMENT '地标,如王府井北60米',
`map_x` varchar(20) NOT NULL COMMENT '地区 x坐标',
`map_y` varchar(20) NOT NULL COMMENT '地区 y坐标',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_agent_id` (`agent_id`),
KEY `idx_business_agent_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_agent_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_agent_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_agent_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_agent_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_agent_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_agent_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_agent_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_agent_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_agent_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_agent_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_agent_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_agent_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_agent` */
insert into `business_agent`(`agent_id`,`b_id`,`name`,`address`,`tel`,`nearby_landmarks`,`map_x`,`map_y`,`month`,`create_time`,`operate`) values ('8020181223000001','3234567894','方博家园代理商','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-23 08:52:15','ADD'),('8020181223000001','60234567894','方博家园代理商','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-23 09:00:29','DEl'),('8020181223000001','60234567894','方博家园123','青海省西宁市城中区129号123','17797173952','王府井旁40米','102.801909','37.597263',12,'2018-12-23 09:00:29','ADD');
/*Table structure for table `business_agent_attr` */
DROP TABLE IF EXISTS `business_agent_attr`;
CREATE TABLE `business_agent_attr` (
`b_id` varchar(30) NOT NULL COMMENT '订单ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`agent_id` varchar(30) NOT NULL COMMENT '用户ID',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`value` varchar(50) NOT NULL COMMENT '属性值',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_attr_agent_id` (`agent_id`),
KEY `idx_business_agent_attr_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_agent_attr_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_agent_attr_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_agent_attr_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_agent_attr_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_agent_attr_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_agent_attr_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_agent_attr_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_agent_attr_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_agent_attr_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_agent_attr_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_agent_attr_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_agent_attr_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_agent_attr` */
insert into `business_agent_attr`(`b_id`,`attr_id`,`agent_id`,`spec_cd`,`value`,`month`,`create_time`,`operate`) values ('3234567894','112018122300000002','8020181223000001','1001','01',12,'2018-12-23 08:52:15','ADD'),('60234567894','112018122300000002','8020181223000001','1001','01',12,'2018-12-23 09:00:29','DEl'),('60234567894','112018122300000002','8020181223000001','1001','02',12,'2018-12-23 09:00:29','ADD'),('19234567894','112018122300000002','8020181223000001','1001','02',12,'2018-12-23 09:07:54','DEl');
/*Table structure for table `business_agent_cerdentials` */
DROP TABLE IF EXISTS `business_agent_cerdentials`;
CREATE TABLE `business_agent_cerdentials` (
`agent_cerdentials_id` varchar(30) NOT NULL COMMENT '代理商证件ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`credentials_cd` varchar(12) NOT NULL COMMENT '证件类型,对应于 credentials表',
`value` varchar(50) NOT NULL COMMENT '证件号码',
`validity_period` date NOT NULL COMMENT '有效期,如果是长期有效 写成 3000/1/1',
`positive_photo` varchar(100) DEFAULT NULL COMMENT '正面照片',
`negative_photo` varchar(100) DEFAULT NULL COMMENT '反面照片',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_cerdentials_agent_id` (`agent_id`),
KEY `idx_business_agent_cerdentials_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_agent_cerdentials_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_agent_cerdentials_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_agent_cerdentials` */
insert into `business_agent_cerdentials`(`agent_cerdentials_id`,`b_id`,`agent_id`,`credentials_cd`,`value`,`validity_period`,`positive_photo`,`negative_photo`,`month`,`create_time`,`operate`) values ('8220181223000004','5234567894','8020181223000001','1','632126XXXXXXXX2011','3000-01-01','正面照片地址,1234567.jpg','反面照片地址,没有不填写',12,'2018-12-23 08:57:05','ADD'),('8220181223000004','82234567894','8020181223000001','1','632126XXXXXXXX2011','3000-01-01','正面照片地址,1234567.jpg','反面照片地址,没有不填写',12,'2018-12-23 09:03:20','DEl'),('8220181223000004','82234567894','8020181223000001','1','632126XXXXXXXX2012','3000-02-01','1234567.jpg','11.jpg',12,'2018-12-23 09:03:20','ADD'),('8220181223000004','116234567894','8020181223000001','1','632126XXXXXXXX2012','3000-02-01','1234567.jpg','11.jpg',12,'2018-12-23 09:05:50','DEl');
/*Table structure for table `business_agent_photo` */
DROP TABLE IF EXISTS `business_agent_photo`;
CREATE TABLE `business_agent_photo` (
`agent_photo_id` varchar(30) NOT NULL COMMENT '代理商照片ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`agent_photo_type_cd` varchar(12) NOT NULL COMMENT '代理商照片类型,T 门头照 I 内景照',
`photo` varchar(100) NOT NULL COMMENT '照片',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_photo_agent_id` (`agent_id`),
KEY `idx_business_agent_photo_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_agent_photo_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_agent_photo_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_agent_photo_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_agent_photo_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_agent_photo_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_agent_photo_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_agent_photo_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_agent_photo_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_agent_photo_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_agent_photo_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_agent_photo_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_agent_photo_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_agent_photo` */
insert into `business_agent_photo`(`agent_photo_id`,`b_id`,`agent_id`,`agent_photo_type_cd`,`photo`,`month`,`create_time`,`operate`) values ('8120181223000003','4234567894','8020181223000001','T','12345678.jpg',12,'2018-12-23 08:55:10','ADD'),('8120181223000003','71234567894','8020181223000001','T','12345678.jpg',12,'2018-12-23 09:01:58','DEl'),('8120181223000003','71234567894','8020181223000001','T','123456789.jpg',12,'2018-12-23 09:01:58','ADD'),('8120181223000003','95234567894','8020181223000001','T','123456789.jpg',12,'2018-12-23 09:04:36','DEl');
/*Table structure for table `business_agent_user` */
DROP TABLE IF EXISTS `business_agent_user`;
CREATE TABLE `business_agent_user` (
`agent_user_id` varchar(30) NOT NULL COMMENT '代理商用户ID',
`agent_id` varchar(30) NOT NULL COMMENT '代理商ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`rel_cd` varchar(30) NOT NULL COMMENT '用户和代理商关系 详情查看 agent_user_rel表',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_agent_user` */
insert into `business_agent_user`(`agent_user_id`,`agent_id`,`b_id`,`user_id`,`rel_cd`,`month`,`create_time`,`operate`) values ('8320181223000005','8020181223000001','5234567894','123','600311000001',12,'2018-12-23 08:58:34','ADD'),('8320181223000005','8020181223000001','31234567894','123','600311000001',12,'2018-12-23 09:06:55','DEl');
/*Table structure for table `business_building_owner` */
DROP TABLE IF EXISTS `business_building_owner`;
CREATE TABLE `business_building_owner` (
`member_id` varchar(30) NOT NULL COMMENT '业主成员ID',
`owner_id` varchar(30) NOT NULL COMMENT '业主ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`name` varchar(12) NOT NULL COMMENT '业主名称',
`sex` int(11) NOT NULL COMMENT '性别',
`age` int(11) NOT NULL COMMENT '年龄',
`link` varchar(11) NOT NULL COMMENT '联系人手机号',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
`owner_type_cd` varchar(4) NOT NULL DEFAULT '1001' COMMENT '1001 业主本人 1002 家庭成员',
KEY `idx_business_owner_id` (`member_id`),
KEY `idx_business_owner_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_building_owner` */
insert into `business_building_owner`(`member_id`,`owner_id`,`b_id`,`name`,`sex`,`age`,`link`,`user_id`,`remark`,`create_time`,`operate`,`owner_type_cd`) values ('772019051712520001','772019051712520001','202019051796390002','张三',0,24,'17797173942','30518940136629616640','','2019-05-17 14:11:32','ADD','1001'),('772019051730670001','772019051730670001','202019051798740002','吴学文',0,23,'17797173942','30518940136629616640','','2019-05-17 14:29:38','ADD','1001'),('772019051712520001','772019051712520001','202019051885450002','张三',0,24,'17797173942','30518940136629616640','','2019-05-17 16:48:19','DEl','1001'),('772019051712520001','772019051712520001','202019051885450002','张三1',1,25,'17797173941','30518940136629616640','test','2019-05-17 16:48:19','ADD','1001'),('772019051807130001','772019051807130001','202019051880120004','吴梓豪',0,2,'17797173940','30518940136629616640','测试','2019-05-17 16:49:04','ADD','1001'),('772019051888960001','','202019051839700002','找大难',1,25,'17797177777','30518940136629616640','','2019-05-18 07:59:27','ADD','1001'),('772019051839350002','','202019051872120006','找大难',1,25,'17797177777','30518940136629616640','','2019-05-18 08:01:18','ADD','1001'),('772019051853860001','','202019051842650002','找大难',1,25,'17797177777','30518940136629616640','','2019-05-18 08:11:15','ADD','1001'),('772019051883280002','','202019051801160005','王大拿',0,25,'17797173444','30518940136629616640','','2019-05-18 08:12:10','ADD','1001'),('772019051856610003','','202019051887830008','xxx',1,14,'18977777777','30518940136629616640','','2019-05-18 08:19:18','ADD','1001'),('772019051860030001','772019051860030001','202019051888940002','王茜茜',1,24,'18909789999','30518940136629616640','','2019-05-18 08:32:15','ADD','1001'),('772019051860030001','772019051860030001','202019051870570002','王茜茜',1,24,'18909789999','30518940136629616640','','2019-05-18 10:36:24','DEl','1001'),('772019051860030001','772019051860030001','202019051870570002','王茜茜1',0,25,'18909789998','30518940136629616640','123','2019-05-18 10:36:24','ADD','1001'),('772019051860030001','772019051860030001','202019051863710004','王茜茜1',1,25,'18909789998','30518940136629616640','123','2019-05-18 10:36:51','DEl','1001'),('772019051860030001','772019051860030001','202019051863710004','王茜茜1',0,25,'18909789998','30518940136629616640','123','2019-05-18 10:36:51','ADD','1001'),('772019051860030001','772019051860030001','202019051837120006','王茜茜1',1,25,'18909789998','30518940136629616640','123','2019-05-18 10:38:34','DEl','1001'),('772019051860030001','772019051860030001','202019051837120006','王茜茜1',1,26,'18909789998','30518940136629616640','1234','2019-05-18 10:38:34','ADD','1001'),('772019051860030001','772019051860030001','202019051843140008','王茜茜1',1,26,'18909789998','30518940136629616640','1234','2019-05-18 10:40:29','DEl','1001'),('772019051860030001','772019051860030001','202019051843140008','王茜茜1',0,26,'18909789998','30518940136629616640','1234','2019-05-18 10:40:29','ADD','1001'),('772019051807130001','772019051807130001','202019051811350010','吴梓豪',0,2,'17797173940','30518940136629616640','测试','2019-05-18 10:42:05','DEl','1001'),('772019051807130001','772019051807130001','202019051811350010','吴梓豪',1,2,'17797173940','30518940136629616640','测试','2019-05-18 10:42:05','ADD','1001'),('772019051824170001','772019051824170001','202019051864800012','张颖',1,32,'18909789999','30518940136629616640','','2019-05-18 10:43:19','ADD','1001'),('772019051824170001','772019051824170001','202019051886350015','张颖',1,32,'18909789999','30518940136629616640','','2019-05-18 10:43:33','DEl','1001'),('772019051824170001','772019051824170001','202019051886350015','张颖',0,32,'18909789999','30518940136629616640','','2019-05-18 10:43:34','ADD','1001'),('772019051807130001','772019051807130001','202019051873410017','吴梓豪',1,2,'17797173940','30518940136629616640','测试','2019-05-18 10:43:45','DEl','1001'),('772019051807130001','772019051807130001','202019051873410017','吴梓豪',0,2,'17797173940','30518940136629616640','测试','2019-05-18 10:43:45','ADD','1001'),('772019051807130001','772019051807130001','202019051851950019','吴梓豪',1,2,'17797173940','30518940136629616640','测试','2019-05-18 10:44:57','DEl','1001'),('772019051807130001','772019051807130001','202019051851950019','吴梓豪',0,2,'17797173940','30518940136629616640','测试','2019-05-18 10:44:57','ADD','1001'),('772019051826810003','772019051730670001','202019051830060026','张三安',0,19,'17797173999','30518940136629616640','','2019-05-18 12:04:49','ADD','1002'),('772019051923410001','772019051730670001','202019051966970002','闪粉',1,12,'17797173909','30518940136629616640','','2019-05-19 00:26:56','ADD','1002'),('772019051994430002','772019051730670001','202019051933500004','王霞霞',1,25,'18909789999','30518940136629616640','','2019-05-19 00:27:43','ADD','1002'),('772019051932200003','772019051932200003','202019051944770006','皮晓兰',1,30,'18909786789','30518940136629616640','','2019-05-19 00:44:18','ADD','1001'),('772019051998120004','772019051932200003','202019051916160009','皮皮',0,3,'17798789001','30518940136629616640','','2019-05-19 00:44:57','ADD','1002'),('772019051948380005','772019051932200003','202019051901950011','皮皮虾',1,18,'18909789996','30518940136629616640','','2019-05-19 00:51:20','ADD','1002'),('772019051940060006','772019051932200003','202019051971540013','皮皮男',0,13,'17798788881','30518940136629616640','','2019-05-19 00:55:36','ADD','1002'),('772019051826810003','772019051730670001','202019051966520002','张三安',0,19,'17797173999','30518940136629616640','','2019-05-19 01:20:46','DEl','1002'),('772019051826810003','772019051730670001','202019051966520002','张三安1',1,18,'17797173991','30518940136629616640','','2019-05-19 01:20:46','ADD','1002'),('772019051998120004','772019051932200003','202019051931590002','皮皮',0,3,'17798789001','30518940136629616640','','2019-05-19 01:50:27','DEl','1002'),('772019051901000001','772019051932200003','202019051983570004','黄晓明',0,40,'13397089678','30518940136629616640','','2019-05-19 01:50:54','ADD','1002'),('772019052337170001','772019052337170001','202019052308670006','张三',0,88,'13812345678','30518940136629616640','','2019-05-23 06:53:33','ADD','1001'),('772019052337170001','772019052337170001','202019052370090009','张三',0,88,'13812345678','30518940136629616640','','2019-05-23 06:53:57','DEl','1001'),('772019052337170001','772019052337170001','202019052370090009','张三',0,888,'13812345678','30518940136629616640','','2019-05-23 06:53:57','ADD','1001'),('772019051730670001','772019051730670001','202019052646680008','吴学文',0,23,'17797173942','30518940136629616640','','2019-05-26 12:49:58','DEl','1001'),('772019052337170001','772019052337170001','202019052616520011','张三',0,888,'13812345678','30518940136629616640','','2019-05-26 12:50:07','DEl','1001'),('772019052337170001','772019052337170001','202019052616520011','张三',1,888,'13812345678','30518940136629616640','','2019-05-26 12:50:07','ADD','1001'),('772019052630240001','772019052630240001','202019052616400013','潘杰',1,38,'18888888888','30518940136629616640','皓晨潘杰','2019-05-26 12:50:33','ADD','1001');
/*Table structure for table `business_building_owner_room_rel` */
DROP TABLE IF EXISTS `business_building_owner_room_rel`;
CREATE TABLE `business_building_owner_room_rel` (
`rel_id` varchar(30) NOT NULL COMMENT '关系ID',
`owner_id` varchar(30) NOT NULL COMMENT '业主ID',
`room_id` varchar(30) NOT NULL COMMENT '房间ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`state` varchar(4) NOT NULL COMMENT '业务状态 2001 业主未迁入 2002 业主迁入 2003 业主迁出',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_bborrl_owner_id` (`rel_id`),
KEY `idx_bborrl_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_building_owner_room_rel` */
insert into `business_building_owner_room_rel`(`rel_id`,`owner_id`,`room_id`,`b_id`,`state`,`user_id`,`remark`,`create_time`,`operate`) values ('782019052290990001','772019051730670001','752019050845270003','202019052255290002','2001','30518940136629616640','','2019-05-21 16:30:15','ADD'),('782019052299880001','772019051932200003','752019050870640002','202019052282950002','2001','30518940136629616640','','2019-05-22 03:53:32','ADD'),('782019052227190001','772019051824170001','752019050876320004','202019052268080002','2001','30518940136629616640','','2019-05-22 13:36:51','ADD'),('782019052281900002','772019051824170001','752019050994740002','202019052296630004','2001','30518940136629616640','','2019-05-22 13:38:07','ADD'),('782019052281900002','772019051824170001','752019050994740002','202019052219400002','2001','30518940136629616640','','2019-05-22 15:19:05','DEl'),('782019052243940001','772019051824170001','752019050994740002','202019052250200004','2001','30518940136629616640','','2019-05-22 15:21:46','ADD'),('782019060259310001','772019052630240001','752019050860300001','202019060248010008','2001','30518940136629616640','','2019-06-02 03:40:03','ADD'),('782019060259310001','772019052630240001','752019050860300001','202019060296240002','2001','30518940136629616640','','2019-06-02 04:14:22','DEl'),('782019060292060001','772019052630240001','752019050906680001','202019060203320004','2001','30518940136629616640','','2019-06-02 04:15:12','ADD'),('782019060213970001','772019052630240001','752019050790250003','202019060241450002','2001','30518940136629616640','','2019-06-02 04:48:07','ADD'),('782019060213970001','772019052630240001','752019050790250003','202019060233250002','2001','30518940136629616640','','2019-06-02 05:02:16','DEl'),('782019060213970001','772019052630240001','752019050790250003','202019060284310002','2001','30518940136629616640','','2019-06-02 05:21:18','DEl'),('782019060243470001','772019052630240001','752019050860300001','202019060225140005','2001','30518940136629616640','','2019-06-02 05:22:43','ADD'),('782019060480000001','772019052337170001','752019050896140002','202019060411750008','2001','30518940136629616640','','2019-06-04 06:57:58','ADD');
/*Table structure for table `business_building_room` */
DROP TABLE IF EXISTS `business_building_room`;
CREATE TABLE `business_building_room` (
`room_id` varchar(30) NOT NULL COMMENT '房屋ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`room_num` varchar(12) NOT NULL COMMENT '房屋编号',
`unit_id` varchar(30) NOT NULL COMMENT '单元ID',
`layer` int(11) NOT NULL COMMENT '层数',
`section` int(11) NOT NULL COMMENT '室',
`apartment` varchar(4) NOT NULL COMMENT '户型',
`built_up_area` decimal(6,2) NOT NULL COMMENT '建筑面积',
`unit_price` decimal(12,2) NOT NULL COMMENT '每平米单价',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
`state` varchar(4) NOT NULL COMMENT '房屋状态,如房屋出售等,请查看state 表',
KEY `idx_business_room_id` (`room_id`),
KEY `idx_business_room_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_building_room` */
insert into `business_building_room`(`room_id`,`b_id`,`room_num`,`unit_id`,`layer`,`section`,`apartment`,`built_up_area`,`unit_price`,`user_id`,`remark`,`create_time`,`operate`,`state`) values ('752019050790250003','202019050762320006','1123','742019050304250004',12,2,'1010','95.46','4800.00','30518940136629616640','测试','2019-05-07 15:35:55','ADD',''),('752019050860300001','202019050890510002','1124','742019050304250004',12,3,'2020','124.89','4800.00','30518940136629616640','隔壁老王','2019-05-07 17:55:40','ADD',''),('752019050896140002','202019050812980004','1121','742019050304250004',12,2,'2020','92.34','4800.00','30518940136629616640','','2019-05-07 17:57:46','ADD',''),('752019050856240001','202019050822640002','1113','742019050304250004',11,2,'2020','97.45','4700.00','30518940136629616640','','2019-05-08 05:36:19','ADD',''),('752019050814710001','202019050893350002','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 06:07:27','ADD',''),('752019050870640002','202019050835720004','1124','742019050396500001',12,2,'2020','97.09','4800.00','30518940136629616640','测试','2019-05-08 07:39:39','ADD',''),('752019050845270003','202019050838100006','1121','742019050396500001',12,2,'2020','87.90','4800.00','30518940136629616640','','2019-05-08 07:40:32','ADD',''),('752019050876320004','202019050858950008','1122','742019050396500001',12,4,'2020','127.98','4800.00','30518940136629616640','','2019-05-08 07:41:21','ADD',''),('752019050811420005','202019050893040010','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 08:57:24','ADD',''),('752019050811420005','202019050857790002','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 10:05:44','DEl',''),('752019050811420005','202019050857790002','1113','742019050396500001',11,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 10:05:44','ADD',''),('752019050811420005','202019050823880004','1113','742019050396500001',11,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 10:14:57','DEl',''),('752019050811420005','202019050823880004','1113','742019050396500001',11,3,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 10:14:57','ADD',''),('752019050811420005','202019050812510002','1113','742019050396500001',11,3,'2020','95.45','4800.00','30518940136629616640','','2019-05-08 10:40:34','DEl',''),('752019050861590001','202019050853120004','123456','742019050396500001',22,8,'2020','129.99','10000.00','30518940136629616640','','2019-05-08 10:57:30','ADD',''),('752019050861590001','202019050847810006','123456','742019050396500001',22,8,'2020','129.99','10000.00','30518940136629616640','','2019-05-08 10:57:52','DEl',''),('752019050861590001','202019050847810006','12345','742019050396500001',22,8,'2020','129.99','10000.00','30518940136629616640','','2019-05-08 10:57:52','ADD',''),('752019050861590001','202019050801410008','12345','742019050396500001',22,8,'2020','129.99','10000.00','30518940136629616640','','2019-05-08 10:57:57','DEl',''),('752019050994740002','202019050942660010','2123','742019050362220003',12,2,'2020','97.88','4800.00','30518940136629616640','','2019-05-09 05:29:53','ADD',''),('752019050906680001','202019050968960002','2121','742019050362220003',12,2,'2020','97.33','4800.00','30518940136629616640','','2019-05-09 06:10:53','ADD','2001'),('752019050790250003','202019050955970004','1123','742019050304250004',12,2,'1010','95.46','4800.00','30518940136629616640','测试','2019-05-09 06:23:12','DEl',''),('752019050790250003','202019050955970004','1123','742019050304250004',12,2,'1010','95.46','4800.00','30518940136629616640','测试','2019-05-09 06:23:12','ADD','2002'),('752019050856240001','202019050927090006','1113','742019050304250004',11,2,'2020','97.45','4700.00','30518940136629616640','','2019-05-09 06:23:26','DEl',''),('752019050856240001','202019050927090006','1113','742019050304250004',11,2,'2020','97.45','4700.00','30518940136629616640','','2019-05-09 06:23:26','ADD','2003'),('752019050860300001','202019050942230008','1124','742019050304250004',12,3,'2020','124.89','4800.00','30518940136629616640','隔壁老王','2019-05-09 06:24:05','DEl',''),('752019050860300001','202019050942230008','1124','742019050304250004',12,3,'2020','124.89','4800.00','30518940136629616640','隔壁老王','2019-05-09 06:24:05','ADD','2004'),('752019050814710001','202019051032590010','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-10 05:55:35','DEl',''),('752019050814710001','202019051032590010','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-10 05:55:35','ADD','2001'),('752019050814710001','202019051397610016','1123','742019050396500001',12,2,'2020','95.45','4800.00','30518940136629616640','','2019-05-13 09:54:39','DEl','2001');
/*Table structure for table `business_building_room_attr` */
DROP TABLE IF EXISTS `business_building_room_attr`;
CREATE TABLE `business_building_room_attr` (
`b_id` varchar(30) NOT NULL COMMENT '订单ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`room_id` varchar(30) NOT NULL COMMENT '用户ID',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`value` varchar(50) NOT NULL COMMENT '属性值',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_b_room_attr` (`room_id`),
KEY `idx_business_b_room_attr_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_building_room_attr` */
/*Table structure for table `business_building_unit` */
DROP TABLE IF EXISTS `business_building_unit`;
CREATE TABLE `business_building_unit` (
`unit_id` varchar(30) NOT NULL COMMENT '单元ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`unit_num` varchar(12) NOT NULL COMMENT '单元编号',
`floor_id` varchar(30) NOT NULL COMMENT '楼ID',
`layer_count` int(11) NOT NULL COMMENT '总层数',
`lift` varchar(4) NOT NULL COMMENT '是否有电梯 1010有 2020 无',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_unit_id` (`unit_id`),
KEY `idx_business_unit_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_building_unit` */
insert into `business_building_unit`(`unit_id`,`b_id`,`unit_num`,`floor_id`,`layer_count`,`lift`,`user_id`,`remark`,`create_time`,`operate`) values ('742019050396500001','202019050398970002','001','732019042181450002',33,'1010','30518940136629616640','测试','2019-05-03 09:52:12','ADD'),('742019050358480002','202019050342470004','002','732019042181450002',33,'1010','30518940136629616640','测试','2019-05-03 09:52:42','ADD'),('742019050362220003','202019050354360006','002','732019042188750002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:09','ADD'),('742019050304250004','202019050399040008','001','732019042188750002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:18','ADD'),('742019050398030005','202019050318680010','001','732019042218110002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:30','ADD'),('742019050344140006','202019050328930012','002','732019042218110002',33,'1010','30518940136629616640','测试','2019-05-03 09:53:37','ADD'),('742019050374590007','202019050395750014','001','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 10:01:33','ADD'),('742019050389780008','202019050307280016','002','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 10:01:49','ADD'),('742019050374590007','202019050375210002','001','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 11:06:58','DEl'),('742019050374590007','202019050375210002','0011','732019042644990001',31,'2020','30518940136629616640','测试1','2019-05-03 11:06:58','ADD'),('742019050374590007','202019050346780002','001','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 11:36:42','DEl'),('742019050374590007','202019050346780002','0011','732019042644990001',31,'2020','30518940136629616640','测试1','2019-05-03 11:36:42','ADD'),('742019050325230001','202019050357280004','001','732019042644990001',33,'1010','30518940136629616640','测试','2019-05-03 11:37:00','ADD'),('742019050466970002','202019050474860006','001','732019042790640002',33,'1010','30518940136629616640','123456','2019-05-04 10:48:39','ADD'),('742019050466970002','202019050470920008','001','732019042790640002',33,'1010','30518940136629616640','123456','2019-05-04 10:48:57','DEl'),('742019050466970002','202019050470920008','002','732019042790640002',33,'1010','30518940136629616640','123456','2019-05-04 10:48:57','ADD'),('742019050466970002','202019050486630010','002','732019042790640002',33,'1010','30518940136629616640','123456','2019-05-04 10:49:06','DEl'),('742019050466970002','202019050486630010','001','732019042790640002',33,'1010','30518940136629616640','123456','2019-05-04 10:49:06','ADD'),('742019050358480002','202019050467640002','002','732019042181450002',33,'1010','30518940136629616640','测试','2019-05-04 13:24:57','DEl'),('742019050493150001','202019050497010002','002','732019042181450002',33,'1010','30518940136629616640','','2019-05-04 13:45:46','ADD'),('742019050493150001','202019050441380004','002','732019042181450002',33,'1010','30518940136629616640','','2019-05-04 13:45:57','DEl'),('742019050493150001','202019050441380004','002','732019042181450002',33,'1010','30518940136629616640','123456','2019-05-04 13:45:57','ADD'),('742019050493150001','202019050486680006','002','732019042181450002',33,'1010','30518940136629616640','123456','2019-05-04 13:46:08','DEl'),('742019050497530002','202019050422440008','001','732019042921980002',33,'2020','30518940136629616640','','2019-05-04 13:47:01','ADD'),('742019050697580001','202019050638030002','002','732019042181450002',33,'1010','30518940136629616640','','2019-05-06 02:16:50','ADD'),('742019050683430002','202019050656610005','002','732019042181450002',33,'1010','30518940136629616640','','2019-05-06 02:17:02','ADD'),('742019050702710001','202019050745870002','001','732019042715940003',33,'1010','30518940136629616640','','2019-05-06 16:08:48','ADD'),('742019050785380002','202019050722290004','001','732019042773170001',33,'1010','30518940136629616640','','2019-05-06 19:41:42','ADD');
/*Table structure for table `business_community` */
DROP TABLE IF EXISTS `business_community`;
CREATE TABLE `business_community` (
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`name` varchar(100) NOT NULL COMMENT '小区名称',
`address` varchar(200) NOT NULL COMMENT '小区地址',
`city_code` varchar(12) NOT NULL COMMENT '根据定位获取城市编码',
`nearby_landmarks` varchar(200) DEFAULT NULL COMMENT '地标,如王府井北60米',
`map_x` varchar(20) NOT NULL COMMENT '地区 x坐标',
`map_y` varchar(20) NOT NULL COMMENT '地区 y坐标',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_community_id` (`community_id`),
KEY `idx_business_community_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_community_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_community_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_community_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_community_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_community_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_community_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_community_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_community_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_community_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_community_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_community_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_community_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_community` */
insert into `business_community`(`community_id`,`b_id`,`name`,`address`,`city_code`,`nearby_landmarks`,`map_x`,`map_y`,`month`,`create_time`,`operate`) values ('702019051474290001','1234567891','万博家博园(城西区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-14 09:19:04','ADD'),('702019051443120001','22234567891','万博家博园(城南区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-14 09:24:07','ADD'),('702019051551820001','3234567891','万博家博园(城中区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-15 12:49:49','ADD'),('702019051695520001','42234567891','万博家博园(城V区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 01:48:17','ADD'),('702019051650000005','62234567891','万博家博园(城V区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 02:05:02','ADD'),('702019051687020001','72234567891','万博家博园(城V区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 02:10:55','ADD'),('702019051657250007','92234567891','万博家博园(城V区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 02:12:04','ADD'),('702019051666020001','92234567895','万博家博园(城V区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 02:34:37','ADD'),('702019051696930001','92234567897','万博家博园(城V区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 02:43:26','ADD'),('702019051651830001','92234567898','万博家博园(城H区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',5,'2019-05-16 02:50:55','ADD'),('7020181217000001','1234567890','方博家园','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',12,'2018-12-17 04:52:55','ADD'),('7020181217000001','1234567891','方博家园','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',12,'2018-12-17 05:06:14','DEl'),('7020181217000001','1234567891','万博家博园(城西区)','青海省西宁市城中区129号','100010','王府井旁30米','101.801909','36.597263',12,'2018-12-17 05:06:14','ADD');
/*Table structure for table `business_community_attr` */
DROP TABLE IF EXISTS `business_community_attr`;
CREATE TABLE `business_community_attr` (
`b_id` varchar(30) NOT NULL COMMENT '订单ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`community_id` varchar(30) NOT NULL COMMENT '用户ID',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`value` varchar(50) NOT NULL COMMENT '属性值',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_attr_community_id` (`community_id`),
KEY `idx_business_community_attr_b_id` (`b_id`),
KEY `idx_business_b_room_attr_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_community_attr_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_community_attr_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_community_attr_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_community_attr_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_community_attr_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_community_attr_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_community_attr_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_community_attr_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_community_attr_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_community_attr_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_community_attr_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_community_attr_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_community_attr` */
insert into `business_community_attr`(`b_id`,`attr_id`,`community_id`,`spec_cd`,`value`,`month`,`create_time`,`operate`) values ('72234567891','112019051689480002','702019051687020001','1001','01',5,'2019-05-16 02:10:55','ADD'),('82234567891','112019051609710005','702019051621670004','1001','01',5,'2019-05-16 02:11:01','ADD'),('92234567891','112019051685870008','702019051657250007','1001','01',5,'2019-05-16 02:12:04','ADD'),('92234567898','112019051651830002','702019051651830001','1001','01',5,'2019-05-16 02:50:55','ADD'),('1234567890','112018121700000002','7020181217000001','1001','01',12,'2018-12-17 04:52:55','ADD'),('1234567891','112018121700000002','7020181217000001','1001','01',12,'2018-12-17 05:06:15','DEl'),('1234567891','112018121700000002','7020181217000001','1001','01',12,'2018-12-17 05:06:15','ADD');
/*Table structure for table `business_community_member` */
DROP TABLE IF EXISTS `business_community_member`;
CREATE TABLE `business_community_member` (
`community_member_id` varchar(30) NOT NULL COMMENT 'ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`member_id` varchar(50) NOT NULL COMMENT '成员ID',
`member_type_cd` varchar(12) NOT NULL COMMENT '成员类型见 community_member_type表',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
`audit_status_cd` varchar(4) NOT NULL DEFAULT '0000' COMMENT '审核状态',
KEY `idx_business_member_community_id` (`community_id`),
KEY `idx_business_community_member_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_community_member_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_community_member_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_community_member_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_community_member_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_community_member_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_community_member_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_community_member_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_community_member_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_community_member_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_community_member_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_community_member_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_community_member_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_community_member` */
insert into `business_community_member`(`community_member_id`,`b_id`,`community_id`,`member_id`,`member_type_cd`,`month`,`create_time`,`operate`,`audit_status_cd`) values ('722019041852540001','202019041834510002','7020181217000002','402019032924930007','390001200002',4,'2019-04-18 04:03:08','ADD','0000'),('722019041887470002','202019041891220004','7020181217000002','402019032924930007','390001200002',4,'2019-04-18 07:09:21','ADD','0000'),('7220181217000001','202019041834430002','7020181217000001','402019032924930007','390001200002',4,'2019-04-18 15:31:02','DEl','0000'),('7220181217000001','202019041884620004','7020181217000001','402019032924930007','390001200002',4,'2019-04-18 15:39:27','DEl','0000'),('7220181217000001','202019041850040006','7020181217000001','402019032924930007','390001200002',4,'2019-04-18 15:44:55','DEl','0000'),('722019042647500001','202019042632530003','7020181217000001','732019042665380001','390001200004',4,'2019-04-26 08:34:30','ADD','0000'),('722019042683690002','202019042646640006','7020181217000001','732019042604640002','390001200004',4,'2019-04-26 08:37:11','ADD','0000'),('722019042658320003','202019042644750009','7020181217000001','732019042622070003','390001200004',4,'2019-04-26 08:45:15','ADD','0000'),('722019042695080004','202019042644760012','7020181217000001','732019042656310004','390001200004',4,'2019-04-26 08:57:16','ADD','0000'),('722019042615080005','202019042641830015','7020181217000001','732019042657550005','390001200004',4,'2019-04-26 08:59:41','ADD','0000'),('722019042626080001','202019042640630003','7020181217000001','732019042607010001','390001200004',4,'2019-04-26 09:14:11','ADD','0000'),('722019042667870002','202019042653890006','7020181217000001','732019042653170002','390001200004',4,'2019-04-26 09:14:59','ADD','0000'),('722019042619710003','202019042649120009','7020181217000001','732019042653880003','390001200004',4,'2019-04-26 09:22:08','ADD','0000'),('722019042699390004','202019042655970012','7020181217000001','732019042687750004','390001200004',4,'2019-04-26 09:24:55','ADD','0000'),('722019042613970001','202019042677430003','7020181217000001','732019042644990001','390001200004',4,'2019-04-26 09:53:42','ADD','0000'),('722019042782690001','202019042723970002','7020181217000002','402019032924930007','390001200002',4,'2019-04-26 16:59:00','ADD','1000'),('722019042708930002','202019042776600004','7020181217000002','402019032924930007','390001200002',4,'2019-04-26 16:59:32','ADD','1000'),('722019042788240003','202019042799620006','7020181217000002','402019032924930007','390001200002',4,'2019-04-26 17:05:00','ADD','1000'),('722019042737600001','202019042750320003','7020181217000001','732019042773170001','390001200004',4,'2019-04-26 17:30:55','ADD','0000'),('722019042774370002','202019042735920006','7020181217000001','732019042790640002','390001200004',4,'2019-04-26 17:37:14','ADD','0000'),('722019042735900003','202019042785490009','7020181217000001','732019042715940003','390001200004',4,'2019-04-26 17:38:57','ADD','0000'),('722019042785690004','202019042717160014','7020181217000001','732019042784130004','390001200004',4,'2019-04-27 11:56:56','ADD','0000'),('722019042851120001','202019042875350007','7020181217000001','732019042893370001','390001200004',4,'2019-04-28 09:53:54','ADD','0000'),('722019042851120001','202019042988310003','7020181217000001','732019042893370001','390001200004',4,'2019-04-28 17:17:10','DEl','0000'),('722019042956360001','202019042922430006','7020181217000001','732019042937930001','390001200004',4,'2019-04-28 17:19:24','ADD','0000'),('722019042956360001','202019042912540011','7020181217000001','732019042937930001','390001200004',4,'2019-04-28 17:19:44','DEl','0000'),('722019042953950001','202019042971000003','7020181217000001','732019042908600001','390001200004',4,'2019-04-29 09:14:52','ADD','0000'),('722019042922660002','202019042921120006','7020181217000001','732019042921980002','390001200004',4,'2019-04-29 09:21:46','ADD','0000'),('722019042983420003','202019042979290009','7020181217000001','732019042986310003','390001200004',4,'2019-04-29 09:21:59','ADD','0000'),('722019042992290004','202019042945820012','7020181217000001','732019042905340004','390001200004',4,'2019-04-29 09:22:28','ADD','0000'),('722019042933990005','202019042915470015','7020181217000001','732019042939210005','390001200004',4,'2019-04-29 09:22:43','ADD','0000'),('722019042921800006','202019042987920018','7020181217000001','732019042925840006','390001200004',4,'2019-04-29 09:22:55','ADD','0000'),('722019042960050007','202019042948530021','7020181217000001','732019042954400007','390001200004',4,'2019-04-29 09:23:08','ADD','0000'),('722019042940530008','202019042936100024','7020181217000001','732019042907570008','390001200004',4,'2019-04-29 09:23:40','ADD','0000'),('722019042933000001','202019042995080003','7020181217000001','732019042904050001','390001200004',4,'2019-04-29 11:47:35','ADD','0000'),('722019042974160002','202019042970510006','7020181217000001','732019042937750002','390001200004',4,'2019-04-29 11:48:06','ADD','0000'),('722019051741410001','202019051735310003','7020181217000001','772019051712520001','390001200005',5,'2019-05-17 14:11:35','ADD','0000'),('722019051755950001','202019051752520003','7020181217000001','772019051730670001','390001200005',5,'2019-05-17 14:29:39','ADD','0000'),('722019051835910001','202019051820940005','7020181217000001','772019051807130001','390001200005',5,'2019-05-17 16:49:05','ADD','0000'),('722019051741410001','202019051829600003','7020181217000001','772019051712520001','390001200005',5,'2019-05-17 16:58:22','DEl','0000'),('722019051817770001','202019051847830003','7020181217000001','772019051888960001','390001200005',5,'2019-05-18 07:59:28','ADD','0000'),('722019051835390002','202019051883170007','7020181217000001','772019051839350002','390001200005',5,'2019-05-18 08:01:18','ADD','0000'),('722019051800120001','202019051846110003','7020181217000001','772019051853860001','390001200005',5,'2019-05-18 08:11:17','ADD','0000'),('722019051878390002','202019051814090006','7020181217000001','772019051883280002','390001200005',5,'2019-05-18 08:12:10','ADD','0000'),('722019051820930003','202019051861450009','7020181217000001','772019051856610003','390001200005',5,'2019-05-18 08:19:18','ADD','0000'),('722019051872430001','202019051864990003','7020181217000001','772019051860030001','390001200005',5,'2019-05-18 08:32:16','ADD','0000'),('722019051888830001','202019051885250013','7020181217000001','772019051824170001','390001200005',5,'2019-05-18 10:43:20','ADD','0000'),('722019051835910001','202019051893170022','7020181217000001','772019051807130001','390001200005',5,'2019-05-18 10:51:33','DEl','0000'),('722019051975520001','202019051959440007','7020181217000001','772019051932200003','390001200005',5,'2019-05-19 00:44:19','ADD','0000'),('722019051872430001','202019051961460009','7020181217000001','772019051860030001','390001200005',5,'2019-05-19 01:25:49','DEl','0000'),('722019052372380001','202019052366960007','7020181217000001','772019052337170001','390001200005',5,'2019-05-23 06:53:34','ADD','0000'),('722019051755950001','202019052655040009','7020181217000001','772019051730670001','390001200005',5,'2019-05-26 12:49:58','DEl','0000'),('722019052693600002','202019052624900014','7020181217000001','772019052630240001','390001200005',5,'2019-05-26 12:50:33','ADD','0000'),('722019052619090003','202019052650230016','702019051666020001','402019032924930007','390001200002',5,'2019-05-26 12:50:57','ADD','1000'),('722019052942510007','202019052990380028','702019051696930001','402019032924930007','390001200002',5,'2019-05-29 09:16:36','ADD','1000'),('722019060636810002','202019060621530004','702019051651830001','402019032924930007','390001200002',6,'2019-06-05 16:39:00','ADD','1000'),('722019060639010004','202019060639000008','702019051657250007','402019032924930007','390001200002',6,'2019-06-05 16:39:14','ADD','1000'),('7220181217000001','1234567891','7020181217000001','345678','390001200001',12,'2018-12-17 14:27:08','ADD','0000'),('7220181217000001','1234567891','7020181217000001','3456789','390001200001',12,'2018-12-17 14:43:37','ADD','0000'),('7220181217000002','1234567891','7020181217000001','3456789','390001200001',12,'2018-12-17 14:44:35','ADD','0000'),('7220181217000003','1234567891','7020181217000001','3456789','390001200001',12,'2018-12-17 14:45:24','ADD','0000'),('7220181217000004','1234567892','7020181217000001','3456789','390001200001',12,'2018-12-17 14:46:03','ADD','0000'),('7220181217000004','1234567893','7020181217000001','3456789','390001200001',12,'2018-12-17 15:05:51','DEl','0000'),('7220181217000004','1234567894','7020181217000001','3456789','390001200001',12,'2018-12-17 15:06:53','DEl','0000');
/*Table structure for table `business_community_photo` */
DROP TABLE IF EXISTS `business_community_photo`;
CREATE TABLE `business_community_photo` (
`community_photo_id` varchar(30) NOT NULL COMMENT '商户照片ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`community_photo_type_cd` varchar(12) NOT NULL COMMENT '商户照片类型,T 门头照 I 内景照',
`photo` varchar(100) NOT NULL COMMENT '照片',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_photo_community_id` (`community_id`),
KEY `idx_business_community_photo_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_community_photo_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_community_photo_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_community_photo_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_community_photo_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_community_photo_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_community_photo_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_community_photo_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_community_photo_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_community_photo_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_community_photo_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_community_photo_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_community_photo_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_community_photo` */
insert into `business_community_photo`(`community_photo_id`,`b_id`,`community_id`,`community_photo_type_cd`,`photo`,`month`,`create_time`,`operate`) values ('712019051639830003','72234567891','702019051687020001','T','12345678.jpg',5,'2019-05-16 02:10:55','ADD'),('712019051635190006','82234567891','702019051621670004','T','12345678.jpg',5,'2019-05-16 02:11:01','ADD'),('712019051659510009','92234567891','702019051657250007','T','12345678.jpg',5,'2019-05-16 02:12:05','ADD'),('712019051693130003','92234567897','702019051696930001','T','12345678.jpg',5,'2019-05-16 02:43:27','ADD'),('712019051618080003','92234567898','702019051651830001','T','12345678.jpg',5,'2019-05-16 02:50:56','ADD'),('7120181217000003','1234567890','7020181217000001','T','12345678.jpg',12,'2018-12-17 04:52:55','ADD'),('7120181217000003','1234567891','7020181217000001','T','12345678.jpg',12,'2018-12-17 05:06:15','DEl'),('7120181217000003','1234567891','7020181217000001','T','12345678.jpg',12,'2018-12-17 05:06:15','ADD');
/*Table structure for table `business_floor` */
DROP TABLE IF EXISTS `business_floor`;
CREATE TABLE `business_floor` (
`floor_id` varchar(30) NOT NULL COMMENT '楼ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`floor_num` varchar(12) NOT NULL COMMENT '楼编号',
`name` varchar(100) NOT NULL COMMENT '小区楼名称',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) DEFAULT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_floor_id` (`floor_id`),
KEY `idx_business_floor_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_floor` */
insert into `business_floor`(`floor_id`,`b_id`,`floor_num`,`name`,`user_id`,`remark`,`create_time`,`operate`) values ('732019042181450002','89861991919','01','1号楼','302019042192720001','填写具体值','2019-04-21 15:09:48','ADD'),('732019042188750002','89861991920','01','1号楼','302019042192720001',NULL,'2019-04-21 15:21:27','ADD'),('732019042188750002','89861991922','01','1号楼','302019042192720001',NULL,'2019-04-21 15:40:14','DEl'),('732019042188750002','89861991922','02','2号楼','302019042192720001',NULL,'2019-04-21 15:40:14','ADD'),('732019042188750002','89861991923','02','2号楼','302019042192720001',NULL,'2019-04-21 15:41:34','DEl'),('732019042248530001','89861991923','03','3号楼','302019042192720001',NULL,'2019-04-21 16:40:06','ADD'),('732019042218110002','89861991925','04','4号楼','302019042192720001',NULL,'2019-04-21 16:41:46','ADD'),('732019042237920003','89861991925','05','5号楼','302019042192720001',NULL,'2019-04-21 16:41:46','ADD'),('732019042248530001','89861991926','03','3号楼','302019042192720001',NULL,'2019-04-21 16:43:18','DEl'),('732019042248530001','89861991926','004','4号楼01','302019042192720001',NULL,'2019-04-21 16:43:18','ADD'),('732019042248530001','89861991927','03','3号楼','302019042192720001',NULL,'2019-04-21 16:43:35','DEl'),('732019042248530001','89861991927','004','4号楼01','302019042192720001',NULL,'2019-04-21 16:43:35','ADD'),('732019042248530001','89861991928','004','4号楼01','302019042192720001',NULL,'2019-04-21 16:44:34','DEl'),('732019042218110002','89861991930','04','4号楼','302019042192720001',NULL,'2019-04-21 16:46:24','DEl'),('732019042218110002','89861991930','003','3号楼01','302019042192720001',NULL,'2019-04-21 16:46:24','ADD'),('732019042237920003','89861991930','05','5号楼','302019042192720001',NULL,'2019-04-21 16:46:24','DEl'),('732019042237920003','89861991930','005','5号楼01','302019042192720001',NULL,'2019-04-21 16:46:24','ADD'),('732019042218110002','89861991931','003','3号楼01','302019042192720001',NULL,'2019-04-21 16:47:29','DEl'),('732019042237920003','89861991931','005','5号楼01','302019042192720001',NULL,'2019-04-21 16:47:30','DEl'),('732019042644990001','202019042604660002','045','045','30518940136629616640','测试,必须成功','2019-04-26 09:53:41','ADD'),('732019042717050001','202019042757120008','021','021','30518940136629616640','021','2019-04-26 17:12:03','ADD'),('732019042729750001','202019042785720002','021','021','30518940136629616640','021','2019-04-26 17:20:53','ADD'),('732019042773170001','202019042729460002','20','20','30518940136629616640','20','2019-04-26 17:30:55','ADD'),('732019042790640002','202019042775180005','21','21','30518940136629616640','21','2019-04-26 17:37:14','ADD'),('732019042715940003','202019042731610008','22','22','30518940136629616640','22','2019-04-26 17:38:57','ADD'),('732019042784130004','202019042711910013','023','23','30518940136629616640','测试','2019-04-27 11:56:56','ADD'),('732019042188750002','202019042833710002','02','2号楼','302019041824320001',NULL,'2019-04-28 09:47:07','DEl'),('732019042188750002','202019042833710002','021','2号楼1','30518940136629616640','021','2019-04-28 09:47:07','ADD'),('732019042773170001','202019042828060004','20','20','30518940136629616640','20','2019-04-28 09:47:53','DEl'),('732019042773170001','202019042828060004','24','24','30518940136629616640','24','2019-04-28 09:47:53','ADD'),('732019042893370001','202019042870220006','26','26','30518940136629616640','26','2019-04-28 09:53:53','ADD'),('732019042893370001','202019042827770009','26','26','30518940136629616640','26','2019-04-28 09:54:10','DEl'),('732019042893370001','202019042827770009','27','27','30518940136629616640','27','2019-04-28 09:54:10','ADD'),('732019042893370001','202019042893250011','27','27','30518940136629616640','27','2019-04-28 14:03:35','DEl'),('732019042893370001','202019042893250011','26','26','30518940136629616640','26','2019-04-28 14:03:35','ADD'),('732019042893370001','202019042911830002','26','26','30518940136629616640','26','2019-04-28 16:09:14','DEl'),('732019042893370001','202019042911830002','26','26','30518940136629616640','26','2019-04-28 16:09:14','ADD'),('732019042893370001','202019042962160002','26','26','30518940136629616640','26','2019-04-28 16:57:35','DEl'),('732019042893370001','202019042942050005','26','26','30518940136629616640','26','2019-04-28 17:06:21','DEl'),('732019042893370001','202019042979960002','26','26','30518940136629616640','26','2019-04-28 17:17:10','DEl'),('732019042937930001','202019042905090005','27','27','30518940136629616640','27','2019-04-28 17:19:24','ADD'),('732019042937930001','202019042900640008','27','27','30518940136629616640','27','2019-04-28 17:19:37','DEl'),('732019042937930001','202019042900640008','28','28','30518940136629616640','28','2019-04-28 17:19:37','ADD'),('732019042937930001','202019042932230010','28','28','30518940136629616640','28','2019-04-28 17:19:44','DEl'),('732019042908600001','202019042982100002','34','34','30518940136629616640','34','2019-04-29 09:14:52','ADD'),('732019042921980002','202019042976730005','33','33','30518940136629616640','33','2019-04-29 09:21:46','ADD'),('732019042986310003','202019042927450008','32','32','30518940136629616640','32','2019-04-29 09:21:59','ADD'),('732019042905340004','202019042953870011','36','36','30518940136629616640','36','2019-04-29 09:22:28','ADD'),('732019042939210005','202019042978390014','37','37','30518940136629616640','37','2019-04-29 09:22:43','ADD'),('732019042925840006','202019042971980017','38','38','30518940136629616640','38','2019-04-29 09:22:55','ADD'),('732019042954400007','202019042996460020','39','39','30518940136629616640','39','2019-04-29 09:23:08','ADD'),('732019042907570008','202019042910990023','38','38','30518940136629616640','38','2019-04-29 09:23:40','ADD'),('732019042904050001','202019042908790002','40','40','30518940136629616640','40','2019-04-29 11:47:35','ADD'),('732019042937750002','202019042900080005','42','42','30518940136629616640','42','2019-04-29 11:48:06','ADD');
/*Table structure for table `business_member_store` */
DROP TABLE IF EXISTS `business_member_store`;
CREATE TABLE `business_member_store` (
`member_store_id` varchar(30) NOT NULL COMMENT 'ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`store_id` varchar(30) NOT NULL COMMENT '商店ID',
`member_id` varchar(50) NOT NULL COMMENT '商户成员ID',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_member_store_store_id` (`store_id`),
KEY `idx_business_member_store_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_member_store_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_member_store_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_member_store_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_member_store_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_member_store_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_member_store_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_member_store_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_member_store_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_member_store_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_member_store_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_member_store_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_member_store_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_member_store` */
/*Table structure for table `business_owner_car` */
DROP TABLE IF EXISTS `business_owner_car`;
CREATE TABLE `business_owner_car` (
`car_id` varchar(30) NOT NULL COMMENT '汽车ID',
`owner_id` varchar(30) NOT NULL COMMENT '业主ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`car_num` varchar(12) NOT NULL COMMENT '车牌号',
`car_brand` varchar(50) NOT NULL COMMENT '汽车品牌',
`car_type` varchar(4) NOT NULL COMMENT '9901 家用小汽车,9902 客车,9903 货车',
`car_color` varchar(12) NOT NULL COMMENT '颜色',
`ps_id` varchar(30) NOT NULL COMMENT '车位ID',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_boc_car_id` (`car_id`),
KEY `idx_boc_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_owner_car` */
insert into `business_owner_car`(`car_id`,`owner_id`,`b_id`,`car_num`,`car_brand`,`car_type`,`car_color`,`ps_id`,`user_id`,`remark`,`create_time`,`operate`) values ('802019060884330001','772019051824170001','202019060818100002','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','','2019-06-08 04:04:56','ADD'),('802019060861200002','772019051824170001','202019060846020007','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','','2019-06-08 04:09:24','ADD'),('802019060814860001','772019051824170001','202019060803860002','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','','2019-06-08 04:24:23','ADD'),('802019060815380002','772019051824170001','202019060847790007','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','','2019-06-08 04:27:51','ADD'),('802019060855880003','772019051824170001','202019060810530012','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','','2019-06-08 04:28:52','ADD'),('802019060865530004','772019051824170001','202019060806430017','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','','2019-06-08 04:29:25','ADD'),('802019060818600001','772019051824170001','202019060845080002','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','测试','2019-06-08 05:55:06','ADD'),('802019060818600001','772019051824170001','202019060905050002','青AGK916','传祺GS4','9901','白色','792019060544610001','30518940136629616640','测试','2019-06-08 16:50:47','DEl'),('802019060996090001','772019051824170001','202019060967560006','青AGK917','大众CC','9901','白色','792019060544610001','30518940136629616640','测试','2019-06-08 16:54:03','ADD'),('802019060996090001','772019051824170001','202019060905130011','青AGK917','大众CC','9901','白色','792019060544610001','30518940136629616640','测试','2019-06-08 16:56:43','DEl'),('802019060957150002','772019051824170001','202019060915600015','青AGK918','东风雷诺','9901','红色','792019060544610001','30518940136629616640','测试','2019-06-08 16:57:29','ADD'),('802019061088450001','772019052630240001','202019061072890002','青CBB666','奥迪A8','9901','黑色','792019060695730005','30518940136629616640','','2019-06-09 16:08:20','ADD'),('802019061038310002','772019051932200003','202019061044690013','青ACC888','宝马X6','9901','白色','792019061076110002','30518940136629616640','','2019-06-09 16:11:03','ADD'),('802019061088450001','772019052630240001','202019061029490002','青CBB666','奥迪A8','9901','黑色','792019060695730005','30518940136629616640','','2019-06-09 16:28:05','DEl'),('802019061038310002','772019051932200003','202019061070810006','青ACC888','宝马X6','9901','白色','792019061076110002','30518940136629616640','','2019-06-09 16:28:49','DEl');
/*Table structure for table `business_parking_space` */
DROP TABLE IF EXISTS `business_parking_space`;
CREATE TABLE `business_parking_space` (
`ps_id` varchar(30) NOT NULL COMMENT '车位ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`num` varchar(12) NOT NULL COMMENT '车位编号',
`type_cd` varchar(4) NOT NULL COMMENT '车位类型,地上停车位1001 地下停车位 2001',
`state` varchar(4) NOT NULL COMMENT '车位状态 出售 S,出租 H ,空闲 F',
`area` decimal(7,2) NOT NULL COMMENT '车位面积',
`user_id` varchar(30) NOT NULL COMMENT '用户ID',
`remark` varchar(300) NOT NULL COMMENT '用户ID',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_bps_ps_id` (`ps_id`),
KEY `idx_bps_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_parking_space` */
insert into `business_parking_space`(`ps_id`,`b_id`,`community_id`,`num`,`type_cd`,`state`,`area`,`user_id`,`remark`,`create_time`,`operate`) values ('792019060575090001','202019060536030004','7020181217000001','WB001','1001','F','12.90','30518940136629616640','','2019-06-04 16:25:54','ADD'),('792019060575090001','202019060508030008','7020181217000001','WB001','1001','F','12.90','30518940136629616640','','2019-06-04 16:37:32','DEl'),('792019060544610001','202019060580010002','7020181217000001','WB002','1001','F','3.89','30518940136629616640','','2019-06-04 16:46:43','ADD'),('792019060544610001','202019060567090004','7020181217000001','WB002','1001','F','3.89','30518940136629616640','','2019-06-04 16:47:11','DEl'),('792019060544610001','202019060567090004','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-04 16:47:11','ADD'),('792019060695730005','202019060684560018','7020181217000001','1232','1001','F','3.00','30518940136629616640','123','2019-06-06 10:18:49','ADD'),('792019060544610001','202019060811200003','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 04:24:24','DEl'),('792019060544610001','202019060811200003','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 04:24:24','ADD'),('792019060544610001','202019060893580008','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 04:27:51','DEl'),('792019060544610001','202019060893580008','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 04:27:51','ADD'),('792019060544610001','202019060894030013','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 04:28:52','DEl'),('792019060544610001','202019060894030013','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 04:28:52','ADD'),('792019060544610001','202019060824640018','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 04:29:25','DEl'),('792019060544610001','202019060824640018','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 04:29:25','ADD'),('792019060544610001','202019060863360003','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 05:55:07','DEl'),('792019060544610001','202019060863360003','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 05:55:07','ADD'),('792019060544610001','202019060926800003','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 16:50:49','DEl'),('792019060544610001','202019060926800003','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 16:50:49','ADD'),('792019060544610001','202019060978860007','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 16:54:03','DEl'),('792019060544610001','202019060978860007','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 16:54:03','ADD'),('792019060544610001','202019060984100012','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 16:56:44','DEl'),('792019060544610001','202019060984100012','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 16:56:44','ADD'),('792019060544610001','202019060913420016','7020181217000001','WB003','2001','F','3.88','30518940136629616640','测试','2019-06-08 16:57:29','DEl'),('792019060544610001','202019060913420016','7020181217000001','WB003','2001','S','3.88','30518940136629616640','测试','2019-06-08 16:57:29','ADD'),('792019060695730005','202019061039240003','7020181217000001','1232','1001','F','3.00','30518940136629616640','123','2019-06-09 16:08:21','DEl'),('792019060695730005','202019061039240003','7020181217000001','1232','1001','H','3.00','30518940136629616640','123','2019-06-09 16:08:21','ADD'),('792019061013090001','202019061017320007','7020181217000001','WB004','1001','F','12.08','30518940136629616640','','2019-06-09 16:09:19','ADD'),('792019061076110002','202019061093600009','7020181217000001','WB005','2001','F','12.07','30518940136629616640','','2019-06-09 16:09:43','ADD'),('792019061044360003','202019061090550011','7020181217000001','WB006','2001','F','12.36','30518940136629616640','','2019-06-09 16:10:00','ADD'),('792019061076110002','202019061018820014','7020181217000001','WB005','2001','F','12.07','30518940136629616640','','2019-06-09 16:11:03','DEl'),('792019061076110002','202019061018820014','7020181217000001','WB005','2001','S','12.07','30518940136629616640','','2019-06-09 16:11:03','ADD'),('792019060695730005','202019061066360003','7020181217000001','1232','1001','H','3.00','30518940136629616640','123','2019-06-09 16:28:08','DEl'),('792019060695730005','202019061066360003','7020181217000001','1232','1001','F','3.00','30518940136629616640','123','2019-06-09 16:28:08','ADD'),('792019061076110002','202019061086170007','7020181217000001','WB005','2001','S','12.07','30518940136629616640','','2019-06-09 16:28:49','DEl'),('792019061076110002','202019061086170007','7020181217000001','WB005','2001','F','12.07','30518940136629616640','','2019-06-09 16:28:49','ADD');
/*Table structure for table `business_pay_fee` */
DROP TABLE IF EXISTS `business_pay_fee`;
CREATE TABLE `business_pay_fee` (
`fee_id` varchar(30) NOT NULL COMMENT '费用ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`fee_type_cd` varchar(12) NOT NULL COMMENT '费用类型,物业费,停车费',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`payer_obj_id` varchar(30) NOT NULL COMMENT '付款方ID',
`income_obj_id` varchar(30) NOT NULL COMMENT '收款方ID',
`start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '开始时间',
`end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '结束时间',
`amount` decimal(7,2) NOT NULL DEFAULT '-1.00' COMMENT '总金额,如物业费,停车费等没有总金额的,填写为-1.00',
`user_id` varchar(30) NOT NULL COMMENT '创建用户ID',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_bpf_fee_id` (`fee_id`),
KEY `idx_bpf_b_id` (`b_id`),
KEY `idx_pf_fee_id` (`fee_id`),
KEY `idx_pf_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_pay_fee` */
insert into `business_pay_fee`(`fee_id`,`b_id`,`fee_type_cd`,`community_id`,`payer_obj_id`,`income_obj_id`,`start_time`,`end_time`,`amount`,`user_id`,`create_time`,`operate`) values ('902019060295320001','202019060268370003','888800010001','7020181217000001','752019050790250003','402019032924930007','2019-06-02 12:48:05','2019-06-02 12:48:05','-1.00','30518940136629616640','2019-06-02 04:48:10','ADD'),('902019060295320001','202019060229640003','888800010001','7020181217000001','752019050790250003','402019032924930007','2019-06-02 12:48:05','2019-06-02 12:48:05','-1.00','30518940136629616640','2019-06-02 05:02:17','DEl'),('902019060295320001','202019060206150003','888800010001','7020181217000001','752019050790250003','402019032924930007','2019-06-02 12:48:05','2019-06-02 12:48:05','-1.00','30518940136629616640','2019-06-02 05:21:20','DEl'),('902019060201520001','202019060254680006','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2019-06-02 13:22:43','-1.00','30518940136629616640','2019-06-02 05:22:44','ADD'),('902019060201520001','202019060317050003','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2019-06-02 13:22:43','-1.00','30518940136629616640','2019-06-03 08:06:01','DEl'),('902019060201520001','202019060317050003','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2019-09-02 13:22:43','-1.00','30518940136629616640','2019-06-03 08:06:01','ADD'),('902019060201520001','202019060392620003','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2019-09-02 13:22:43','-1.00','30518940136629616640','2019-06-03 13:22:54','DEl'),('902019060201520001','202019060392620003','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2019-10-02 13:22:43','-1.00','30518940136629616640','2019-06-03 13:22:54','ADD'),('902019060201520001','202019060444320003','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2019-10-02 13:22:43','-1.00','30518940136629616640','2019-06-03 17:48:08','DEl'),('902019060201520001','202019060444320003','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2020-01-02 13:22:43','-1.00','30518940136629616640','2019-06-03 17:48:08','ADD'),('902019060447390002','202019060408020009','888800010001','7020181217000001','752019050896140002','402019032924930007','2019-06-04 14:57:58','2019-06-04 14:57:58','-1.00','30518940136629616640','2019-06-04 06:57:58','ADD'),('902019060201520001','202019060446370012','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2020-01-02 13:22:43','-1.00','30518940136629616640','2019-06-04 07:00:44','DEl'),('902019060201520001','202019060446370012','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2020-02-02 13:22:43','-1.00','30518940136629616640','2019-06-04 07:00:44','ADD'),('902019060201520001','202019060546810010','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2020-02-02 13:22:43','-1.00','30518940136629616640','2019-06-05 13:48:56','DEl'),('902019060201520001','202019060546810010','888800010001','7020181217000001','752019050860300001','402019032924930007','2019-06-02 13:22:43','2021-02-02 13:22:43','-1.00','30518940136629616640','2019-06-05 13:48:56','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','0000-00-00 00:00:00','-1.00','30518940136629616640','2019-06-08 04:31:16','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','0000-00-00 00:00:00','-1.00','30518940136629616640','2019-06-08 04:31:55','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','0000-00-00 00:00:00','-1.00','30518940136629616640','2019-06-08 04:32:19','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','0000-00-00 00:00:00','-1.00','30518940136629616640','2019-06-08 04:34:14','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','0000-00-00 00:00:00','-1.00','30518940136629616640','2019-06-08 04:37:30','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','2037-12-30 12:12:12','-1.00','30518940136629616640','2019-06-08 04:37:57','ADD'),('902019060824090004','202019060888560019','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 12:29:24','2038-01-01 00:00:00','-1.00','30518940136629616640','2019-06-08 04:38:27','ADD'),('902019060882350001','202019060868610004','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 13:55:04','2038-01-01 00:00:00','-1.00','30518940136629616640','2019-06-08 05:55:08','ADD'),('902019060882350001','202019060969220004','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-08 13:55:04','2038-01-01 00:00:00','-1.00','30518940136629616640','2019-06-08 16:50:48','DEl'),('902019060939110001','202019060926100008','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-09 00:54:02','2038-01-01 00:00:00','-1.00','30518940136629616640','2019-06-08 16:54:03','ADD'),('902019060939110001','202019060943070013','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-09 00:54:02','2038-01-01 00:00:00','-1.00','30518940136629616640','2019-06-08 16:56:43','DEl'),('902019060918930002','202019060956040017','888800010003','7020181217000001','792019060544610001','402019032924930007','2019-06-09 00:57:29','2038-01-01 00:00:00','-1.00','30518940136629616640','2019-06-08 16:57:30','ADD'),('902019061018030001','202019061039910004','888800010004','7020181217000001','792019060695730005','402019032924930007','2019-06-10 00:08:17','2019-06-10 00:08:17','-1.00','30518940136629616640','2019-06-09 16:08:22','ADD'),('902019061077390002','202019061080790015','888800010003','7020181217000001','792019061076110002','402019032924930007','2019-06-10 00:11:03','2038-01-01 00:00:00','99999.99','30518940136629616640','2019-06-09 16:11:03','ADD'),('902019061018030001','202019061089200004','888800010004','7020181217000001','792019060695730005','402019032924930007','2019-06-10 00:08:17','2019-06-10 00:08:17','-1.00','30518940136629616640','2019-06-09 16:28:06','DEl'),('902019061077390002','202019061062540008','888800010003','7020181217000001','792019061076110002','402019032924930007','2019-06-10 00:11:03','2038-01-01 00:00:00','99999.99','30518940136629616640','2019-06-09 16:28:49','DEl');
/*Table structure for table `business_pay_fee_attrs` */
DROP TABLE IF EXISTS `business_pay_fee_attrs`;
CREATE TABLE `business_pay_fee_attrs` (
`fee_id` varchar(30) NOT NULL COMMENT '费用ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`value` varchar(50) NOT NULL COMMENT '属性值',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_bpfa_fee_id` (`fee_id`),
KEY `idx_bpfa_b_id` (`b_id`),
KEY `idx_pfa_fee_id` (`fee_id`),
KEY `idx_pfa_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_pay_fee_attrs` */
/*Table structure for table `business_pay_fee_config` */
DROP TABLE IF EXISTS `business_pay_fee_config`;
CREATE TABLE `business_pay_fee_config` (
`config_id` varchar(30) NOT NULL COMMENT '费用ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`fee_type_cd` varchar(12) NOT NULL COMMENT '费用类型,物业费,停车费',
`square_price` decimal(7,2) NOT NULL COMMENT '每平米收取的单价',
`additional_amount` decimal(7,2) NOT NULL COMMENT '附加费用',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_bpfc_config_id` (`config_id`),
KEY `idx_bpfc_b_id` (`b_id`),
KEY `idx_pfc_config_id` (`config_id`),
KEY `idx_pfc_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_pay_fee_config` */
insert into `business_pay_fee_config`(`config_id`,`b_id`,`community_id`,`fee_type_cd`,`square_price`,`additional_amount`,`create_time`,`operate`) values ('922019060280800001','202019060243950002','7020181217000001','888800010001','3.15','200.00','2019-06-01 16:11:45','ADD'),('922019060280800001','202019060296560002','7020181217000001','888800010001','3.15','200.00','2019-06-01 16:33:34','DEl'),('922019060280800001','202019060296560002','7020181217000001','888800010001','3.16','200.00','2019-06-01 16:33:34','ADD'),('922019060280800001','202019060297870004','7020181217000001','888800010001','3.16','200.00','2019-06-01 16:33:43','DEl'),('922019060280800001','202019060297870004','7020181217000001','888800010001','3.16','201.00','2019-06-01 16:33:43','ADD'),('922019060280800001','202019060235590006','7020181217000001','888800010001','3.16','201.00','2019-06-02 02:07:18','DEl'),('922019060280800001','202019060235590006','7020181217000001','888800010001','3.17','201.00','2019-06-02 02:07:18','ADD');
/*Table structure for table `business_pay_fee_detail` */
DROP TABLE IF EXISTS `business_pay_fee_detail`;
CREATE TABLE `business_pay_fee_detail` (
`detail_id` varchar(30) NOT NULL COMMENT '费用明细ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`fee_id` varchar(30) NOT NULL COMMENT '费用ID',
`community_id` varchar(30) NOT NULL COMMENT '小区ID',
`cycles` int(11) NOT NULL COMMENT '周期,以月为单位',
`receivable_amount` decimal(7,2) NOT NULL COMMENT '应收金额',
`received_amount` decimal(7,2) NOT NULL COMMENT '实收金额',
`prime_rate` decimal(3,2) NOT NULL COMMENT '打折率',
`remark` varchar(200) NOT NULL COMMENT '备注',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(4) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_bpfd_detail_id` (`detail_id`),
KEY `idx_bpfd_b_id` (`b_id`),
KEY `idx_pfd_detail_id` (`detail_id`),
KEY `idx_pfd_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_pay_fee_detail` */
insert into `business_pay_fee_detail`(`detail_id`,`b_id`,`fee_id`,`community_id`,`cycles`,`receivable_amount`,`received_amount`,`prime_rate`,`remark`,`create_time`,`operate`) values ('912019060365080001','202019060323600002','902019060201520001','7020181217000001',3,'1790.70','1790.70','1.00','测试','2019-06-03 07:49:03','ADD'),('912019060325760001','202019060386250002','902019060201520001','7020181217000001',3,'1790.70','1790.70','1.00','测试','2019-06-03 08:06:00','ADD'),('912019060382700001','202019060360120002','902019060201520001','7020181217000001',1,'596.90','596.90','1.00','测试','2019-06-03 13:22:54','ADD'),('912019060427550001','202019060487860002','902019060201520001','7020181217000001',3,'1790.70','1790.70','1.00','','2019-06-03 17:48:08','ADD'),('912019060459310003','202019060473410011','902019060201520001','7020181217000001',1,'596.90','596.90','1.00','测试','2019-06-04 07:00:44','ADD'),('912019060558580001','202019060597950009','902019060201520001','7020181217000001',12,'7162.82','7162.82','1.00','','2019-06-05 13:48:56','ADD'),('912019060862910001','202019060899970005','902019060882350001','7020181217000001',1,'99999.99','99999.99','1.00','测试','2019-06-08 05:55:08','ADD'),('912019060954310001','202019060995750009','902019060939110001','7020181217000001',1,'99999.99','99999.99','1.00','测试','2019-06-08 16:54:03','ADD'),('912019060935270002','202019060971230018','902019060918930002','7020181217000001',1,'99999.99','99999.99','1.00','测试','2019-06-08 16:57:30','ADD'),('912019061086730001','202019061002600005','902019061018030001','7020181217000001',1,'80.00','79999.99','1.00','','2019-06-09 16:08:22','ADD'),('912019061029450002','202019061027520016','902019061077390002','7020181217000001',1,'99999.99','99999.99','1.00','','2019-06-09 16:11:03','ADD');
/*Table structure for table `business_property` */
DROP TABLE IF EXISTS `business_property`;
CREATE TABLE `business_property` (
`property_id` varchar(30) NOT NULL COMMENT '物业ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`name` varchar(100) NOT NULL COMMENT '物业名称',
`address` varchar(200) NOT NULL COMMENT '物业地址',
`tel` varchar(11) NOT NULL COMMENT '电话',
`nearby_landmarks` varchar(200) DEFAULT NULL COMMENT '地标,如王府井北60米',
`map_x` varchar(20) NOT NULL COMMENT '地区 x坐标',
`map_y` varchar(20) NOT NULL COMMENT '地区 y坐标',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_property_id` (`property_id`),
KEY `idx_business_property_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_property_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_property_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_property_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_property_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_property_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_property_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_property_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_property_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_property_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_property_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_property_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_property_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_property` */
insert into `business_property`(`property_id`,`b_id`,`name`,`address`,`tel`,`nearby_landmarks`,`map_x`,`map_y`,`month`,`create_time`,`operate`) values ('9020181218000001','2234567894','方博家园','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-18 14:54:19','ADD'),('9020181218000001','9234567894','方博家园','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-23 04:01:05','DEl'),('9020181218000001','9234567894','方博家园','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-23 04:01:05','ADD'),('9020181218000001','9234567894','方博家园','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-23 04:02:17','DEl'),('9020181218000001','9234567894','方博家园123','青海省西宁市城中区129号123','17797173952','王府井旁40米','102.801909','37.597263',12,'2018-12-23 04:02:17','ADD'),('9020181218000001','10234567894','方博家园','青海省西宁市城中区129号','17797173942','王府井旁30米','101.801909','36.597263',12,'2018-12-23 04:02:24','DEl'),('9020181218000001','10234567894','方博家园123','青海省西宁市城中区129号123','17797173952','王府井旁40米','102.801909','37.597263',12,'2018-12-23 04:02:24','ADD');
/*Table structure for table `business_property_attr` */
DROP TABLE IF EXISTS `business_property_attr`;
CREATE TABLE `business_property_attr` (
`b_id` varchar(30) NOT NULL COMMENT '订单ID',
`attr_id` varchar(30) NOT NULL COMMENT '属性id',
`property_id` varchar(30) NOT NULL COMMENT '用户ID',
`spec_cd` varchar(12) NOT NULL COMMENT '规格id,参考spec表',
`value` varchar(50) NOT NULL COMMENT '属性值',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_attr_property_id` (`property_id`),
KEY `idx_business_property_attr_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_property_attr_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_property_attr_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_property_attr_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_property_attr_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_property_attr_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_property_attr_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_property_attr_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_property_attr_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_property_attr_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_property_attr_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_property_attr_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_property_attr_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_property_attr` */
insert into `business_property_attr`(`b_id`,`attr_id`,`property_id`,`spec_cd`,`value`,`month`,`create_time`,`operate`) values ('2234567894','112018121800000002','9020181218000001','1001','01',12,'2018-12-18 14:54:19','ADD'),('9234567894','112018121800000002','9020181218000001','1001','01',12,'2018-12-23 04:01:06','DEl'),('9234567894','112018121800000002','9020181218000001','1001','02',12,'2018-12-23 04:01:06','ADD'),('9234567894','112018121800000002','9020181218000001','1001','01',12,'2018-12-23 04:02:17','DEl'),('9234567894','112018121800000002','9020181218000001','1001','02',12,'2018-12-23 04:02:17','ADD'),('10234567894','112018121800000002','9020181218000001','1001','01',12,'2018-12-23 04:02:25','DEl'),('10234567894','112018121800000002','9020181218000001','1001','02',12,'2018-12-23 04:02:25','ADD'),('19234567894','112018121800000002','9020181218000001','1001','02',12,'2018-12-23 07:45:01','DEl');
/*Table structure for table `business_property_cerdentials` */
DROP TABLE IF EXISTS `business_property_cerdentials`;
CREATE TABLE `business_property_cerdentials` (
`property_cerdentials_id` varchar(30) NOT NULL COMMENT '物业证件ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`property_id` varchar(30) NOT NULL COMMENT '物业ID',
`credentials_cd` varchar(12) NOT NULL COMMENT '证件类型,对应于 credentials表',
`value` varchar(50) NOT NULL COMMENT '证件号码',
`validity_period` date NOT NULL COMMENT '有效期,如果是长期有效 写成 3000/1/1',
`positive_photo` varchar(100) DEFAULT NULL COMMENT '正面照片',
`negative_photo` varchar(100) DEFAULT NULL COMMENT '反面照片',
`month` int(11) NOT NULL COMMENT '月份',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL',
KEY `idx_business_cerdentials_property_id` (`property_id`),
KEY `idx_business_property_cerdentials_b_id` (`b_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
/*!50100 PARTITION BY RANGE (`month`)
(PARTITION business_property_cerdentials_1 VALUES LESS THAN (2) ENGINE = InnoDB,
PARTITION business_property_cerdentials_2 VALUES LESS THAN (3) ENGINE = InnoDB,
PARTITION business_property_cerdentials_3 VALUES LESS THAN (4) ENGINE = InnoDB,
PARTITION business_property_cerdentials_4 VALUES LESS THAN (5) ENGINE = InnoDB,
PARTITION business_property_cerdentials_5 VALUES LESS THAN (6) ENGINE = InnoDB,
PARTITION business_property_cerdentials_6 VALUES LESS THAN (7) ENGINE = InnoDB,
PARTITION business_property_cerdentials_7 VALUES LESS THAN (8) ENGINE = InnoDB,
PARTITION business_property_cerdentials_8 VALUES LESS THAN (9) ENGINE = InnoDB,
PARTITION business_property_cerdentials_9 VALUES LESS THAN (10) ENGINE = InnoDB,
PARTITION business_property_cerdentials_10 VALUES LESS THAN (11) ENGINE = InnoDB,
PARTITION business_property_cerdentials_11 VALUES LESS THAN (12) ENGINE = InnoDB,
PARTITION business_property_cerdentials_12 VALUES LESS THAN (13) ENGINE = InnoDB) */;
/*Data for the table `business_property_cerdentials` */
insert into `business_property_cerdentials`(`property_cerdentials_id`,`b_id`,`property_id`,`credentials_cd`,`value`,`validity_period`,`positive_photo`,`negative_photo`,`month`,`create_time`,`operate`) values ('9220181218000002','4234567894','9020181218000001','1','632126XXXXXXXX2011','3000-01-01','正面照片地址,1234567.jpg','反面照片地址,没有不填写',12,'2018-12-18 15:32:00','ADD'),('9220181218000002','12234567894','9020181218000001','1','632126XXXXXXXX2011','3000-01-01','正面照片地址,1234567.jpg','反面照片地址,没有不填写',12,'2018-12-23 04:26:54','DEl'),('9220181218000002','12234567894','9020181218000001','1','632126XXXXXXXX2012','3000-02-01','1234567.jpg','11.jpg',12,'2018-12-23 04:26:54','ADD'),('9220181218000002','16234567894','9020181218000001','1','632126XXXXXXXX2012','3000-02-01','1234567.jpg','11.jpg',12,'2018-12-23 07:04:54','DEl');
/*Table structure for table `business_property_fee` */
DROP TABLE IF EXISTS `business_property_fee`;
CREATE TABLE `business_property_fee` (
`fee_id` varchar(30) NOT NULL COMMENT 'ID',
`b_id` varchar(30) NOT NULL COMMENT '业务Id',
`property_id` varchar(30) NOT NULL COMMENT '物业ID',
`fee_type_cd` varchar(10) NOT NULL COMMENT '费用类型,物业费,停车费 请查看property_fee_type表',
`fee_money` varchar(20) NOT NULL COMMENT '费用金额',
`fee_time` varchar(10) NOT NULL COMMENT '费用周期,一个月,半年,或一年 请查看property_fee_time表',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '开始时间',
`end_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '结束时间',
`month` int(11) NOT NULL COMMENT '月份',
`operate` varchar(3) NOT NULL COMMENT '数据状态,添加ADD,修改MOD 删除DEL'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `business_property_fee` */
insert into `business_property_fee`(`fee_id`,`b_id`,`property_id`,`fee_type_cd`,`fee_money`,`fee_time`,`create_time`,`start_time`,`end_time`,`month`,`operate`) values ('9420181221000001','5234567894','9020181218000001','T','10','0.5','2018-12-20 16:14:57','2018-01-01 00:00:00','2020-12-31 00:00:00',12,'ADD'),('9420181221000001','13234567894','9020181218000001','T','10','0.5','2018-12-23 04:52:34','2018-01-01 00:00:00','2020-12-31 00:00:00',12,'DEl'),('9420181221000001','13234567894','9020181218000001','T','10','0.5','2018-12-23 04:52:34','2018-05-01 00:00:00','2020-11-30 00:00:00',12,'ADD');
/*Table structure for table `business_property_house` */