generated from admin/template
88 lines
10 KiB
Plaintext
88 lines
10 KiB
Plaintext
<mxfile host="app.diagrams.net" version="24.0.0"><diagram name="Figure3_er" id="figure3_er"><mxGraphModel dx="1600" dy="1200" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1654" pageHeight="1169" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0" />
|
|
<mxCell id="1" parent="0" />
|
|
<mxCell id="e_clients" value="<b>clients</b><br>client_id [PK]<br>last_name<br>first_name<br>phone [UQ]" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="40" y="40" width="250" height="125" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_employees" value="<b>employees</b><br>employee_id [PK]<br>full_name<br>position<br>phone" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="40" y="250" width="250" height="105" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_roles" value="<b>roles</b><br>role_code [PK]<br>role_name" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="40" y="440" width="250" height="75" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_users" value="<b>users</b><br>user_id [PK]<br>login [UQ]<br>role_code [FK]<br>employee_id [FK]" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="40" y="590" width="250" height="105" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_services" value="<b>services</b><br>service_id [PK]<br>name [UQ]<br>price<br>duration_min" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="380" y="40" width="250" height="105" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_service_materials" value="<b>service_materials</b><br>service_id [PK, FK]<br>material_id [PK, FK]<br>norm_qty" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="380" y="250" width="250" height="95" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_materials" value="<b>materials</b><br>material_id [PK]<br>name [UQ]<br>unit<br>stock_qty<br>min_qty" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="380" y="440" width="250" height="125" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_material_movements" value="<b>material_movements</b><br>movement_id [PK]<br>material_id [FK]<br>movement_type<br>quantity<br>appointment_id [FK]" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="380" y="650" width="250" height="135" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_masters" value="<b>masters</b><br>master_id [PK]<br>employee_id [FK, UQ]<br>specialization<br>commission_rate" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="740" y="40" width="250" height="115" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_master_services" value="<b>master_services</b><br>master_id [PK, FK]<br>service_id [PK, FK]" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="740" y="250" width="250" height="75" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_work_schedules" value="<b>work_schedules</b><br>schedule_id [PK]<br>master_id [FK]<br>work_date<br>start_time<br>end_time" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="740" y="440" width="250" height="115" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_appointments" value="<b>appointments</b><br>appointment_id [PK]<br>client_id [FK]<br>service_id [FK]<br>master_id [FK]<br>start_at, end_at<br>price, status" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="1100" y="40" width="270" height="145" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="e_payments" value="<b>payments</b><br>payment_id [PK]<br>appointment_id [FK, UQ]<br>amount, method<br>paid_at" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f4f4f4;strokeColor=#000000;fontFamily=Times New Roman;fontSize=12;align=left;verticalAlign=top;spacingLeft=8;spacingTop=6;" vertex="1" parent="1">
|
|
<mxGeometry x="1100" y="290" width="270" height="105" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge0" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_clients" target="e_appointments">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge1" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_services" target="e_appointments">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge2" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_masters" target="e_appointments">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge3" value="1 : 1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_appointments" target="e_payments">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge4" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_services" target="e_service_materials">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge5" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_materials" target="e_service_materials">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge6" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_masters" target="e_master_services">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge7" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_services" target="e_master_services">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge8" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_masters" target="e_work_schedules">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge9" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_materials" target="e_material_movements">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge10" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_appointments" target="e_material_movements">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge11" value="1 : N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_roles" target="e_users">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge12" value="1 : 1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_employees" target="e_users">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
<mxCell id="edge13" value="1 : 1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;fontFamily=Times New Roman;fontSize=11;endArrow=open;endFill=0;startArrow=none;" edge="1" parent="1" source="e_employees" target="e_masters">
|
|
<mxGeometry relative="1" as="geometry" />
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram></mxfile> |