mobsite_man.sql
15.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
-- MySQL dump 10.15 Distrib 10.0.12-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: mobsite_man
-- ------------------------------------------------------
-- Server version 10.0.12-MariaDB-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `T_APP_PATCH`
--
DROP TABLE IF EXISTS `T_APP_PATCH`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_APP_PATCH` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`patch_url` varchar(200) COLLATE utf8_bin DEFAULT NULL COMMENT '增量安装包地址',
`version_source_id` bigint(20) DEFAULT NULL COMMENT '起始版本id',
`version_des_id` bigint(20) DEFAULT NULL COMMENT '目标版本id',
`force_flag` tinyint(1) DEFAULT NULL COMMENT '是:1,否:2',
`description` varchar(200) COLLATE utf8_bin DEFAULT NULL COMMENT '描述',
`md5` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '增量包Md5值',
`creator_id` bigint(20) DEFAULT NULL COMMENT '创建者',
`yn` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'yn1: 有效, 2:无效',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='手机客户端版本增量';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_APP_VERSION`
--
DROP TABLE IF EXISTS `T_APP_VERSION`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_APP_VERSION` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`device_type` tinyint(1) DEFAULT NULL COMMENT 'android设备:1,ios设备:2,所有设备:3',
`app_version` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT 'app版本号',
`app_url` varchar(200) COLLATE utf8_bin DEFAULT NULL COMMENT '安装包地址',
`description` varchar(150) COLLATE utf8_bin DEFAULT NULL COMMENT '更新描述',
`status` tinyint(1) DEFAULT NULL COMMENT '启用:1,禁用:2',
`force_flag` tinyint(1) DEFAULT NULL COMMENT '是:1,否:2',
`creator_id` bigint(20) DEFAULT NULL COMMENT '创建者',
`yn` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'yn1: 有效, 2:无效',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`system_type` varchar(10) COLLATE utf8_bin DEFAULT NULL,
`version_code` int(10) DEFAULT '0' COMMENT '版本编号',
`patch_flag` tinyint(4) DEFAULT '2' COMMENT '是否增量升级',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='手机客户端版本';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_CHECK_RULE`
--
DROP TABLE IF EXISTS `T_CHECK_RULE`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_CHECK_RULE` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`msg_type` tinyint(1) DEFAULT NULL COMMENT '供应消æ¯ï¼š1,图片信æ¯ï¼š2',
`need_check` tinyint(1) DEFAULT NULL COMMENT '需è¦å®¡æ ¸ï¼š1,ä¸éœ€è¦å®¡æ ¸ï¼š2',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='å®¡æ ¸è§„åˆ™';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_DEVICE_INFO`
--
DROP TABLE IF EXISTS `T_DEVICE_INFO`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_DEVICE_INFO` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
`account_name` varchar(20) COLLATE utf8_bin NOT NULL COMMENT '用户登录名',
`device_id` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备ID',
`device_system` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备操作系统类型',
`system_version` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备系统版本',
`system_vendor` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备操作系统订制商',
`device_screen` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备屏幕尺寸',
`device_barand` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备厂商',
`device_msisdn` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '设备号码',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `Index_1` (`device_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_FEEDBACK`
--
DROP TABLE IF EXISTS `T_FEEDBACK`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_FEEDBACK` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`market_id` bigint(20) DEFAULT NULL COMMENT '市场id',
`username` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '用户登录名',
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`device_type` tinyint(4) DEFAULT NULL COMMENT 'android设备:1,ios设备:2',
`device_version` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT '设备版本',
`app_version` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT '客户端版本',
`status` tinyint(1) DEFAULT NULL COMMENT '已读:1,未读:2',
`content` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '反馈内容',
`yn` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'yn1: 有效, 2:无效',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`system_type` varchar(10) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=587 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='意见反馈';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_GUARD_LOG`
--
DROP TABLE IF EXISTS `T_GUARD_LOG`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_GUARD_LOG` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`guard_id` bigint(20) DEFAULT NULL,
`guard_name` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`status` tinyint(1) DEFAULT '-1' COMMENT '-1 登出 1登入',
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`yn` tinyint(1) DEFAULT '1' COMMENT 'yn1: 有效, 2:无效',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4253 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_IMAGE_MESSAGE`
--
DROP TABLE IF EXISTS `T_IMAGE_MESSAGE`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_IMAGE_MESSAGE` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`userid` bigint(20) DEFAULT NULL COMMENT '用户id',
`market_id` bigint(20) DEFAULT NULL COMMENT '市场id',
`check_flag` tinyint(1) DEFAULT NULL COMMENT 'æœªå®¡æ ¸ï¼š1ï¼Œå®¡æ ¸é€šè¿‡ï¼š2ï¼Œå®¡æ ¸æœªé€šè¿‡ï¼š3',
`img_url` varchar(200) COLLATE utf8_bin DEFAULT NULL COMMENT '图片地å€',
`category_id` bigint(20) DEFAULT NULL COMMENT '商å“类别',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='图片消æ¯';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_MARKET`
--
DROP TABLE IF EXISTS `T_MARKET`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_MARKET` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`dilivery_id` bigint(20) DEFAULT NULL COMMENT '[æ货点id]',
`name` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '市场å称',
`short_name` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT '市场简称',
`coordinate_x` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT '市场横åæ ‡',
`coordinate_y` varchar(10) COLLATE utf8_bin DEFAULT NULL COMMENT '市场纵åæ ‡',
`city` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '所在城市',
`status` tinyint(1) DEFAULT NULL COMMENT 'å¯ç”¨:1,ç¦ç”¨:2',
`yn` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'yn1: 有效, 2:æ— æ•ˆ',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='市场表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_MESSAGE`
--
DROP TABLE IF EXISTS `T_MESSAGE`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_MESSAGE` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`market_id` bigint(20) DEFAULT NULL COMMENT '市场id',
`check_flag` tinyint(1) DEFAULT NULL COMMENT 'æœªå®¡æ ¸ï¼š1ï¼Œå®¡æ ¸é€šè¿‡ï¼š2ï¼Œå®¡æ ¸æœªé€šè¿‡ï¼š3',
`name` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '商å“å称',
`origin_id` bigint(20) DEFAULT NULL COMMENT '商å“产地id',
`delivery_id` bigint(20) DEFAULT NULL COMMENT 'æ货地点id',
`stock_id` bigint(20) DEFAULT NULL COMMENT '备货周期id',
`category_id` bigint(20) DEFAULT NULL COMMENT '商å“类别',
`supply_quantity` int(10) DEFAULT NULL COMMENT '供应数é‡',
`price` int(11) DEFAULT NULL COMMENT '商å“å•ä»·',
`unit` varchar(5) COLLATE utf8_bin DEFAULT NULL COMMENT 'å•ä»·å•ä½',
`description` varchar(200) COLLATE utf8_bin DEFAULT NULL COMMENT '商å“æè¿°',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='供应消æ¯';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_PROMOTION`
--
DROP TABLE IF EXISTS `T_PROMOTION`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_PROMOTION` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`market_id` bigint(20) DEFAULT NULL COMMENT '市场id',
`title` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '标题',
`content` varchar(150) COLLATE utf8_bin DEFAULT NULL COMMENT '消息内容',
`device_type` tinyint(1) DEFAULT NULL COMMENT 'Android:1,Ios:2,所有设备:3',
`receive_crowd` tinyint(1) DEFAULT NULL COMMENT '所有人:1,个人:2',
`send_type` tinyint(1) DEFAULT NULL COMMENT '立即发送:1,指定时间发送:2',
`send_time` datetime DEFAULT NULL COMMENT '发送时间',
`open_type` tinyint(1) DEFAULT NULL COMMENT '直接打开应用:1,打开分类搜索列表:2,打开商品详情页:3,打开店铺页:4',
`open_url` varchar(200) COLLATE utf8_bin DEFAULT NULL COMMENT '自定义打开页面url或者列表id',
`send_flag` tinyint(1) DEFAULT NULL COMMENT '发送成功:1,失败:2',
`creator_id` bigint(20) DEFAULT NULL COMMENT '创建人id',
`send_id` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '发送次数',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='推送消息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_RECIPIENT`
--
DROP TABLE IF EXISTS `T_RECIPIENT`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_RECIPIENT` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pid` bigint(20) DEFAULT NULL COMMENT '推送信息id',
`user_id` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '用户id',
`user_name` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '用户名',
`mobile_id` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '用户客户端号',
`yn` tinyint(4) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='促销推送消息接收人中间表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_REGISTER_NO_MAPPER`
--
DROP TABLE IF EXISTS `T_REGISTER_NO_MAPPER`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_REGISTER_NO_MAPPER` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`userid` bigint(20) NOT NULL COMMENT '用户id',
`register_no` varchar(128) COLLATE utf8_bin NOT NULL COMMENT '注册ID',
`sys_flag` int(11) NOT NULL DEFAULT '1' COMMENT '1:极光推送',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`device_type` tinyint(11) DEFAULT '0' COMMENT '设备类型',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=340453 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `T_USER_SUBSCRIBE`
--
DROP TABLE IF EXISTS `T_USER_SUBSCRIBE`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `T_USER_SUBSCRIBE` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`category_id` bigint(20) DEFAULT NULL COMMENT '订阅分类id',
`yn` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='用户订阅表';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2016-09-01 17:02:57