RATESCALE
Rate scale for flat rate pricing in group sales
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
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 Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
GROUPSALESGROUPTYPECODEID |
uniqueidentifier |
yes |
GROUPSALESGROUPTYPECODE.ID
|
The group type associated with this rate scale. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_RATESCALE_DATEADDED |
DATEADDED |
|
|
yes |
IX_RATESCALE_DATECHANGED |
DATECHANGED |
|
|
|
PK_RATESCALE |
ID |
yes |
yes |
|
UC_RATESCALE_NAME |
NAME |
yes |
|
|
Triggers
Referenced by