Difference between revisions of "Sales.ShoppingCartItem (table)"
(6 intermediate revisions by the same user not shown) | |||
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 | ||
− | |- | + | |- valign="top" |
+ | | '''Description | ||
+ | | Contains online customer orders until the order is submitted or cancelled. | ||
|} | |} | ||
− | + | === Columns === | |
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 15: | Line 17: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''Description |
− | + | ||
− | + | |- valign="top" | |
− | |- | ||
| ShoppingCartItemID | | ShoppingCartItemID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Primary key for ShoppingCartItem records. |
− | + | |- valign="top" | |
− | |- | ||
| ShoppingCartID | | ShoppingCartID | ||
| nvarchar(50) | | nvarchar(50) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Shopping cart identification number. |
− | + | |- valign="top" | |
− | |- | ||
| Quantity | | Quantity | ||
| int | | int | ||
| not null | | not null | ||
| ((1)) | | ((1)) | ||
− | | | + | | Product quantity ordered. |
− | + | |- valign="top" | |
− | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | Product ordered. Foreign key to Product.ProductID. |
− | + | |- valign="top" | |
− | |- | ||
| DateCreated | | DateCreated | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date the time the record was created. |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
+ | | Date and time the record was last updated. | ||
+ | |} | ||
+ | |||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- valign="top" | ||
+ | | PK_ShoppingCartItem_ShoppingCartItemID | ||
+ | | ShoppingCartItemID | ||
+ | |} | ||
+ | |||
+ | === Indexes === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Index | ||
+ | | '''Type | ||
+ | | '''Columns | ||
+ | |||
+ | |- valign="top" | ||
+ | | IX_ShoppingCartItem_ShoppingCartID_ProductID | ||
| | | | ||
− | | | + | | ShoppingCartID, ProductID |
|} | |} | ||
+ | === Check Constraints === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Check Constraint | ||
+ | | '''Expression | ||
+ | | '''Description | ||
+ | |- valign="top" | ||
+ | | CK_ShoppingCartItem_Quantity | ||
+ | | ([Quantity]>=(1)) | ||
+ | | Check constraint [Quantity] >= (1) | ||
+ | |} | ||
+ | === Foreign Keys === | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
|- style="background:silver" | |- style="background:silver" | ||
Line 69: | Line 99: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- valign="top" |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
|} | |} | ||
+ | |||
+ | === References === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- valign="top" | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Line 81: | Line 127: | ||
| '''Table | | '''Table | ||
| Sales.ShoppingCartItem | | Sales.ShoppingCartItem | ||
− | |- | + | |- valign="top" |
− | |||
| '''Description | | '''Description | ||
| Contains online customer orders until the order is submitted or cancelled. | | Contains online customer orders until the order is submitted or cancelled. | ||
|- | |- | ||
− | |||
|} | |} | ||
Line 103: | Line 147: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for ShoppingCartItem records.PK_ShoppingCartItem_ShoppingCartItemID | + | | Primary key for ShoppingCartItem records.<br />PK_ShoppingCartItem_ShoppingCartItemID |
|- valign="top" | |- valign="top" | ||
| ShoppingCartID | | ShoppingCartID | ||
Line 109: | Line 153: | ||
| not null | | not null | ||
| | | | ||
− | | Shopping cart identification number.IX_ShoppingCartItem_ShoppingCartID_ProductID | + | | Shopping cart identification number.<br />IX_ShoppingCartItem_ShoppingCartID_ProductID |
|- valign="top" | |- valign="top" | ||
| Quantity | | Quantity | ||
Line 115: | Line 159: | ||
| not null | | not null | ||
| (1) | | (1) | ||
− | | Product quantity ordered. | + | | Product quantity ordered.<br /> |
|- valign="top" | |- valign="top" | ||
| ProductID | | ProductID | ||
Line 121: | Line 165: | ||
| not null | | not null | ||
| | | | ||
− | | Product ordered. Foreign key to Product.ProductID.IX_ShoppingCartItem_ShoppingCartID_ProductID | + | | Product ordered. Foreign key to Product.ProductID.<br />IX_ShoppingCartItem_ShoppingCartID_ProductID |
|- valign="top" | |- valign="top" | ||
| DateCreated | | DateCreated | ||
Line 127: | Line 171: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date the time the record was created. | + | | Date the time the record was created.<br /> |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 133: | Line 177: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Line 148: | Line 192: | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Dependency Type | ||
+ | | '''Object Type | ||
+ | | '''Referenced Object | ||
+ | |||
+ | |- | ||
+ | | Schema | ||
+ | | Schema | ||
+ | | [[Sales_(schema)|Sales]] | ||
+ | |||
|} | |} |
Latest revision as of 23:17, 23 June 2010
Contents
[hide]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 |