DELIVERYMETHODFEE

Links a delivery method to more than one fee

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
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
DELIVERYMETHODID uniqueidentifier DELIVERYMETHOD.ID The ID of the delivery method the fee is linked to.
FEEID uniqueidentifier FEE.ID The ID of the fee the delivery method is linked to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DELIVERYMETHODFEE_DATEADDED DATEADDED yes
IX_DELIVERYMETHODFEE_DATECHANGED DATECHANGED
PK_DELIVERYMETHODFEE ID yes yes
UIX_DELIVERYMETHODFEE_DELIVERYMETHODID_FEEID DELIVERYMETHODID, FEEID yes

Triggers

Trigger Name Description
TR_DELIVERYMETHODFEE_AUDIT_UPDATE
TR_DELIVERYMETHODFEE_AUDIT_DELETE