Contains online customer orders until the order is submitted or cancelled.
Creation Date | 27/10/2017 14:33 |
File Group | PRIMARY |
Text File Group | |
System Object | |
Published for Replication | |
Rows | 3 |
Data Space Used | 8.00 KB |
Index Space Used | 24.00 KB |
Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
---|---|---|---|---|---|---|---|
ShoppingCartItemID | Primary key for ShoppingCartItem records. | Integer | 4 | ||||
ShoppingCartID | Shopping cart identification number. | VarWChar | 50 | ||||
Quantity | Product quantity ordered. | Integer | 4 | ((1)) | |||
ProductID | Product ordered. Foreign key to Product.ProductID. | Integer | 4 | ||||
DateCreated | Date the time the record was created. | DBTimeStamp | 4 | (getdate()) | |||
ModifiedDate | Date and time the record was last updated. | DBTimeStamp | 4 | (getdate()) |
Index | Description | Primary | Unique |
---|---|---|---|
IX_ShoppingCartItem_ShoppingCartID_ProductID | Nonclustered index. | ||
PK_ShoppingCartItem_ShoppingCartItemID | Primary key (clustered) constraint |
Name | Description | Expression |
---|---|---|
CK_ShoppingCartItem_Quantity | Check constraint [Quantity] >= (1) | ([Quantity]>=(1)) |
Relationship | Description |
---|---|
FK_ShoppingCartItem_Product_ProductID | Foreign key constraint referencing Product.ProductID. |
Database Object | Object Type | Description | Dep Level | |
---|---|---|---|---|
dbo.Flag | User Defined Data Type | 2 | ||
dbo.Name | User Defined Data Type | 2 | ||
Production.Product | Table | Products sold or used in the manfacturing of sold products. | 1 | |
Production.ProductCategory | Table | High-level product categorization. | 3 | |
Production.ProductModel | Table | Product model classification. | 2 | |
Production.ProductSubcategory | Table | Product subcategories. See ProductCategory table. | 2 | |
Production.UnitMeasure | Table | Unit of measure lookup table. | 2 |
|