OPPORTUNITYAMOUNTBRACKETGROUP

Represents groups of opportunity amount ranges.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = ''
DESCRIPTION nvarchar(255) Default = ''
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
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with the brackets in this group.

Indexes

Index Name Fields Unique Primary Clustered
IX_OPPORTUNITYAMOUNTBRACKETGROUP_BASECURRENCYID BASECURRENCYID
IX_OPPORTUNITYAMOUNTBRACKETGROUP_DATEADDED DATEADDED yes
IX_OPPORTUNITYAMOUNTBRACKETGROUP_DATECHANGED DATECHANGED
PK_OPPORTUNITYAMOUNTBRACKETGROUP ID yes yes
UC_OPPORTUNITYAMOUNTBRACKETGROUP_NAME NAME yes

Triggers

Trigger Name Description
TR_OPPORTUNITYAMOUNTBRACKETGROUP_AUDIT_DELETE
TR_OPPORTUNITYAMOUNTBRACKETGROUP_INSERTUPDATE_CURRENCY
TR_OPPORTUNITYAMOUNTBRACKETGROUP_AUDIT_UPDATE

Referenced by

Referenced by Field
OPPORTUNITYAMOUNTBRACKET OPPORTUNITYBRACKETGROUPID
OPPORTUNITYAMOUNTBRACKETSITES OPPORTUNITYAMOUNTBRACKETGROUPID