AdventureWorks2019
Sales.ShoppingCartItem
//
Contains online customer orders until the order is submitted or cancelled.
Created: Modified:
Columns
-
//${escapify(column.description)}[int] IDENTITY (1,1) NOT NULL
-
//${escapify(column.description)}[nvarchar](50) NOT NULL
-
//${escapify(column.description)}[int] NOT NULL DEFAULT ((1))//CONSTRAINT: Check constraint [Quantity] >= (1)([Quantity]>=(1))
-
//${escapify(column.description)}[int] NOT NULL
-
//${escapify(column.description)}[datetime] NOT NULL DEFAULT (getdate())
-
//${escapify(column.description)}[datetime] NOT NULL DEFAULT (getdate())
Indexes
-
//Clustered index created by a primary key constraint.PK_ShoppingCartItem_ShoppingCartItemIDUNIQUE CLUSTEREDShoppingCartItemID
-
//Nonclustered index.IX_ShoppingCartItem_ShoppingCartID_ProductIDNONCLUSTEREDShoppingCartID , ProductID
Foreign Keys
-
//Foreign key constraint referencing Product.ProductID.FK_ShoppingCartItem_Product_ProductIDProduction.ProductProductID ⥱ ProductID
Sample Data
ShoppingCartItemID
ShoppingCartID
Quantity
ProductID
DateCreated
ModifiedDate
2
14951
3
862
4
20621
4
881
5
20621
7
874