BBPAYENVIRONMENTTEMPLATE

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
ENVIRONMENTID uniqueidentifier yes CRMBBENVIRONMENT.ID
TEMPLATEID uniqueidentifier yes CRMBBPAYTEMPLATE.ID
ADDEDBYID uniqueidentifier CHANGEAGENT.ID
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_BBPAYENVIRONMENTTEMPLATE_DATEADDED DATEADDED yes
IX_BBPAYENVIRONMENTTEMPLATE_DATECHANGED DATECHANGED
IX_BBPAYENVIRONMENTTEMPLATE_ENVIRONMENTID_TEMPLATEID ENVIRONMENTID, TEMPLATEID
PK_BBPAYENVIRONMENTTEMPLATE ID yes yes

Triggers

Trigger Name Description
TR_BBPAYENVIRONMENTTEMPLATE_AUDIT_UPDATE
TR_BBPAYENVIRONMENTTEMPLATE_AUDIT_DELETE