Files
cuimengxue/example/萌贝母婴商城-ER图.drawio
2026-02-28 16:21:06 +08:00

134 lines
19 KiB
Plaintext

<mxfile host="app.diagrams.net" agent="Mozilla/5.0" version="29.5.6" pages="1">
<diagram name="图4.3 系统E-R图" id="mbyy-er-43">
<mxGraphModel dx="1800" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="2400" pageHeight="1400" background="none" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="ent_user" value="用户" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="980" y="620" width="140" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_order" value="订单" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1240" y="620" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_product" value="商品" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1540" y="620" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_order_item" value="订单明细" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1230" y="860" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_cart" value="购物车" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1750" y="340" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_fav" value="收藏" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1130" y="230" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_review" value="评价" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="740" y="920" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_logistics" value="物流记录" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1210" y="1110" width="200" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_stock" value="库存记录" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1820" y="820" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_apply_merchant" value="商家申请" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="580" y="620" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="ent_banner" value="轮播图" style="shape=rectangle;whiteSpace=wrap;html=1;rounded=0;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=22;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="220" y="300" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="rel_create" value="创建" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1140" y="615" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_include" value="包含" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1280" y="745" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_match" value="对应" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1420" y="770" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_join" value="加入" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1380" y="460" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_collect" value="收藏" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1280" y="360" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_publish" value="发布" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1380" y="570" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_review" value="评价" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="860" y="790" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_generate" value="产生" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1280" y="980" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_record" value="记录" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="1690" y="740" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_apply" value="申请" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="830" y="615" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="rel_browse" value="浏览" style="shape=rhombus;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=20;" vertex="1" parent="1">
<mxGeometry x="610" y="430" width="80" height="70" as="geometry" />
</mxCell>
<mxCell id="attr_join_qty" value="加入数量" style="ellipse;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=18;" vertex="1" parent="1">
<mxGeometry x="1470" y="420" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="attr_review_time" value="评价时间" style="ellipse;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#000000;fontColor=#000000;fontSize=18;" vertex="1" parent="1">
<mxGeometry x="930" y="860" width="140" height="50" as="geometry" />
</mxCell>
<mxCell id="e_user_create" edge="1" parent="1" source="ent_user" target="rel_create" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_order_create" edge="1" parent="1" source="ent_order" target="rel_create" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_order_include" edge="1" parent="1" source="ent_order" target="rel_include" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_item_include" edge="1" parent="1" source="ent_order_item" target="rel_include" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_product_match" edge="1" parent="1" source="ent_product" target="rel_match" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_item_match" edge="1" parent="1" source="ent_order_item" target="rel_match" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_user_join" edge="1" parent="1" source="ent_user" target="rel_join" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_cart_join" edge="1" parent="1" source="ent_cart" target="rel_join" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_user_collect" edge="1" parent="1" source="ent_user" target="rel_collect" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_product_collect" edge="1" parent="1" source="ent_product" target="rel_collect" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_user_publish" edge="1" parent="1" source="ent_user" target="rel_publish" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_product_publish" edge="1" parent="1" source="ent_product" target="rel_publish" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_user_review" edge="1" parent="1" source="ent_user" target="rel_review" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_review_review" edge="1" parent="1" source="ent_review" target="rel_review" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_order_generate" edge="1" parent="1" source="ent_order" target="rel_generate" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_logistics_generate" edge="1" parent="1" source="ent_logistics" target="rel_generate" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_product_record" edge="1" parent="1" source="ent_product" target="rel_record" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_stock_record" edge="1" parent="1" source="ent_stock" target="rel_record" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_user_apply" edge="1" parent="1" source="ent_user" target="rel_apply" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_apply_apply" edge="1" parent="1" source="ent_apply_merchant" target="rel_apply" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_user_browse" edge="1" parent="1" source="ent_user" target="rel_browse" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_banner_browse" edge="1" parent="1" source="ent_banner" target="rel_browse" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_attr_join" edge="1" parent="1" source="attr_join_qty" target="rel_join" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="e_attr_review" edge="1" parent="1" source="attr_review_time" target="rel_review" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;endArrow=none;startArrow=none;"><mxGeometry relative="1" as="geometry" /></mxCell>
<mxCell id="c1" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1120" y="640" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c2" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1240" y="640" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c3" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1310" y="700" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c4" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1310" y="860" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c5" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1510" y="725" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c6" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1420" y="840" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c7" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1120" y="540" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c8" value="m" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1740" y="430" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c9" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1110" y="420" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c10" value="m" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1530" y="420" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c11" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1120" y="590" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c12" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1530" y="590" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c13" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="960" y="730" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c14" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="900" y="900" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c15" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1320" y="700" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c16" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1320" y="1090" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c17" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1700" y="710" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c18" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="1810" y="800" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c19" value="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="960" y="640" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c20" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="760" y="640" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c21" value="n" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="960" y="500" width="20" height="20" as="geometry" /></mxCell>
<mxCell id="c22" value="m" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=18;fontColor=#000000;" vertex="1" parent="1"><mxGeometry x="390" y="390" width="20" height="20" as="geometry" /></mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>