首页 置换 选车 估价 问答 生活 经销商 车管所 汽车资讯 汽车销量 车牌查询 今日油价 天气预报
您的位置: 首页 > 生活 > 科技 > 菜鸟驿站仓储合理化经验(基于ER图分析菜鸟驿站包裹管理系统)
菜鸟驿站仓储合理化经验(基于ER图分析菜鸟驿站包裹管理系统)
更新时间:2024-07-16 21:59:42

菜鸟驿站仓储合理化经验(基于ER图分析菜鸟驿站包裹管理系统)1

一、ER图分析

菜鸟驿站仓储合理化经验(基于ER图分析菜鸟驿站包裹管理系统)2

该ER模型由4个实体组成,分别是快递公司、消费者、管理员和快递查询。其中,管理员与快递公司、消费者是N:N的关系,需要将联系转换为实体,然后在该实体上加上另外两个实体的主键,作为联系实体的主键。

然后再加上该联系自身带的属性。而管理员和快递查询是1:N的关系,需要在快递查询端添加管理员的主键作为外码。由此可知,快递公司的主码是公司名称,没有外码;消费者的主码是消费者身份码,也没有外码;

管理员的主码为管理员id,也没有外码;快递查询的主码为快递单号,外码为管理员id;合作的主码为(公司名称、管理员id),外码为公司名称、管理员id;寄取的主码为(管理员id、消费者身份码),外码为管理员id、消费者身份码。

1. ER diagram analysis

The ER model consists of 4 entities, which are courier company, consumer, administrator and courier inquiry. Among them, the relationship between the administrator, the courier company and the consumer is N:N.

The relationship needs to be converted into an entity, and then the primary key of the other two entities is added to the entity as the primary key of the contact entity, and then the relationship is added. own properties.

The administrator and express query are in a 1:N relationship, and the administrator's primary key needs to be added as a foreign code on the express query end. It can be seen that the main code of the courier company has no external code;

the main code of the consumer is the consumer identity code, and there is no external code; the main code of the administrator is the administrator id, and there is no external code;

the express query The main code is the express order number, and the external code is the administrator id; the main code for cooperation is (company name, administrator id), and the external code is the company name and administrator id;

the main code sent is (administrator id, consumer id) User ID), the outer code is the administrator id, consumer ID.

二、ER图的关系模型

快递公司(公司名称、到达时间、收费价格)

消费者(消费者身份码、电话、地址信息、消费者姓名)

管理员(管理员id、姓名、登陆密码、快递用户名)

快递查询(快递单号、管理员id、收件人id、收件人电话、收件人姓名)

合作(公司名称、管理员id

寄取(管理员id、消费者身份码

Second, the relational model of ER diagram

Courier company (company name, arrival time, chargeable price)

Consumer (Consumer ID, Phone, Address Information, Consumer Name)

Administrator (admin id, name, login password, express username)

Express query (express order number, administrator id, recipient id, recipient phone number, recipient name)

Cooperation (company name, administrator id)

Send (admin id, consumer ID)

,
相关推荐RECOMMEND
武汉科技大学是几本大学?是985和211吗?
武汉科技大学是几本大学?是985和211吗?和小编同样想知道这两个问题答案的朋友来看看详细的解答内容吧!下面是本站整理的问题解答内容,此文本仅供参考,欢迎大家阅读。一、武汉科技大学是几本?武汉科技大学...
国防科技大学出来干嘛 就业方向是怎样的
国防科技大学属于初级类综合院校,招收的学员按照性质可以分为指挥类和非指挥类,前者人数最多最普遍,后者人数少一些也叫做技术类。指挥类专业出来有两个分配方向。指挥类一般根据部队需要分配在一线部队,具体工作...
北京科技馆和中国科技馆是一个地方吗
是的,北京科技馆,即中国科技馆,在北京市朝阳区北辰东路5号,东临亚运居住区,西濒奥运水系,南依奥运主体育场,北望森林公园,占地4.8万平方米,建筑规模10.2万平方米。北京科技馆于1988年9月22日...
上海科技馆有行李寄存吗
上海科技馆有行李寄存。上海科技馆共设置三处游客服务中心,分别位于馆内一层、二层和地下一层,总面积约200平方米。游客服务中心具有为游客免费提供行李寄存的服务项目。此外还有为游客免费提供轮椅车、婴儿车、...
新疆科技馆怎么预约
散客可以在新疆科技馆微信公众号预约,团队需提前3天在新疆科技馆微信公众号或者电话预约。新疆科技馆建筑面积为10119㎡,一层为临展厅,二层为科技乐园展厅,三层、四层为新疆产业科技之光展厅。新疆科技馆于...
电子科技大学四大王牌专业
电子科技大学王牌专业有通信工程、电子信息工程、电子科学与技术、计算机科学与技术。电子科技大学,简称“电子科大”,坐落于四川省成都市,是中华人民共和国教育部直属高校。电子科技大学学校原名成都电讯工程学院...