Sales.ShoppingCartItem

Table: 'Sales.ShoppingCartItem'

6 fields. 144 bytes.

Contains online customer orders until the order is submitted or cancelled.

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
ShoppingCartItemIDint identity int Not nullPrimary key for ShoppingCartItem records. 
ShoppingCartIDnvarchar50  Not nullShopping cart identification number. 
Quantityint  (1)Not nullProduct quantity ordered.([Quantity]>=(1))
ProductIDint   Not nullProduct ordered. Foreign key to Product.ProductID. 
DateCreateddatetime  getdate()Not nullDate the time the record was created. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Sales.ShoppingCartItem'

Primary Key NameField Name
PK_ShoppingCartItem_ShoppingCartItemIDShoppingCartItemID

Foreign keys for table 'Sales.ShoppingCartItem', 1 item

ForeignPrimaryKey Name
ShoppingCartItem.ProductIDProduct.ProductIDFK_ShoppingCartItem_Product_ProductID

Indexes for table 'Sales.ShoppingCartItem', 2 items

Index NameDescriptionClusteredUniqueFields
PK_ShoppingCartItem_ShoppingCartItemIDClustered index created by a primary key constraint.YesYesShoppingCartItemID
IX_ShoppingCartItem_ShoppingCartID_ProductIDNonclustered index.NoNoShoppingCartID, ProductID

Triggers for table 'Sales.ShoppingCartItem', 1 item

NameDescriptionTypeEnabled
uShoppingCartItemAFTER UPDATE trigger setting the ModifiedDate column in the ShoppingCartItem table to the current date.after Update Yes

Dependencies for table 'Sales.ShoppingCartItem', 2 items

Object NameTypeField Name
Sales.CK_ShoppingCartItem_Quantitycheck cnsN/A
Sales.uShoppingCartItemtriggerN/A