Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 130 additions & 0 deletions 02_activities/homework/Untitled Diagram.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" version="24.7.16">
<diagram name="Page-1" id="2YBvvXClWsGukQMizWep">
<mxGraphModel dx="1434" dy="772" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="aM9ryv3xv72pqoxQDRHE-1" value="vendor" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={&quot;edgeStyle&quot;:&quot;elbowEdgeStyle&quot;,&quot;elbow&quot;:&quot;vertical&quot;,&quot;curved&quot;:0,&quot;rounded&quot;:0};" parent="1" vertex="1">
<mxGeometry x="45" y="30" width="100" height="300" as="geometry" />
</mxCell>
<mxCell id="aM9ryv3xv72pqoxQDRHE-5" value="vendor inventory" style="shape=umlLifeline;perimeter=lifelinePerimeter;whiteSpace=wrap;html=1;container=0;dropTarget=0;collapsible=0;recursiveResize=0;outlineConnect=0;portConstraint=eastwest;newEdgeStyle={&quot;edgeStyle&quot;:&quot;elbowEdgeStyle&quot;,&quot;elbow&quot;:&quot;vertical&quot;,&quot;curved&quot;:0,&quot;rounded&quot;:0};" parent="1" vertex="1">
<mxGeometry x="500" y="10" width="100" height="300" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-1" value="&lt;span style=&quot;color: rgba(0, 0, 0, 0); font-family: monospace; font-size: 0px; text-align: start; text-wrap: nowrap;&quot;&gt;%3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22vendor%22%20style%3D%22shape%3DumlLifeline%3Bperimeter%3DlifelinePerimeter%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3Bcontainer%3D0%3BdropTarget%3D0%3Bcollapsible%3D0%3BrecursiveResize%3D0%3BoutlineConnect%3D0%3BportConstraint%3Deastwest%3BnewEdgeStyle%3D%7B%26quot%3BedgeStyle%26quot%3B%3A%26quot%3BelbowEdgeStyle%26quot%3B%2C%26quot%3Belbow%26quot%3B%3A%26quot%3Bvertical%26quot%3B%2C%26quot%3Bcurved%26quot%3B%3A0%2C%26quot%3Brounded%26quot%3B%3A0%7D%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D%2245%22%20y%3D%2230%22%20width%3D%22100%22%20height%3D%22300%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3C%2Froot%3E%3C%2FmxGraphModel%3E&lt;/span&gt;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="30" y="90" width="150" height="180" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-2" value="vendor_name" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-1">
<mxGeometry y="30" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-18" value="&#xa;&lt;code&gt;vendor_id&lt;/code&gt; (Primary Key)&#xa;&#xa;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-1">
<mxGeometry y="60" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-3" value="vendor_type" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-1">
<mxGeometry y="90" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-13" value="vendor_owner_last_name" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-1">
<mxGeometry y="120" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-4" value="vendor_owner_first_name" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-1">
<mxGeometry y="150" width="150" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.011;entryY=0.167;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="461.98" y="168.01" as="targetPoint" />
<mxPoint x="180" y="168" as="sourcePoint" />
<Array as="points">
<mxPoint x="220" y="168" />
<mxPoint x="220" y="313" />
<mxPoint x="350" y="313" />
<mxPoint x="350" y="193" />
<mxPoint x="400" y="193" />
<mxPoint x="400" y="168" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-7" value="" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="450" y="85" width="180" height="300" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-8" value="market_date" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-7">
<mxGeometry y="30" width="180" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-17" value="vendor_id" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-7">
<mxGeometry y="60" width="180" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-16" value="quantity" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-7">
<mxGeometry y="90" width="180" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-41" value="product_id" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-7">
<mxGeometry y="120" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-10" value="product_id" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-7">
<mxGeometry y="180" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-15" value="original_price" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-7">
<mxGeometry y="240" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-20" value="&#xa;(Primary Key)&#xa;&#xa;" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="35" y="440" width="140" height="180" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-21" value="product_id" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-20">
<mxGeometry y="30" width="140" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-22" value="product_name" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-20">
<mxGeometry y="60" width="140" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-39" value="product_Size" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-20">
<mxGeometry y="90" width="140" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-23" value="product_category_id" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-20">
<mxGeometry y="120" width="140" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-40" value="product_qty_type" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;" vertex="1" parent="XHSUDFK24G948MOUBq38-20">
<mxGeometry y="150" width="140" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-37" value="∞&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="380" y="138" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-38" value="&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: nowrap; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;&quot;&gt;1&lt;/span&gt;" style="text;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="160" y="118" width="50" height="50" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-34" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="420" y="250" as="targetPoint" />
<mxPoint x="150" y="490" as="sourcePoint" />
<Array as="points">
<mxPoint x="360" y="490" />
<mxPoint x="360" y="250" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="420" y="250" as="targetPoint" />
<mxPoint x="150" y="490" as="sourcePoint" />
<Array as="points">
<mxPoint x="360" y="490" />
<mxPoint x="360" y="250" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-43" value="1" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];rotation=90;" vertex="1" connectable="0" parent="XHSUDFK24G948MOUBq38-42">
<mxGeometry x="0.9765" y="-4" relative="1" as="geometry">
<mxPoint x="-204" y="221" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-44" value="∞&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="380" y="138" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-45" value="∞&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="390" y="270" width="40" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-48" value="(Foreign Key, references &lt;code&gt;vendor.vendor_id&lt;/code&gt;)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="670" y="160" width="180" height="30" as="geometry" />
</mxCell>
<mxCell id="XHSUDFK24G948MOUBq38-50" value="(Foreign Key, references &lt;code&gt;product.product_id&lt;/code&gt;)&lt;span style=&quot;color: rgba(0, 0, 0, 0); font-family: monospace; font-size: 0px; text-align: start;&quot;&gt;3CmxGraphModel%3E%3Croot%3E%3CmxCell%20id%3D%220%22%2F%3E%3CmxCell%20id%3D%221%22%20parent%3D%220%22%2F%3E%3CmxCell%20id%3D%222%22%20value%3D%22product_id%22%20style%3D%22text%3BstrokeColor%3Dnone%3BfillColor%3Dnone%3Balign%3Dleft%3BverticalAlign%3Dmiddle%3BspacingLeft%3D4%3BspacingRight%3D4%3Boverflow%3Dhidden%3Bpoints%3D%5B%5B0%2C0.5%5D%2C%5B1%2C0.5%5D%5D%3BportConstraint%3Deastwest%3Brotatable%3D0%3BwhiteSpace%3Dwrap%3Bhtml%3D1%3B%22%20vertex%3D%221%22%20parent%3D%221%22%3E%3CmxGeometry%20x%3D%22450%22%20y%3D%22205%22%20width%3D%22180%22%20height%3D%2260%22%20as%3D%22geometry%22%2F%3E%3C%2FmxCell%3E%3C%2Froot%3E%3C%2FmxGraphModel%3E&lt;/span&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="630" y="220" width="280" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
1 change: 1 addition & 0 deletions 02_activities/homework/homework_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Using the table drop down at the top left, explore some of the contents of the d
![01_the_table_drop_down_at_the_top_left.png](./images/01_the_table_drop_down_at_the_top_left.png)

Move on to the Logical Data Model task when you have looked through the tables
![Untitled Diagram drawio](https://github.com/user-attachments/assets/9dbbacf9-a40f-40f9-b93a-65dd564c290d)


## Logical Data Model
Expand Down