Difference between revisions of "Sales.ShoppingCartItem (table)"
| Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| − | |- | + | |- valign="top" |
| '''Table | | '''Table | ||
| Sales.ShoppingCartItem | | Sales.ShoppingCartItem | ||
| Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Contains online customer orders until the order is submitted or cancelled. | | Contains online customer orders until the order is submitted or cancelled. | ||
| − | |||
|} | |} | ||
| − | |||
=== Columns === | === Columns === | ||
| Line 20: | Line 18: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
| − | + | ||
|- valign="top" | |- valign="top" | ||
| ShoppingCartItemID | | ShoppingCartItemID | ||
| Line 64: | Line 62: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
| − | |- | + | |- valign="top" |
| PK_ShoppingCartItem_ShoppingCartItemID | | PK_ShoppingCartItem_ShoppingCartItemID | ||
| ShoppingCartItemID | | ShoppingCartItemID | ||
| Line 75: | Line 73: | ||
| '''Type | | '''Type | ||
| '''Columns | | '''Columns | ||
| − | + | ||
| − | |- | + | |- valign="top" |
| IX_ShoppingCartItem_ShoppingCartID_ProductID | | IX_ShoppingCartItem_ShoppingCartID_ProductID | ||
| | | | ||
| Line 88: | Line 86: | ||
| '''Expression | | '''Expression | ||
| '''Description | | '''Description | ||
| − | + | ||
| − | |- | + | |- valign="top" |
| CK_ShoppingCartItem_Quantity | | CK_ShoppingCartItem_Quantity | ||
| ([Quantity]>=(1)) | | ([Quantity]>=(1)) | ||
| Line 101: | Line 99: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
| − | + | ||
| − | |- | + | |- valign="top" |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ProductID | | ProductID | ||
| Line 115: | Line 113: | ||
| '''Referenced Object | | '''Referenced Object | ||
| − | |- | + | |- valign="top" |
| Schema | | Schema | ||
| Schema | | Schema | ||
Latest revision as of 23:17, 23 June 2010
Contents
wikibot[edit]
| Table | Sales.ShoppingCartItem |
| Description | Contains online customer orders until the order is submitted or cancelled. |
Columns[edit]
| Column | Data Type | Nullable | Default | Description |
| ShoppingCartItemID | int | not null | Primary key for ShoppingCartItem records. | |
| ShoppingCartID | nvarchar(50) | not null | Shopping cart identification number. | |
| Quantity | int | not null | ((1)) | Product quantity ordered. |
| ProductID | int | not null | Product ordered. Foreign key to Product.ProductID. | |
| DateCreated | datetime | not null | (getdate()) | Date the time the record was created. |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key[edit]
| Primary Key | Columns |
| PK_ShoppingCartItem_ShoppingCartItemID | ShoppingCartItemID |
Indexes[edit]
| Index | Type | Columns |
| IX_ShoppingCartItem_ShoppingCartID_ProductID | ShoppingCartID, ProductID |
Check Constraints[edit]
| Check Constraint | Expression | Description |
| CK_ShoppingCartItem_Quantity | ([Quantity]>=(1)) | Check constraint [Quantity] >= (1) |
Foreign Keys[edit]
| Relation | Column | Referenced Column |
| Production.Product | ProductID | ProductID |
References[edit]
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Sales |
automatically generated[edit]
| Table | Sales.ShoppingCartItem |
| Description | Contains online customer orders until the order is submitted or cancelled. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| ShoppingCartItemID | int | not null | Primary key for ShoppingCartItem records. PK_ShoppingCartItem_ShoppingCartItemID | |
| ShoppingCartID | nvarchar(50) | not null | Shopping cart identification number. IX_ShoppingCartItem_ShoppingCartID_ProductID | |
| Quantity | int | not null | (1) | Product quantity ordered. |
| ProductID | int | not null | Product ordered. Foreign key to Product.ProductID. IX_ShoppingCartItem_ShoppingCartID_ProductID | |
| DateCreated | datetime | not null | (GETDATE()) | Date the time the record was created. |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| Production.Product | ProductID | ProductID |
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Sales |