EVENTDONOR

This table includes information about constituent who donate in a specific event

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.
DONATIONAMOUNT money Default = 0 Donation Amount

Foreign Keys

Foreign Key Field Type Null Notes Description
EVENTID uniqueidentifier EVENT.ID FK to EVENT
CONSTITUENTID uniqueidentifier CONSTITUENT.LOCALID FK to CONSTITUENT
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
REGISTRANTID uniqueidentifier yes REGISTRANT.ID FK to REGISTRANT
TEAMFUNDRAISINGTEAMID uniqueidentifier yes TEAMFUNDRAISINGTEAM.ID FK to TEAMFUNDRAISINGTEAM

Indexes

Index Name Fields Unique Primary Clustered
IX_EVENTDONOR_CONSTITUENTID CONSTITUENTID
IX_EVENTDONOR_DATEADDED DATEADDED yes
IX_EVENTDONOR_DATECHANGED DATECHANGED
IX_EVENTDONOR_EVENTID EVENTID
IX_EVENTDONOR_REGISTRANTID REGISTRANTID
PK_EVENTDONOR ID yes yes

Triggers

Trigger Name Description
TR_EVENTDONOR_AUDIT_UPDATE
TR_EVENTDONOR_AUDIT_DELETE