Difference between revisions of "Purchasing.ProductVendor (table)"

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Purchasing.ProductVendor
 
| Purchasing.ProductVendor
 +
|- valign="top"
 +
| '''Description
 +
| Cross-reference table mapping vendors with the products they supply.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_ProductVendor_ProductID_VendorID
+
| Primary key. Foreign key to Product.ProductID.<br />PK_ProductVendor_ProductID_VendorID
|
+
|- valign="top"
|-
 
 
| VendorID
 
| VendorID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_ProductVendor_ProductID_VendorID
+
| Primary key. Foreign key to Vendor.VendorID.<br />PK_ProductVendor_ProductID_VendorIDIX_ProductVendor_VendorID
| IX_ProductVendor_VendorID
+
|- valign="top"
|-
 
 
| AverageLeadTime
 
| AverageLeadTime
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The average span of time (in days) between placing an order with the vendor and receiving the purchased product.<br />
|
+
|- valign="top"
|-
 
 
| StandardPrice
 
| StandardPrice
 
| money
 
| money
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The vendor's usual selling price.<br />
|
+
|- valign="top"
|-
 
 
| LastReceiptCost
 
| LastReceiptCost
 
| money
 
| money
 
| null
 
| null
 
|  
 
|  
|  
+
| The selling price when last purchased.<br />
|
+
|- valign="top"
|-
 
 
| LastReceiptDate
 
| LastReceiptDate
 
| datetime
 
| datetime
 
| null
 
| null
 
|  
 
|  
|  
+
| Date the product was last received by the vendor.<br />
|
+
|- valign="top"
|-
 
 
| MinOrderQty
 
| MinOrderQty
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The maximum quantity that should be ordered.<br />
|
+
|- valign="top"
|-
 
 
| MaxOrderQty
 
| MaxOrderQty
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The minimum quantity that should be ordered.<br />
|
+
|- valign="top"
|-
 
 
| OnOrderQty
 
| OnOrderQty
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
|  
+
| The quantity currently on order.<br />
|
+
|- valign="top"
|-
 
 
| UnitMeasureCode
 
| UnitMeasureCode
 
| nchar(3)
 
| nchar(3)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The product's unit of measure.<br />IX_ProductVendor_UnitMeasureCode
| IX_ProductVendor_UnitMeasureCode
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
  
Line 118: Line 109:
 
| VendorID
 
| VendorID
 
|}
 
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 22:55, 28 December 2009

wikibot

Table Purchasing.ProductVendor
Description Cross-reference table mapping vendors with the products they supply.


Column Data Type Nullable Default Description / PK / Index
ProductID int not null Primary key. Foreign key to Product.ProductID.
PK_ProductVendor_ProductID_VendorID
VendorID int not null Primary key. Foreign key to Vendor.VendorID.
PK_ProductVendor_ProductID_VendorIDIX_ProductVendor_VendorID
AverageLeadTime int not null The average span of time (in days) between placing an order with the vendor and receiving the purchased product.
StandardPrice money not null The vendor's usual selling price.
LastReceiptCost money null The selling price when last purchased.
LastReceiptDate datetime null Date the product was last received by the vendor.
MinOrderQty int not null The maximum quantity that should be ordered.
MaxOrderQty int not null The minimum quantity that should be ordered.
OnOrderQty int null The quantity currently on order.
UnitMeasureCode nchar(3) not null The product's unit of measure.
IX_ProductVendor_UnitMeasureCode
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ProductID ProductID
Production.UnitMeasure UnitMeasureCode UnitMeasureCode
Purchasing.Vendor VendorID VendorID


automatically generated

Table Purchasing.ProductVendor
Description Cross-reference table mapping vendors with the products they supply.


Column Data Type Nullable Default Description / PK / Index
ProductID int not null Primary key. Foreign key to Product.ProductID.
PK_ProductVendor_ProductID_VendorID
VendorID int not null Primary key. Foreign key to Vendor.VendorID.
PK_ProductVendor_ProductID_VendorIDIX_ProductVendor_VendorID
AverageLeadTime int not null The average span of time (in days) between placing an order with the vendor and receiving the purchased product.
StandardPrice money not null The vendor's usual selling price.
LastReceiptCost money null The selling price when last purchased.
LastReceiptDate datetime null Date the product was last received by the vendor.
MinOrderQty int not null The maximum quantity that should be ordered.
MaxOrderQty int not null The minimum quantity that should be ordered.
OnOrderQty int null The quantity currently on order.
UnitMeasureCode nchar(3) not null The product's unit of measure.
IX_ProductVendor_UnitMeasureCode
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ProductID ProductID
Production.UnitMeasure UnitMeasureCode UnitMeasureCode
Purchasing.Vendor VendorID VendorID


Dependency Type Object Type Referenced Object
Schema Schema Purchasing