SPONSOR

Indicates that the constituent is a sponsor.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DONOTTERMINATE bit Default = 0 Prevent this sponsor from being terminated.
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.
UNIQUEOPPORTUNITIESFORGIFTDONOR bit Default = 0 Ensure unique sponsorship opportunities across all the gift sponsorships being paid for by this sponsor.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier CONSTITUENT.LOCALID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SPONSOR_DATEADDED DATEADDED yes
IX_SPONSOR_DATECHANGED DATECHANGED
PK_SPONSOR ID yes yes

Triggers

Trigger Name Description
TR_SPONSOR_AUDIT_UPDATE
TR_SPONSOR_AUDIT_DELETE
TR_SPONSOR_MARKASCONSTITUENT
TR_SPONSOR_AUDIT_ETLDELETEDID