geo_org_unit_structure

-1 rows


Description

A geographical organization unit structure is a parent/child relationship between two geographical organization units.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
geo_org_unit_structure_guid uuid 2147483647 uuid_generate_v4()

System generated unique key for a geographical organization unit structure. This key should never be exposed to users via any system utilizing the tables.

effective_date timestamp 29,6 null

The date the Geographical Organizational Unit Structure becomes effective as a valid relationship within the Ministry organizational structure.

expiry_date timestamp 29,6 null

The date the Geographical Organizational Unit Structure is no longer recognized as a valid relationship within the Ministry organizational structure.

create_user_id varchar 32 null

The id of the user that created the geographical organization unit structure.

create_utc_timestamp timestamp 29,6 null

The timestamp when the geographical organization unit structure was created. The timestamp is stored in UTC with no Offset.

update_user_id varchar 32 null

The id of the user that updated the geographical organization unit structure.

update_utc_timestamp timestamp 29,6 null

The timestamp when the geographical organization unit structure was updated. The timestamp is stored in UTC with no Offset.

agency_code varchar 10 null
agency_code.agency_code FK_gorgustrct_agencycode R

A human readable code used to identify an agency. The agency that defines the geographical organization unit structural relationship.

parent_geo_org_unit_code varchar 10 null
geo_organization_unit_code.geo_organization_unit_code FK_gorgustrct_parent_geoorgutcd R

The geographical organization that contains the child geographical organization unit.

child_geo_org_unit_code varchar 10 null
geo_organization_unit_code.geo_organization_unit_code FK_gorgustrct_child_geoorgutcd R

The geographical organization that is contained by the parent geographical organization unit.

Indexes

Constraint Name Type Sort Column(s)
PK_gorgustrct Primary key Asc geo_org_unit_structure_guid
UQ_gorgustrct Must be unique Asc/Asc parent_geo_org_unit_code + child_geo_org_unit_code

Relationships