BOARDMEMBERDATERANGE

Contains the date ranges for which constituents are board members.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEFROM date yes
DATETO date yes
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
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BOARDMEMBERDATERANGE_CONSTITUENTID CONSTITUENTID
IX_BOARDMEMBERDATERANGE_DATEADDED DATEADDED yes
IX_BOARDMEMBERDATERANGE_DATECHANGED DATECHANGED
PK_BOARDMEMBERDATERANGE ID yes yes

Triggers

Trigger Name Description
TR_BOARDMEMBERDATERANGE_AUDIT_ETLDELETEDID
TR_BOARDMEMBERDATERANGE_MARKASCONSTITUENT
TR_BOARDMEMBERDATERANGE_AUDIT_UPDATE
TR_BOARDMEMBERDATERANGE_AUDIT_DELETE