Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
organization_id | int8 | 19 | null |
|
|
ORGANIZATION ID is the system generated unique identifier for ORGANIZATION |
||||||||
parent_organization_id | int8 | 19 | √ | null |
|
|
ORGANIZATION ID is the system generated unique identifier for ORGANIZATION |
|||||||
org_type | varchar | 10 | null |
|
|
|||||||||
organization_type_cd | varchar | 10 | null |
|
|
ORGANIZATION TYPE CD is the unique identifier for ORGANIZATION TYPE CD. Example: CORP - Corporation. |
||||||||
organization_name | varchar | 100 | null |
|
|
The ORGANIZATION NAME is the name of an organization. |
||||||||
effective_date | timestamp | 29,6 | √ | null |
|
|
The EFFECTIVE DATE is the date the Organization becomes effective as a valid Org Unit within the Ministry organizational structure. |
|||||||
expiry_date | timestamp | 29,6 | √ | null |
|
|
The EXPIRY DATE is the date the Organization is obsoleted and is no longer an active or valid. May be used to keep a historical record of organization. |
|||||||
ministry_cd | varchar | 10 | √ | null |
|
|
The MINISTRY CD is a number assigned to define a BC Government Ministry |
|||||||
organization_unit_cd | varchar | 10 | √ | null |
|
|
The ORGANIZATION UNIT CD is an acronym used for Government Organization. For MSRM Information Management Branch it would be IMB. MoF has specific organizational unit codes which identify the org unit as Executive, Branch, Region or District with the code. E.g HIS in forests is Information Management Group. The H identifies it as Headquarters. |
|||||||
alias_name | varchar | 240 | √ | null |
|
|
The ALIAS NAME is an alias for this type of organization. |
|||||||
organization_guid | varchar | 32 | √ | null |
|
|
The GUID of the organization as provided by WebADE |
|||||||
organization_contact | varchar | 120 | √ | null |
|
|
The name of the contact at the organization. |
|||||||
who_created | varchar | 32 | null |
|
|
WHO CREATED is the IDIR or Oracle userid of the person who created the record. |
||||||||
when_created | timestamp | 29,6 | null |
|
|
WHEN CREATED is the date/time that the record was created. |
||||||||
who_updated | varchar | 32 | √ | null |
|
|
WHO UPDATED is the IDIR or Oracle userid of the person who updated the record. |
|||||||
when_updated | timestamp | 29,6 | √ | null |
|
|
WHEN UPDATED is the date/time that the record was updated. |
|||||||
revision_count | int8 | 19 | 0 |
|
|
REVISION COUNT is used by Hibernate to control optimistic locking |
||||||||
zone_1 | varchar | 1 | √ | null |
|
|
Indicates whether or not the organization is in zone 1. |
|||||||
zone_2 | varchar | 1 | √ | null |
|
|
Indicates whether or not the organization is in zone 2. |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
oats_organizations_pkey | Primary key | Asc | organization_id |
oats_organizations_organization_guid_key | Must be unique | Asc | organization_guid |
Check Constraints
Constraint Name | Constraint |
---|---|
oats_org_chk | ((((org_type)::text = 'BGO'::text) AND (ministry_cd IS NOT NULL) AND (organization_unit_cd IS NOT NULL) AND (alias_name IS NULL)) OR (((org_type)::text = 'NBC'::text) AND (ministry_cd IS NULL) AND (organization_unit_cd IS NULL))) |
oats_org_ot_chk | ((org_type)::text = ANY ((ARRAY['BGO'::character varying, 'NBC'::character varying])::text[])) |