Sales ShoppingCartItem (table)

wikibot

TableSales.ShoppingCartItem
DescriptionContains online customer orders until the order is submitted or cancelled.

Columns

ColumnData TypeNullableDefaultDescription
ShoppingCartItemIDintnot null Primary key for ShoppingCartItem records.
ShoppingCartIDnvarchar(50)not null Shopping cart identification number.
Quantityintnot null((1))Product quantity ordered.
ProductIDintnot null Product ordered. Foreign key to Product.ProductID.
DateCreateddatetimenot null(getdate())Date the time the record was created.
ModifiedDatedatetimenot null(getdate())Date and time the record was last updated.

Primary Key

Primary KeyColumns
PK_ShoppingCartItem_ShoppingCartItemIDShoppingCartItemID

Indexes

IndexTypeColumns
IX_ShoppingCartItem_ShoppingCartID_ProductID ShoppingCartID, ProductID

Check Constraints

Check ConstraintExpressionDescription
CK_ShoppingCartItem_Quantity(Quantity>=(1))Check constraint Quantity >= (1)

Foreign Keys

RelationColumnReferenced Column
Production.ProductProductIDProductID

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaSales