Skip to content

Instantly share code, notes, and snippets.

@jocile
Last active June 16, 2022 22:34
Show Gist options
  • Save jocile/b98add89c82e8629eb11b409c5dd0e69 to your computer and use it in GitHub Desktop.
Save jocile/b98add89c82e8629eb11b409c5dd0e69 to your computer and use it in GitHub Desktop.
Diagrams.net models
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="620px" height="291px" viewBox="-0.5 -0.5 620 291" content="&lt;mxfile&gt;&lt;diagram id=&quot;IqdLY6I6PzmjJVXYAFBn&quot; name=&quot;Página-1&quot;&gt;7Vtdc5s4FP01zOw+dAeEsZPHmjrtTJ1tJkl3HzsKyKBZjBghf/XXr4QkMJadQFvHauyZjAOXi0D3HB1JJ47jh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vs5DB7mjZIoOeuXN+SHExr0Tr4nUYXge46ihvx/M6PHNLfEZTV4/Ntdd9d2aL2+GZ2+23ZHfU1LV4OjM3yKUSxIvn0RdEa2Y5c298RpLZY7nZXzJPbnt45jb8t/Y9aq5arJHm5rk2hc/K9uiBlS1SCH5ud3yRQoudD2BuxS0cfB3rXxPVXh3U5d23VjxD96MHYtaooWl/hMrDv9gfztZXO3p/1cM9GmQX+6PjcPz97A/wtu0PYL/9AUz746U/ap6T99EDQWumuIv3cSy9PLn3AUzvw8LB2LX+9hsfwDQ+anXM4Vys9KMU0j8C98+zWfTbZIHw0+afW+RXwZt/EPIn/wM=&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs>
<clipPath id="mx-clip-330-30-30-30-0">
<rect x="330" y="30" width="30" height="30"/>
</clipPath>
<clipPath id="mx-clip-366-30-214-30-0">
<rect x="366" y="30" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-330-60-30-30-0">
<rect x="330" y="60" width="30" height="30"/>
</clipPath>
<clipPath id="mx-clip-366-60-214-30-0">
<rect x="366" y="60" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-366-90-214-30-0">
<rect x="366" y="90" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-330-190-30-30-0">
<rect x="330" y="190" width="30" height="30"/>
</clipPath>
<clipPath id="mx-clip-366-190-214-30-0">
<rect x="366" y="190" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-330-220-30-30-0">
<rect x="330" y="220" width="30" height="30"/>
</clipPath>
<clipPath id="mx-clip-366-220-214-30-0">
<rect x="366" y="220" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-366-250-214-30-0">
<rect x="366" y="250" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-0-30-30-30-0">
<rect x="0" y="30" width="30" height="30"/>
</clipPath>
<clipPath id="mx-clip-36-30-214-30-0">
<rect x="36" y="30" width="214" height="30"/>
</clipPath>
<clipPath id="mx-clip-36-60-214-30-0">
<rect x="36" y="60" width="214" height="30"/>
</clipPath>
</defs>
<g>
<path d="M 250 45 L 270 45 Q 280 45 285.55 53.32 L 294.45 66.68 Q 300 75 310 75 L 330 75" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 254 41 L 254 49" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="318" cy="75" rx="3" ry="3" fill="#ffffff" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 330 71 L 322 75 L 330 79" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 580 45 L 600 45 Q 610 45 610 55 L 610 225 Q 610 235 600 235 L 580 235" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/>
<path d="M 584 41 L 584 49" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="592" cy="235" rx="3" ry="3" fill="#ffffff" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 580 239 L 588 235 L 580 231" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 330 30 L 330 0 L 580 0 L 580 30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<path d="M 330 30 L 330 130 L 580 130 L 580 30" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 30 L 580 30" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 360 30 L 360 60 L 360 90 L 360 120" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" pointer-events="none" text-anchor="middle" font-size="12px">
<text x="454.5" y="19.5">
Orders
</text>
</g>
<path d="M 330 30 M 580 30 M 580 60 L 330 60" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 30 M 360 30 M 360 60 M 330 60" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" pointer-events="none" clip-path="url(#mx-clip-330-30-30-30-0)" text-anchor="middle" font-size="12px">
<text x="344.5" y="49.5">
PK
</text>
</g>
<path d="M 360 30 M 580 30 M 580 60 M 360 60" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" text-decoration="underline" pointer-events="none" clip-path="url(#mx-clip-366-30-214-30-0)" font-size="12px">
<text x="367.5" y="49.5">
order_id int NOT NULL
</text>
</g>
<path d="M 330 60 M 580 60 M 580 90 M 330 90" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 60 M 360 60 M 360 90 M 330 90" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-330-60-30-30-0)" text-anchor="middle" font-size="12px">
<text x="344.5" y="79.5">
FK1
</text>
</g>
<path d="M 360 60 M 580 60 M 580 90 M 360 90" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-366-60-214-30-0)" font-size="12px">
<text x="367.5" y="79.5">
customer_id int NOT NULL
</text>
</g>
<path d="M 330 90 M 580 90 M 580 120 M 330 120" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 90 M 360 90 M 360 120 M 330 120" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 360 90 M 580 90 M 580 120 M 360 120" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-366-90-214-30-0)" font-size="12px">
<text x="367.5" y="109.5">
order_date date NOT NULL
</text>
</g>
<path d="M 330 190 L 330 160 L 580 160 L 580 190" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 190 L 330 290 L 580 290 L 580 190" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 190 L 580 190" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 360 190 L 360 220 L 360 250 L 360 280" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" pointer-events="none" text-anchor="middle" font-size="12px">
<text x="454.5" y="179.5">
Shipments
</text>
</g>
<path d="M 330 190 M 580 190 M 580 220 L 330 220" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 190 M 360 190 M 360 220 M 330 220" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" pointer-events="none" clip-path="url(#mx-clip-330-190-30-30-0)" text-anchor="middle" font-size="12px">
<text x="344.5" y="209.5">
PK
</text>
</g>
<path d="M 360 190 M 580 190 M 580 220 M 360 220" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" text-decoration="underline" pointer-events="none" clip-path="url(#mx-clip-366-190-214-30-0)" font-size="12px">
<text x="367.5" y="209.5">
shipment_id int NOT NULL
</text>
</g>
<path d="M 330 220 M 580 220 M 580 250 M 330 250" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 220 M 360 220 M 360 250 M 330 250" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-330-220-30-30-0)" text-anchor="middle" font-size="12px">
<text x="344.5" y="239.5">
FK1
</text>
</g>
<path d="M 360 220 M 580 220 M 580 250 M 360 250" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-366-220-214-30-0)" font-size="12px">
<text x="367.5" y="239.5">
order_id int NOT NULL
</text>
</g>
<path d="M 330 250 M 580 250 M 580 280 M 330 280" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 330 250 M 360 250 M 360 280 M 330 280" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 360 250 M 580 250 M 580 280 M 360 280" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-366-250-214-30-0)" font-size="12px">
<text x="367.5" y="269.5">
shipment_date date NOT NULL
</text>
</g>
<path d="M 0 30 L 0 0 L 250 0 L 250 30" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 0 30 L 0 100 L 250 100 L 250 30" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 0 30 L 250 30" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 30 30 L 30 60 L 30 90" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" pointer-events="none" text-anchor="middle" font-size="12px">
<text x="124.5" y="19.5">
Customers
</text>
</g>
<path d="M 0 30 M 250 30 M 250 60 L 0 60" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 0 30 M 30 30 M 30 60 M 0 60" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" pointer-events="none" clip-path="url(#mx-clip-0-30-30-30-0)" text-anchor="middle" font-size="12px">
<text x="14.5" y="49.5">
PK
</text>
</g>
<path d="M 30 30 M 250 30 M 250 60 M 30 60" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" font-weight="bold" text-decoration="underline" pointer-events="none" clip-path="url(#mx-clip-36-30-214-30-0)" font-size="12px">
<text x="37.5" y="49.5">
customer_id int NOT NULL
</text>
</g>
<path d="M 0 60 M 250 60 M 250 90 M 0 90" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 0 60 M 30 60 M 30 90 M 0 90" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<path d="M 30 60 M 250 60 M 250 90 M 30 90" fill="none" stroke="rgb(0, 0, 0)" stroke-linecap="square" stroke-miterlimit="10" pointer-events="none"/>
<g fill="rgb(0, 0, 0)" font-family="Helvetica" pointer-events="none" clip-path="url(#mx-clip-36-60-214-30-0)" font-size="12px">
<text x="37.5" y="79.5">
customer_name char(50) NOT NULL
</text>
</g>
</g>
</svg>
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment