|
|
## 1.数据库(erp_supplier)
|
|
|
### 1.1 店铺管理员(erp_supplier.shops_check)
|
|
|
#### sql 脚本
|
|
|
```sql
|
|
|
CREATE TABLE `shops_check` (
|
|
|
`shops_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
`shop_name` varchar(100) NOT NULL,
|
|
|
`shop_domain` varchar(50) NOT NULL,
|
|
|
`shop_relation` varchar(5000) DEFAULT NULL,
|
|
|
`shop_nature` tinyint(4) unsigned NOT NULL DEFAULT '0',
|
|
|
`shop_logo` varchar(200) DEFAULT NULL,
|
|
|
`shop_intro` varchar(5000) DEFAULT NULL,
|
|
|
`website_url` varchar(500) NOT NULL,
|
|
|
`other_url` varchar(500) DEFAULT NULL,
|
|
|
`shop_address` varchar(1000) DEFAULT NULL,
|
|
|
`create_pid` int(11) unsigned DEFAULT '0',
|
|
|
`shops_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、单品店,2、多品店',
|
|
|
`operation_status` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '1 店铺未创建 2店铺已创建',
|
|
|
`examine_status` tinyint(4) unsigned NOT NULL DEFAULT '0',
|
|
|
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1 开启 0 关闭',
|
|
|
`check_status` smallint(6) DEFAULT NULL COMMENT '100 暂存 200 待审核 300 审核通过 900 驳回',
|
|
|
`is_read` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1 未处理 2 已处理',
|
|
|
`create_time` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
`update_time` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
PRIMARY KEY (`shops_id`)
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=433 DEFAULT CHARSET=utf8;
|
|
|
|
|
|
```
|
|
|
## 1.数据库(erp_supplier)
|
|
|
### 1.1 店铺管理员(erp_supplier.shops_admin)
|
|
|
#### sql 脚本
|
|
|
```sql
|
|
|
CREATE TABLE `shops_admin` (
|
|
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
`shops_id` int(11) unsigned NOT NULL,
|
|
|
`admin_pid` int(11) unsigned NOT NULL,
|
|
|
`identity` tinyint(3) unsigned DEFAULT '1' COMMENT '1、店长 2、供应商 3、店员',
|
|
|
`create_time` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
`update_time` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1、正常 2、已删除',
|
|
|
PRIMARY KEY (`id`)
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=836 DEFAULT CHARSET=utf8;
|
|
|
|
|
|
```
|
|
|
#### 说明:增加标识字段status 1表示正常记录 2表示已删除记录 ' |
|
|
\ No newline at end of file |
...
|
...
|
|