NAMEFORMATDEFAULT

Contains name format defaults that will be created for new constituents.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
APPLYTOCODE tinyint Default = 0 The type of constituent that this default applies to.
PRIMARYADDRESSEE bit Default = 0 Indicates whether or not this name format will be the primary addressee.
PRIMARYSALUTATION bit Default = 0 Indicates whether or not this name format will be the primary salutation.
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
APPLYTO nvarchar(11) (Computed) yes CASE [APPLYTOCODE] WHEN 0 THEN N'Individuals' END Provides a translation for the 'APPLYTOCODE' field.

Foreign Keys

Foreign Key Field Type Null Notes Description
NAMEFORMATTYPECODEID uniqueidentifier NAMEFORMATTYPECODE.ID The addressee name format to use for new constituents.
NAMEFORMATFUNCTIONID uniqueidentifier NAMEFORMATFUNCTION.ID The addressee name format function to use for new constituents.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_NAMEFORMATDEFAULT_DATEADDED DATEADDED yes
IX_NAMEFORMATDEFAULT_DATECHANGED DATECHANGED
PK_NAMEFORMATDEFAULT ID yes yes
UIX_NAMEFORMATDEFAULT_APPLYTOCODE_NAMEFORMATTYPECODEID APPLYTOCODE, NAMEFORMATTYPECODEID yes

Triggers

Trigger Name Description
TR_NAMEFORMATDEFAULT_AUDIT_UPDATE
TR_NAMEFORMATDEFAULT_AUDIT_DELETE