FEETAX

Links a fee to more than one tax.

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
FEEID uniqueidentifier FEE.ID The ID of the fee the tax is linked to.
TAXID uniqueidentifier TAX.ID The ID of the tax the fee 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_FEETAX_DATEADDED DATEADDED yes
IX_FEETAX_DATECHANGED DATECHANGED
PK_FEETAX ID yes yes
UIX_FEETAX_FEEID_TAXID FEEID, TAXID yes

Triggers

Trigger Name Description
TR_FEETAX_AUDIT_UPDATE
TR_FEETAX_AUDIT_DELETE