PLANOUTLINESTEP

Contains plan outline step.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
OBJECTIVE nvarchar(100) Default = ''
FUNDRAISERROLECODE tinyint Default = 0 Indicates which fundraiser should be responsible for this step.
FUNDRAISERROLE nvarchar(19) (Computed) yes CASE [FUNDRAISERROLECODE] WHEN 0 THEN N'Prospect manager' WHEN 1 THEN N'Primary manager' WHEN 2 THEN N'Secondary manager' WHEN 3 THEN N'Secondary solicitor' END Provides a translation for the 'FUNDRAISERROLECODE' field.
DATEOFFSET int Default = 0 The step date will be this number of days after the first step.
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
PLANOUTLINEID uniqueidentifier PLANOUTLINE.ID FK to PLANOUTLINE
INTERACTIONTYPECODEID uniqueidentifier yes INTERACTIONTYPECODE.ID FK to INTERACTIONTYPECODE
PROSPECTPLANSTATUSCODEID uniqueidentifier PROSPECTPLANSTATUSCODE.ID Indicates which stage of the plan outline this step belongs to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PLANOUTLINESTEP_DATEADDED DATEADDED yes
IX_PLANOUTLINESTEP_DATECHANGED DATECHANGED
IX_PLANOUTLINESTEP_PLANOUTLINEID PLANOUTLINEID
PK_PLANOUTLINESTEP ID yes yes

Triggers

Trigger Name Description
TR_PLANOUTLINESTEP_AUDIT_UPDATE
TR_PLANOUTLINESTEP_AUDIT_DELETE
TR_PLANOUTLINESTEP_AUDIT_ETLDELETEDID

Referenced by

Referenced by Field
INTERACTION PLANOUTLINESTEPID