COMBINATIONAVAILABILITY
Stores availability for combination.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| ALLOWMONDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Mondays. |
| ALLOWTUESDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Tuesdays. |
| ALLOWWEDNESDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Wednesdays. |
| ALLOWTHURSDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Thursdays. |
| ALLOWFRIDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Fridays. |
| ALLOWSATURDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Saturdays. |
| ALLOWSUNDAY |
bit |
|
Default = 1 |
Indicates if the combination is available on Sundays. |
| ALLOWCOMBINATIONDATEFROM |
datetime |
yes |
|
Indicates the beginning date the combination is valid. |
| ALLOWCOMBINATIONDATETO |
datetime |
yes |
|
Indicates the end date the combination is valid. |
| ALLOWCOMBINATIONTIMEFROM |
UDT_HOURMINUTE |
|
Default = '' |
Indicates the beginning time of day the combination is valid. |
| ALLOWCOMBINATIONTIMETO |
UDT_HOURMINUTE |
|
Default = '' |
Indicates the end time of day the combination is valid. |
| SEQUENCE |
int |
|
Default = 0 |
The sequence for availability records. |
| 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. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| COMBINATIONID |
uniqueidentifier |
|
COMBINATION.ID
|
The ID of the Combination the Combination Availability belongs to. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_COMBINATIONAVAILABILITY_DATEADDED |
DATEADDED |
|
|
yes |
| IX_COMBINATIONAVAILABILITY_DATECHANGED |
DATECHANGED |
|
|
|
| PK_COMBINATIONAVAILABILITY |
ID |
yes |
yes |
|
Triggers
Referenced by