RATESCALEPRICE (4.0SP20)

Flat rate price for a group of a specific size.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

RATESCALEID

uniqueidentifier

false

The rate scale this price applies to.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

AMOUNT

money

false

0

Flat rate price the group pays.

GROUPMINIMUM

smallint

false

((0))

Minimum number of people to qualify for this price.

GROUPMAXIMUM

smallint

false

((0))

Maximum number of people to qualify for this price; -1 if no limit.

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.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_RATESCALEPRICE_DATEADDED

DATEADDED

False

False

True

IX_RATESCALEPRICE_DATECHANGED

DATECHANGED

False

False

False

PK_RATESCALEPRICE

ID

True

True

False

UIX_RATESCALEPRICE_RATESCALEID_GROUPMAXIMUM

RATESCALEID

GROUPMAXIMUM

True

False

False

UIX_RATESCALEPRICE_RATESCALEID_GROUPMINIMUM

RATESCALEID

GROUPMINIMUM

True

False

False

Triggers
Trigger Name Description

TR_RATESCALEPRICE_AUDIT_UPDATE

TR_RATESCALEPRICE_AUDIT_DELETE