Contents:
digraph model_graph { // Dotfile by Django-Extensions graph_models // Created: 2025-01-28 09:42 // Cli Options: --output ./source/logical-data-model/measurement-systems.dot measurement_systems --exclude-models ModelBase --rankdir BT --group-models --disable-sort-fields --theme=nmd fontname = "Helvetica" fontsize = 18 splines = true rankdir = "TB" newrank = true ranksep = 1 colorscheme = "greens9" size = 500 label = <<B>Logical Data Model</B>> labelloc = "t" splines = true rankdir = "BT" node [ colorscheme = "greens9" fontname = "Helvetica" fontsize = 8 shape = "plaintext" labelloc = "c" width = 2.5 color = 9 fillcolor = 3 ] edge [ fontname = "Helvetica" fontsize = 8 arrowhead = normal arrowtail = none headport = "_" tailport = "_" arrowhead = none; labeldistance = 1.5; labelangle = -45; ] // Labels subgraph cluster_measurement_systems { label = "measurement_systems"; fontsize = 12; color = 1; style = "filled"; colorscheme = "greens9"; labelloc="t"; measurement_systems_models_Unit [label=<<TABLE BGCOLOR="#FFFFFF" BORDER="1" BORDERCOLOR="#00441b" CELLBORDER="0" CELLSPACING="0" WIDTH="200"><TR><TD COLSPAN="2" CELLPADDING="5" ALIGN="CENTER" BGCOLOR="#c7e9c0" WIDTH="100%"><FONT FACE="Helvetica" COLOR="#000" POINT-SIZE="10"><B>Unit</B></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT FACE="Helvetica"><I><B><FONT>id</FONT></B></I></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT FACE="Helvetica"><I><B><FONT>UUIDField</FONT></B></I></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><I><FONT>created_at</FONT></I></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><I><FONT>DateTimeField</FONT></I></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><I><FONT>updated_at</FONT></I></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><I><FONT>DateTimeField</FONT></I></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT FACE="Helvetica"><FONT>title</FONT></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT FACE="Helvetica"><FONT>CharField</FONT></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><FONT>code</FONT></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><FONT>CharField</FONT></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><FONT>title_html</FONT></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><FONT>CharField</FONT></FONT></TD></TR><TR><TD ALIGN="LEFT" BORDER="0" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><FONT>description</FONT></FONT></TD><TD ALIGN="LEFT" WIDTH="100" CELLPADDING="2"><FONT COLOR="#7B7B7B" FACE="Helvetica"><FONT>TextField</FONT></FONT></TD></TR></TABLE>>] } // Relations }
Fig. 10 Schematic overview of logical data model for Measurement Systems¶
Unit, dutch: eenheid A units describes the unit of measure, like for instance m^2 or kg
id (UUIDField) – Primary key: Id
created_at (DateTimeField) – Created at
updated_at (DateTimeField) – Updated at
title (CharField) – Title
code (CharField) – Code
title_html (CharField) – Html entities
description (TextField) – Description
Reverse relationships:
legacyunit (Reverse OneToOneField from LegacyUnit) – The legacy unit of this unit (related name of unit_ptr)
OneToOneField
LegacyUnit
unit_ptr
elements (Reverse ForeignKey from Element) – All elements of this unit (related name of functional_unit)
ForeignKey
Element
functional_unit
component (Reverse ForeignKey from Component) – All components of this unit (related name of functional_unit)
Component
impactindicator (Reverse ForeignKey from ImpactIndicator) – All Impact indicators of this unit (related name of unit)
ImpactIndicator
unit
constructionproduct (Reverse ForeignKey from ConstructionProduct) – All Construction products of this unit (related name of unit)
ConstructionProduct
dimension (Reverse ForeignKey from Dimension) – All Dimensions of this unit (related name of unit)
Dimension