Editing Purchasing.ProductVendor (table)
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
− | |- | + | |- |
| '''Table | | '''Table | ||
| Purchasing.ProductVendor | | Purchasing.ProductVendor | ||
− | |- | + | |- |
− | |||
− | |||
|} | |} | ||
− | + | ||
{| 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 17: | Line 15: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | ''' | + | | '''PK |
− | + | | '''Index | |
− | |- | + | |
+ | |- | ||
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_ProductVendor_ProductID_VendorID |
− | |- | + | | |
+ | |- | ||
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | PK_ProductVendor_ProductID_VendorID |
− | |- | + | | IX_ProductVendor_VendorID |
+ | |- | ||
| AverageLeadTime | | AverageLeadTime | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| StandardPrice | | StandardPrice | ||
| money | | money | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| LastReceiptCost | | LastReceiptCost | ||
| money | | money | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| LastReceiptDate | | LastReceiptDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| MinOrderQty | | MinOrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| MaxOrderQty | | MaxOrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| OnOrderQty | | OnOrderQty | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | | + | | |
− | |- | + | | |
+ | |- | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| nchar(3) | | nchar(3) | ||
| not null | | not null | ||
| | | | ||
− | | | + | | |
− | |- | + | | IX_ProductVendor_UnitMeasureCode |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| | | | ||
− | |||
− | |||
− | |||
| | | | ||
− | |||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| 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 153: | Line 104: | ||
| '''Column | | '''Column | ||
| '''Referenced Column | | '''Referenced Column | ||
− | + | ||
− | |- | + | |- |
| [[Production.Product_(table)|Production.Product]] | | [[Production.Product_(table)|Production.Product]] | ||
| ProductID | | ProductID | ||
| ProductID | | ProductID | ||
− | |- | + | |- |
| [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | | [[Production.UnitMeasure_(table)|Production.UnitMeasure]] | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| UnitMeasureCode | | UnitMeasureCode | ||
− | |- | + | |- |
| [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | | [[Purchasing.Vendor_(table)|Purchasing.Vendor]] | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== automatically generated == | == automatically generated == | ||
Line 189: | Line 125: | ||
| '''Table | | '''Table | ||
| Purchasing.ProductVendor | | Purchasing.ProductVendor | ||
− | |- | + | |- |
+ | |||
| '''Description | | '''Description | ||
| Cross-reference table mapping vendors with the products they supply. | | Cross-reference table mapping vendors with the products they supply. | ||
|- | |- | ||
+ | |||
|} | |} | ||
Line 202: | Line 140: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
+ | | '''PK / Index | ||
− | |- | + | |- |
| ProductID | | ProductID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Product.ProductID. | + | | Primary key. Foreign key to Product.ProductID. |
− | |- | + | | PK_ProductVendor_ProductID_VendorID |
+ | |- | ||
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to Vendor.VendorID. | + | | Primary key. Foreign key to Vendor.VendorID. |
− | |- | + | | PK_ProductVendor_ProductID_VendorIDIX_ProductVendor_VendorID |
+ | |- | ||
| 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. | + | | The average span of time (in days) between placing an order with the vendor and receiving the purchased product. |
− | |- | + | | |
+ | |- | ||
| StandardPrice | | StandardPrice | ||
| money | | money | ||
| not null | | not null | ||
| | | | ||
− | | The vendor's usual selling price. | + | | The vendor's usual selling price. |
− | |- | + | | |
+ | |- | ||
| LastReceiptCost | | LastReceiptCost | ||
| money | | money | ||
| null | | null | ||
| | | | ||
− | | The selling price when last purchased. | + | | The selling price when last purchased. |
− | |- | + | | |
+ | |- | ||
| LastReceiptDate | | LastReceiptDate | ||
| datetime | | datetime | ||
| null | | null | ||
| | | | ||
− | | Date the product was last received by the vendor. | + | | Date the product was last received by the vendor. |
− | |- | + | | |
+ | |- | ||
| MinOrderQty | | MinOrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | The maximum quantity that should be ordered. | + | | The maximum quantity that should be ordered. |
− | |- | + | | |
+ | |- | ||
| MaxOrderQty | | MaxOrderQty | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | The minimum quantity that should be ordered. | + | | The minimum quantity that should be ordered. |
− | |- | + | | |
+ | |- | ||
| OnOrderQty | | OnOrderQty | ||
| int | | int | ||
| null | | null | ||
| | | | ||
− | | The quantity currently on order. | + | | The quantity currently on order. |
− | |- | + | | |
+ | |- | ||
| UnitMeasureCode | | UnitMeasureCode | ||
| nchar(3) | | nchar(3) | ||
| not null | | not null | ||
| | | | ||
− | | The product's unit of measure. | + | | The product's unit of measure. |
− | |- | + | | IX_ProductVendor_UnitMeasureCode |
+ | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
+ | | | ||
|} | |} | ||
Line 292: | Line 242: | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |