RESERVATIONRATESCALEPRICE
Flat rate price for a group of a specific size on a reservation.
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. |
| INUSE |
bit |
|
Default = 0 |
Indicates that this price is currently in use by the reservation |
Foreign Keys
| 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. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_RESERVATIONRATESCALEPRICE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_RESERVATIONRATESCALEPRICE_DATECHANGED |
DATECHANGED |
|
|
|
| PK_RESERVATIONRATESCALEPRICE |
ID |
yes |
yes |
|
| UIX_RESERVATIONRATESCALEPRICE_RESERVATIONRATESCALEID_GROUPMAXIMUM |
RESERVATIONRATESCALEID, GROUPMAXIMUM |
yes |
|
|
| UIX_RESERVATIONRATESCALEPRICE_RESERVATIONRATESCALEID_GROUPMINIMUM |
RESERVATIONRATESCALEID, GROUPMINIMUM |
yes |
|
|
Triggers