PLANNEDGIFTLINK

Stores the link to the gift object in the GiftWrap system, for each planned gift.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
GIFTPK int Default = 0 This field contains the ID of a gift record in the GiftWrap system.
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
ID uniqueidentifier PLANNEDGIFT.ID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PLANNEDGIFTLINK_DATEADDED DATEADDED yes
IX_PLANNEDGIFTLINK_DATECHANGED DATECHANGED
PK_PLANNEDGIFTLINK ID yes yes
UIX_PLANNEDGIFTLINK_GIFTPK GIFTPK yes

Triggers

Trigger Name Description
TR_PLANNEDGIFTLINK_AUDIT_UPDATE
TR_PLANNEDGIFTLINK_AUDIT_DELETE