|
@@ -0,0 +1,313 @@
|
|
1
|
+drop table if exists tp_hotel_setting;
|
|
2
|
+
|
|
3
|
+/*==============================================================*/
|
|
4
|
+/* Table: tp_hotel_setting */
|
|
5
|
+/*==============================================================*/
|
|
6
|
+create table tp_hotel_setting
|
|
7
|
+(
|
|
8
|
+ id int(11) not null auto_increment,
|
|
9
|
+ community_id int(11) comment '小区ID',
|
|
10
|
+ create_date datetime comment '创建时间',
|
|
11
|
+ create_user int(11) comment '创建人',
|
|
12
|
+ primary key (id)
|
|
13
|
+);
|
|
14
|
+
|
|
15
|
+alter table tp_hotel_setting comment '酒店开关设置';
|
|
16
|
+
|
|
17
|
+drop table if exists tp_hotel;
|
|
18
|
+
|
|
19
|
+/*==============================================================*/
|
|
20
|
+/* Table: tp_hotel */
|
|
21
|
+/*==============================================================*/
|
|
22
|
+create table tp_hotel
|
|
23
|
+(
|
|
24
|
+ id int(11) not null auto_increment,
|
|
25
|
+ community_id int(11) comment '小区ID',
|
|
26
|
+ hotel_name varchar(255) comment '小区名字',
|
|
27
|
+ hotel_tel varchar(255) comment '酒店电话',
|
|
28
|
+ hotel_address varchar(255) comment '酒店地址',
|
|
29
|
+ hotel_longitude varchar(255) comment '酒店经度',
|
|
30
|
+ hotel_latitude varchar(255) comment '酒店纬度',
|
|
31
|
+ hotel_introduction text comment '酒店介绍',
|
|
32
|
+ create_date datetime comment '创建时间',
|
|
33
|
+ create_user int(11) comment '创建人',
|
|
34
|
+ update_date datetime comment '更新时间',
|
|
35
|
+ update_user int(11) comment '更新人',
|
|
36
|
+ primary key (id)
|
|
37
|
+);
|
|
38
|
+
|
|
39
|
+alter table tp_hotel comment '酒店';
|
|
40
|
+
|
|
41
|
+drop table if exists tp_hotel_img;
|
|
42
|
+
|
|
43
|
+/*==============================================================*/
|
|
44
|
+/* Table: tp_hotel_img */
|
|
45
|
+/*==============================================================*/
|
|
46
|
+create table tp_hotel_img
|
|
47
|
+(
|
|
48
|
+ id int(11) not null auto_increment,
|
|
49
|
+ community_id int(11) comment '小区ID',
|
|
50
|
+ hotel_id int(11) comment '酒店ID',
|
|
51
|
+ img_url varchar(255) comment '酒店图片地址',
|
|
52
|
+ img_type varchar(2) comment '酒店图片类型 1是首页图片每个酒店唯一,2是banner图片',
|
|
53
|
+ create_date datetime comment '创建时间',
|
|
54
|
+ primary key (id)
|
|
55
|
+);
|
|
56
|
+
|
|
57
|
+alter table tp_hotel_img comment '酒店图片';
|
|
58
|
+
|
|
59
|
+drop table if exists tp_hotel_room;
|
|
60
|
+
|
|
61
|
+/*==============================================================*/
|
|
62
|
+/* Table: tp_hotel_room */
|
|
63
|
+/*==============================================================*/
|
|
64
|
+create table tp_hotel_room
|
|
65
|
+(
|
|
66
|
+ id int(11) not null auto_increment,
|
|
67
|
+ community_id int(11) comment '小区ID',
|
|
68
|
+ hotel_id int(11) comment '酒店ID',
|
|
69
|
+ room_no varchar(255) comment '房间编号',
|
|
70
|
+ room_name varchar(255) comment '房间名称',
|
|
71
|
+ sort int(11) comment '排序(权重)',
|
|
72
|
+ price varchar(255) comment '房间价格',
|
|
73
|
+ room_status varchar(2) comment '上架状态 1 是已上架 2是已下架',
|
|
74
|
+ remark varchar(255) comment '房间备注',
|
|
75
|
+ create_date datetime comment '创建时间',
|
|
76
|
+ create_user int(11) comment '创建人',
|
|
77
|
+ update_date datetime comment '更新时间',
|
|
78
|
+ update_user int(11) comment '更新人',
|
|
79
|
+ primary key (id)
|
|
80
|
+);
|
|
81
|
+
|
|
82
|
+alter table tp_hotel_room comment '酒店房间表';
|
|
83
|
+
|
|
84
|
+drop table if exists tp_rental_house;
|
|
85
|
+
|
|
86
|
+/*==============================================================*/
|
|
87
|
+/* Table: tp_rental_house */
|
|
88
|
+/*==============================================================*/
|
|
89
|
+create table tp_rental_house
|
|
90
|
+(
|
|
91
|
+ id int(11) not null auto_increment,
|
|
92
|
+ community_id int(11) comment '我们系统的小区ID',
|
|
93
|
+ house_name varchar(255) comment '房间名称',
|
|
94
|
+ rental_price varchar(255) comment '房屋租金',
|
|
95
|
+ area varchar(255) comment '面积',
|
|
96
|
+ rental_type varchar(255) comment '出租方式 1 是整租 2是合租',
|
|
97
|
+ house_type varchar(255) comment '户型 1 是一室居 2是二室居 3 是三室局 4 是四室居及以上',
|
|
98
|
+ house_status varchar(255) comment '上架状态 1 是已上架 2是已下架',
|
|
99
|
+ house_level varchar(255) comment '楼层',
|
|
100
|
+ house_label varchar(255) comment '标签',
|
|
101
|
+ sort int(11) comment '权重',
|
|
102
|
+ house_tel varchar(255) comment '联系电话',
|
|
103
|
+ community_address varchar(255) comment '小区地址',
|
|
104
|
+ community_longitude varchar(255) comment '小区经度',
|
|
105
|
+ community_latitude varchar(255) comment '小区纬度',
|
|
106
|
+ house_introduction text comment '房屋介绍',
|
|
107
|
+ bed varchar(1) comment '床 1 有',
|
|
108
|
+ mattress varchar(1) comment '床垫 1 有',
|
|
109
|
+ wardrobe varchar(1) comment '衣柜 1 有',
|
|
110
|
+ sofa varchar(1) comment '沙发 1 有',
|
|
111
|
+ washing_machine varchar(1) comment ' 洗衣机 1 有',
|
|
112
|
+ air_conditioning varchar(1) comment '空调 1 有',
|
|
113
|
+ fridge varchar(1) comment '冰箱 1 有',
|
|
114
|
+ TV varchar(1) comment '电视 1有',
|
|
115
|
+ smart_lock varchar(1) comment '智能锁 1有',
|
|
116
|
+ water_heater varchar(1) comment '热水器 1 有',
|
|
117
|
+ desk varchar(1) comment '桌子 1 有',
|
|
118
|
+ chair varchar(1) comment '椅子 1 有',
|
|
119
|
+ WiFi varchar(1) comment 'WiFi 1 有',
|
|
120
|
+ kitchen varchar(1) comment '厨房 1 有',
|
|
121
|
+ bathroom varchar(1) comment '独卫 1 有',
|
|
122
|
+ balcony varchar(1) comment '阳台 1 有',
|
|
123
|
+ create_date datetime comment '创建时间',
|
|
124
|
+ create_user int(11) comment '创建人',
|
|
125
|
+ update_date datetime comment '更新时间',
|
|
126
|
+ update_user int(11) comment '更新人',
|
|
127
|
+ primary key (id)
|
|
128
|
+);
|
|
129
|
+
|
|
130
|
+alter table tp_rental_house comment '出租公寓表';
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+drop table if exists tp_rental_house_img;
|
|
134
|
+
|
|
135
|
+/*==============================================================*/
|
|
136
|
+/* Table: tp_rental_house_img */
|
|
137
|
+/*==============================================================*/
|
|
138
|
+create table tp_rental_house_img
|
|
139
|
+(
|
|
140
|
+ id int(11) not null auto_increment,
|
|
141
|
+ community_id int(11) comment '小区ID',
|
|
142
|
+ rental_house_id int(11) comment '出租房间ID',
|
|
143
|
+ img_url varchar(255) comment '出租房间图片地址',
|
|
144
|
+ img_type varchar(2) comment '出租房间图片类型 1是app列表图,2是轮播图',
|
|
145
|
+ create_date datetime comment '创建时间',
|
|
146
|
+ primary key (id)
|
|
147
|
+);
|
|
148
|
+
|
|
149
|
+alter table tp_rental_house_img comment '出租房间图片';
|
|
150
|
+
|
|
151
|
+drop table if exists ta_user_license;
|
|
152
|
+
|
|
153
|
+/*==============================================================*/
|
|
154
|
+/* Table: ta_user_license */
|
|
155
|
+/*==============================================================*/
|
|
156
|
+create table ta_user_license
|
|
157
|
+(
|
|
158
|
+ id int(11) not null auto_increment,
|
|
159
|
+ community_id int(11) comment '小区ID',
|
|
160
|
+ ta_user_id int(11) comment 'APP用户ID',
|
|
161
|
+ license_plate varchar(255) comment '车牌',
|
|
162
|
+ order_number varchar(255) comment '订单号',
|
|
163
|
+ expire_date datetime comment '到期时间',
|
|
164
|
+ unit_price varchar(255) comment '单价费用',
|
|
165
|
+ parking_lot varchar(255) comment '停车场',
|
|
166
|
+ renew_time int(11) comment '允许过期后继续续费的时间(天)',
|
|
167
|
+ license_type int(11) comment '车缴费类型:1 月租车',
|
|
168
|
+ create_date datetime comment '创建时间',
|
|
169
|
+ create_user int(11) comment '创建人',
|
|
170
|
+ update_date datetime comment '更新时间',
|
|
171
|
+ update_user int(11) comment '更新人',
|
|
172
|
+ primary key (id)
|
|
173
|
+);
|
|
174
|
+
|
|
175
|
+alter table ta_user_license comment '用户车牌号表';
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+drop table if exists ta_user_license_order;
|
|
179
|
+
|
|
180
|
+/*==============================================================*/
|
|
181
|
+/* Table: ta_user_license_order */
|
|
182
|
+/*==============================================================*/
|
|
183
|
+create table ta_user_license_order
|
|
184
|
+(
|
|
185
|
+ id int(11) not null auto_increment,
|
|
186
|
+ community_id int(11) comment '小区ID',
|
|
187
|
+ ta_user_id int(11) comment '人员ID',
|
|
188
|
+ order_number varchar(255) comment '订单号',
|
|
189
|
+ order_status varchar(255) comment '支付状态 0:未支付 1: 已支付 2: 正在支付中',
|
|
190
|
+ create_user int(11) comment '创建人',
|
|
191
|
+ create_date datetime comment '创建时间',
|
|
192
|
+ update_user int(11) comment '更新人',
|
|
193
|
+ update_date datetime comment '更新时间',
|
|
194
|
+ extension_month int(11) comment '延期月份',
|
|
195
|
+ extension_price varchar(255) comment '延期费用',
|
|
196
|
+ payment_tel varchar(255) comment '缴费手机号',
|
|
197
|
+ payment_name varchar(255) comment '缴费人姓名',
|
|
198
|
+ payment_type varchar(2) comment '缴费方式 1是支付宝 2是微信支付',
|
|
199
|
+ expire_date datetime comment '到期时间',
|
|
200
|
+ unit_price varchar(255) comment '单价费用',
|
|
201
|
+ parking_lot varchar(255) comment '停车场',
|
|
202
|
+ license_plate varchar(255) comment '车牌号',
|
|
203
|
+ primary key (id)
|
|
204
|
+);
|
|
205
|
+
|
|
206
|
+alter table ta_user_license_order comment '月租车缴费订单表';
|
|
207
|
+
|
|
208
|
+drop table if exists tp_shop_setting;
|
|
209
|
+
|
|
210
|
+/*==============================================================*/
|
|
211
|
+/* Table: tp_shop_setting */
|
|
212
|
+/*==============================================================*/
|
|
213
|
+create table tp_shop_setting
|
|
214
|
+(
|
|
215
|
+ id int(11) not null auto_increment,
|
|
216
|
+ community_id int(11) comment '小区ID',
|
|
217
|
+ create_date datetime comment '创建时间',
|
|
218
|
+ create_user int(11) comment '创建人',
|
|
219
|
+ primary key (id)
|
|
220
|
+);
|
|
221
|
+
|
|
222
|
+alter table tp_shop_setting comment '商铺开关设置';
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+drop table if exists tp_shop_type;
|
|
226
|
+
|
|
227
|
+/*==============================================================*/
|
|
228
|
+/* Table: tp_shop_type */
|
|
229
|
+/*==============================================================*/
|
|
230
|
+create table tp_shop_type
|
|
231
|
+(
|
|
232
|
+ id int(11) not null auto_increment,
|
|
233
|
+ community_id int(11) comment '小区ID',
|
|
234
|
+ type_name varchar(255) comment '类型名称',
|
|
235
|
+ sort int(11) comment '排序',
|
|
236
|
+ source varchar(16) comment '来源 sys 是系统创建 self是个人创建',
|
|
237
|
+ create_date datetime comment '创建时间',
|
|
238
|
+ create_user int(11) comment '创建人',
|
|
239
|
+ primary key (id)
|
|
240
|
+);
|
|
241
|
+
|
|
242
|
+alter table tp_shop_type comment '商铺类型';
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+drop table if exists tp_shop;
|
|
246
|
+
|
|
247
|
+/*==============================================================*/
|
|
248
|
+/* Table: tp_shop */
|
|
249
|
+/*==============================================================*/
|
|
250
|
+create table tp_shop
|
|
251
|
+(
|
|
252
|
+ id int(11) not null auto_increment,
|
|
253
|
+ community_id int(11) comment '小区ID',
|
|
254
|
+ shop_name varchar(255) comment '商铺名称',
|
|
255
|
+ remark varchar(255) comment '商铺说明',
|
|
256
|
+ sort int(11) comment '排序(权重)',
|
|
257
|
+ shop_type_id int(11) comment '商铺类型',
|
|
258
|
+ shop_status varchar(2) comment '商铺状态 1是已上架 2是已下架',
|
|
259
|
+ shop_tel varchar(255) comment '商铺电话',
|
|
260
|
+ shop_address varchar(255) comment '商铺地址',
|
|
261
|
+ average_price varchar(255) comment '均价',
|
|
262
|
+ shop_longitude varchar(255) comment '商铺经度',
|
|
263
|
+ shop_latitude varchar(255) comment '商铺纬度',
|
|
264
|
+ shop_introduction text comment '商铺介绍',
|
|
265
|
+ create_date datetime comment '创建时间',
|
|
266
|
+ create_user int(11) comment '创建人',
|
|
267
|
+ update_date datetime comment '更新时间',
|
|
268
|
+ update_user int(11) comment '更新人',
|
|
269
|
+ primary key (id)
|
|
270
|
+);
|
|
271
|
+
|
|
272
|
+alter table tp_shop comment '小区商铺表';
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+drop table if exists tp_shop_img;
|
|
276
|
+
|
|
277
|
+/*==============================================================*/
|
|
278
|
+/* Table: tp_shop_img */
|
|
279
|
+/*==============================================================*/
|
|
280
|
+create table tp_shop_img
|
|
281
|
+(
|
|
282
|
+ id int(11) not null auto_increment,
|
|
283
|
+ community_id int(11) comment '小区ID',
|
|
284
|
+ shop_id int(11) comment '商铺ID',
|
|
285
|
+ img_url varchar(255) comment '商铺图片地址',
|
|
286
|
+ img_type varchar(2) comment '商铺图片类型 1是app首页图片每个商铺唯一,2是app列表图片,3是app商铺轮播图',
|
|
287
|
+ create_date datetime comment '创建时间',
|
|
288
|
+ primary key (id)
|
|
289
|
+);
|
|
290
|
+
|
|
291
|
+alter table tp_shop_img comment '商铺图片';
|
|
292
|
+
|
|
293
|
+drop table if exists ta_version;
|
|
294
|
+
|
|
295
|
+/*==============================================================*/
|
|
296
|
+/* Table: ta_version */
|
|
297
|
+/*==============================================================*/
|
|
298
|
+create table ta_version
|
|
299
|
+(
|
|
300
|
+ id int(11) not null,
|
|
301
|
+ client_version varchar(255) comment '客户端版本',
|
|
302
|
+ service_version varchar(255) comment '服务端版本',
|
|
303
|
+ type varchar(255) comment 'ios / android',
|
|
304
|
+ update_address varchar(255) comment '升级地址',
|
|
305
|
+ primary key (id)
|
|
306
|
+);
|
|
307
|
+
|
|
308
|
+alter table ta_version comment 'app端版本号';
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|