From daed6485b8684919d6c5cf4378b52351a2514391 Mon Sep 17 00:00:00 2001 From: afwilcox Date: Fri, 3 Jan 2025 22:14:49 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20bcgov/nr?= =?UTF-8?q?-compliance-enforcement@8f8db052e4dd8c3eae5d277a3813eb30898d0e3?= =?UTF-8?q?2=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemaspy/index.html | 2 +- schemaspy/public/columns.html | 5200 ++++++++++++++++---------------- schemaspy/public/index.html | 2 +- schemaspy/public/info-html.txt | 2 +- 4 files changed, 2603 insertions(+), 2603 deletions(-) diff --git a/schemaspy/index.html b/schemaspy/index.html index 272ad2306..f330c1cb8 100644 --- a/schemaspy/index.html +++ b/schemaspy/index.html @@ -49,7 +49,7 @@

SchemaSpy Analysis of default

-

Generated on Fri Jan 03 18:09 GMT 2025

+

Generated on Fri Jan 03 22:14 GMT 2025

diff --git a/schemaspy/public/columns.html b/schemaspy/public/columns.html index 7a1455640..d402e9c28 100644 --- a/schemaspy/public/columns.html +++ b/schemaspy/public/columns.html @@ -116,13 +116,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the GIR complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the GIR complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "complaint_h", @@ -130,27 +130,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "office", "tableFileName": "office", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "agency_code", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>geo_organization_unit_code", "type": "varchar", - "length": 6, + "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an agency. The agency that owns the office.<\/p>" + "comments": "

