Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' Name of the rate scale.
 DESCRIPTION nvarchar(255)   Default = '' Description of the rate scale.
 ISDEFAULT bit   Default = 0 Indicates whether the rate scale is the default rate scale used.
 INCLUDEALLPROGRAMS bit   Default = 1 Indicates whether the rate scale includes all programs.
 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.
 ISACTIVE bit   Default = 1 Indicates whether a rate scale is active or inactive.
 INCLUDEALLFEES bit   Default = 1 Indicates whether the rate scale includes all fees.
 INCLUDEALLRESOURCES bit   Default = 1 Indicates whether the rate scale includes all supplies/equipment resources.
 INCLUDEALLSTAFFRESOURCES bit   Default = 1 Indicates whether the rate scale includes all staffing resources.
 USEPERTICKETAFTERMAX bit   Default = 0 Indicates whether the rate scale should revert to per-ticket pricing after the maximum is reached.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 GROUPSALESGROUPTYPECODEID uniqueidentifier GROUPSALESGROUPTYPECODE.ID The group type associated with this rate scale.

Index Name Field(s) Unique Primary Clustered
 IX_RATESCALE_DATEADDED DATEADDED    
 IX_RATESCALE_DATECHANGED DATECHANGED      
 PK_RATESCALE ID  
 UC_RATESCALE_NAME NAME    

Trigger Name Description
 TR_RATESCALE_AUDIT_UPDATE
 TR_RATESCALE_AUDIT_DELETE

Referenced by Field
 PROGRAM DEFAULTRATESCALEID
 RATESCALEAPPLICATION RATESCALEID
 RATESCALEFEE RATESCALEID
 RATESCALEPRICE RATESCALEID
 RATESCALEPROGRAM RATESCALEID
 RATESCALERESOURCE RATESCALEID
 RATESCALESTAFFRESOURCE RATESCALEID
 RESERVATIONRATESCALE RATESCALEID

Entity-Relationship diagram of this table