SPONSORDONATION

Sponsor Donation

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
VOLUNTARYDONATION money Default = 0 Voluntary Donation Amount
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
SPONSORID uniqueidentifier EVENTSPONSOR.ID Foreign Key to EVENTSPONSOR table
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SPONSORDONATION_DATEADDED DATEADDED yes
IX_SPONSORDONATION_DATECHANGED DATECHANGED
PK_SPONSORDONATION ID yes yes
UIX_SPONSORDONATION_SPONSORID SPONSORID yes

Triggers

Trigger Name Description
TR_SPONSORDONATION_AUDIT_UPDATE
TR_SPONSORDONATION_AUDIT_DELETE