| Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
|---|---|---|---|---|---|---|---|
| ShoppingCartItemID | int identity | int | Not null | Primary key for ShoppingCartItem records. | |||
| ShoppingCartID | nvarchar | 50 | Not null | Shopping cart identification number. | |||
| Quantity | int | (1) | Not null | Product quantity ordered. | ([Quantity]>=(1)) | ||
| ProductID | int | Not null | Product ordered. Foreign key to Product.ProductID. | ||||
| DateCreated | datetime | getdate() | Not null | Date the time the record was created. | |||
| ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
| Primary Key Name | Field Name |
|---|---|
| PK_ShoppingCartItem_ShoppingCartItemID | ShoppingCartItemID |
| Foreign | Primary | Key Name |
|---|---|---|
| ShoppingCartItem.ProductID | Product.ProductID | FK_ShoppingCartItem_Product_ProductID |
| Index Name | Description | Clustered | Unique | Fields |
|---|---|---|---|---|
| PK_ShoppingCartItem_ShoppingCartItemID | Clustered index created by a primary key constraint. | Yes | Yes | ShoppingCartItemID |
| IX_ShoppingCartItem_ShoppingCartID_ProductID | Nonclustered index. | No | No | ShoppingCartID, ProductID |
| Name | Description | Type | Enabled |
|---|---|---|---|
| uShoppingCartItem | AFTER UPDATE trigger setting the ModifiedDate column in the ShoppingCartItem table to the current date. | after Update | Yes |
| Object Name | Type | Field Name |
|---|---|---|
| Sales.CK_ShoppingCartItem_Quantity | check cns | N/A |
| Sales.uShoppingCartItem | trigger | N/A |