<mxGraphModel dx="1100" dy="800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1400" pageHeight="900" math="0" shadow="0"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="t" value="Trade 数据库关系图" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontSize=20;fontStyle=1;fontColor=#0F172A;" vertex="1" parent="1"><mxGeometry x="450" y="10" width="280" height="30" as="geometry"/></mxCell><mxCell id="c1" value="companies&lt;br&gt;公司（租户根实体）" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#DBEAFE;strokeColor=#3B82F6;fontSize=11;fontStyle=1;arcSize=15;align=center;" vertex="1" parent="1"><mxGeometry x="80" y="60" width="180" height="50" as="geometry"/></mxCell><mxCell id="tc" value="trade_companies&lt;br&gt;Trade 系统配置 (1:1)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#EFF6FF;strokeColor=#2563EB;fontSize=10;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="320" y="60" width="180" height="50" as="geometry"/></mxCell><mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#3B82F6;strokeWidth=2;endArrow=none;startArrow=none;" edge="1" parent="1" source="c1" target="tc"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="lib" value="libraries&lt;br&gt;文档库 (1:N)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF3C7;strokeColor=#F59E0B;fontSize=11;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="80" y="160" width="160" height="50" as="geometry"/></mxCell><mxCell id="cust" value="customers&lt;br&gt;客户 / 联系人 (1:N)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0FDF4;strokeColor=#10B981;fontSize=11;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="280" y="160" width="170" height="50" as="geometry"/></mxCell><mxCell id="conv" value="conversations&lt;br&gt;对话记录 (1:N)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F1F5F9;strokeColor=#64748B;fontSize=11;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="490" y="160" width="170" height="50" as="geometry"/></mxCell><mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#F59E0B;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="c1" target="lib"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="160" y="130"/><mxPoint x="160" y="130"/></Array></mxGeometry></mxCell><mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#10B981;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="c1" target="cust"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="365" y="130"/><mxPoint x="365" y="130"/></Array></mxGeometry></mxCell><mxCell id="e4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#64748B;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="c1" target="conv"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="575" y="130"/><mxPoint x="575" y="130"/></Array></mxGeometry></mxCell><mxCell id="cl" value="customer_libraries&lt;br&gt;客户↔文档库 N:M" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F5F3FF;strokeColor=#8B5CF6;fontSize=9;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="200" y="270" width="150" height="45" as="geometry"/></mxCell><mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#8B5CF6;strokeWidth=1.5;endArrow=block;endFill=1;dashed=1;" edge="1" parent="1" source="lib" target="cl"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#8B5CF6;strokeWidth=1.5;endArrow=block;endFill=1;dashed=1;" edge="1" parent="1" source="cust" target="cl"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="ord" value="orders&lt;br&gt;订单 (1:N)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF2F2;strokeColor=#EF4444;fontSize=11;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="390" y="270" width="140" height="55" as="geometry"/></mxCell><mxCell id="ol" value="order_libraries&lt;br&gt;订单↔文档库 N:M" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FEF2F2;strokeColor=#EF4444;fontSize=9;arcSize=10;align=center;" vertex="1" parent="1"><mxGeometry x="370" y="370" width="150" height="40" as="geometry"/></mxCell><mxCell id="e7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#EF4444;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="c1" target="ord"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="60" y="300"/><mxPoint x="460" y="130"/><mxPoint x="460" y="300"/></Array></mxGeometry></mxCell><mxCell id="e8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#EF4444;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="cust" target="ord"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#EF4444;strokeWidth=1.5;endArrow=block;endFill=1;dashed=1;" edge="1" parent="1" source="ord" target="ol"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#EF4444;strokeWidth=1.5;endArrow=block;endFill=1;dashed=1;" edge="1" parent="1" source="lib" target="ol"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="e11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#64748B;strokeWidth=1.5;endArrow=block;endFill=1;dashed=1;" edge="1" parent="1" source="lib" target="conv"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="160" y="210"/><mxPoint x="575" y="210"/></Array></mxGeometry></mxCell><mxCell id="lg" value="图例: — 1:N ··· N:M" style="text;html=1;strokeColor=none;fillColor=none;align=left;fontSize=10;fontColor=#64748B;" vertex="1" parent="1"><mxGeometry x="80" y="460" width="140" height="16" as="geometry"/></mxCell></root></mxGraphModel>