|
|
@@ -142,4 +142,47 @@ CREATE TABLE IF NOT EXISTS `xhGhsAdmin` (
|
|
|
`loginTime` int(11) NOT NULL DEFAULT '0' COMMENT '最后登陆时间',
|
|
|
`addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
|
|
|
PRIMARY KEY (`id`)
|
|
|
-)COMMENT='供货商管理员表';
|
|
|
+)COMMENT='供货商管理员表';
|
|
|
+drop table if exists `xhGhsShop`;
|
|
|
+CREATE TABLE `xhGhsShop` (
|
|
|
+ `id` bigint(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `avatar` varchar(500) NOT NULL DEFAULT '' COMMENT '门店照片;门店头像',
|
|
|
+ `shopName` varchar(100) NOT NULL DEFAULT '' COMMENT '门店名称',
|
|
|
+ `merchantName` varchar(100) NOT NULL DEFAULT '' COMMENT '商家名称',
|
|
|
+ `merchantId` int(11) NOT NULL DEFAULT '0' COMMENT '商户id',
|
|
|
+ `lat` varchar(20) NOT NULL DEFAULT '' COMMENT '纬度',
|
|
|
+ `long` varchar(20) NOT NULL DEFAULT '' COMMENT '经度',
|
|
|
+ `province` varchar(100) NOT NULL DEFAULT '' COMMENT '省',
|
|
|
+ `city` varchar(100) NOT NULL DEFAULT '' COMMENT '市',
|
|
|
+ `dist` varchar(100) NOT NULL DEFAULT '' COMMENT '区县',
|
|
|
+ `address` varchar(500) NOT NULL DEFAULT '' COMMENT '街道地址',
|
|
|
+ `floor` varchar(50) NOT NULL DEFAULT '' COMMENT '楼号门牌号',
|
|
|
+ `fullAddress` varchar(500) NOT NULL DEFAULT '' COMMENT '完整地址',
|
|
|
+ `telephone` varchar(20) NOT NULL DEFAULT '' COMMENT '电话',
|
|
|
+ `openTime` varchar(30) NOT NULL DEFAULT '' COMMENT '营业时间',
|
|
|
+ `introduction` varchar(800) DEFAULT '' COMMENT '简介',
|
|
|
+ `gatheringCode` varchar(500) NOT NULL DEFAULT '' COMMENT '收款的二维码',
|
|
|
+ `applyMemberCode` varchar(500) NOT NULL DEFAULT '' COMMENT '注册会员码',
|
|
|
+ `totalIncome` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '累计收入',
|
|
|
+ `default` tinyint(4) NOT NULL DEFAULT '0' COMMENT '默认门店 0不是 1是,默认门店不能删除',
|
|
|
+ `delStatus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除状态 0没有删除 1已删除',
|
|
|
+ `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '门店状态 0停用 1正常',
|
|
|
+ `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间,时间戳格式',
|
|
|
+ `createTime` datetime NOT NULL COMMENT '创建时间',
|
|
|
+ `updateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) comment='供货商门店';
|
|
|
+drop table if exists `xhGhsShopAdmin`;
|
|
|
+CREATE TABLE if not exists `xhGhsShopAdmin` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `adminId` int(11) NOT NULL DEFAULT '0' COMMENT '管理员id',
|
|
|
+ `merchantId` int(11) NOT NULL DEFAULT '0' COMMENT '商家id',
|
|
|
+ `shopId` int(11) NOT NULL DEFAULT '0' COMMENT '门店id',
|
|
|
+ `remind` tinyint(4) NOT NULL DEFAULT '0' COMMENT '动态提醒 0不需要 1需要',
|
|
|
+ `roleId` int(11) NOT NULL DEFAULT '0' COMMENT '角色id',
|
|
|
+ `default` tinyint(4) NOT NULL DEFAULT '0' COMMENT '默认管理的门店 1是 0否',
|
|
|
+ `delStatus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除状态 0正常 1已删除',
|
|
|
+ `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态 0停用 1正常',
|
|
|
+ `addTime` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) COMMENT='供货商员工';
|