DAILYSALEITEMDONATION (4.0SP17)

Holds data relative to a daily sale donation.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

DESIGNATIONID

uniqueidentifier

false

The designation for which to donate.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DEFAULTAMOUNT

money

false

0

The amount to donate.

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_DAILYSALEITEMDONATION_DATEADDED

DATEADDED

False

False

True

IX_DAILYSALEITEMDONATION_DATECHANGED

DATECHANGED

False

False

False

PK_DAILYSALEITEMDONATION

ID

True

True

False

Triggers
Trigger Name Description

TR_DAILYSALEITEMDONATION_AUDIT_UPDATE

TR_DAILYSALEITEMDONATION_AUDIT_DELETE