CRMBBPAYTEMPLATE

Defines BBPay Templates for BBNC.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
HTMLSOURCE nvarchar(max) Default = '' The html source of the BBPay Template
CSSSOURCE nvarchar(max) Default = '' The css source of the BBPay Template
IMAGEPLACEHOLDERS xml XML to represent the BBPay Template's collection of image IDs and the corresponding 64bit strings
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
CLIENTSITESID int yes ClientSites.ID FK to CLIENTSITES
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
SITECONTENTID int yes SiteContent.ID
SITEPAGEID int yes SitePages.ID
DELIVERYCHANNELID uniqueidentifier yes CMSDELIVERYCHANNEL.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_CRMBBPAYTEMPLATE_CLIENTSITESID CLIENTSITESID
IX_CRMBBPAYTEMPLATE_DATEADDED DATEADDED yes
IX_CRMBBPAYTEMPLATE_DATECHANGED DATECHANGED
IX_CRMBBPAYTEMPLATE_SITECONTENTID_SITEPAGEID_DELIVERYCHANNELID SITECONTENTID, SITEPAGEID, DELIVERYCHANNELID
PK_CRMBBPAYTEMPLATE ID yes yes

Triggers

Trigger Name Description
TR_CRMBBPAYTEMPLATE_AUDIT_UPDATE
TR_CRMBBPAYTEMPLATE_AUDIT_DELETE

Referenced by

Referenced by Field
BBPAYENVIRONMENTTEMPLATE TEMPLATEID