Difference between revisions of "Sales.ShoppingCartItem (table)"

From dbscript Online Help
Jump to: navigation, search
Line 75: Line 75:
 
| ProductID
 
| ProductID
 
|}
 
|}
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 97: Line 96:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''Description / PK / Index
| '''PK / Index
 
 
 
|-
+
|- valign="top"
 
| ShoppingCartItemID
 
| ShoppingCartItemID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for ShoppingCartItem records.
+
| Primary key for ShoppingCartItem records.PK_ShoppingCartItem_ShoppingCartItemID
| PK_ShoppingCartItem_ShoppingCartItemID
+
|- valign="top"
|-
 
 
| ShoppingCartID
 
| ShoppingCartID
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
| Shopping cart identification number.
+
| Shopping cart identification number.IX_ShoppingCartItem_ShoppingCartID_ProductID
| IX_ShoppingCartItem_ShoppingCartID_ProductID
+
|- valign="top"
|-
 
 
| Quantity
 
| Quantity
 
| int
 
| int
Line 120: Line 116:
 
| (1)
 
| (1)
 
| Product quantity ordered.
 
| Product quantity ordered.
|
+
|- valign="top"
|-
 
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Product ordered. Foreign key to Product.ProductID.
+
| Product ordered. Foreign key to Product.ProductID.IX_ShoppingCartItem_ShoppingCartID_ProductID
| IX_ShoppingCartItem_ShoppingCartID_ProductID
+
|- valign="top"
|-
 
 
| DateCreated
 
| DateCreated
 
| datetime
 
| datetime
Line 134: Line 128:
 
| (GETDATE())
 
| (GETDATE())
 
| Date the time the record was created.
 
| Date the time the record was created.
|
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
Line 141: Line 134:
 
| (GETDATE())
 
| (GETDATE())
 
| Date and time the record was last updated.
 
| Date and time the record was last updated.
|
 
 
|}
 
|}
  

Revision as of 00:58, 27 November 2009

wikibot

Table Sales.ShoppingCartItem


Column Data Type Nullable Default PK Index
ShoppingCartItemID int not null PK_ShoppingCartItem_ShoppingCartItemID
ShoppingCartID nvarchar(50) not null IX_ShoppingCartItem_ShoppingCartID_ProductID
Quantity int not null ((1))
ProductID int not null IX_ShoppingCartItem_ShoppingCartID_ProductID
DateCreated datetime not null (getdate())
ModifiedDate datetime not null (getdate())


Relation Column Referenced Column
Production.Product ProductID ProductID

automatically generated

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