STEWARDSHIPPLANSTEWARD

Contains stewardship plan stewards...

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.
STARTDATE date yes Start date of this stewardship plan steward.
ENDDATE date yes End date of this stewardship plan steward.

Foreign Keys

Foreign Key Field Type Null Notes Description
PLANID uniqueidentifier STEWARDSHIPPLAN.ID FK to STEWARDSHIPPLAN
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
ROLECODEID uniqueidentifier yes STEWARDSHIPSTEWARDROLECODE.ID FK to STEWARDSHIPSTEWARDROLECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_STEWARDSHIPPLANSTEWARD_DATEADDED DATEADDED yes
IX_STEWARDSHIPPLANSTEWARD_DATECHANGED DATECHANGED
PK_STEWARDSHIPPLANSTEWARD ID yes yes
UIX_STEWARDSHIPPLANSTEWARD_PLANID_CONSTITUENTID PLANID, CONSTITUENTID yes

Triggers

Trigger Name Description
TR_STEWARDSHIPPLANSTEWARD_AUDIT_UPDATE
TR_STEWARDSHIPPLANSTEWARD_AUDIT_DELETE