PLANNEDGIFTDESIGNATION

Stores the designation for each planned gift.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0
SEQUENCE int Default = 0
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.
DATE datetime yes
ORGANIZATIONAMOUNT money Default = 0 The amount of the planned gift designation in organization currency.
TRANSACTIONAMOUNT money Default = 0 The amount of the planned gift designation in transaction currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
PLANNEDGIFTID uniqueidentifier PLANNEDGIFT.ID FK to PLANNEDGIFT
DESIGNATIONID uniqueidentifier yes DESIGNATION.ID FK to DESIGNATION
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CATEGORYCODEID uniqueidentifier yes PLANNEDGIFTDESCATEGORYCODE.ID FK to PLANNEDGIFTDESCATEGORYCODE
USECODEID uniqueidentifier yes DESIGNATIONUSECODE.ID FK to DESIGNATIONUSECODE
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this revenue split.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the organization amount.
TRANSACTIONCURRENCYID uniqueidentifier yes CURRENCY.ID The transaction currency associated with this planned gift designation.
BASEEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the base amount.
TYPECODEID uniqueidentifier yes OPPORTUNITYDESIGNATIONTYPECODE.ID FK to OPPORTUNITYDESIGNATIONTYPECODE

Indexes

Index Name Fields Unique Primary Clustered
IX_PLANNEDGIFTDESIGNATION_BASECURRENCYID BASECURRENCYID
IX_PLANNEDGIFTDESIGNATION_BASEEXCHANGERATEID BASEEXCHANGERATEID
IX_PLANNEDGIFTDESIGNATION_DATEADDED DATEADDED yes
IX_PLANNEDGIFTDESIGNATION_DATECHANGED DATECHANGED
IX_PLANNEDGIFTDESIGNATION_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
IX_PLANNEDGIFTDESIGNATION_PLANNEDGIFTID PLANNEDGIFTID
IX_PLANNEDGIFTDESIGNATION_TRANSACTIONCURRENCYID TRANSACTIONCURRENCYID
PK_PLANNEDGIFTDESIGNATION ID yes yes

Triggers

Trigger Name Description
TR_PLANNEDGIFTDESIGNATION_AUDIT_UPDATE
TR_PLANNEDGIFTDESIGNATION_AUDIT_DELETE
TR_PLANNEDGIFTDESIGNATION_INSERTUPDATE_CURRENCY

Referenced by

Referenced by Field
PLANNEDGIFTDESIGNATIONCAMPAIGN PLANNEDGIFTDESIGNATIONID