SALESORDERITEMMEMBERSHIPADDON
Stores membership add-on information for sales orders.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
ADDONTYPECODE |
tinyint |
|
Default = 0 |
Specifies the type of add-ons: additional member or guest. |
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. |
ADDONTYPE |
nvarchar(17) (Computed) |
yes |
CASE [ADDONTYPECODE] WHEN 0 THEN N'Benefit' WHEN 1 THEN N'Additional member' END |
|
Foreign Keys
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SALESORDERITEMMEMBERSHIPADDON_DATEADDED |
DATEADDED |
|
|
yes |
IX_SALESORDERITEMMEMBERSHIPADDON_DATECHANGED |
DATECHANGED |
|
|
|
IX_SALESORDERITEMMEMBERSHIPADDON_MEMBERSHIPID |
MEMBERSHIPID |
|
|
|
IX_SALESORDERITEMMEMBERSHIPADDON_SALESORDERITEMMEMBERSHIPID |
SALESORDERITEMMEMBERSHIPID |
|
|
|
PK_SALESORDERITEMMEMBERSHIPADDON |
ID |
yes |
yes |
|
Triggers