A human readable code used to identify a geographical organization unit. The geographical unit where the office is located. This might not necessarily be the lowest level in the geographical organizational unit hierarchy.<\/p>" }, { "tableName": "team", @@ -158,13 +158,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>agency_code", + "name": "<\/i>team_code", "type": "varchar", - "length": 6, + "length": 15, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A human readable code used to identify a TEAM<\/p>" }, { "tableName": "gir_type_code", @@ -172,27 +172,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "active_ind", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "attractant_code", - "tableFileName": "attractant_code", + "tableName": "configuration_h", + "tableFileName": "configuration_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>attractant_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an attractant.<\/p>" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "office", @@ -200,41 +200,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the office.<\/p>" - }, - { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "coord_dimension", - "type": "int4", - "length": 10, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "comments": "

The timestamp when the office was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "officer_h", "tableFileName": "officer_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_officer_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the officer that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for officer history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "allegation_complaint", @@ -242,27 +228,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "observed_ind", + "name": "in_progress_ind", "type": "bool", "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

True if the alleged violation was observed first hand. False otherwise.<\/p>" + "comments": "

True if the alleged violation is currently described as being in progress. False otherwise.<\/p>" }, { "tableName": "configuration_h", "tableFileName": "configuration_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", - "type": "varchar", - "length": 10, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_configuration_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the configuration that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for configuration history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "person_complaint_xref", @@ -270,13 +256,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the relationship between a person and a complaint .<\/p>" + "comments": "

The timestamp when the relationship between a person and a complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "attractant_code", @@ -284,27 +270,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the attractant code.<\/p>" + "comments": "

The short description of the attractant code.<\/p>" }, { "tableName": "linked_complaint_xref", "tableFileName": "linked_complaint_xref", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>linked_complaint_xref_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

One half of a linked complaint pair. If the type requires a context of hierarchy, the complaint that is higher in the hierarchy. For example, in the case of duplicate complaints, this would be the complaint that would remain open and where the majority of the information should be contained.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

A human readable code used to identify a complaint linkage.<\/p>" }, { "tableName": "violation_code", @@ -312,13 +298,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the violation code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the violation code.<\/p>" }, { "tableName": "species_code", @@ -326,13 +312,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the species code.<\/p>" + "comments": "

The timestamp when the species code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person_h", @@ -340,13 +326,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the person table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "person_complaint_xref_h", @@ -354,27 +340,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" - }, - { - "tableName": "configuration_h", - "tableFileName": "configuration_h", - "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_configuration_guid", - "type": "uuid", - "length": 2147483647, + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for configuration history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "comp_mthd_recv_cd_agcy_cd_xref", @@ -382,41 +354,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the complaint_method_received_code / AGENCY mapping<\/p>" + "comments": "

The timestamp when the complaint_method_received_code / AGENCY mapping was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "team", - "tableFileName": "team", + "tableName": "comp_mthd_recv_cd_agcy_cd_xref", + "tableFileName": "comp_mthd_recv_cd_agcy_cd_xref", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>team_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

A system generated guid to uniquely identify a TEAM<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the complaint_method_received_code / AGENCY mapping was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", + "tableName": "office", + "tableFileName": "office", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "zone_code", + "name": "agency_code", "type": "varchar", - "length": 10, + "length": 6, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A human readable code used to identify an agency. The agency that owns the office.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -424,96 +396,82 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the geographical organization unit structure was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the geographical organization unit structure.<\/p>" }, { "tableName": "violation_code", "tableFileName": "violation_code", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>agency_code", - "type": "varchar", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "'COS'::character varying", - "comments": "

A human readable code used to identify an agency.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the violation code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "staging_metadata_mapping", "tableFileName": "staging_metadata_mapping", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>entity_code", - "type": "varchar", - "length": 10, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" - }, - { - "tableName": "office_h", - "tableFileName": "office_h", - "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>h_office_guid", + "name": "<\/i>staging_metadata_mapping_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for office history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "comments": "" }, { - "tableName": "allegation_complaint_h", - "tableFileName": "allegation_complaint_h", + "tableName": "flyway_schema_history", + "tableFileName": "flyway_schema_history", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>success", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "comments": "" }, { - "tableName": "complaint_type_code", - "tableFileName": "complaint_type_code", + "tableName": "allegation_complaint_h", + "tableFileName": "allegation_complaint_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>complaint_type_code", - "type": "varchar", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the allegation complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", + "tableName": "attractant_hwcr_xref", + "tableFileName": "attractant_hwcr_xref", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "f_table_catalog", - "type": "varchar", - "length": 256, - "nullable": "√", + "name": "active_ind", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "true", "comments": "" }, { @@ -522,13 +480,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "upd_detail_text", - "type": "text", - "length": 2147483647, - "nullable": "√", + "name": "update_seq_number", + "type": "int4", + "length": 10, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Verbatim details of the complaint as recorded by the call centre or through the web form.<\/p>" + "comments": "

An integer that is used to reflect the order that complaint updates were entered into the call center system.<\/p>" }, { "tableName": "geo_organization_unit_code", @@ -536,13 +494,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "effective_date", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The date the Geographical Organizational Unit becomes effective as a boundaried physical location within the Ministry organizational structure.<\/p>" + "comments": "

The long description of the geographical organization unit code.<\/p>" }, { "tableName": "comp_mthd_recv_cd_agcy_cd_xref", @@ -550,13 +508,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>complaint_method_received_code", + "name": "<\/i>agency_code", "type": "varchar", "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a complaint_method_received_code that is controlled by the comp_mthd_recv_cd_agcy_cd_xref table.<\/p>" + "comments": "

A human readable code used to identify an AGENCY.<\/p>" }, { "tableName": "feature_code", @@ -564,13 +522,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the FEATURE controlled by the flag.<\/p>" + "comments": "

The short description of the FEATURE controlled by the flag.<\/p>" }, { "tableName": "entity_code", @@ -578,10 +536,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -592,13 +550,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the person and complaint mapping that has been created or modified.<\/p>" }, { "tableName": "staging_status_code", @@ -606,9 +564,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -620,9 +578,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -634,27 +592,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the team was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the team code.<\/p>" }, { - "tableName": "feature_code", - "tableFileName": "feature_code", + "tableName": "person_complaint_xref_h", + "tableFileName": "person_complaint_xref_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>feature_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a FEATURE that is controlled by the FEATURE_AGENCY_XREF table.<\/p>" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "complaint_type_code", @@ -662,9 +620,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -676,13 +634,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the allegation complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the allegation complaint.<\/p>" }, { "tableName": "office_h", @@ -690,13 +648,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the office table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the office table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "agency_code", @@ -704,13 +662,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the agency code is active.<\/p>" + "comments": "

The order in which the values of the agency code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "violation_code", @@ -718,125 +676,111 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the violation code.<\/p>" + "comments": "

The short description of the violation code.<\/p>" }, { "tableName": "office", "tableFileName": "office", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>geo_organization_unit_code", - "type": "varchar", - "length": 10, - "nullable": "√", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a geographical organization unit. The geographical unit where the office is located. This might not necessarily be the lowest level in the geographical organizational unit hierarchy.<\/p>" + "comments": "

The timestamp when the office was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "attractant_hwcr_xref_h", - "tableFileName": "attractant_hwcr_xref_h", + "tableName": "entity_code", + "tableFileName": "entity_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_attrhwcrx_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", - "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for attractant hwcr xref history. This key should never be exposed to users via any system utilizing the tables.<\/p>" - }, - { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "zone_name", - "type": "varchar", - "length": 50, - "nullable": "√", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "person_h", - "tableFileName": "person_h", + "tableName": "action_taken", + "tableFileName": "action_taken", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_person_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for person history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the ACTION_TAKEN was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "gir_complaint", "tableFileName": "gir_complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Natural key for a complaint generated by webEOC.<\/p>" + "comments": "

The timestamp when the GIR complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "officer_team_xref_h", - "tableFileName": "officer_team_xref_h", + "tableName": "team_code", + "tableFileName": "team_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_officer_team_xref_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for officer_team_xref history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the team was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_org_unit_type_code", "tableFileName": "geo_org_unit_type_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>geo_org_unit_type_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the geographical organization unit type code.<\/p>" + "comments": "

A human readable code used to identify a geographical organization unit type.<\/p>" }, { - "tableName": "configuration", - "tableFileName": "configuration", + "tableName": "feature_agency_xref", + "tableFileName": "feature_agency_xref", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>configuration_code", - "type": "varchar", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an configuration entry.<\/p>" + "comments": "

The timestamp when the FEATURE / AGENCY mapping was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "hwcr_complaint", @@ -844,13 +788,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the HWCR complaint.<\/p>" + "comments": "

The timestamp when the HWCR complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + }, + { + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "f_geometry_column", + "type": "name", + "length": 2147483647, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" }, { "tableName": "geo_org_unit_type_code", @@ -858,13 +816,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the geographical organization unit type code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the geographical organization unit type code.<\/p>" }, { "tableName": "person_complaint_xref", @@ -872,35 +830,21 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "name": "<\/i>person_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Natural key for a complaint generated by webEOC. Format is YY-###### where the number portion of the sequence resets to 0 on the new year.<\/p>" + "comments": "

System generated unique key for an person.<\/p>" }, { "tableName": "staging_status_code", "tableFileName": "staging_status_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", - "type": "varchar", - "length": 50, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" - }, - { - "tableName": "gir_type_code", - "tableFileName": "gir_type_code", - "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>gir_type_code", + "name": "<\/i>staging_status_code", "type": "varchar", "length": 10, "nullable": "", @@ -909,8 +853,8 @@

Columns

"comments": "" }, { - "tableName": "complaint_type_code", - "tableFileName": "complaint_type_code", + "tableName": "officer_team_xref", + "tableFileName": "officer_team_xref", "tableType": "Table", "keyClass": "", "keyTitle": "", @@ -920,35 +864,35 @@

Columns

"nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The timestamp when the OFFICER_TEAM_XREF was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "configuration", - "tableFileName": "configuration", + "tableName": "complaint_type_code", + "tableFileName": "complaint_type_code", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_guid", + "type": "uuid", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the configuration entry was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "" }, { - "tableName": "complaint", - "tableFileName": "complaint", + "tableName": "configuration", + "tableFileName": "configuration", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", + "name": "update_user_id", "type": "varchar", "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the complaint.<\/p>" + "comments": "

The id of the user that updated the configuration entry.<\/p>" }, { "tableName": "complaint", @@ -956,41 +900,69 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "detail_text", - "type": "text", - "length": 2147483647, + "name": "reported_by_other_text", + "type": "varchar", + "length": 120, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Verbatim details of the complaint as recorded by the call centre or through the web form.<\/p>" + "comments": "

Provides a more detailed description when the referred by Agency is of type “OTHER”<\/p>" }, { - "tableName": "complaint_status_code", - "tableFileName": "complaint_status_code", + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "zone_code", + "type": "varchar", + "length": 10, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "complaint", + "tableFileName": "complaint", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>complaint_status_code", + "name": "<\/i>complaint_identifier", "type": "varchar", - "length": 10, + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a complaint status.<\/p>" + "comments": "" + }, + { + "tableName": "agency_code", + "tableFileName": "agency_code", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

The timestamp when the agency was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_update", "tableFileName": "complaint_update", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>complaint_update_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

Natural key for a complaint generated by webEOC. Format is YY-250744772125074477212507447721 where the number portion of the sequence resets to 0 on the new year.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for a complaint update. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "person_complaint_xref_code", @@ -998,13 +970,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the relationship type between a person and a complaint code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the relationship type between a person and a complaint.<\/p>" }, { "tableName": "feature_code", @@ -1012,13 +984,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the FEATURE is active.<\/p>" + "comments": "

The order in which the values of the FEATUREs should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "hwcr_complaint_nature_code", @@ -1026,13 +998,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the human wildlife conflict nature code.<\/p>" + "comments": "

A boolean indicator to determine if the nature of the Human Wildlife Conflict code is active.<\/p>" }, { "tableName": "hwcr_complaint_nature_code", @@ -1040,97 +1012,55 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the human wildlife conflict nature code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the human wildlife conflict nature code.<\/p>" }, { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", + "tableName": "violation_code", + "tableFileName": "violation_code", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "region_name", + "name": "long_description", "type": "varchar", - "length": 50, + "length": 250, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The long description of the violation code.<\/p>" }, { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", + "tableName": "gir_complaint", + "tableFileName": "gir_complaint", + "tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>srid", - "type": "int4", + "name": "<\/i>gir_type_code", + "type": "varchar", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A human readable code used to identify a type of GIR complaint.<\/p>" }, { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", + "tableName": "geo_organization_unit_code", + "tableFileName": "geo_organization_unit_code", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "type", - "type": "text", - "length": 2147483647, + "name": "expiry_date", + "type": "timestamp", + "length": 29, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" - }, - { - "tableName": "violation_code", - "tableFileName": "violation_code", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The order in which the values of the violation code table should be displayed when presented to a user in a list.<\/p>" - }, - { - "tableName": "gir_complaint", - "tableFileName": "gir_complaint", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The id of the user that created the GIR complaint.<\/p>" - }, - { - "tableName": "geo_organization_unit_code", - "tableFileName": "geo_organization_unit_code", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The id of the user that created the geographical organization unit code.<\/p>" + "comments": "

The date the Geographical Organizational Unit is no longer recognized as a valid physical location within the Ministry organizational structure.<\/p>" }, { "tableName": "team_code", @@ -1138,13 +1068,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the team code.<\/p>" + "comments": "

A boolean indicator to determine if the team code is active.<\/p>" }, { "tableName": "attractant_code", @@ -1152,27 +1082,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the attractant code.<\/p>" + "comments": "

The timestamp when the attractant code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "office", - "tableFileName": "office", + "tableName": "complaint_update", + "tableFileName": "complaint_update", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>office_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "webeoc_identifier", + "type": "varchar", + "length": 20, + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for an office. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

Unique Identifier from the webEOC source system to identify a complaint update. This is required as the natural key is not available in all webEOC APIs<\/p>" }, { "tableName": "complaint", @@ -1180,13 +1110,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "caller_phone_2", + "name": "caller_phone_1", "type": "varchar", "length": 15, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

An alternate phone number provided by the caller to the call centre or entered onto the web form.<\/p>" + "comments": "

The primary phone number provided by the caller to the call centre or entered onto the web form.<\/p>" }, { "tableName": "complaint_update", @@ -1194,13 +1124,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "webeoc_identifier", - "type": "varchar", - "length": 20, + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Unique Identifier from the webEOC source system to identify a complaint update. This is required as the natural key is not available in all webEOC APIs<\/p>" + "comments": "

The timestamp when the complaint_update record was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "agency_code", @@ -1208,13 +1138,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the agency was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the agency code.<\/p>" }, { "tableName": "staging_metadata_mapping", @@ -1222,9 +1152,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "live_data_value", + "name": "staged_data_value", "type": "varchar", - "length": 10, + "length": 120, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -1236,13 +1166,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the complaint update that has been created or modified.<\/p>" }, { "tableName": "officer_h", @@ -1250,13 +1180,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the officer that has been created or modified.<\/p>" }, { "tableName": "person_complaint_xref_code", @@ -1264,13 +1194,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the relationship type between a person and a complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the relationship type between a person and a complaint .<\/p>" }, { "tableName": "person_complaint_xref_h", @@ -1278,13 +1208,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "team_h", @@ -1292,13 +1222,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the team table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "staging_complaint", @@ -1306,9 +1236,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "complaint_jsonb", + "type": "jsonb", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -1320,27 +1250,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the species code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the species code.<\/p>" }, { "tableName": "feature_agency_xref", "tableFileName": "feature_agency_xref", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>agency_code", + "type": "varchar", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the FEATURE should be rendered the for users in the given AGENCY<\/p>" + "comments": "

A human readable code used to identify an AGENCY.<\/p>" }, { "tableName": "feature_agency_xref", @@ -1348,13 +1278,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the FEATURE / AGENCY mapping.<\/p>" + "comments": "

A boolean indicator to determine if the FEATURE should be rendered the for users in the given AGENCY<\/p>" }, { "tableName": "configuration", @@ -1362,27 +1292,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "long_description", + "type": "varchar", + "length": 250, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the configuration_entry is active.<\/p>" + "comments": "

The long description of the configuration entry.<\/p>" }, { "tableName": "complaint", "tableFileName": "complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>comp_mthd_recv_cd_agcy_cd_xref_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "webeoc_identifier", + "type": "varchar", + "length": 20, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Methods in which the complaint was received. Examples include: DGIR forward, Direct email or phone call,Minister’s office,RAPP ,Referral<\/p>" + "comments": "

Unique Identifier from the webEOC source system to identify a complaint update. This is required as the natural key is not available in all webEOC APIs<\/p>" }, { "tableName": "action_taken", @@ -1390,27 +1320,27 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>complaint_update_guid", - "type": "uuid", - "length": 2147483647, + "name": "<\/i>complaint_identifier", + "type": "varchar", + "length": 20, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

System generated unique key for a COMPLAINT_UPDATE. This key should never be exposed to users via any system utilizing the tables. Either a complaint_update_guid or a complaint_identifier must be present on the record.<\/p>" + "comments": "

Natural key for a complaint generated by webEOC. Format is YY-###### where the number portion of the sequence resets to 0 on the new year. Either a complaint_update_guid or a complaint_identifier must be present on the record.<\/p>" }, { "tableName": "species_code", "tableFileName": "species_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>species_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the species code.<\/p>" + "comments": "

A human readable code used to identify a wildlife species.<\/p>" }, { "tableName": "gir_type_code", @@ -1418,10 +1348,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "update_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -1432,13 +1362,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the configuration table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint", @@ -1446,13 +1376,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "incident_reported_utc_timestmp", + "name": "incident_utc_datetime", "type": "timestamp", "length": 29, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The date and time at which the complaint was reported.<\/p>" + "comments": "

The date and time at which the complaint occurred.<\/p>" }, { "tableName": "spatial_ref_sys", @@ -1460,9 +1390,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "srtext", - "type": "varchar", - "length": 2048, + "name": "auth_srid", + "type": "int4", + "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", @@ -1474,27 +1404,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "installed_on", - "type": "timestamp", - "length": 29, + "name": "installed_by", + "type": "varchar", + "length": 100, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", + "defaultValue": "null", "comments": "" }, { - "tableName": "complaint_update", - "tableFileName": "complaint_update", + "tableName": "complaint_h", + "tableFileName": "complaint_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>complaint_update_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a complaint update. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "staging_metadata_mapping", @@ -1502,9 +1432,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -1516,9 +1446,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -1530,41 +1460,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "reported_by_other_text", - "type": "varchar", - "length": 120, + "name": "incident_reported_utc_timestmp", + "type": "timestamp", + "length": 29, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Provides a more detailed description when the referred by Agency is of type “OTHER”<\/p>" + "comments": "

The date and time at which the complaint was reported.<\/p>" }, { "tableName": "geo_org_unit_structure", "tableFileName": "geo_org_unit_structure", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "effective_date", - "type": "timestamp", - "length": 29, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>geo_org_unit_structure_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The date the Geographical Organizational Unit Structure becomes effective as a valid relationship within the Ministry organizational structure.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for a geographical organization unit structure. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "person_complaint_xref_code", "tableFileName": "person_complaint_xref_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>person_complaint_xref_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the relationship type between a person and a complaint.<\/p>" + "comments": "

A human readable code used to identify a relationship type between a person and a complaint.<\/p>" }, { "tableName": "complaint_method_received_code", @@ -1572,27 +1502,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the wdr schedule code.<\/p>" - }, - { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "f_table_schema", - "type": "name", - "length": 2147483647, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "comments": "

A boolean indicator to determine if the METHOD_COMPLAINT_RECEIVED_CODE is active<\/p>" }, { "tableName": "staging_status_code", @@ -1600,10 +1516,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -1614,13 +1530,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the OFFICER_TEAM_XREF<\/p>" + "comments": "

The timestamp when the OFFICER_TEAM_XREF was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "team", @@ -1628,45 +1544,31 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The id of the user that updated the TEAM<\/p>" - }, - { - "tableName": "hwcr_complaint_h", - "tableFileName": "hwcr_complaint_h", - "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_hwcrcmplt_guid", - "type": "uuid", - "length": 2147483647, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for HWCR complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the TEAM was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "team_h", - "tableFileName": "team_h", + "tableName": "complaint", + "tableFileName": "complaint", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "reference_number", + "type": "varchar", + "length": 20, + "nullable": "√", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the team table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "null", + "comments": "

Allows users to link complaints to files in external systems. Currently labeled in the system as COORS reference number and initially only used for COORS linkages.<\/p>" }, { - "tableName": "gir_complaint_h", - "tableFileName": "gir_complaint_h", + "tableName": "team_h", + "tableFileName": "team_h", "tableType": "Table", "keyClass": "", "keyTitle": "", @@ -1676,35 +1578,21 @@

Columns

"nullable": "", "autoUpdated": "", "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the GIR complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" - }, - { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "f_geography_column", - "type": "name", - "length": 2147483647, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "comments": "

The id of the user that created or modified the data in the team table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", + "tableName": "gir_complaint_h", + "tableFileName": "gir_complaint_h", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "area_code", - "type": "varchar", - "length": 10, - "nullable": "√", + "name": "operation_type", + "type": "bpchar", + "length": 1, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "complaint", @@ -1712,7 +1600,7 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "caller_phone_3", + "name": "caller_phone_2", "type": "varchar", "length": 15, "nullable": "√", @@ -1726,13 +1614,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "incident_utc_datetime", - "type": "timestamp", - "length": 29, + "name": "location_detailed_text", + "type": "varchar", + "length": 4000, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The date and time at which the complaint occurred.<\/p>" + "comments": "

A more detailed description of the location of the complaint.<\/p>" }, { "tableName": "hwcr_complaint", @@ -1740,13 +1628,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>hwcr_complaint_nature_code", + "name": "<\/i>species_code", "type": "varchar", "length": 10, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify the nature of the Human Wildlife Conflict.<\/p>" + "comments": "

A human readable code used to identify a wildlife species.<\/p>" }, { "tableName": "attractant_hwcr_xref", @@ -1754,13 +1642,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the attractant hwcr cross reference.<\/p>" + "comments": "

The timestamp when the attractant hwcr cross reference was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person_complaint_xref_h", @@ -1768,13 +1656,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "complaint", @@ -1782,41 +1670,41 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>complaint_status_code", + "name": "<\/i>owned_by_agency_code", "type": "varchar", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a complaint status.<\/p>" + "comments": "

A human readable code used to identify an agency. The agency that currently owns the complaint.<\/p>" }, { "tableName": "team", "tableFileName": "team", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>agency_code", + "type": "varchar", + "length": 6, "nullable": "", "autoUpdated": "", - "defaultValue": "true", - "comments": "

A boolean indicator to determine if the TEAM is active.<\/p>" + "defaultValue": "null", + "comments": "" }, { "tableName": "officer", "tableFileName": "officer", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "user_id", - "type": "varchar", - "length": 32, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>officer_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The IDIR ID issued to the user by the Government of British Columbia as part of their employment.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for an officer. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "agency_code", @@ -1824,27 +1712,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The long description of the agency code.<\/p>" - }, - { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "f_geometry_column", - "type": "name", - "length": 2147483647, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The short description of the agency code.<\/p>" }, { "tableName": "staging_complaint", @@ -1852,9 +1726,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -1866,13 +1740,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the FEATURE was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the FEATURE.<\/p>" }, { "tableName": "complaint", @@ -1880,13 +1754,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>owned_by_agency_code", + "name": "<\/i>reported_by_code", "type": "varchar", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an agency. The agency that currently owns the complaint.<\/p>" + "comments": "

A human readable code used to identify an agency. The agency that originally referred the complaint.<\/p>" }, { "tableName": "geo_org_unit_type_code", @@ -1894,13 +1768,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the geographical organization unit type code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the geographical organization unit type code.<\/p>" }, { "tableName": "attractant_code", @@ -1908,13 +1782,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the attractant code is active.<\/p>" + "comments": "

The order in which the values of the attractant code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "team", @@ -1922,13 +1796,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the TEAM was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the TEAM.<\/p>" }, { "tableName": "complaint", @@ -1936,27 +1810,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the complaint.<\/p>" }, { - "tableName": "complaint_method_received_code", - "tableFileName": "complaint_method_received_code", + "tableName": "geo_org_unit_type_code", + "tableFileName": "geo_org_unit_type_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>complaint_method_received_code", - "type": "varchar", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to define the method in which the complaint was received<\/p>" + "comments": "

The timestamp when the geographical organization unit type code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "entity_code", @@ -1964,27 +1838,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "person_complaint_xref_code", - "tableFileName": "person_complaint_xref_code", + "tableName": "staging_metadata_mapping", + "tableFileName": "staging_metadata_mapping", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>person_complaint_xref_code", - "type": "varchar", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a relationship type between a person and a complaint.<\/p>" + "comments": "" }, { "tableName": "action_taken", @@ -1992,41 +1866,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "action_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "logged_by_txt", + "type": "varchar", + "length": 250, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The date from webEOC that the ACTION_TAKEN was recorded. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The name of the webEOC User that recorded the ACTION_TAKEN<\/p>" }, { "tableName": "complaint_h", "tableFileName": "complaint_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", - "type": "varchar", - "length": 20, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_complaint_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the complaint that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "configuration", "tableFileName": "configuration", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "configuration_value", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>configuration_code", "type": "varchar", - "length": 250, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The value of the configuration entry.<\/p>" + "comments": "

A human readable code used to identify an configuration entry.<\/p>" }, { "tableName": "species_code", @@ -2034,52 +1908,52 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", + "name": "legacy_code", "type": "varchar", - "length": 32, + "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the species code.<\/p>" + "comments": "

The code for the species from the CORS_SPECIES_CODE table in the COORS database.<\/p>" }, { - "tableName": "action_taken", - "tableFileName": "action_taken", - "tableType": "Table", + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "logged_by_txt", + "name": "region_code", "type": "varchar", - "length": 250, + "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The name of the webEOC User that recorded the ACTION_TAKEN<\/p>" + "comments": "" }, { - "tableName": "staging_activity_code", - "tableFileName": "staging_activity_code", + "tableName": "action_taken", + "tableFileName": "action_taken", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", - "type": "varchar", - "length": 250, + "name": "action_details_txt", + "type": "text", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

Text about who the call centre staff contacted and when<\/p>" }, { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", + "tableName": "staging_activity_code", + "tableFileName": "staging_activity_code", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "f_table_name", - "type": "name", - "length": 2147483647, - "nullable": "√", + "name": "short_description", + "type": "varchar", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -2090,27 +1964,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the human wildlife conflict nature code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the human wildlife conflict nature code.<\/p>" }, { - "tableName": "person_complaint_xref", - "tableFileName": "person_complaint_xref", + "tableName": "reported_by_code", + "tableFileName": "reported_by_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>person_complaint_xref_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a relationship between a person and a complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "" }, { "tableName": "violation_code", @@ -2118,27 +1992,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the violation code.<\/p>" - }, - { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "f_table_name", - "type": "name", - "length": 2147483647, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "comments": "

The timestamp when the violation code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "agency_code", @@ -2146,13 +2006,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the agency code.<\/p>" + "comments": "

The timestamp when the agency was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "hwcr_complaint_h", @@ -2160,27 +2020,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the HWCR complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the HWCR complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "officer_team_xref", "tableFileName": "officer_team_xref", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>team_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Used to indicate if the users in the OFFICER_TEAM_XREF recrodis active.<\/p>" + "comments": "

Unique key for a team. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "team_code", @@ -2188,13 +2048,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the team code.<\/p>" + "comments": "

The timestamp when the team was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_organization_unit_code", @@ -2202,13 +2062,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the geographical organization unit code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the geographical organization unit code.<\/p>" }, { "tableName": "complaint_h", @@ -2216,13 +2076,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -2230,27 +2090,27 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>parent_geo_org_unit_code", + "name": "<\/i>agency_code", "type": "varchar", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The geographical organization that contains the child geographical organization unit.<\/p>" + "comments": "

A human readable code used to identify an agency. The agency that defines the geographical organization unit structural relationship.<\/p>" }, { "tableName": "complaint", "tableFileName": "complaint", "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>location_geometry_point", - "type": "geometry", - "length": 2147483647, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>geo_organization_unit_code", + "type": "varchar", + "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The closest approximation to where the incident occurred. Stored as a geometric point using the EPSG:3005 Projected Coordinate System (BC Albers)<\/p>" + "comments": "

A human readable code used to identify a geographical organization unit. The finest known grain geographical organization unit where the complaint occurred.<\/p>" }, { "tableName": "configuration", @@ -2258,27 +2118,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the configuration entry.<\/p>" + "comments": "

The timestamp when the configuration entry was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "species_code", - "tableFileName": "species_code", + "tableName": "geo_org_unit_structure_h", + "tableFileName": "geo_org_unit_structure_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>species_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a wildlife species.<\/p>" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "officer_team_xref_h", @@ -2286,13 +2146,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the officer_team_xref table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "gir_type_code", @@ -2300,10 +2160,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -2312,43 +2172,43 @@

Columns

"tableName": "officer_team_xref", "tableFileName": "officer_team_xref", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>officer_guid", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>officer_team_xref_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

Unique key for an officer. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for a OFFICER_TEAM_XREF record. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { - "tableName": "geo_org_unit_type_code", - "tableFileName": "geo_org_unit_type_code", + "tableName": "hwcr_complaint", + "tableFileName": "hwcr_complaint", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>geo_org_unit_type_code", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>hwcr_complaint_nature_code", "type": "varchar", "length": 10, - "nullable": "", + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a geographical organization unit type.<\/p>" + "comments": "

A human readable code used to identify the nature of the Human Wildlife Conflict.<\/p>" }, { - "tableName": "geo_org_unit_structure", - "tableFileName": "geo_org_unit_structure", + "tableName": "geo_organization_unit_code", + "tableFileName": "geo_organization_unit_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>geo_org_unit_structure_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "administrative_office_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a geographical organization unit structure. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "false", + "comments": "

Indicates if the unit is a COSHQ Office.<\/p>" }, { "tableName": "complaint_status_code", @@ -2356,13 +2216,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the complaint status code is active.<\/p>" + "comments": "

The order in which the values of the complaint status code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "person_complaint_xref_code", @@ -2370,27 +2230,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the relationship type between a person and a complaint.<\/p>" + "comments": "

The order in which the values of the relationship type between a person and a complaint code table should be displayed when presented to a user in a list.<\/p>" }, { - "tableName": "staging_status_code", - "tableFileName": "staging_status_code", + "tableName": "hwcr_complaint_h", + "tableFileName": "hwcr_complaint_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>staging_status_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "officer", @@ -2398,13 +2258,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the officer.<\/p>" + "comments": "

The timestamp when the officer was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person", @@ -2412,27 +2272,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the person was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the person.<\/p>" }, { "tableName": "complaint_update", "tableFileName": "complaint_update", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "update_seq_number", - "type": "int4", - "length": 10, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>complaint_identifier", + "type": "varchar", + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

An integer that is used to reflect the order that complaint updates were entered into the call center system.<\/p>" + "comments": "

Natural key for a complaint generated by webEOC. Format is YY-250744772125074477212507447721 where the number portion of the sequence resets to 0 on the new year.<\/p>" }, { "tableName": "allegation_complaint", @@ -2440,13 +2300,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>violation_code", + "name": "<\/i>complaint_identifier", "type": "varchar", - "length": 10, - "nullable": "√", + "length": 20, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a violation.<\/p>" + "comments": "

Natural key for a complaint generated by webEOC.<\/p>" }, { "tableName": "configuration_h", @@ -2454,27 +2314,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the configuration table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "action_taken", "tableFileName": "action_taken", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>action_taken_guid", + "type": "uuid", + "length": 2147483647, + "nullable": "", + "autoUpdated": "", + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for an action taken record. This key should never be exposed to users via any system utilizing the tables.<\/p>" + }, + { + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "administrative_office_ind", + "type": "bool", + "length": 1, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Natural key for a complaint generated by webEOC. Format is YY-###### where the number portion of the sequence resets to 0 on the new year. Either a complaint_update_guid or a complaint_identifier must be present on the record.<\/p>" + "comments": "" }, { "tableName": "gir_type_code", @@ -2482,10 +2356,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -2496,27 +2370,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "manually_assignable_ind", - "type": "bool", - "length": 1, - "nullable": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "true", - "comments": "

Indicates if the stastus code can be manually assigned by a user.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the complaint status code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "attractant_hwcr_xref", "tableFileName": "attractant_hwcr_xref", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>attractant_code", - "type": "varchar", - "length": 10, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>attractant_hwcr_xref_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A human readable code used to identify an attractant.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for an attractant hwcr relationship. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "geo_org_unit_type_code", @@ -2524,27 +2398,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the geographical organization unit type code.<\/p>" + "comments": "

A boolean indicator to determine if the geographical organization unit type code is active.<\/p>" }, { "tableName": "officer", "tableFileName": "officer", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>person_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "√", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

System generated unique key for an person.<\/p>" + "comments": "

The timestamp when the officer was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_status_code", @@ -2552,13 +2426,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the complaint status code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the complaint status code.<\/p>" }, { "tableName": "complaint", @@ -2566,27 +2440,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "caller_email", + "name": "caller_address", "type": "varchar", "length": 120, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The email address provided by the caller to the call centre or entered onto the web form.<\/p>" + "comments": "

The address provided by the caller to the call centre or entered onto the web form.<\/p>" }, { - "tableName": "action_taken_h", - "tableFileName": "action_taken_h", - "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_action_taken_guid", - "type": "uuid", + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "type", + "type": "text", "length": 2147483647, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "hwcr_complaint_nature_code", + "tableFileName": "hwcr_complaint_nature_code", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the human wildlife conflict nature code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "gir_type_code", @@ -2594,9 +2482,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -2608,10 +2496,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "installed_by", - "type": "varchar", - "length": 100, - "nullable": "", + "name": "checksum", + "type": "int4", + "length": 10, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -2620,29 +2508,29 @@

Columns

"tableName": "staging_activity_code", "tableFileName": "staging_activity_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>staging_activity_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "staging_complaint", - "tableFileName": "staging_complaint", + "tableName": "configuration", + "tableFileName": "configuration", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>staging_complaint_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "" + "defaultValue": "null", + "comments": "

The timestamp when the configuration entry was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person_h", @@ -2650,13 +2538,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the person table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_status_code", @@ -2664,13 +2552,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint status code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the complaint status code.<\/p>" }, { "tableName": "violation_code", @@ -2678,13 +2566,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the violation code.<\/p>" + "comments": "

A boolean indicator to determine if the violation code is active.<\/p>" }, { "tableName": "staging_activity_code", @@ -2692,27 +2580,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "complaint_update_h", - "tableFileName": "complaint_update_h", + "tableName": "officer", + "tableFileName": "officer", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_complaint_update_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "coms_enrolled_ind", + "type": "bool", + "length": 1, + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for complaint update history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "false", + "comments": "" }, { "tableName": "complaint_update_h", @@ -2720,13 +2608,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the complaint update table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person_complaint_xref_code", @@ -2734,13 +2622,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the relationship type between a person and a complaint .<\/p>" + "comments": "

The timestamp when the relationship type between a person and a complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "feature_code", @@ -2748,13 +2636,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the FEATURE was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the FEATURE<\/p>" }, { "tableName": "complaint_type_code", @@ -2762,9 +2650,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -2774,15 +2662,15 @@

Columns

"tableName": "feature_code", "tableFileName": "feature_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>feature_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the FEATURE controlled by the flag.<\/p>" + "comments": "

A human readable code used to identify a FEATURE that is controlled by the FEATURE_AGENCY_XREF table.<\/p>" }, { "tableName": "species_code", @@ -2790,13 +2678,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the species code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the species code.<\/p>" }, { "tableName": "complaint_update", @@ -2804,27 +2692,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the complaint update record.<\/p>" + "comments": "

The timestamp when the complaint update record was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_update_h", "tableFileName": "complaint_update_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_complaint_update_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the complaint update that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for complaint update history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "officer", @@ -2832,41 +2720,55 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the officer was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the officer.<\/p>" }, { "tableName": "geo_organization_unit_code", "tableFileName": "geo_organization_unit_code", "tableType": "Table", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>geo_org_unit_type_code", + "type": "varchar", + "length": 10, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

A human readable code used to identify a geographical organization unit type.<\/p>" + }, + { + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "administrative_office_ind", - "type": "bool", - "length": 1, - "nullable": "", + "name": "f_table_catalog", + "type": "varchar", + "length": 256, + "nullable": "√", "autoUpdated": "", - "defaultValue": "false", - "comments": "

Indicates if the unit is a COSHQ Office.<\/p>" + "defaultValue": "null", + "comments": "" }, { "tableName": "attractant_hwcr_xref_h", "tableFileName": "attractant_hwcr_xref_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_attrhwcrx_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the attractant hwcr xref that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for attractant hwcr xref history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "staging_metadata_mapping", @@ -2874,9 +2776,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -2886,15 +2788,15 @@

Columns

"tableName": "action_taken_h", "tableFileName": "action_taken_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_action_taken_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the complaint that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "gir_type_code", @@ -2902,10 +2804,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -2916,13 +2818,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint_method_received_code / AGENCY mapping was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the complaint_method_received_code / AGENCY mapping<\/p>" }, { "tableName": "hwcr_complaint_h", @@ -2930,27 +2832,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the HWCR complaint that has been created or modified.<\/p>" }, { - "tableName": "officer_h", - "tableFileName": "officer_h", + "tableName": "officer_team_xref_h", + "tableFileName": "officer_team_xref_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_officer_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for officer history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "attractant_hwcr_xref", @@ -2958,13 +2860,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the attractant hwcr cross reference was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the attractant hwcr cross reference.<\/p>" }, { "tableName": "violation_code", @@ -2972,13 +2874,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the violation code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the violation code.<\/p>" }, { "tableName": "hwcr_complaint", @@ -2986,13 +2888,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", + "name": "other_attractants_text", "type": "varchar", - "length": 32, - "nullable": "", + "length": 4000, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the HWCR complaint.<\/p>" + "comments": "

Provides a more detailed description when the attractant of type “OTHER” is included.<\/p>" }, { "tableName": "person", @@ -3000,13 +2902,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "middle_name_2", + "name": "middle_name_1", "type": "varchar", "length": 32, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Any remaining middle names beyond the first of a person.<\/p>" + "comments": "

The first middle name of a person.<\/p>" }, { "tableName": "spatial_ref_sys", @@ -3014,9 +2916,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "auth_srid", - "type": "int4", - "length": 10, + "name": "auth_name", + "type": "varchar", + "length": 256, "nullable": "√", "autoUpdated": "", "defaultValue": "null", @@ -3028,13 +2930,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the person.<\/p>" + "comments": "

The timestamp when the person was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "staging_complaint", @@ -3042,7 +2944,7 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>staging_activity_code", + "name": "<\/i>staging_status_code", "type": "varchar", "length": 10, "nullable": "", @@ -3054,15 +2956,29 @@

Columns

"tableName": "complaint_status_code", "tableFileName": "complaint_status_code", "tableType": "Table", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>complaint_status_code", + "type": "varchar", + "length": 10, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

A human readable code used to identify a complaint status.<\/p>" + }, + { + "tableName": "staging_status_code", + "tableFileName": "staging_status_code", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "short_description", - "type": "varchar", - "length": 50, + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the complaint status code.<\/p>" + "comments": "" }, { "tableName": "flyway_schema_history", @@ -3070,27 +2986,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "script", + "name": "type", "type": "varchar", - "length": 1000, + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "hwcr_complaint", - "tableFileName": "hwcr_complaint", + "tableName": "allegation_complaint", + "tableFileName": "allegation_complaint", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>hwcr_complaint_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>violation_code", + "type": "varchar", + "length": 10, + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a hwcr complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A human readable code used to identify a violation.<\/p>" }, { "tableName": "officer_team_xref", @@ -3098,13 +3014,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "active_ind", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the OFFICER_TEAM_XREF.<\/p>" + "comments": "

Used to indicate if the users in the OFFICER_TEAM_XREF recrodis active.<\/p>" }, { "tableName": "allegation_complaint", @@ -3112,13 +3028,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the allegation complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the allegation complaint.<\/p>" }, { "tableName": "person_h", @@ -3126,83 +3042,55 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the person that has been created or modified.<\/p>" }, { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", + "tableName": "complaint_update", + "tableFileName": "complaint_update", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "offloc_name", + "name": "upd_location_summary_text", "type": "varchar", - "length": 50, + "length": 120, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A brief summary of the location of the complaint.<\/p>" }, { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", + "tableName": "person_complaint_xref_code", + "tableFileName": "person_complaint_xref_code", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "type", - "type": "varchar", - "length": 30, - "nullable": "√", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The timestamp when the relationship type between a person and a complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "complaint_update", - "tableFileName": "complaint_update", + "tableName": "action_taken_h", + "tableFileName": "action_taken_h", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "upd_location_detailed_text", - "type": "varchar", - "length": 4000, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

A more detailed description of the location of the complaint.<\/p>" - }, - { - "tableName": "person_complaint_xref_code", - "tableFileName": "person_complaint_xref_code", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "true", - "comments": "" - }, - { - "tableName": "action_taken_h", - "tableFileName": "action_taken_h", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_update", @@ -3210,13 +3098,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "upd_location_geometry_point", - "type": "geometry", - "length": 2147483647, + "name": "upd_location_detailed_text", + "type": "varchar", + "length": 4000, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The closest approximation to where the incident occurred. Stored as a geometric point using the EPSG:3005 Projected Coordinate System (BC Albers)<\/p>" + "comments": "

A more detailed description of the location of the complaint.<\/p>" }, { "tableName": "complaint", @@ -3224,13 +3112,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "caller_phone_1", + "name": "caller_email", "type": "varchar", - "length": 15, + "length": 120, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The primary phone number provided by the caller to the call centre or entered onto the web form.<\/p>" + "comments": "

The email address provided by the caller to the call centre or entered onto the web form.<\/p>" }, { "tableName": "flyway_schema_history", @@ -3238,10 +3126,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "checksum", - "type": "int4", - "length": 10, - "nullable": "√", + "name": "script", + "type": "varchar", + "length": 1000, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -3252,13 +3140,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the violation code is active.<\/p>" + "comments": "

The order in which the values of the violation code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "allegation_complaint_h", @@ -3266,13 +3154,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the allegation complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "allegation_complaint_h", @@ -3280,13 +3168,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the allegation complaint that has been created or modified.<\/p>" }, { "tableName": "geo_organization_unit_code", @@ -3294,13 +3182,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the geographical organization unit code.<\/p>" + "comments": "

The timestamp when the geographical organization unit code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "flyway_schema_history", @@ -3308,55 +3196,69 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "description", + "name": "version", "type": "varchar", - "length": 200, - "nullable": "", + "length": 50, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "gir_complaint_h", - "tableFileName": "gir_complaint_h", + "tableName": "linked_complaint_xref", + "tableFileName": "linked_complaint_xref", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

The timestamp when the complaint linkage was updated. The timestamp is stored in UTC with no Offset.<\/p>" + }, + { + "tableName": "team", + "tableFileName": "team", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>h_gircmplt_guid", + "name": "<\/i>team_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for GIR complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "comments": "

A system generated guid to uniquely identify a TEAM<\/p>" }, { - "tableName": "team", - "tableFileName": "team", + "tableName": "officer_team_xref_h", + "tableFileName": "officer_team_xref_h", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>team_code", - "type": "varchar", - "length": 15, + "keyClass": "", + "keyTitle": "", + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a TEAM<\/p>" + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { - "tableName": "officer_team_xref_h", - "tableFileName": "officer_team_xref_h", - "tableType": "Table", + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", + "name": "region_name", "type": "varchar", - "length": 32, - "nullable": "", + "length": 50, + "nullable": "√", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the officer_team_xref table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "" }, { "tableName": "person", @@ -3364,13 +3266,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "middle_name_1", + "name": "first_name", "type": "varchar", "length": 32, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The first middle name of a person.<\/p>" + "comments": "

The first name of a person.<\/p>" }, { "tableName": "gir_complaint", @@ -3378,13 +3280,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the GIR complaint.<\/p>" + "comments": "

The timestamp when the GIR complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_h", @@ -3392,13 +3294,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "varchar", + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the complaint that has been created or modified.<\/p>" }, { "tableName": "attractant_hwcr_xref_h", @@ -3406,27 +3308,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the attractant hwcr xref that has been created or modified.<\/p>" }, { "tableName": "hwcr_complaint", "tableFileName": "hwcr_complaint", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "other_attractants_text", - "type": "varchar", - "length": 4000, - "nullable": "√", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>hwcr_complaint_guid", + "type": "uuid", + "length": 2147483647, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

Provides a more detailed description when the attractant of type “OTHER” is included.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for a hwcr complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "gir_complaint", @@ -3434,41 +3336,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the GIR complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the GIR complaint.<\/p>" }, { - "tableName": "person_complaint_xref_h", - "tableFileName": "person_complaint_xref_h", + "tableName": "officer_h", + "tableFileName": "officer_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_person_complaint_xref_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for person assigned to complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { - "tableName": "person", - "tableFileName": "person", + "tableName": "complaint_status_code", + "tableFileName": "complaint_status_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>person_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "manually_assignable_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for an person. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "true", + "comments": "

Indicates if the stastus code can be manually assigned by a user.<\/p>" }, { "tableName": "officer_h", @@ -3476,13 +3378,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the officer table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the officer table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "complaint", @@ -3490,13 +3392,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the complaint.<\/p>" }, { "tableName": "person", @@ -3504,13 +3406,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", + "name": "last_name", "type": "varchar", "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the person.<\/p>" + "comments": "

The last name of a person.<\/p>" }, { "tableName": "attractant_code", @@ -3518,27 +3420,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the attractant code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the attractant code.<\/p>" }, { - "tableName": "hwcr_complaint_nature_code", - "tableFileName": "hwcr_complaint_nature_code", + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "f_table_catalog", + "type": "name", + "length": 2147483647, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "attractant_hwcr_xref_h", + "tableFileName": "attractant_hwcr_xref_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>hwcr_complaint_nature_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify the nature of the Human Wildlife Conflict.<\/p>" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "team_code", @@ -3546,13 +3462,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the team was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the team code.<\/p>" + }, + { + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>srid", + "type": "int4", + "length": 10, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" }, { "tableName": "hwcr_complaint_nature_code", @@ -3560,13 +3490,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the nature of the Human Wildlife Conflict code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the nature of the Human Wildlife Conflict code.<\/p>" }, { "tableName": "complaint_status_code", @@ -3574,13 +3504,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the complaint status code.<\/p>" + "comments": "

A boolean indicator to determine if the complaint status code is active.<\/p>" }, { "tableName": "complaint_method_received_code", @@ -3588,13 +3518,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of a METHOD_COMPLAINT_RECEIVED_CODE<\/p>" + "comments": "

The short description of a METHOD_COMPLAINT_RECEIVED_CODE<\/p>" }, { "tableName": "officer_h", @@ -3602,13 +3532,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the officer table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "gir_complaint_h", @@ -3616,13 +3546,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the GIR complaint that has been created or modified.<\/p>" }, { "tableName": "linked_complaint_xref", @@ -3630,13 +3560,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>linked_complaint_identifier", + "name": "<\/i>complaint_identifier", "type": "varchar", "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

One half of a linked complaint pair. If the type requires a context of hierarchy, the complaint that is lower in the hierarchy. For example, in the case of duplicate complaints, this would be the complaint that would be closed as a duplicate of the parent.<\/p>" + "comments": "

One half of a linked complaint pair. If the type requires a context of hierarchy, the complaint that is higher in the hierarchy. For example, in the case of duplicate complaints, this would be the complaint that would remain open and where the majority of the information should be contained.<\/p>" }, { "tableName": "complaint", @@ -3644,13 +3574,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "caller_address", + "name": "caller_name", "type": "varchar", "length": 120, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The address provided by the caller to the call centre or entered onto the web form.<\/p>" + "comments": "

The name provided by the caller to the call centre or entered onto the web form.<\/p>" }, { "tableName": "geo_org_unit_structure_h", @@ -3658,13 +3588,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the geographic organization unit structure table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "reported_by_code", @@ -3672,9 +3602,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -3686,9 +3616,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -3698,29 +3628,29 @@

Columns

"tableName": "geo_org_unit_structure_h", "tableFileName": "geo_org_unit_structure_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_gorgustrct_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the geographic organization unit structure that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for geographic organization unit structure history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "person_h", "tableFileName": "person_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_person_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the person that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for person history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "linked_complaint_xref", @@ -3728,13 +3658,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint linkage was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the complaint linkage.<\/p>" }, { "tableName": "feature_agency_xref", @@ -3742,13 +3672,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the FEATURE / AGENCY mapping was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the FEATURE / AGENCY mapping.<\/p>" }, { "tableName": "attractant_hwcr_xref_h", @@ -3756,13 +3686,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the attractant hwcr xref table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the attractant hwcr xref table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "action_taken", @@ -3770,13 +3700,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the ACTION_TAKEN was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the ACTION_TAKEN<\/p>" }, { "tableName": "hwcr_complaint_h", @@ -3784,6 +3714,20 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", + "autoUpdated": "", + "defaultValue": "now()", + "comments": "

The timestamp when the data in the HWCR complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + }, + { + "tableName": "complaint_update_h", + "tableFileName": "complaint_update_h", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", "name": "data_after_executed_operation", "type": "jsonb", "length": 2147483647, @@ -3792,29 +3736,15 @@

Columns

"defaultValue": "null", "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, - { - "tableName": "complaint_h", - "tableFileName": "complaint_h", - "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_complaint_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", - "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" - }, { "tableName": "entity_code", "tableFileName": "entity_code", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -3826,13 +3756,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the officer_team_xref that has been created or modified.<\/p>" }, { "tableName": "complaint_update", @@ -3840,27 +3770,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "", + "name": "upd_location_geometry_point", + "type": "geometry", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the complaint update record.<\/p>" + "comments": "

The closest approximation to where the incident occurred. Stored as a geometric point using the EPSG:3005 Projected Coordinate System (BC Albers)<\/p>" }, { "tableName": "action_taken", "tableFileName": "action_taken", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "action_details_txt", - "type": "text", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>complaint_update_guid", + "type": "uuid", "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Text about who the call centre staff contacted and when<\/p>" + "comments": "

System generated unique key for a COMPLAINT_UPDATE. This key should never be exposed to users via any system utilizing the tables. Either a complaint_update_guid or a complaint_identifier must be present on the record.<\/p>" }, { "tableName": "configuration_h", @@ -3868,13 +3798,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "varchar", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the configuration that has been created or modified.<\/p>" }, { "tableName": "geo_org_unit_structure_h", @@ -3882,23 +3812,23 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the geographic organization unit structure table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the geographic organization unit structure table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "gir_type_code", "tableFileName": "gir_type_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>gir_type_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -3910,13 +3840,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the allegation complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the allegation complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "feature_agency_xref", @@ -3924,13 +3854,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the FEATURE / AGENCY mapping was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the FEATURE / AGENCY mapping<\/p>" }, { "tableName": "office_h", @@ -3938,27 +3868,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" - }, - { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "administrative_office_ind", - "type": "bool", - "length": 1, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the office table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "gir_type_code", @@ -3966,10 +3882,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -3980,9 +3896,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -3994,13 +3910,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the geographical organization unit type code.<\/p>" + "comments": "

The timestamp when the geographical organization unit type code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "officer", @@ -4008,13 +3924,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>office_guid", + "name": "<\/i>person_guid", "type": "uuid", "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

System generated unique key for an office. The primary office an officer is assigned to.<\/p>" + "comments": "

System generated unique key for an person.<\/p>" }, { "tableName": "reported_by_code", @@ -4022,27 +3938,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "complaint", - "tableFileName": "complaint", + "tableName": "team", + "tableFileName": "team", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The timestamp when the TEAM was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "feature_agency_xref", @@ -4050,27 +3966,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the FEATURE / AGENCY mapping<\/p>" + "comments": "

The timestamp when the FEATURE / AGENCY mapping was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint", "tableFileName": "complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>reported_by_code", - "type": "varchar", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

The timestamp when the complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + }, + { + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "coord_dimension", + "type": "int4", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an agency. The agency that originally referred the complaint.<\/p>" + "comments": "" }, { "tableName": "complaint_method_received_code", @@ -4078,13 +4008,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the METHOD_COMPLAINT_RECEIVED_CODE.<\/p>" + "comments": "

The timestamp when the METHOD_COMPLAINT_RECEIVED_CODE was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "attractant_hwcr_xref_h", @@ -4092,13 +4022,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the attractant hwcr xref table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "configuration_h", @@ -4106,13 +4036,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the configuration table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the configuration table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "staging_complaint", @@ -4120,9 +4050,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -4132,12 +4062,12 @@

Columns

"tableName": "spatial_ref_sys", "tableFileName": "spatial_ref_sys", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "auth_name", - "type": "varchar", - "length": 256, - "nullable": "√", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>srid", + "type": "int4", + "length": 10, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -4148,27 +4078,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", + "name": "user_id", "type": "varchar", "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the officer.<\/p>" + "comments": "

The IDIR ID issued to the user by the Government of British Columbia as part of their employment.<\/p>" }, { - "tableName": "linked_complaint_xref", - "tableFileName": "linked_complaint_xref", + "tableName": "attractant_code", + "tableFileName": "attractant_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>linked_complaint_xref_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

A human readable code used to identify a complaint linkage.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the attractant code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "staging_status_code", @@ -4176,9 +4106,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -4190,13 +4120,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the officer_team_xref table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the officer_team_xref table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "complaint_update", @@ -4204,65 +4134,65 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

The id of the user that created the complaint update record.<\/p>" + }, + { + "tableName": "complaint_method_received_code", + "tableFileName": "complaint_method_received_code", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", "type": "timestamp", "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint update record was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The timestamp when the METHOD_COMPLAINT_RECEIVED_CODE was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "agency_code", - "tableFileName": "agency_code", + "tableName": "person_complaint_xref", + "tableFileName": "person_complaint_xref", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>agency_code", - "type": "varchar", - "length": 10, + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an agency.<\/p>" + "comments": "

A boolean indicator to determine if the relationship type between a person and a complaint code is active.<\/p>" }, { - "tableName": "gir_complaint", - "tableFileName": "gir_complaint", + "tableName": "person_complaint_xref", + "tableFileName": "person_complaint_xref", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>gir_complaint_guid", + "name": "<\/i>person_complaint_xref_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a gir complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" - }, - { - "tableName": "person_complaint_xref", - "tableFileName": "person_complaint_xref", - "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>person_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

System generated unique key for an person.<\/p>" + "comments": "

System generated unique key for a relationship between a person and a complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "staging_complaint", "tableFileName": "staging_complaint", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "complaint_jsonb", - "type": "jsonb", - "length": 2147483647, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>complaint_identifier", + "type": "varchar", + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -4272,15 +4202,15 @@

Columns

"tableName": "attractant_hwcr_xref", "tableFileName": "attractant_hwcr_xref", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>hwcr_complaint_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the attractant hwcr cross reference.<\/p>" + "comments": "

System generated unique key for a hwcr complaint.<\/p>" }, { "tableName": "staging_status_code", @@ -4288,41 +4218,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "entity_code", - "tableFileName": "entity_code", + "tableName": "species_code", + "tableFileName": "species_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>entity_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "large_carnivore_ind", + "type": "bool", + "length": 1, + "nullable": "√", "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "defaultValue": "false", + "comments": "

A boolean indicator representing if an officer has been enrolled in COMS<\/p>" }, { "tableName": "gir_complaint", "tableFileName": "gir_complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>gir_type_code", - "type": "varchar", - "length": 10, - "nullable": "√", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>gir_complaint_guid", + "type": "uuid", + "length": 2147483647, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A human readable code used to identify a type of GIR complaint.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for a gir complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "team", @@ -4330,27 +4260,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "update_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the TEAM was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the TEAM<\/p>" }, { - "tableName": "geo_organization_unit_code", - "tableFileName": "geo_organization_unit_code", + "tableName": "violation_code", + "tableFileName": "violation_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>geo_organization_unit_code", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>agency_code", "type": "varchar", "length": 10, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A human readable code used to identify a geographical organization unit.<\/p>" + "defaultValue": "'COS'::character varying", + "comments": "

A human readable code used to identify an agency.<\/p>" }, { "tableName": "team_code", @@ -4358,13 +4288,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the team code.<\/p>" + "comments": "

The short description of the team code.<\/p>" }, { "tableName": "team_code", @@ -4372,41 +4302,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The order in which the values of the team code table should be displayed when presented to a user in a list.<\/p>" - }, - { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "region_code", + "name": "long_description", "type": "varchar", - "length": 10, + "length": 250, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The long description of the team code.<\/p>" }, { "tableName": "linked_complaint_xref", "tableFileName": "linked_complaint_xref", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the complaint linkage.<\/p>" + "comments": "

Flag indicating if the linkage is active.<\/p>" }, { "tableName": "geo_org_unit_type_code", @@ -4414,13 +4330,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the geographical organization unit type code is active.<\/p>" + "comments": "

The order in which the values of the geographical organization unit type code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "team_h", @@ -4428,27 +4344,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the team that has been created or modified.<\/p>" }, { "tableName": "comp_mthd_recv_cd_agcy_cd_xref", "tableFileName": "comp_mthd_recv_cd_agcy_cd_xref", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>complaint_method_received_code", + "type": "varchar", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the complaint_method_received_code should be rendered the for users in the given AGENCY<\/p>" + "comments": "

A human readable code used to identify a complaint_method_received_code that is controlled by the comp_mthd_recv_cd_agcy_cd_xref table.<\/p>" }, { "tableName": "staging_metadata_mapping", @@ -4456,9 +4372,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", + "name": "live_data_value", "type": "varchar", - "length": 32, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -4470,13 +4386,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the complaint status code.<\/p>" + "comments": "

The timestamp when the complaint status code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_org_unit_structure_h", @@ -4484,13 +4400,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the geographic organization unit structure that has been created or modified.<\/p>" }, { "tableName": "complaint_h", @@ -4498,13 +4414,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person_h", @@ -4512,27 +4428,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the person table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the person table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "geo_org_unit_structure", "tableFileName": "geo_org_unit_structure", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>agency_code", - "type": "varchar", - "length": 10, - "nullable": "√", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an agency. The agency that defines the geographical organization unit structural relationship.<\/p>" + "comments": "

The timestamp when the geographical organization unit structure was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_method_received_code", @@ -4540,13 +4456,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The long description of a METHOD_COMPLAINT_RECEIVED_CODE<\/p>" }, { "tableName": "reported_by_code", @@ -4554,9 +4470,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -4568,27 +4484,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the nature of the Human Wildlife Conflict code is active.<\/p>" + "comments": "

The order in which the values of the nature of the Human Wildlife Conflict code table should be displayed when presented to a user in a list.<\/p>" }, { - "tableName": "officer", - "tableFileName": "officer", + "tableName": "gir_complaint_h", + "tableFileName": "gir_complaint_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>officer_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for an officer. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "person_complaint_xref_code", @@ -4596,13 +4512,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the relationship type between a person and a complaint.<\/p>" + "comments": "

The short description of the relationship type between a person and a complaint.<\/p>" }, { "tableName": "attractant_hwcr_xref", @@ -4610,69 +4526,69 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>hwcr_complaint_guid", - "type": "uuid", - "length": 2147483647, + "name": "<\/i>attractant_code", + "type": "varchar", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

System generated unique key for a hwcr complaint.<\/p>" + "comments": "

A human readable code used to identify an attractant.<\/p>" }, { "tableName": "allegation_complaint_h", "tableFileName": "allegation_complaint_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_algtncmplt_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the allegation complaint that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for allegation complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { - "tableName": "staging_metadata_mapping", - "tableFileName": "staging_metadata_mapping", + "tableName": "geo_org_unit_structure", + "tableFileName": "geo_org_unit_structure", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>staging_metadata_mapping_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>child_geo_org_unit_code", + "type": "varchar", + "length": 10, + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "" + "defaultValue": "null", + "comments": "

The geographical organization that is contained by the parent geographical organization unit.<\/p>" }, { - "tableName": "geo_org_unit_structure_h", - "tableFileName": "geo_org_unit_structure_h", + "tableName": "allegation_complaint_h", + "tableFileName": "allegation_complaint_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_gorgustrct_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for geographic organization unit structure history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "complaint", "tableFileName": "complaint", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "is_privacy_requested", - "type": "bpchar", - "length": 1, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>comp_mthd_recv_cd_agcy_cd_xref_guid", + "type": "uuid", + "length": 2147483647, "nullable": "√", "autoUpdated": "", - "defaultValue": "'U'::bpchar", - "comments": "

flag to represent that the caller has asked for special care when handling their personal information<\/p>" + "defaultValue": "null", + "comments": "

Methods in which the complaint was received. Examples include: DGIR forward, Direct email or phone call,Minister’s office,RAPP ,Referral<\/p>" }, { "tableName": "feature_code", @@ -4680,27 +4596,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the FEATURE<\/p>" + "comments": "

The timestamp when the FEATURE was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "linked_complaint_xref", "tableFileName": "linked_complaint_xref", "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>active_ind", - "type": "bool", - "length": 1, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>linked_complaint_identifier", + "type": "varchar", + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Flag indicating if the linkage is active.<\/p>" + "comments": "

One half of a linked complaint pair. If the type requires a context of hierarchy, the complaint that is lower in the hierarchy. For example, in the case of duplicate complaints, this would be the complaint that would be closed as a duplicate of the parent.<\/p>" }, { "tableName": "complaint", @@ -4708,13 +4624,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>geo_organization_unit_code", + "name": "<\/i>complaint_status_code", "type": "varchar", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a geographical organization unit. The finest known grain geographical organization unit where the complaint occurred.<\/p>" + "comments": "

A human readable code used to identify a complaint status.<\/p>" }, { "tableName": "entity_code", @@ -4722,24 +4638,38 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", + "name": "display_order", + "type": "int4", + "length": 10, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "person_complaint_xref_code", + "tableFileName": "person_complaint_xref_code", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", "name": "active_ind", "type": "bool", "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "true", "comments": "" }, { - "tableName": "flyway_schema_history", - "tableFileName": "flyway_schema_history", - "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>installed_rank", - "type": "int4", + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "area_code", + "type": "varchar", "length": 10, - "nullable": "", + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -4750,13 +4680,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the complaint_method_received_code / AGENCY mapping.<\/p>" + "comments": "

A boolean indicator to determine if the complaint_method_received_code should be rendered the for users in the given AGENCY<\/p>" }, { "tableName": "office_h", @@ -4764,13 +4694,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the office table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "allegation_complaint", @@ -4778,13 +4708,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "suspect_witnesss_dtl_text", - "type": "text", - "length": 2147483647, - "nullable": "√", + "name": "observed_ind", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

True if the alleged violation was observed first hand. False otherwise.<\/p>" }, { "tableName": "attractant_code", @@ -4792,13 +4722,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the attractant code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the attractant code.<\/p>" + }, + { + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "offloc_name", + "type": "varchar", + "length": 50, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" }, { "tableName": "spatial_ref_sys", @@ -4806,7 +4750,7 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "proj4text", + "name": "srtext", "type": "varchar", "length": 2048, "nullable": "√", @@ -4814,19 +4758,33 @@

Columns

"defaultValue": "null", "comments": "" }, + { + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "f_geography_column", + "type": "name", + "length": 2147483647, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, { "tableName": "person_complaint_xref", "tableFileName": "person_complaint_xref", "tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>person_complaint_xref_code", + "name": "<\/i>complaint_identifier", "type": "varchar", - "length": 10, + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a relationship type between a person and a complaint.<\/p>" + "comments": "

Natural key for a complaint generated by webEOC. Format is YY-###### where the number portion of the sequence resets to 0 on the new year.<\/p>" }, { "tableName": "officer_team_xref", @@ -4834,13 +4792,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the OFFICER_TEAM_XREF was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the OFFICER_TEAM_XREF.<\/p>" }, { "tableName": "feature_code", @@ -4848,39 +4806,53 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the FEATUREs should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the FEATURE controlled by the flag.<\/p>" }, { "tableName": "hwcr_complaint", "tableFileName": "hwcr_complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Natural key for a complaint generated by webEOC.<\/p>" + "comments": "

The timestamp when the HWCR complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "staging_complaint", "tableFileName": "staging_complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>staging_status_code", - "type": "varchar", - "length": 10, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>staging_complaint_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", + "defaultValue": "uuid_generate_v4()", + "comments": "" + }, + { + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "area_name", + "type": "varchar", + "length": 50, + "nullable": "√", + "autoUpdated": "", "defaultValue": "null", "comments": "" }, @@ -4888,40 +4860,40 @@

Columns

"tableName": "allegation_complaint", "tableFileName": "allegation_complaint", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", - "type": "varchar", - "length": 20, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Natural key for a complaint generated by webEOC.<\/p>" + "comments": "

The timestamp when the allegation complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "violation_code", "tableFileName": "violation_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>violation_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the violation code.<\/p>" + "comments": "

A human readable code used to identify a violation.<\/p>" }, { "tableName": "flyway_schema_history", "tableFileName": "flyway_schema_history", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "version", - "type": "varchar", - "length": 50, - "nullable": "√", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>installed_rank", + "type": "int4", + "length": 10, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -4932,9 +4904,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -4944,43 +4916,43 @@

Columns

"tableName": "office_h", "tableFileName": "office_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_office_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the office that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for office history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "team_h", "tableFileName": "team_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_team_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the team that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for team history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { - "tableName": "team_code", - "tableFileName": "team_code", + "tableName": "staging_activity_code", + "tableFileName": "staging_activity_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>team_code", - "type": "varchar", - "length": 10, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an team.<\/p>" + "comments": "" }, { "tableName": "complaint_update", @@ -4988,13 +4960,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "upd_location_summary_text", - "type": "varchar", - "length": 120, + "name": "upd_detail_text", + "type": "text", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A brief summary of the location of the complaint.<\/p>" + "comments": "

Verbatim details of the complaint as recorded by the call centre or through the web form.<\/p>" }, { "tableName": "entity_code", @@ -5002,9 +4974,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5016,27 +4988,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "√", + "name": "update_user_id", + "type": "varchar", + "length": 32, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint_update record was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the complaint update record.<\/p>" }, { - "tableName": "officer_team_xref", - "tableFileName": "officer_team_xref", + "tableName": "spatial_ref_sys", + "tableFileName": "spatial_ref_sys", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>officer_team_xref_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "proj4text", + "type": "varchar", + "length": 2048, + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a OFFICER_TEAM_XREF record. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "" }, { "tableName": "action_taken_h", @@ -5044,13 +5016,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the complaint that has been created or modified.<\/p>" }, { "tableName": "officer_team_xref", @@ -5058,13 +5030,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>team_guid", + "name": "<\/i>officer_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

Unique key for a team. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "comments": "

Unique key for an officer. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "attractant_hwcr_xref", @@ -5072,23 +5044,23 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "true", - "comments": "" + "defaultValue": "null", + "comments": "

The timestamp when the attractant hwcr cross reference was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "complaint_type_code", "tableFileName": "complaint_type_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>complaint_type_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5100,10 +5072,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -5114,13 +5086,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "reference_number", - "type": "varchar", - "length": 20, + "name": "is_privacy_requested", + "type": "bpchar", + "length": 1, "nullable": "√", "autoUpdated": "", - "defaultValue": "null", - "comments": "

Allows users to link complaints to files in external systems. Currently labeled in the system as COORS reference number and initially only used for COORS linkages.<\/p>" + "defaultValue": "'U'::bpchar", + "comments": "

flag to represent that the caller has asked for special care when handling their personal information<\/p>" }, { "tableName": "officer", @@ -5128,13 +5100,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the officer was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the officer.<\/p>" }, { "tableName": "species_code", @@ -5142,13 +5114,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "large_carnivore_ind", - "type": "bool", - "length": 1, - "nullable": "√", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "false", - "comments": "

A boolean indicator representing if an officer has been enrolled in COMS<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the species code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "reported_by_code", @@ -5156,9 +5128,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5170,13 +5142,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the agency code.<\/p>" + "comments": "

A boolean indicator to determine if the agency code is active.<\/p>" }, { "tableName": "configuration", @@ -5184,27 +5156,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "configuration_value", "type": "varchar", "length": 250, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the configuration entry.<\/p>" + "comments": "

The value of the configuration entry.<\/p>" }, { "tableName": "person", "tableFileName": "person", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "first_name", - "type": "varchar", - "length": 32, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The first name of a person.<\/p>" + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>person_guid", + "type": "uuid", + "length": 2147483647, + "nullable": "", + "autoUpdated": "", + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for an person. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "complaint", @@ -5212,27 +5184,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "location_detailed_text", + "name": "location_summary_text", "type": "varchar", - "length": 4000, + "length": 120, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A more detailed description of the location of the complaint.<\/p>" + "comments": "

A brief summary of the location of the complaint.<\/p>" }, { "tableName": "hwcr_complaint_nature_code", "tableFileName": "hwcr_complaint_nature_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>hwcr_complaint_nature_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the nature of the Human Wildlife Conflict code.<\/p>" + "comments": "

A human readable code used to identify the nature of the Human Wildlife Conflict.<\/p>" }, { "tableName": "staging_activity_code", @@ -5240,10 +5212,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -5254,10 +5226,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -5268,9 +5240,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5282,13 +5254,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the complaint linkage.<\/p>" + "comments": "

The timestamp when the complaint linkage was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -5296,69 +5268,97 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the geographical organization unit structure was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the geographical organization unit structure.<\/p>" }, { - "tableName": "feature_agency_xref", - "tableFileName": "feature_agency_xref", - "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>feature_code", - "type": "varchar", + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "coord_dimension", + "type": "int4", "length": 10, - "nullable": "", + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a FEATURE that is controlled by the FEATURE_AGENCY_XREF table.<\/p>" + "comments": "" }, { - "tableName": "hwcr_complaint_nature_code", - "tableFileName": "hwcr_complaint_nature_code", - "tableType": "Table", + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "long_description", - "type": "varchar", - "length": 250, + "name": "f_table_schema", + "type": "name", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the nature of the Human Wildlife Conflict code.<\/p>" + "comments": "" }, { - "tableName": "allegation_complaint_h", - "tableFileName": "allegation_complaint_h", + "tableName": "feature_agency_xref", + "tableFileName": "feature_agency_xref", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>h_algtncmplt_guid", + "name": "<\/i>feature_agency_xref_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for allegation complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "comments": "

System generated unique key for a FEATURE_AGENCY_XREF ecord. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { - "tableName": "violation_code", - "tableFileName": "violation_code", + "tableName": "hwcr_complaint_nature_code", + "tableFileName": "hwcr_complaint_nature_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>violation_code", + "keyClass": "", + "keyTitle": "", + "name": "short_description", "type": "varchar", - "length": 10, + "length": 50, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a violation.<\/p>" + "comments": "

The short description of the nature of the Human Wildlife Conflict code.<\/p>" + }, + { + "tableName": "staging_complaint", + "tableFileName": "staging_complaint", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>srid", + "type": "int4", + "length": 10, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" }, { "tableName": "feature_code", @@ -5366,13 +5366,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the FEATURE.<\/p>" + "comments": "

A boolean indicator to determine if the FEATURE is active.<\/p>" }, { "tableName": "team", @@ -5380,13 +5380,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "√", + "name": "active_ind", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The id of the user that created the TEAM.<\/p>" + "defaultValue": "true", + "comments": "

A boolean indicator to determine if the TEAM is active.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -5394,13 +5394,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "", + "name": "expiry_date", + "type": "timestamp", + "length": 29, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the geographical organization unit structure.<\/p>" + "comments": "

The date the Geographical Organizational Unit Structure is no longer recognized as a valid relationship within the Ministry organizational structure.<\/p>" }, { "tableName": "hwcr_complaint", @@ -5408,13 +5408,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>species_code", + "name": "<\/i>complaint_identifier", "type": "varchar", - "length": 10, + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a wildlife species.<\/p>" + "comments": "

Natural key for a complaint generated by webEOC.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -5422,13 +5422,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the geographical organization unit structure.<\/p>" + "comments": "

The timestamp when the geographical organization unit structure was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "staging_complaint", @@ -5436,9 +5436,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5450,13 +5450,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the agency was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the agency code.<\/p>" }, { "tableName": "complaint_method_received_code", @@ -5464,41 +5464,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the METHOD_COMPLAINT_RECEIVED_CODE was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the METHOD_COMPLAINT_RECEIVED_CODE.<\/p>" }, { - "tableName": "agency_code", - "tableFileName": "agency_code", - "tableType": "Table", + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "short_description", + "name": "zone_name", "type": "varchar", "length": 50, - "nullable": "", + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the agency code.<\/p>" + "comments": "" }, { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "f_table_schema", - "type": "name", - "length": 2147483647, - "nullable": "√", + "tableName": "agency_code", + "tableFileName": "agency_code", + "tableType": "Table", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>agency_code", + "type": "varchar", + "length": 10, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A human readable code used to identify an agency.<\/p>" }, { "tableName": "geo_organization_unit_code", @@ -5506,13 +5506,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, + "length": 50, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the geographical organization unit code.<\/p>" + "comments": "

The short description of the geographical organization unit code.<\/p>" }, { "tableName": "attractant_hwcr_xref_h", @@ -5520,13 +5520,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the attractant hwcr xref table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_org_unit_type_code", @@ -5534,13 +5534,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the geographical organization unit type code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the geographical organization unit type code.<\/p>" }, { "tableName": "action_taken", @@ -5548,13 +5548,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, - "nullable": "", + "name": "action_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the ACTION_TAKEN<\/p>" + "comments": "

The date from webEOC that the ACTION_TAKEN was recorded. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "species_code", @@ -5562,13 +5562,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "update_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the species code was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the species code.<\/p>" }, { "tableName": "complaint", @@ -5576,27 +5576,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the complaint.<\/p>" + "comments": "

The timestamp when the complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "officer_team_xref_h", "tableFileName": "officer_team_xref_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_officer_team_xref_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the officer_team_xref that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for officer_team_xref history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "action_taken_h", @@ -5604,41 +5604,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "team_code", "tableFileName": "team_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>team_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the team code.<\/p>" + "comments": "

A human readable code used to identify an team.<\/p>" }, { "tableName": "person_complaint_xref_h", "tableFileName": "person_complaint_xref_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_person_complaint_xref_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the person and complaint mapping that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for person assigned to complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "officer", @@ -5646,13 +5646,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "coms_enrolled_ind", - "type": "bool", - "length": 1, + "name": "auth_user_guid", + "type": "uuid", + "length": 2147483647, "nullable": "√", "autoUpdated": "", - "defaultValue": "false", - "comments": "" + "defaultValue": "null", + "comments": "

The SiteMinder guid returned to the application from KeyCloak. Used to uniquely identify a user over the course of their lifecycle.<\/p>" }, { "tableName": "complaint_status_code", @@ -5660,41 +5660,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint status code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the complaint status code.<\/p>" }, { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", + "tableName": "hwcr_complaint", + "tableFileName": "hwcr_complaint", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "area_name", + "name": "update_user_id", "type": "varchar", - "length": 50, - "nullable": "√", + "length": 32, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

The id of the user that updated the HWCR complaint.<\/p>" }, { - "tableName": "hwcr_complaint", - "tableFileName": "hwcr_complaint", - "tableType": "Table", + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "f_table_name", + "type": "name", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the HWCR complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "" }, { "tableName": "comp_mthd_recv_cd_agcy_cd_xref", @@ -5702,13 +5702,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint_method_received_code / AGENCY mapping was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the complaint_method_received_code / AGENCY mapping.<\/p>" }, { "tableName": "flyway_schema_history", @@ -5716,12 +5716,12 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "execution_time", - "type": "int4", - "length": 10, + "name": "installed_on", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "null", + "defaultValue": "now()", "comments": "" }, { @@ -5730,9 +5730,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "type", + "name": "description", "type": "varchar", - "length": 20, + "length": 200, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5744,13 +5744,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the ACTION_TAKEN was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the ACTION_TAKEN<\/p>" }, { "tableName": "person", @@ -5758,13 +5758,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "last_name", + "name": "middle_name_2", "type": "varchar", "length": 32, - "nullable": "", + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The last name of a person.<\/p>" + "comments": "

Any remaining middle names beyond the first of a person.<\/p>" }, { "tableName": "reported_by_code", @@ -5772,10 +5772,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -5786,13 +5786,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the geographical organization unit type code.<\/p>" + "comments": "

The short description of the geographical organization unit type code.<\/p>" }, { "tableName": "attractant_code", @@ -5800,27 +5800,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the attractant code.<\/p>" + "comments": "

A boolean indicator to determine if the attractant code is active.<\/p>" }, { - "tableName": "comp_mthd_recv_cd_agcy_cd_xref", - "tableFileName": "comp_mthd_recv_cd_agcy_cd_xref", + "tableName": "feature_code", + "tableFileName": "feature_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>comp_mthd_recv_cd_agcy_cd_xref_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "" + "defaultValue": "null", + "comments": "

The timestamp when the FEATURE was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_organization_unit_code", @@ -5828,41 +5828,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the geographical organization unit code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the geographical organization unit code.<\/p>" }, { - "tableName": "staging_activity_code", - "tableFileName": "staging_activity_code", + "tableName": "complaint_type_code", + "tableFileName": "complaint_type_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>staging_activity_code", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>agency_code", "type": "varchar", "length": 10, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "" + "defaultValue": "'COS'::character varying", + "comments": "

A human readable code used to identify an agency.<\/p>" }, { "tableName": "office", "tableFileName": "office", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>office_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The id of the user that created the office.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for an office. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -5870,13 +5870,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "expiry_date", + "name": "effective_date", "type": "timestamp", "length": 29, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The date the Geographical Organizational Unit Structure is no longer recognized as a valid relationship within the Ministry organizational structure.<\/p>" + "comments": "

The date the Geographical Organizational Unit Structure becomes effective as a valid relationship within the Ministry organizational structure.<\/p>" }, { "tableName": "geo_org_unit_structure", @@ -5884,13 +5884,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>child_geo_org_unit_code", + "name": "<\/i>parent_geo_org_unit_code", "type": "varchar", "length": 10, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The geographical organization that is contained by the parent geographical organization unit.<\/p>" + "comments": "

The geographical organization that contains the child geographical organization unit.<\/p>" }, { "tableName": "attractant_code", @@ -5898,13 +5898,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the attractant code was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the attractant code.<\/p>" }, { "tableName": "geo_organization_unit_code", @@ -5912,13 +5912,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "expiry_date", + "name": "effective_date", "type": "timestamp", "length": 29, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The date the Geographical Organizational Unit is no longer recognized as a valid physical location within the Ministry organizational structure.<\/p>" + "comments": "

The date the Geographical Organizational Unit becomes effective as a boundaried physical location within the Ministry organizational structure.<\/p>" }, { "tableName": "complaint_status_code", @@ -5926,13 +5926,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the complaint status code.<\/p>" + "comments": "

The short description of the complaint status code.<\/p>" }, { "tableName": "office", @@ -5940,13 +5940,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the office was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the office.<\/p>" }, { "tableName": "complaint_type_code", @@ -5954,10 +5954,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -5966,11 +5966,11 @@

Columns

"tableName": "staging_metadata_mapping", "tableFileName": "staging_metadata_mapping", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "staged_data_value", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>entity_code", "type": "varchar", - "length": 120, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -5980,43 +5980,43 @@

Columns

"tableName": "reported_by_code", "tableFileName": "reported_by_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>reported_by_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "action_taken", - "tableFileName": "action_taken", + "tableName": "gir_type_code", + "tableFileName": "gir_type_code", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>action_taken_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for an action taken record. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "" }, { - "tableName": "team_h", - "tableFileName": "team_h", + "tableName": "person", + "tableFileName": "person", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>h_team_guid", - "type": "uuid", - "length": 2147483647, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for team history. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

The timestamp when the person was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "geo_org_unit_structure_h", @@ -6024,13 +6024,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the geographic organization unit structure table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "gir_complaint", @@ -6038,50 +6038,36 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the GIR complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the GIR complaint.<\/p>" }, { "tableName": "complaint_type_code", "tableFileName": "complaint_type_code", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>agency_code", - "type": "varchar", - "length": 10, - "nullable": "", - "autoUpdated": "", - "defaultValue": "'COS'::character varying", - "comments": "

A human readable code used to identify an agency.<\/p>" - }, - { - "tableName": "allegation_complaint", - "tableFileName": "allegation_complaint", - "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the allegation complaint.<\/p>" + "comments": "" }, { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", + "tableName": "allegation_complaint", + "tableFileName": "allegation_complaint", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "f_table_catalog", - "type": "name", + "name": "suspect_witnesss_dtl_text", + "type": "text", "length": 2147483647, "nullable": "√", "autoUpdated": "", @@ -6094,27 +6080,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "location_summary_text", - "type": "varchar", - "length": 120, - "nullable": "√", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

A brief summary of the location of the complaint.<\/p>" - }, - { - "tableName": "cos_geo_org_unit_flat_vw", - "tableFileName": "cos_geo_org_unit_flat_vw", - "tableType": "View", - "keyClass": "", - "keyTitle": "", - "name": "offloc_code", + "name": "caller_phone_3", "type": "varchar", - "length": 10, + "length": 15, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

An alternate phone number provided by the caller to the call centre or entered onto the web form.<\/p>" }, { "tableName": "team_h", @@ -6122,27 +6094,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the team table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "allegation_complaint", "tableFileName": "allegation_complaint", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "in_progress_ind", - "type": "bool", - "length": 1, + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>allegation_complaint_guid", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

True if the alleged violation is currently described as being in progress. False otherwise.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for an allegation complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "hwcr_complaint", @@ -6150,41 +6122,55 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the HWCR complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the HWCR complaint.<\/p>" }, { "tableName": "flyway_schema_history", "tableFileName": "flyway_schema_history", "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>success", - "type": "bool", - "length": 1, + "keyClass": "", + "keyTitle": "", + "name": "execution_time", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "spatial_ref_sys", - "tableFileName": "spatial_ref_sys", + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "f_table_name", + "type": "name", + "length": 2147483647, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "gir_complaint", + "tableFileName": "gir_complaint", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>srid", - "type": "int4", - "length": 10, + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>complaint_identifier", + "type": "varchar", + "length": 20, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

Natural key for a complaint generated by webEOC.<\/p>" }, { "tableName": "complaint_type_code", @@ -6192,10 +6178,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "create_user_guid", + "type": "uuid", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -6204,29 +6190,29 @@

Columns

"tableName": "hwcr_complaint_h", "tableFileName": "hwcr_complaint_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_hwcrcmplt_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the HWCR complaint that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for HWCR complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "geo_organization_unit_code", "tableFileName": "geo_organization_unit_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>geo_organization_unit_code", "type": "varchar", - "length": 50, - "nullable": "√", + "length": 10, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the geographical organization unit code.<\/p>" + "comments": "

A human readable code used to identify a geographical organization unit.<\/p>" }, { "tableName": "entity_code", @@ -6234,115 +6220,59 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "" - }, - { - "tableName": "person", - "tableFileName": "person", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

The timestamp when the person was created. The timestamp is stored in UTC with no Offset.<\/p>" - }, - { - "tableName": "complaint_update_h", - "tableFileName": "complaint_update_h", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "operation_user_id", + "name": "create_user_id", "type": "varchar", "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the complaint update table. Defaults to the logged in user if not passed in by the application.<\/p>" - }, - { - "tableName": "staging_status_code", - "tableFileName": "staging_status_code", - "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", - "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "action_taken", - "tableFileName": "action_taken", + "tableName": "person", + "tableFileName": "person", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", + "name": "create_user_id", "type": "varchar", "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the ACTION_TAKEN<\/p>" + "comments": "

The id of the user that created the person.<\/p>" }, { - "tableName": "complaint_method_received_code", - "tableFileName": "complaint_method_received_code", + "tableName": "complaint_update_h", + "tableFileName": "complaint_update_h", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", + "name": "operation_type", + "type": "bpchar", "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the METHOD_COMPLAINT_RECEIVED_CODE is active<\/p>" - }, - { - "tableName": "comp_mthd_recv_cd_agcy_cd_xref", - "tableFileName": "comp_mthd_recv_cd_agcy_cd_xref", - "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>agency_code", - "type": "varchar", - "length": 10, - "nullable": "", - "autoUpdated": "", - "defaultValue": "null", - "comments": "

A human readable code used to identify an AGENCY.<\/p>" + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { - "tableName": "gir_complaint_h", - "tableFileName": "gir_complaint_h", + "tableName": "staging_status_code", + "tableFileName": "staging_status_code", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, + "name": "long_description", + "type": "varchar", + "length": 250, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "comments": "" }, { - "tableName": "complaint_method_received_code", - "tableFileName": "complaint_method_received_code", + "tableName": "action_taken", + "tableFileName": "action_taken", "tableType": "Table", "keyClass": "", "keyTitle": "", @@ -6352,49 +6282,77 @@

Columns

"nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the METHOD_COMPLAINT_RECEIVED_CODE was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The timestamp when the ACTION_TAKEN was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "geometry_columns", - "tableFileName": "geometry_columns", - "tableType": "View", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>srid", + "tableName": "complaint_method_received_code", + "tableFileName": "complaint_method_received_code", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "display_order", "type": "int4", "length": 10, - "nullable": "√", + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, { - "tableName": "attractant_hwcr_xref", - "tableFileName": "attractant_hwcr_xref", + "tableName": "comp_mthd_recv_cd_agcy_cd_xref", + "tableFileName": "comp_mthd_recv_cd_agcy_cd_xref", "tableType": "Table", "keyClass": "primaryKey", "keyTitle": "Primary Key", - "name": "<\/i>attractant_hwcr_xref_guid", + "name": "<\/i>comp_mthd_recv_cd_agcy_cd_xref_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for an attractant hwcr relationship. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "comments": "" }, { - "tableName": "geography_columns", - "tableFileName": "geography_columns", - "tableType": "View", + "tableName": "gir_complaint_h", + "tableFileName": "gir_complaint_h", + "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "coord_dimension", - "type": "int4", - "length": 10, + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", + "autoUpdated": "", + "defaultValue": "now()", + "comments": "

The timestamp when the data in the GIR complaint table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + }, + { + "tableName": "complaint_method_received_code", + "tableFileName": "complaint_method_received_code", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "

The id of the user that created the wdr schedule code.<\/p>" + }, + { + "tableName": "person_h", + "tableFileName": "person_h", + "tableType": "Table", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "complaint", @@ -6402,13 +6360,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "caller_name", - "type": "varchar", - "length": 120, + "name": "detail_text", + "type": "text", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The name provided by the caller to the call centre or entered onto the web form.<\/p>" + "comments": "

Verbatim details of the complaint as recorded by the call centre or through the web form.<\/p>" }, { "tableName": "person_complaint_xref_code", @@ -6416,13 +6374,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the relationship type between a person and a complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the relationship type between a person and a complaint.<\/p>" }, { "tableName": "staging_activity_code", @@ -6430,27 +6388,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, + { + "tableName": "cos_geo_org_unit_flat_vw", + "tableFileName": "cos_geo_org_unit_flat_vw", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "offloc_code", + "type": "varchar", + "length": 10, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, { "tableName": "office_h", "tableFileName": "office_h", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_type", - "type": "bpchar", - "length": 1, + "name": "target_row_id", + "type": "uuid", + "length": 2147483647, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" + "comments": "

The unique key for the office that has been created or modified.<\/p>" }, { "tableName": "configuration", @@ -6458,27 +6430,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_id", - "type": "varchar", - "length": 32, + "name": "active_ind", + "type": "bool", + "length": 1, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the configuration entry.<\/p>" + "comments": "

A boolean indicator to determine if the configuration_entry is active.<\/p>" }, { "tableName": "complaint_method_received_code", "tableFileName": "complaint_method_received_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>complaint_method_received_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of a METHOD_COMPLAINT_RECEIVED_CODE<\/p>" + "comments": "

A human readable code used to define the method in which the complaint was received<\/p>" }, { "tableName": "feature_agency_xref", @@ -6486,13 +6458,13 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>agency_code", + "name": "<\/i>feature_code", "type": "varchar", "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify an AGENCY.<\/p>" + "comments": "

A human readable code used to identify a FEATURE that is controlled by the FEATURE_AGENCY_XREF table.<\/p>" }, { "tableName": "complaint_type_code", @@ -6500,10 +6472,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "√", + "name": "update_user_id", + "type": "varchar", + "length": 32, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -6514,27 +6486,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" }, + { + "tableName": "geometry_columns", + "tableFileName": "geometry_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "type", + "type": "varchar", + "length": 30, + "nullable": "√", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, { "tableName": "person_complaint_xref", "tableFileName": "person_complaint_xref", "tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the relationship between a person and a complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the relationship between a person and a complaint .<\/p>" }, { "tableName": "attractant_hwcr_xref", @@ -6542,13 +6528,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the attractant hwcr cross reference was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the attractant hwcr cross reference.<\/p>" }, { "tableName": "complaint_type_code", @@ -6556,10 +6542,10 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_user_guid", - "type": "uuid", - "length": 2147483647, - "nullable": "√", + "name": "create_user_id", + "type": "varchar", + "length": 32, + "nullable": "", "autoUpdated": "", "defaultValue": "null", "comments": "" @@ -6570,13 +6556,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, - "nullable": "√", + "length": 50, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The long description of the species code.<\/p>" + "comments": "

The short description of the species code.<\/p>" }, { "tableName": "configuration", @@ -6584,13 +6570,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the configuration entry was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the configuration entry.<\/p>" }, { "tableName": "officer_h", @@ -6598,13 +6584,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "data_after_executed_operation", - "type": "jsonb", - "length": 2147483647, - "nullable": "√", + "name": "operation_executed_at", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" + "defaultValue": "now()", + "comments": "

The timestamp when the data in the officer table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "species_code", @@ -6612,13 +6598,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the species code is active.<\/p>" + "comments": "

The order in which the values of the species code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "allegation_complaint", @@ -6626,13 +6612,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the allegation complaint.<\/p>" + "comments": "

The timestamp when the allegation complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "person_complaint_xref", @@ -6640,111 +6626,111 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the relationship between a person and a complaint was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the relationship between a person and a complaint.<\/p>" }, { "tableName": "hwcr_complaint_h", "tableFileName": "hwcr_complaint_h", "tableType": "Table", "keyClass": "", - "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "keyTitle": "", + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the HWCR complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { - "tableName": "reported_by_code", - "tableFileName": "reported_by_code", + "tableName": "action_taken_h", + "tableFileName": "action_taken_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>reported_by_code", - "type": "varchar", - "length": 10, - "nullable": "", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", + "length": 2147483647, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "" + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "attractant_code", "tableFileName": "attractant_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>attractant_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The short description of the attractant code.<\/p>" + "comments": "

A human readable code used to identify an attractant.<\/p>" }, { "tableName": "person_complaint_xref", "tableFileName": "person_complaint_xref", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "create_user_id", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>person_complaint_xref_code", "type": "varchar", - "length": 32, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that created the relationship between a person and a complaint.<\/p>" + "comments": "

A human readable code used to identify a relationship type between a person and a complaint.<\/p>" }, { "tableName": "geo_organization_unit_code", "tableFileName": "geo_organization_unit_code", "tableType": "Table", - "keyClass": "foreignKey", - "keyTitle": "Foreign Key", - "name": "<\/i>geo_org_unit_type_code", - "type": "varchar", - "length": 10, - "nullable": "√", + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A human readable code used to identify a geographical organization unit type.<\/p>" + "comments": "

The timestamp when the geographical organization unit code was updated. The timestamp is stored in UTC with no Offset.<\/p>" }, { - "tableName": "allegation_complaint", - "tableFileName": "allegation_complaint", + "tableName": "office_h", + "tableFileName": "office_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>allegation_complaint_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for an allegation complaint. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { - "tableName": "feature_agency_xref", - "tableFileName": "feature_agency_xref", + "tableName": "team_h", + "tableFileName": "team_h", "tableType": "Table", - "keyClass": "primaryKey", - "keyTitle": "Primary Key", - "name": "<\/i>feature_agency_xref_guid", - "type": "uuid", + "keyClass": "", + "keyTitle": "", + "name": "data_after_executed_operation", + "type": "jsonb", "length": 2147483647, - "nullable": "", + "nullable": "√", "autoUpdated": "", - "defaultValue": "uuid_generate_v4()", - "comments": "

System generated unique key for a FEATURE_AGENCY_XREF ecord. This key should never be exposed to users via any system utilizing the tables.<\/p>" + "defaultValue": "null", + "comments": "

A JSON representation of the row in the table after the operation was completed successfully. This implies that the latest row in the audit table will always match with the current row in the live table.<\/p>" }, { "tableName": "office", @@ -6752,27 +6738,27 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "update_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the office was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the office.<\/p>" }, { "tableName": "officer", "tableFileName": "officer", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "auth_user_guid", + "keyClass": "foreignKey", + "keyTitle": "Foreign Key", + "name": "<\/i>office_guid", "type": "uuid", "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The SiteMinder guid returned to the application from KeyCloak. Used to uniquely identify a user over the course of their lifecycle.<\/p>" + "comments": "

System generated unique key for an office. The primary office an officer is assigned to.<\/p>" }, { "tableName": "species_code", @@ -6780,13 +6766,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "legacy_code", - "type": "varchar", - "length": 10, - "nullable": "√", + "name": "active_ind", + "type": "bool", + "length": 1, + "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The code for the species from the CORS_SPECIES_CODE table in the COORS database.<\/p>" + "comments": "

A boolean indicator to determine if the species code is active.<\/p>" }, { "tableName": "team_code", @@ -6794,41 +6780,41 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the team code is active.<\/p>" + "comments": "

The order in which the values of the team code table should be displayed when presented to a user in a list.<\/p>" }, { "tableName": "gir_complaint_h", "tableFileName": "gir_complaint_h", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "target_row_id", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>h_gircmplt_guid", "type": "uuid", "length": 2147483647, "nullable": "", "autoUpdated": "", - "defaultValue": "null", - "comments": "

The unique key for the GIR complaint that has been created or modified.<\/p>" + "defaultValue": "uuid_generate_v4()", + "comments": "

System generated unique key for GIR complaint history. This key should never be exposed to users via any system utilizing the tables.<\/p>" }, { "tableName": "complaint", "tableFileName": "complaint", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "webeoc_identifier", - "type": "varchar", - "length": 20, + "keyClass": "indexedColumn", + "keyTitle": "Indexed", + "name": "<\/i>location_geometry_point", + "type": "geometry", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

Unique Identifier from the webEOC source system to identify a complaint update. This is required as the natural key is not available in all webEOC APIs<\/p>" + "comments": "

The closest approximation to where the incident occurred. Stored as a geometric point using the EPSG:3005 Projected Coordinate System (BC Albers)<\/p>" }, { "tableName": "agency_code", @@ -6836,13 +6822,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "display_order", - "type": "int4", - "length": 10, - "nullable": "", + "name": "long_description", + "type": "varchar", + "length": 250, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The order in which the values of the agency code table should be displayed when presented to a user in a list.<\/p>" + "comments": "

The long description of the agency code.<\/p>" }, { "tableName": "officer_team_xref", @@ -6850,13 +6836,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_utc_timestamp", - "type": "timestamp", - "length": 29, - "nullable": "", + "name": "update_user_id", + "type": "varchar", + "length": 32, + "nullable": "√", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the OFFICER_TEAM_XREF was updated. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that updated the OFFICER_TEAM_XREF<\/p>" }, { "tableName": "linked_complaint_xref", @@ -6864,13 +6850,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "create_utc_timestamp", - "type": "timestamp", - "length": 29, + "name": "create_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The timestamp when the complaint linkage was created. The timestamp is stored in UTC with no Offset.<\/p>" + "comments": "

The id of the user that created the complaint linkage.<\/p>" }, { "tableName": "hwcr_complaint_nature_code", @@ -6878,13 +6864,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "update_user_id", - "type": "varchar", - "length": 32, + "name": "create_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

The id of the user that updated the human wildlife conflict nature code.<\/p>" + "comments": "

The timestamp when the human wildlife conflict nature code was created. The timestamp is stored in UTC with no Offset.<\/p>" }, { "tableName": "action_taken_h", @@ -6892,23 +6878,23 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_user_id", - "type": "varchar", - "length": 32, + "name": "operation_type", + "type": "bpchar", + "length": 1, "nullable": "", "autoUpdated": "", - "defaultValue": "CURRENT_USER", - "comments": "

The id of the user that created or modified the data in the complaint table. Defaults to the logged in user if not passed in by the application.<\/p>" + "defaultValue": "null", + "comments": "

The operation performed: I = Insert, U = Update, D = Delete<\/p>" }, { "tableName": "entity_code", "tableFileName": "entity_code", "tableType": "Table", - "keyClass": "", - "keyTitle": "", - "name": "short_description", + "keyClass": "primaryKey", + "keyTitle": "Primary Key", + "name": "<\/i>entity_code", "type": "varchar", - "length": 50, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -6920,9 +6906,23 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "long_description", + "name": "short_description", "type": "varchar", - "length": 250, + "length": 50, + "nullable": "", + "autoUpdated": "", + "defaultValue": "null", + "comments": "" + }, + { + "tableName": "geography_columns", + "tableFileName": "geography_columns", + "tableType": "View", + "keyClass": "", + "keyTitle": "", + "name": "f_table_schema", + "type": "name", + "length": 2147483647, "nullable": "√", "autoUpdated": "", "defaultValue": "null", @@ -6934,9 +6934,9 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "active_ind", - "type": "bool", - "length": 1, + "name": "display_order", + "type": "int4", + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -6948,13 +6948,13 @@

Columns

"tableType": "Table", "keyClass": "", "keyTitle": "", - "name": "operation_executed_at", - "type": "timestamp", - "length": 29, + "name": "operation_user_id", + "type": "varchar", + "length": 32, "nullable": "", "autoUpdated": "", - "defaultValue": "now()", - "comments": "

The timestamp when the data in the complaint update table was created or modified. The timestamp is stored in UTC with no Offset.<\/p>" + "defaultValue": "CURRENT_USER", + "comments": "

The id of the user that created or modified the data in the complaint update table. Defaults to the logged in user if not passed in by the application.<\/p>" }, { "tableName": "staging_complaint", @@ -6962,9 +6962,9 @@

Columns

"tableType": "Table", "keyClass": "foreignKey", "keyTitle": "Foreign Key", - "name": "<\/i>complaint_identifier", + "name": "<\/i>staging_activity_code", "type": "varchar", - "length": 20, + "length": 10, "nullable": "", "autoUpdated": "", "defaultValue": "null", @@ -6974,15 +6974,15 @@

Columns

"tableName": "person_complaint_xref", "tableFileName": "person_complaint_xref", "tableType": "Table", - "keyClass": "indexedColumn", - "keyTitle": "Indexed", - "name": "<\/i>active_ind", - "type": "bool", - "length": 1, + "keyClass": "", + "keyTitle": "", + "name": "update_utc_timestamp", + "type": "timestamp", + "length": 29, "nullable": "", "autoUpdated": "", "defaultValue": "null", - "comments": "

A boolean indicator to determine if the relationship type between a person and a complaint code is active.<\/p>" + "comments": "

The timestamp when the relationship between a person and a complaint was updated. The timestamp is stored in UTC with no Offset.<\/p>" } ]; var config = { diff --git a/schemaspy/public/index.html b/schemaspy/public/index.html index efe3f61d4..6c5585f38 100644 --- a/schemaspy/public/index.html +++ b/schemaspy/public/index.html @@ -78,7 +78,7 @@

Tables


SchemaSpy Analysis of default.public

-

Generated on Fri Jan 03 18:09 GMT 2025

+

Generated on Fri Jan 03 22:14 GMT 2025

diff --git a/schemaspy/public/info-html.txt b/schemaspy/public/info-html.txt index fbc326ee2..3b7b851e3 100644 --- a/schemaspy/public/info-html.txt +++ b/schemaspy/public/info-html.txt @@ -1,4 +1,4 @@ -date=2025-01-03 18:09:44+0000 +date=2025-01-03 22:14:34+0000 os=Linux 6.5.0-1025-azure schemaspy-version=6.2.4 schemaspy-build=6.2.4.41 2023-07-21 11:15:12