From dbscript Online Help
wikibot
Table
|
Sales.ShoppingCartItem
|
Description
|
Contains online customer orders until the order is submitted or cancelled.
|
Columns
Column
|
Data Type
|
Nullable
|
Default
|
Description
|
ShoppingCartItemID
|
int
|
not null
|
|
Primary key for ShoppingCartItem records.
|
ShoppingCartID
|
nvarchar(50)
|
not null
|
|
Shopping cart identification number.
|
Quantity
|
int
|
not null
|
((1))
|
Product quantity ordered.
|
ProductID
|
int
|
not null
|
|
Product ordered. Foreign key to Product.ProductID.
|
DateCreated
|
datetime
|
not null
|
(getdate())
|
Date the time the record was created.
|
ModifiedDate
|
datetime
|
not null
|
(getdate())
|
Date and time the record was last updated.
|
Primary Key
Primary Key
|
Columns
|
PK_ShoppingCartItem_ShoppingCartItemID
|
ShoppingCartItemID
|
Indexes
Index
|
Type
|
Columns
|
IX_ShoppingCartItem_ShoppingCartID_ProductID
|
|
ShoppingCartID, ProductID
|
Check Constraints
Check Constraint
|
Expression
|
Description
|
CK_ShoppingCartItem_Quantity
|
([Quantity]>=(1))
|
Check constraint [Quantity] >= (1)
|
Foreign Keys
References
Dependency Type
|
Object Type
|
Referenced Object
|
Schema
|
Schema
|
Sales
|
automatically generated
Table
|
Sales.ShoppingCartItem
|
Description
|
Contains online customer orders until the order is submitted or cancelled.
|
Column
|
Data Type
|
Nullable
|
Default
|
Description / PK / Index
|
ShoppingCartItemID
|
int
|
not null
|
|
Primary key for ShoppingCartItem records. PK_ShoppingCartItem_ShoppingCartItemID
|
ShoppingCartID
|
nvarchar(50)
|
not null
|
|
Shopping cart identification number. IX_ShoppingCartItem_ShoppingCartID_ProductID
|
Quantity
|
int
|
not null
|
(1)
|
Product quantity ordered.
|
ProductID
|
int
|
not null
|
|
Product ordered. Foreign key to Product.ProductID. IX_ShoppingCartItem_ShoppingCartID_ProductID
|
DateCreated
|
datetime
|
not null
|
(GETDATE())
|
Date the time the record was created.
|
ModifiedDate
|
datetime
|
not null
|
(GETDATE())
|
Date and time the record was last updated.
|
Dependency Type
|
Object Type
|
Referenced Object
|
Schema
|
Schema
|
Sales
|