Difference between revisions of "Purchasing.VendorContact (table)"
| Line 75: | Line 75: | ||
| '''Table | | '''Table | ||
| Purchasing.VendorContact | | Purchasing.VendorContact | ||
| − | |- | + | |- valign="top" |
| '''Description | | '''Description | ||
| Line 97: | Line 97: | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key.PK_VendorContact_VendorID_ContactID | + | | Primary key.<br />PK_VendorContact_VendorID_ContactID |
|- valign="top" | |- valign="top" | ||
| ContactID | | ContactID | ||
| Line 103: | Line 103: | ||
| not null | | not null | ||
| | | | ||
| − | | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID.PK_VendorContact_VendorID_ContactIDIX_VendorContact_ContactID | + | | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID.<br />PK_VendorContact_VendorID_ContactIDIX_VendorContact_ContactID |
|- valign="top" | |- valign="top" | ||
| ContactTypeID | | ContactTypeID | ||
| Line 109: | Line 109: | ||
| not null | | not null | ||
| | | | ||
| − | | Contact type such as sales manager, or sales agent.IX_VendorContact_ContactTypeID | + | | Contact type such as sales manager, or sales agent.<br />IX_VendorContact_ContactTypeID |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
| Line 115: | Line 115: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
| − | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Revision as of 00:11, 27 November 2009
wikibot
| Table | Purchasing.VendorContact |
| Column | Data Type | Nullable | Default | PK | Index |
| VendorID | int | not null | PK_VendorContact_VendorID_ContactID | ||
| ContactID | int | not null | PK_VendorContact_VendorID_ContactID | IX_VendorContact_ContactID | |
| ContactTypeID | int | not null | IX_VendorContact_ContactTypeID | ||
| ModifiedDate | datetime | not null | (getdate()) |
| Relation | Column | Referenced Column |
| Person.Contact | ContactID | ContactID |
| Person.ContactType | ContactTypeID | ContactTypeID |
| Purchasing.Vendor | VendorID | VendorID |
automatically generated
| Table | Purchasing.VendorContact |
| Description | Cross-reference table mapping vendors and their employees. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| VendorID | int | not null | Primary key. PK_VendorContact_VendorID_ContactID | |
| ContactID | int | not null | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID. PK_VendorContact_VendorID_ContactIDIX_VendorContact_ContactID | |
| ContactTypeID | int | not null | Contact type such as sales manager, or sales agent. IX_VendorContact_ContactTypeID | |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| Person.Contact | ContactID | ContactID |
| Person.ContactType | ContactTypeID | ContactTypeID |
| Purchasing.Vendor | VendorID | VendorID |
| Referencing Object | Object Type | Reference Type |
| Purchasing.vVendor | View | Select |
| dbo.ufnGetContactInformation | SQL table-valued-function | Select |