==============================
Appendix A: Data Model Diagram
==============================
.. graphviz::
digraph airports {
graph [
fontname="Roboto"
fontsize=10
rankdir=LR
newrank=true
splines=polyline
outputorder=edgesfirst
nodesep=0.45
ranksep=0.8
pad=0.2
bgcolor="white"
]
node [fontname="Roboto" fontsize=8 shape=plain]
edge [fontname="Roboto" fontsize=7 color="#4A4A4A" arrowsize=0.7]
subgraph cluster_external {
label="Tables not included in product"
color="#8A8A8A"
style="rounded"
state [label=<
| STATE |
| PK | state_pid: varchar2(15) |
| date_created: date |
| date_retired: date |
| state_name: varchar2(50) |
| state_abbreviation: varchar2(3) |
>]
locality [label=<
| LOCALITY |
| PK | locality_pid: varchar2(15) |
| date_created: date |
| date_retired: date |
| locality_name: varchar2(100) |
| postcode: varchar2(4) |
| primary_postcode: varchar2(4) |
| FK | locality_class_code: char(1) |
| date_gazetted: date |
| FK | state_pid: varchar2(15) |
>]
}
airport_lg [label=<
| AIRPORT_LG |
| PK | airport_lg_pid: varchar2(15) |
| date_created: date |
| date_retired: date |
| airport_name: varchar2(200) |
| FK | locality_pid: varchar2(15) |
| FK | transport_hierarchy_code: number(5) |
| FK | state_pid: varchar2(15) |
>]
transport_hierarchy [label=<
| TRANSPORT_HIERARCHY_AUT |
| PK | code: number(5) |
| name: varchar2(50) |
| description: varchar2(254) |
>]
airport_line [label=<
| AIRPORT_LG_LINE |
| PK | airport_lg_line_pid: varchar2(15) |
| date_created: date |
| date_retired: date |
| FK | airport_lg_pid: varchar2(15) |
| FK | surface_type_code: number(2) |
| FK | operational_status_code: number(2) |
| jurisdiction_id: varchar2(50) |
| geometry: line |
>]
airport_polygon [label=<
| AIRPORT_LG_POLYGON |
| PK | airport_lg_polygon_pid: varchar2(15) |
| date_created: date |
| date_retired: date |
| FK | airport_lg_pid: varchar2(15) |
| FK | surface_type_code: number(2) |
| FK | operational_status_code: number(2) |
| jurisdiction_id: varchar2(50) |
| geometry: polygon |
>]
airport_point [label=<
| AIRPORT_LG_POINT |
| PK | airport_lg_point_pid: varchar2(15) |
| date_created: date |
| date_retired: date |
| FK | airport_lg_pid: varchar2(15) |
| FK | surface_type_code: number(2) |
| FK | operational_status_code: number(2) |
| jurisdiction_id: varchar2(50) |
| geometry: point |
>]
surface_type [label=<
| SURFACE_TYPE_AUT |
| PK | code: number(2) |
| name: varchar2(50) |
| description: varchar2(254) |
>]
operational_status [label=<
| OPERATIONAL_STATUS_AUT |
| PK | code: number(2) |
| name: varchar2(50) |
| description: varchar2(254) |
>]
legend [label=<
| Legend |
| | Spatial Attribute Table |
| | Textual Attribute Table |
| | Authority Code Table |
>]
{ rank=same; state; locality; legend }
{ rank=same; airport_lg; transport_hierarchy }
{ rank=same; surface_type; airport_line; airport_polygon; airport_point; operational_status }
state -> locality -> legend [style=invis weight=20]
airport_lg -> transport_hierarchy [style=invis weight=20]
surface_type -> airport_line -> airport_polygon -> airport_point -> operational_status [style=invis weight=20]
state:pk:s -> locality:state_fk:n [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
state:pk:e -> airport_lg:state_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
locality:pk:e -> airport_lg:locality_fk:w [dir=both arrowtail=odot arrowhead=crowodot]
transport_hierarchy:pk:n -> airport_lg:hierarchy_fk:s [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
airport_lg:pk:e -> airport_line:airport_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
airport_lg:pk:e -> airport_polygon:airport_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
airport_lg:pk:e -> airport_point:airport_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
surface_type:pk:e -> airport_line:surface_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
surface_type:pk:e -> airport_polygon:surface_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
surface_type:pk:e -> airport_point:surface_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
operational_status:pk:e -> airport_line:status_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
operational_status:pk:e -> airport_polygon:status_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
operational_status:pk:e -> airport_point:status_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
}