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.
 INUSE bit   Default = 0 Indicates that this price is currently in use by the reservation

Foreign Key Field Type Null Notes Description
 RESERVATIONRATESCALEID uniqueidentifier   RESERVATIONRATESCALE.ID The reservation rate scale this rate scale 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_RESERVATIONRATESCALEPRICE_DATEADDED DATEADDED    
 IX_RESERVATIONRATESCALEPRICE_DATECHANGED DATECHANGED      
 PK_RESERVATIONRATESCALEPRICE ID  
 UIX_RESERVATIONRATESCALEPRICE_RESERVATIONRATESCALEID_GROUPMAXIMUM RESERVATIONRATESCALEID, GROUPMAXIMUM    
 UIX_RESERVATIONRATESCALEPRICE_RESERVATIONRATESCALEID_GROUPMINIMUM RESERVATIONRATESCALEID, GROUPMINIMUM    

Trigger Name Description
 TR_RESERVATIONRATESCALEPRICE_AUDIT_UPDATE
 TR_RESERVATIONRATESCALEPRICE_AUDIT_DELETE

Entity-Relationship diagram of this table