PROSPECTRESEARCHTEMPLATEDEFAULT

Contains app users default Prospect Research report template.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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
PROSPECTRESEARCHTEMPLATEID uniqueidentifier PROSPECTRESEARCHTEMPLATE.ID FK to PROSPECTRESEARCHTEMPLATE
OWNERID uniqueidentifier yes APPUSER.ID FK to APPUSER
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PROSPECTRESEARCHTEMPLATEDEFAULT_DATEADDED DATEADDED yes
IX_PROSPECTRESEARCHTEMPLATEDEFAULT_DATECHANGED DATECHANGED
PK_PROSPECTRESEARCHTEMPLATEDEFAULT ID yes yes
UIX_PROSPECTRESEARCHTEMPLATEDEFAULT_PROSPECTRESEARCHTEMPLATEID_OWNERID PROSPECTRESEARCHTEMPLATEID, OWNERID yes

Triggers

Trigger Name Description
TR_PROSPECTRESEARCHTEMPLATEDEFAULT_AUDIT_UPDATE
TR_PROSPECTRESEARCHTEMPLATEDEFAULT_AUDIT_DELETE