COMBINATIONPRICETYPE
Stores price types available for combination.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| SEQUENCE |
int |
|
Default = 0 |
The sequence in which prices are entered. |
| 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 Price Type belongs to. |
| PRICETYPECODEID |
uniqueidentifier |
yes |
PRICETYPECODE.ID
|
The ID of the Price Type available for the combo. |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_COMBINATIONPRICETYPE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_COMBINATIONPRICETYPE_DATECHANGED |
DATECHANGED |
|
|
|
| PK_COMBINATIONPRICETYPE |
ID |
yes |
yes |
|
| UIX_COMBINATIONPRICETYPE_COMBINATIONID_PRICETYPECODEID |
COMBINATIONID, PRICETYPECODEID |
yes |
|
|
Triggers
Referenced by