PROSPECTSEGMENTATION

This table contains instances of the Prospect Analysis Prospect Segmentation dashboard.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' The name of the Prospect Segmentation.
DESCRIPTION nvarchar(255) Default = '' The description of the Prospect Segmentation.
OTHERSCANMODIFY bit Default = 1 Indicates whether users other than the owner can make changes to the Prospect Segmentation.
STATUSCODE tinyint Default = 1 0=Ready, 1=Update required
STATUS nvarchar(15) (Computed) yes CASE [STATUSCODE] WHEN 0 THEN N'Ready' WHEN 1 THEN N'Update required' END Provides a translation for the 'STATUSCODE' field.
DATEUPDATED datetime yes Date of the last update of the Prospect Segmentation.
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
OWNERID uniqueidentifier yes APPUSER.ID Foreign key to the appuser who created the Prospect Segmentation.
RESEARCHGROUPID uniqueidentifier yes RESEARCHGROUP.ID Foreign key to the research group that is associated with the Prospect Segmentation.
IDSETREGISTERID uniqueidentifier yes IDSETREGISTER.ID Foreign key to the selection that is associated with the Prospect Segmentation.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PROSPECTSEGMENTATION_DATEADDED DATEADDED yes
IX_PROSPECTSEGMENTATION_DATECHANGED DATECHANGED
PK_PROSPECTSEGMENTATION ID yes yes
UIX_PROSPECTSEGMENTATION_NAME NAME yes

Triggers

Trigger Name Description
TR_PROSPECTSEGMENTATION_AUDIT_UPDATE
TR_PROSPECTSEGMENTATION_AUDIT_DELETE

Referenced by

Referenced by Field
PROSPECTSEGMENTATIONVARIABLE PROSPECTSEGMENTATIONID