NOTIFICATIONIDMAP

Contains information used to map an ID of one record type to another record type for use in implementing notifications.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
FROMRECORDTYPE nvarchar(200) Default = '' The name of the record type to map from
TORECORDTYPE nvarchar(50) Default = '' The name of the record type to map to
MAPPINGFUNCTION nvarchar(255) Default = '' The SQL scalar user-defined function which takes an ID of the FROMRECORDTYPE and returns and ID of the TORECORDTYPE
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_NOTIFICATIONIDMAP_DATEADDED DATEADDED yes
IX_NOTIFICATIONIDMAP_DATECHANGED DATECHANGED
IX_NOTIFICATIONIDMAP_TORECORDTYPE TORECORDTYPE
PK_NOTIFICATIONIDMAP ID yes yes
UIX_NOTIFICATIONIDMAP_FROMRECORDTYPE_TORECORDTYPE FROMRECORDTYPE, TORECORDTYPE yes

Triggers

Trigger Name Description
TR_NOTIFICATIONIDMAP_AUDIT_UPDATE
TR_NOTIFICATIONIDMAP_AUDIT_DELETE