ADDRESSPROCESSINGOPTIONORGCONTACTTYPE

Maps Address Processing Options to Contact Types for the processing of organizational addresses.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PROCESSORDER int Default = 0 Defines the order in which types for the same option set should be processed
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.
USEPRIMARYCONTACT bit Default = 0 If true, use the primary contact, regardless of Contact Type.

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDRESSPROCESSINGOPTIONID uniqueidentifier yes ADDRESSPROCESSINGOPTION.ID The Address Processing Option.
CONTACTTYPECODEID uniqueidentifier yes CONTACTTYPECODE.LOCALID The Contact Type.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ADDRESSPROCESSINGOPTIONORGCONTACTTYPE_ADDRESSPROCESSINGOPTIONID ADDRESSPROCESSINGOPTIONID
IX_ADDRESSPROCESSINGOPTIONORGCONTACTTYPE_DATEADDED DATEADDED yes
IX_ADDRESSPROCESSINGOPTIONORGCONTACTTYPE_DATECHANGED DATECHANGED
PK_ADDRESSPROCESSINGOPTIONORGCONTACTTYPE ID yes yes

Triggers

Trigger Name Description
TR_ADDRESSPROCESSINGOPTIONORGCONTACTTYPE_AUDIT_UPDATE
TR_ADDRESSPROCESSINGOPTIONORGCONTACTTYPE_AUDIT_DELETE