mstr_persons


Description

A Person is someone who acts as an agent on behalf of an Entity. This may be a real individual person in the world or indicate a function, such as “Customer Support”, where the actual person contacted may vary and identifying a specific individual is unimportant.

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id uuid 2147483647 uuid_generate_v7()
mstr_entity_person_roles.person_id mstr_entity_person_roles_person_fk C
mstr_person_contact_roles.person_id mstr_person_contact_roles_person_fk C

The record’s primary key. The definitive identifier of the record in the system.

General Usage

This column is system maintained and should be considered read only in normal operations.

internal_name text 2147483647 null

A candidate key useful for programmatic references to individual records.

General Usage

This column is system maintained and should be considered read only in normal operations.

display_name text 2147483647 null

A friendly name and candidate key for the record, suitable for use in user interactions

General Usage

This column is system maintained and should be considered read only in normal operations.

external_name text 2147483647 null

A non-unique/non-key value used to display to users and external parties where uniqueness is less of a concern than specific end user presentation.

owning_entity_id uuid 2147483647 null
mstr_entities.id mstr_persons_entities_fk R

Indicates which Managing Entity owns the Person record for the purposes of default visibility and access.

General Usage

Any Person record owned by the Global Entity is by default visible and usable by any Managed Entity.

formatted_name jsonb 2147483647 '{}'::jsonb

Contains a jsonb object describing the naming fields, field layout, and the actual values of the user’s name. Note that the format will normally have originated from the ms_appl_data.syst_name_formats table, but reflects the name formatting configuration at the time of capture.

person_type_id uuid 2147483647 null
syst_enum_items.id mstr_persons_person_types_fk R

The “kind” of Person being represented by the record. Specifically if the record represents an actual individual person or a function such as “clerk”.

person_state_id uuid 2147483647 null
syst_enum_items.id mstr_persons_person_states_fk R

Indicates in which Person life-cycle state the record current sits. This can include designating the record as active or inactive.

access_account_id uuid 2147483647 null

An optional association with a global Access Account, used for authentication to the application by users.

Constraint Reference

An Access Account can only be associated with a single Person record and as such must be unique in this table.

The reference to the ms_syst_data.syst_access_accounts table is a cross-database reference and therefore cannot be enforced using conventional database referential integrity constraints. The application developer, therefore, is responsible for ensuring that values in this table actually match valid ms_syst_data.syst_access_accounts records.

diag_timestamp_created timestamptz 35,6 now()

The database server date/time when the transaction which created the record started.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_role_created text 2147483647 null

The database role which created the record.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_timestamp_modified timestamptz 35,6 now()

The database server date/time when the transaction which modified the record started. This field will be the same as diag_timestamp_created for inserted records.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_wallclock_modified timestamptz 35,6 clock_timestamp()

The database server date/time at the moment the record was actually modified. For long running transactions this time may be significantly later than the value of diag_timestamp_modified.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_role_modified text 2147483647 null

The database role which modified the record.

General Usage

This column is system maintained and should be considered read only in normal operations.

diag_row_version int8 19 1

The current version of the row. The value here indicates how many actual data changes have been made to the row. If an update of the row leaves all data fields the same, disregarding the updates to the diag_* columns, the row version is not updated, nor are any updates made to the other diag_* columns other than diag_update_count.

General Usage

This column is system maintained and should be considered read only in normal operations.

Direct Usage

This column is frequently used by by application logic to resolve the “dirty write” issues which can arise from concurrent data changes. As such any administrative override of automatic system maintenance of this value should consider the ramifications on application function.

diag_update_count int8 19 0

Records the number of times the record has been updated regardless as to if the update actually changed any data. In this way needless or redundant record updates can be found. This row starts at 0 and therefore may be the same as the diag_row_version - 1.

General Usage

This column is system maintained and should be considered read only in normal operations.

Indexes

Constraint Name Type Sort Column(s)
mstr_persons_pk Primary key Asc id
mstr_persons_access_account_udx Must be unique Asc access_account_id
mstr_persons_display_name_udx Must be unique Asc display_name
mstr_persons_internal_name_udx Must be unique Asc internal_name

Relationships