Primary Key Field Type
 ID uniqueidentifier

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) CONVERT(bigint, TS) Numeric representation of the timestamp.

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.

Index Name Field(s) Unique Primary Clustered
 IX_RATESCALEPRICE_DATEADDED DATEADDED    
 IX_RATESCALEPRICE_DATECHANGED DATECHANGED      
 PK_RATESCALEPRICE ID  
 UIX_RATESCALEPRICE_RATESCALEID_GROUPMAXIMUM RATESCALEID, GROUPMAXIMUM    
 UIX_RATESCALEPRICE_RATESCALEID_GROUPMINIMUM RATESCALEID, GROUPMINIMUM    

Trigger Name Description
 TR_RATESCALEPRICE_AUDIT_UPDATE
 TR_RATESCALEPRICE_AUDIT_DELETE

Entity-Relationship diagram of this table