OPPORTUNITYAMOUNTBRACKET (4.0SP20)

Contains threshholds and descriptions for each opportunity amount bracket.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

OPPORTUNITYBRACKETGROUPID

uniqueidentifier

true

FK to OPPORTUNITYAMOUNTBRACKETGROUP

BASECURRENCYID

uniqueidentifier

true

FK to CURRENCY

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

FK to CURRENCYEXCHANGERATE

Fields
Field Field Type Null Notes Description

NAME

nvarchar(100)

false

''

LOWERLIMIT

money

false

0

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ORGANIZATIONLOWERLIMIT

money

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_OPPORTUNITYAMOUNTBRACKET_DATEADDED

DATEADDED

False

False

True

IX_OPPORTUNITYAMOUNTBRACKET_DATECHANGED

DATECHANGED

False

False

False

IX_OPPORTUNITYAMOUNTBRACKET_LOWERLIMIT

LOWERLIMIT

False

False

False

PK_OPPORTUNITYAMOUNTBRACKET

ID

True

True

False

UIX_OPPORTUNITYAMOUNTBRACKET_NAME_OPPORTUNITYBRACKETGROUPID

NAME

OPPORTUNITYBRACKETGROUPID

True

False

False

Triggers
Trigger Name Description

TR_OPPORTUNITYAMOUNTBRACKET_INSERTUPDATE_CURRENCY

TR_OPPORTUNITYAMOUNTBRACKET_AUDIT_UPDATE

TR_OPPORTUNITYAMOUNTBRACKET_AUDIT_DELETE