DONATIONPOS

Stores defaults for adding a donation to a sales order.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0 The default amount for a 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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
DESIGNATIONID uniqueidentifier yes DESIGNATION.ID FK to DESIGNATION table.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DONATIONPOS_DATEADDED DATEADDED yes
IX_DONATIONPOS_DATECHANGED DATECHANGED
PK_DONATIONPOS ID yes yes

Triggers

Trigger Name Description
TR_DONATIONPOS_AUDIT_UPDATE
TR_DONATIONPOS_AUDIT_DELETE