Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 The amount for given donation.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 ECARDSDATA xml XML data held for BBNC's eCards.
 DESIGNATIONNAME nvarchar(512)   Default = '' Name of designation at time of sale.
 ISZEROAMOUNTTRANSACTION bit   Default = 0

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   SALESORDERITEM.ID Primary Key.
 DESIGNATIONID uniqueidentifier   DESIGNATION.ID FK to DESIGNATION table.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 REVENUESPLITID uniqueidentifier FINANCIALTRANSACTIONLINEITEM.ID FK to REVENUESPLIT table

Index Name Field(s) Unique Primary Clustered
 IX_SALESORDERITEMDONATION_DATEADDED DATEADDED    
 IX_SALESORDERITEMDONATION_DATECHANGED DATECHANGED      
 PK_SALESORDERITEMDONATION ID  
 UIX_SALESORDERITEMDONATION_REVENUESPLITID REVENUESPLITID    

Trigger Name Description
 TR_SALESORDERITEMDONATION_AUDIT_UPDATE
 TR_SALESORDERITEMDONATION_AUDIT_DELETE

Entity-Relationship diagram of this table