RATESCALEPRICE

Flat rate price for a group of a specific size.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0 Flat rate price the group pays.
GROUPMINIMUM smallint Default = ((0)) Minimum number of people to qualify for this price.
GROUPMAXIMUM smallint Default = ((0)) Maximum number of people to qualify for this price; -1 if no limit.
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
RATESCALEID uniqueidentifier RATESCALE.ID The rate scale this price applies to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_RATESCALEPRICE_DATEADDED DATEADDED yes
IX_RATESCALEPRICE_DATECHANGED DATECHANGED
PK_RATESCALEPRICE ID yes yes
UIX_RATESCALEPRICE_RATESCALEID_GROUPMAXIMUM RATESCALEID, GROUPMAXIMUM yes
UIX_RATESCALEPRICE_RATESCALEID_GROUPMINIMUM RATESCALEID, GROUPMINIMUM yes

Triggers

Trigger Name Description
TR_RATESCALEPRICE_AUDIT_UPDATE
TR_RATESCALEPRICE_AUDIT_DELETE