Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
4 changed files
with
80 additions
and
0 deletions
1 | +## 1.数据库 | ||
2 | +### 1.1 店铺审核(erp_supplier.shops_check) | ||
3 | +#### sql 脚本 | ||
4 | +```sql | ||
5 | +CREATE TABLE `shops_check` ( | ||
6 | + `shops_id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||
7 | + `shop_name` varchar(100) NOT NULL, | ||
8 | + `shop_domain` varchar(50) NOT NULL, | ||
9 | + `shop_relation` varchar(5000) DEFAULT NULL, | ||
10 | + `shop_nature` tinyint(4) unsigned NOT NULL DEFAULT '0', | ||
11 | + `shop_logo` varchar(200) DEFAULT NULL, | ||
12 | + `shop_intro` varchar(5000) DEFAULT NULL, | ||
13 | + `website_url` varchar(500) NOT NULL, | ||
14 | + `other_url` varchar(500) DEFAULT NULL, | ||
15 | + `shop_address` varchar(1000) DEFAULT NULL, | ||
16 | + `create_pid` int(11) unsigned DEFAULT '0', | ||
17 | + `shops_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、单品店,2、多品店', | ||
18 | + `operation_status` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '1 店铺未创建 2店铺已创建', | ||
19 | + `examine_status` tinyint(4) unsigned NOT NULL DEFAULT '0', | ||
20 | + `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1 开启 0 关闭', | ||
21 | + `check_status` smallint(6) DEFAULT NULL COMMENT '100 暂存 200 待审核 300 审核通过 900 驳回', | ||
22 | + `is_read` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1 未处理 2 已处理', | ||
23 | + `create_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
24 | + `update_time` int(10) unsigned NOT NULL DEFAULT '0', | ||
25 | + PRIMARY KEY (`shops_id`) | ||
26 | +) ENGINE=InnoDB AUTO_INCREMENT=433 DEFAULT CHARSET=utf8; | ||
27 | + | ||
28 | +``` | ||
29 | + | ||
30 | +#### 说明 | ||
31 | + | ||
32 | +| 列名 | 说明 | 备注 | | ||
33 | +| -------- | -------- |-------- | | ||
34 | +|shops_id| 店铺ID| | | ||
35 | +|shop_name| 店铺名称|| | ||
36 | +|shop_domain| 店铺域名 | | | ||
37 | +|shop_relation | 店铺品牌供应商关联 |json格式数据,品牌ID,供应商ID,合同的到期时间,方法标识(add 添加,del 删除)| | ||
38 | +|shop_nature| 店铺性质(店铺类型) | 1 旗舰店 2 专卖店| | ||
39 | +|shop_logo|店铺logo| | | ||
40 | +|shop_intro|店铺简介| | | ||
41 | +|website_url|官网地址|json格式数据,网址| | ||
42 | +|other_url| 其他平台网址地址 |json格式数据,网址| | ||
43 | +|shop_address| 实体店地址 |json格式数据,实体店地址 | | ||
44 | +|create_pid|创建人| | | ||
45 | +|shops_type|店铺模式|1 单品店 2 多品店| | ||
46 | +|operation_status|操作状态|1 店铺未创建 2店铺已创建| | ||
47 | +|examine_status| 是否通过审核|| | ||
48 | +|status| 状态 |1开启 0 关闭| | ||
49 | +|check_status| 审核状态|100 暂存 200 待审核 300 审核通过 900 驳回| | ||
50 | +|is_read|处理状态|1 未处理 2 已处理| | ||
51 | +|create_time| 添加时间|| | ||
52 | +|update_time|修改时间|| | ||
53 | + | ||
54 | +其中,表中`shop_relation`的json格式,如下: | ||
55 | +```javascript | ||
56 | +[{ | ||
57 | + "brandId":355, | ||
58 | + "supplierId":310, | ||
59 | + "agreementEndTime":1485792000, | ||
60 | + "method":"add" | ||
61 | +}, | ||
62 | +{ | ||
63 | + "brandId":178, | ||
64 | + "supplierId":480, | ||
65 | + "agreementEndTime":1459353600, | ||
66 | + "method":"del" | ||
67 | +}] | ||
68 | +``` | ||
69 | +表中`website_url`的json格式,如下: | ||
70 | +```javascript | ||
71 | +["网址1","网址2"] | ||
72 | +``` | ||
73 | +表中`other_url`的json格式,如下: | ||
74 | +```javascript | ||
75 | +["网址1","网址2"] | ||
76 | +``` | ||
77 | +表中`shop_address`的json格式,如下: | ||
78 | +```javascript | ||
79 | +["地址1","地址2"] | ||
80 | +``` |
-
Please register or login to post a comment