person_complaint_xref

-1 rows


Description

Used to create a relationship between a person and a complaint. One person can play many roles on a complaint, and many people could be involved in a single complaint.

Columns

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

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.

person_guid uuid 2147483647 null
person.person_guid FK_person_complaint_xref__person_guid R

System generated unique key for an person.

complaint_identifier varchar 20 null
complaint.complaint_identifier FK_person_complaint_xref__complaint_identifier R

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.

person_complaint_xref_code varchar 10 null
person_complaint_xref_code.person_complaint_xref_code FK_person_complaint_xref__person_complaint_xref_code R

A human readable code used to identify a relationship type between a person and a complaint.

create_user_id varchar 32 null

The id of the user that created the relationship between a person and a complaint.

create_utc_timestamp timestamp 29,6 null

The timestamp when the relationship between a person and a complaint was created. The timestamp is stored in UTC with no Offset.

update_user_id varchar 32 null

The id of the user that updated the relationship between a person and a complaint .

update_utc_timestamp timestamp 29,6 null

The timestamp when the relationship between a person and a complaint was updated. The timestamp is stored in UTC with no Offset.

active_ind bool 1 null

A boolean indicator to determine if the relationship type between a person and a complaint code is active.

Indexes

Constraint Name Type Sort Column(s)
PK_person_complaint_xref_guid Primary key Asc person_complaint_xref_guid
person_complaint_xref_complaint_identifier_active_ind_idx Must be unique Asc/Asc complaint_identifier + active_ind

Relationships