NAMEFORMAT

Stores addressees and salutations associated with a given constituent.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0 Stores the user-defined sequence for name formats on a constituent.
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.
PRIMARYADDRESSEE bit Default = 0 Indicates whether or not this name format is the primary addressee.
PRIMARYSALUTATION bit Default = 0 Indicates whether or not this name format is the primary salutation.
CUSTOMNAME nvarchar(700) Default = ''
FORMATTEDNAME nvarchar(700) (Computed) yes dbo.UFN_NAMEFORMAT_GETFORMATTEDNAME(NAMEFORMAT.ID) The formatted name based on the translation function.

Foreign Keys

Foreign Key Field Type Null Notes Description
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
NAMEFORMATTYPECODEID uniqueidentifier NAMEFORMATTYPECODE.ID FK to NAMEFORMATTYPECODE
NAMEFORMATFUNCTIONID uniqueidentifier yes NAMEFORMATFUNCTION.ID FK to NAMEFORMATFUNCTION
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
SITEID uniqueidentifier yes SITE.ID FK to SITE

Indexes

Index Name Fields Unique Primary Clustered
IX_NAMEFORMAT_DATEADDED DATEADDED yes
IX_NAMEFORMAT_DATECHANGED DATECHANGED
IX_NAMEFORMAT_ID ID
IX_NAMEFORMAT_SITEID SITEID
PK_NAMEFORMAT ID yes yes
UIX_NAMEFORMAT_CONSTITUENTID_NAMEFORMATTYPECODEID CONSTITUENTID, NAMEFORMATTYPECODEID yes

Triggers

Trigger Name Description
TR_NAMEFORMAT_AUDIT_UPDATE
TR_NAMEFORMAT_AUDIT_DELETE

Referenced by

Referenced by Field
NAMINGOPPORTUNITYRECOGNITION CONSTITUENTNAMEFORMATID