PLANNEDGIFTLETTER (4.0SP20)

Stores information pertaining to planned gift details and their corresponding letters.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

PLANNEDGIFTID

uniqueidentifier

false

A foreign key to the PLANNEDGIFT table.

PLANNEDGIFTLETTERCODEID

uniqueidentifier

false

A foreign key to the PLANNEDGIFTLETTERCODE table.

PLANNEDGIFTACKNOWLEDGEMENTPROCESSSTATUSID

uniqueidentifier

true

A foreign key to the PLANNEDGIFTACKNOWLEDGEMENTPROCESSSTATUS table.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

ACKNOWLEDGEDATE

datetime

true

Date of acknowledgement.

PROCESSDATE

datetime

true

Date acknowledgement process was run for this letter.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PLANNEDGIFTLETTER_DATEADDED

DATEADDED

False

False

True

IX_PLANNEDGIFTLETTER_DATECHANGED

DATECHANGED

False

False

False

PK_PLANNEDGIFTLETTER

ID

True

True

False

UIX_PLANNEDGIFTLETTER_PLANNEDGIFTID_PLANNEDGIFTLETTERCODEID_ACKNOWLEDGEDATE

PLANNEDGIFTID

PLANNEDGIFTLETTERCODEID

ACKNOWLEDGEDATE

True

False

False

Triggers
Trigger Name Description

TR_PLANNEDGIFTLETTER_AUDIT_UPDATE

TR_PLANNEDGIFTLETTER_AUDIT_DELETE