PLANNEDGIFTREVENUESPLIT

Associates a planned gift record with a revenue record.

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.

Foreign Keys

Foreign Key Field Type Null Notes Description
PLANNEDGIFTID uniqueidentifier yes PLANNEDGIFT.ID The revenue split record this record is associated with.
REVENUESPLITID uniqueidentifier yes FINANCIALTRANSACTIONLINEITEM.ID The revenue split record this record is associated with.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_PLANNEDGIFTREVENUESPLIT_DATEADDED DATEADDED yes
IX_PLANNEDGIFTREVENUESPLIT_DATECHANGED DATECHANGED
PK_PLANNEDGIFTREVENUESPLIT ID yes yes
UIX_PLANNEDGIFTREVENUESPLIT_REVENUESPLITID REVENUESPLITID yes

Triggers

Trigger Name Description
TR_PLANNEDGIFTREVENUESPLIT_AUDIT_UPDATE
TR_PLANNEDGIFTREVENUESPLIT_AUDIT_DELETE