2 Star 0 Fork 0

Winson梁胜智 / jiayouernv

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
table.sql 4.31 KB
Copy Edit Raw Blame History
FightForBread authored 2019-11-01 22:56 . 提交
create table jn_pharmacy_account(
id int(11) unsigned not null auto_increment,
pharmacy_name varchar(50) not null default '' comment '药店名称',
pharmacy_mobile_phone varchar(11) not null comment '药店登录的手机号码',
pharmacy_tel_phone varchar(11) default '' comment '药店的联系电话',
contact_name varchar(255) default '' comment '药店负责人',
password varchar(100) not null comment '登录密码',
description varchar(500) default '' comment '店铺的描述',
longitude decimal(10, 6) not null comment '店铺的经度',
latitude decimal(10, 6) not null comment '店铺的纬度',
address varchar(500) not null comment '药店的位置',
city_name varchar(500) not null comment '城市名称(如,上海)',
area_name varchar(500) not null comment '区域名称(如,浦东新区)',
check_status tinyint(3) unsigned not null default 4 comment '审核状态,1:待审核,2:审核通过,3:审核不通过,4:未认证',
check_failed_reason varchar(200) default '' comment '审核不通过的原因',
avatar varchar(200) not null comment '药店的封面图片',
created_at datetime not null comment '创建时间',
updated_at datetime comment '数据更新时间',
business_license_img varchar(200) default '' comment '营业执照照片',
licensed_pharmacist_license_img varchar(200) default '' comment '执业中药师证书',
drug_trading_license_img varchar(200) default '' comment '互联网药品交易服务资格证书',
primary key (id)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 comment ='药店的账号信息';
CREATE TABLE `jn_pharmacy_order` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`order_id` int(11) unsigned NOT NULL COMMENT '关联订单表的id',
`pharmacy_id` int(11) unsigned NOT NULL COMMENT '关联药店表的id',
`freight` decimal(10,2) unsigned DEFAULT NULL,
`status` tinyint(3) unsigned NOT NULL COMMENT '1:药店待接单,2:药店已接单,在拣货,3,药店已通知物流取货, 4:药店拒绝接单, 达达状态: ( 待接单=210,待取货=220,配送中=230,已完成=240,已取消=500, 已过期=570,指派单=580,妥投异常之物品返回中=900, 妥投异常之物品返回完成=910,骑士到店=2100,创建达达运单失败=1000)',
`created_at` datetime NOT NULL COMMENT '创建时间',
`updated_at` datetime DEFAULT NULL COMMENT '数据更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=901 DEFAULT CHARSET=utf8;
create table jn_order_logistics(
id int(11) unsigned not null auto_increment,
order_id int(11) unsigned not null comment '关联订单表的id',
transporter_name varchar(100) comment '骑手姓名',
transporter_phone varchar(20) comment '骑手电话',
accept_time varchar(30) comment '骑手接单时间',
fetch_time varchar(30) comment '骑手取货时间',
finish_time varchar(30) default '' comment '骑手送达时间',
status tinyint(3) unsigned NOT NULL default 1 COMMENT '骑士订单状态(0:已关闭,1:默认正常)',
created_at datetime not null comment '创建时间',
updated_at datetime comment '数据更新时间',
primary key (id)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 comment='订单配送的物流信息';
create table jn_pharmacy_goods_mapping(
id int(11) unsigned not null auto_increment,
pharmacy_id int(11) unsigned not null comment '关联药店表的id',
goods_id int(11) unsigned not null comment '对应该药店里面该商品的结算价格',
created_at datetime not null comment '创建时间',
updated_at datetime comment '数据更新时间',
primary key (id)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 comment = '平台里面的药品在药店里面的价格以及药店里面也同样有的药';
create table jn_pharmacy_settlement(
id int(11) unsigned not null auto_increment,
pharmacy_id int(11) unsigned not null comment '关联药店表的id',
order_id int(11) unsigned not null comment '关联订单表的id',
amount decimal(10, 2) not null comment '订单对应的结算金额',
created_at datetime not null comment '创建时间',
updated_at datetime comment '数据更新时间',
primary key (id)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 comment = '结算记录';
PHP
1
https://gitee.com/winleung/jiayouernv.git
git@gitee.com:winleung/jiayouernv.git
winleung
jiayouernv
jiayouernv
master

Search