Purchasing.ProductVendor

Table: 'Purchasing.ProductVendor'

11 fields. 104 bytes.

Cross-reference table mapping vendors with the products they supply.

Field NameData TypeSizeOriginal TypeDefaultNullableDescriptionCheck
ProductIDint   Not nullPrimary key. Foreign key to Product.ProductID. 
VendorIDint   Not nullPrimary key. Foreign key to Vendor.VendorID. 
AverageLeadTimeint   Not nullThe average span of time (in days) between placing an order with the vendor and receiving the purchased product.([AverageLeadTime]>=(1))
StandardPricemoney19,4decimal(19,4) Not nullThe vendor's usual selling price.([StandardPrice]>(0.00))
LastReceiptCostmoney19,4decimal(19,4) NullThe selling price when last purchased.([LastReceiptCost]>(0.00))
LastReceiptDatedatetime   NullDate the product was last received by the vendor. 
MinOrderQtyint   Not nullThe maximum quantity that should be ordered.([MinOrderQty]>=(1))
MaxOrderQtyint   Not nullThe minimum quantity that should be ordered.([MaxOrderQty]>=(1))
OnOrderQtyint   NullThe quantity currently on order.([OnOrderQty]>=(0))
UnitMeasureCodenchar3  Not nullThe product's unit of measure. 
ModifiedDatedatetime  getdate()Not nullDate and time the record was last updated. 

Extended Properties

The object has no extended properties.

Primary key for table 'Purchasing.ProductVendor'

Primary Key NameField Names
PK_ProductVendor_ProductID_VendorIDProductID, VendorID

Foreign keys for table 'Purchasing.ProductVendor', 3 items

ForeignPrimaryKey Name
ProductVendor.ProductIDProduct.ProductIDFK_ProductVendor_Product_ProductID
ProductVendor.UnitMeasureCodeUnitMeasure.UnitMeasureCodeFK_ProductVendor_UnitMeasure_UnitMeasureCode
ProductVendor.VendorIDVendor.VendorIDFK_ProductVendor_Vendor_VendorID

Indexes for table 'Purchasing.ProductVendor', 3 items

Index NameDescriptionClusteredUniqueFields
PK_ProductVendor_ProductID_VendorIDClustered index created by a primary key constraint.YesYesProductID, VendorID
IX_ProductVendor_UnitMeasureCodeNonclustered index.NoNoUnitMeasureCode
IX_ProductVendor_VendorIDNonclustered index.NoNoVendorID

Triggers for table 'Purchasing.ProductVendor', 1 item

NameDescriptionTypeEnabled
uProductVendorAFTER UPDATE trigger setting the ModifiedDate column in the ProductVendor table to the current date.after Update Yes

Dependencies for table 'Purchasing.ProductVendor', 7 items

Object NameTypeField Name
Purchasing.CK_ProductVendor_AverageLeadTimecheck cnsN/A
Purchasing.CK_ProductVendor_LastReceiptCostcheck cnsN/A
Purchasing.CK_ProductVendor_MaxOrderQtycheck cnsN/A
Purchasing.CK_ProductVendor_MinOrderQtycheck cnsN/A
Purchasing.CK_ProductVendor_OnOrderQtycheck cnsN/A
Purchasing.CK_ProductVendor_StandardPricecheck cnsN/A
Purchasing.uProductVendortriggerN/A