SALESDEPOSITTEMPLATECURRENCY

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEADDED datetime Default = getdate()
DATECHANGED datetime Default = getdate()
TS timestamp
TSLONG bigint (Computed) yes CONVERT(bigint, TS)

Foreign Keys

Foreign Key Field Type Null Notes Description
SALESDEPOSITTEMPLATEID uniqueidentifier SALESDEPOSITTEMPLATE.ID
CURRENCYID uniqueidentifier CURRENCY.ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_SALESDEPOSITTEMPLATECURRENCY_DATEADDED DATEADDED yes
IX_SALESDEPOSITTEMPLATECURRENCY_DATECHANGED DATECHANGED
PK_SALESDEPOSITTEMPLATECURRENCY ID yes yes
UIX_SALESDEPOSITTEMPLATECURRENCY_SALESDEPOSITTEMPLATEID_CURRENCYID SALESDEPOSITTEMPLATEID, CURRENCYID yes

Triggers

Trigger Name Description
TR_SALESDEPOSITTEMPLATECURRENCY_AUDIT_UPDATE
TR_SALESDEPOSITTEMPLATECURRENCY_AUDIT_DELETE