Purchasing.ProductVendor Table
Information
| Name | ProductVendor |
| Schema | Purchasing |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:54 |
Extended Properties
| Name | Type | Property Name | Value |
| ProductVendor | TABLE | MS_Description | Cross-reference table mapping vendors with the products they supply. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | ProductID | int |   | | Production.Product.ProductID | |   | |
|   |   |   | VendorID | int |   | | Purchasing.Vendor.VendorID | |   | |
| |   |   | AverageLeadTime | int |   | | | |   | |
| |   |   | StandardPrice | money |   | | | |   | |
| |   |   | LastReceiptCost | money |   | | | |   | |
| |   |   | LastReceiptDate | datetime |   | | | |   | |
| |   |   | MinOrderQty | int |   | | | |   | |
| |   |   | MaxOrderQty | int |   | | | |   | |
| |   |   | OnOrderQty | int |   | | | |   | |
| |   |   | UnitMeasureCode | nchar(3) |   | SQL_Latin1_General_CP1_CI_AS | Production.UnitMeasure.UnitMeasureCode | |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
Check Constraints
Foreign Key Constraints
SQL Script
CREATE TABLE [Purchasing].[ProductVendor] (
[ProductID] int NOT NULL,
[VendorID] int NOT NULL,
[AverageLeadTime] int NOT NULL,
[StandardPrice] money NOT NULL,
[LastReceiptCost] money NULL,
[LastReceiptDate] datetime NULL,
[MinOrderQty] int NOT NULL,
[MaxOrderQty] int NOT NULL,
[OnOrderQty] int NULL,
[UnitMeasureCode] nchar(3) NOT NULL,
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE INDEX [IX_ProductVendor_UnitMeasureCode] on [Purchasing].[ProductVendor]([UnitMeasureCode]);
CREATE INDEX [IX_ProductVendor_VendorID] on [Purchasing].[ProductVendor]([VendorID]);