Sales.ShoppingCartItem Table
Information
| Name | ShoppingCartItem |
| Schema | Sales |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:55 |
Extended Properties
| Name | Type | Property Name | Value |
| ShoppingCartItem | TABLE | MS_Description | Contains online customer orders until the order is submitted or cancelled. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | ShoppingCartItemID | int |   | | | |   | |
| |   |   | ShoppingCartID | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | Quantity | int |   | | | ((1)) |   | |
| |   |   | ProductID | int |   | | Production.Product.ProductID | |   | |
| |   |   | DateCreated | datetime |   | | | (getdate()) |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Check Constraints
Foreign Key Constraints
SQL Script
CREATE TABLE [Sales].[ShoppingCartItem] (
[ShoppingCartItemID] int NOT NULL IDENTITY,
[ShoppingCartID] nvarchar(50) NOT NULL,
[Quantity] int NOT NULL DEFAULT ((1)),
[ProductID] int NOT NULL,
[DateCreated] datetime NOT NULL DEFAULT (getdate()),
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE INDEX [IX_ShoppingCartItem_ShoppingCartID_ProductID] on [Sales].[ShoppingCartItem]([ShoppingCartID], [ProductID]);