PLANNEDGIFTLETTERCODE

Stores information pertaining to acknowledgement planned gift letters.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' Name of the letter code.
DESCRIPTION nvarchar(255) Default = '' Description for the letter code.
WORDTEMPLATEFILENAME nvarchar(255) Default = '' Filename of the word template to use for this letter.
WORDFILE varbinary yes The actual template file to use for this letter.
ISACTIVE bit Default = 1 Indicates whether or not the letter code is active.
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.
CUSTOMPARAMETERDATAFORMITEM xml yes Custom parameters for the letter code.

Foreign Keys

Foreign Key Field Type Null Notes Description
QUERYVIEWID uniqueidentifier yes QUERYVIEWCATALOG.ID A foreign key to the query view used for this letter.
IDSETREGISTERID uniqueidentifier yes IDSETREGISTER.ID A foreign key to the ID set that will be associated with this letter code.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
EXPORTDEFINITIONID uniqueidentifier yes EXPORTDEFINITION.ID A foreign key to the export definition used for this letter.

Indexes

Index Name Fields Unique Primary Clustered
IX_PLANNEDGIFTLETTERCODE_DATEADDED DATEADDED yes
IX_PLANNEDGIFTLETTERCODE_DATECHANGED DATECHANGED
PK_PLANNEDGIFTLETTERCODE ID yes yes
UC_PLANNEDGIFTLETTERCODE_NAME NAME yes

Triggers

Trigger Name Description
TR_PLANNEDGIFTLETTERCODE_AUDIT_UPDATE
TR_PLANNEDGIFTLETTERCODE_AUDIT_DELETE

Referenced by

Referenced by Field
ASSIGNPLANNEDGIFTLETTERCODESPROCESSLETTERCODES PLANNEDGIFTLETTERCODEID
PLANNEDGIFTACKNOWLEDGEMENTPROCESS PLANNEDGIFTLETTERCODEID
PLANNEDGIFTLETTER PLANNEDGIFTLETTERCODEID
PLANNEDGIFTLETTERCODESITE PLANNEDGIFTLETTERCODEID