Difference between revisions of "Purchasing.VendorContact (table)"
| Line 12: | Line 12: | ||
| + | === Columns === | ||
{| 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 18: | Line 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
| Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key. | + | | Primary key. |
|- valign="top" | |- valign="top" | ||
| ContactID | | ContactID | ||
| Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
| − | | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID. | + | | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID. |
|- valign="top" | |- valign="top" | ||
| ContactTypeID | | ContactTypeID | ||
| Line 37: | Line 38: | ||
| not null | | not null | ||
| | | | ||
| − | | Contact type such as sales manager, or sales agent. | + | | Contact type such as sales manager, or sales agent. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
| Line 43: | Line 44: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
| + | === Primary Key === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Primary Key | ||
| + | | '''Columns | ||
| + | |- | ||
| + | | PK_VendorContact_VendorID_ContactID | ||
| + | | VendorID, ContactID | ||
| + | |} | ||
| + | === Indexes === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Index | ||
| + | | '''Type | ||
| + | | '''Columns | ||
| + | |||
| + | |- | ||
| + | | IX_VendorContact_ContactID | ||
| + | | | ||
| + | | ContactID | ||
| + | |- | ||
| + | | IX_VendorContact_ContactTypeID | ||
| + | | | ||
| + | | ContactTypeID | ||
| + | |} | ||
| + | === Foreign Keys === | ||
{| 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 68: | Line 95: | ||
|} | |} | ||
| + | === References === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Dependency Type | ||
| + | | '''Object Type | ||
| + | | '''Referenced Object | ||
| + | |- | ||
| + | | Schema | ||
| + | | Schema | ||
| + | | [[Purchasing_(schema)|Purchasing]] | ||
| + | |||
| + | |} | ||
| + | |||
| + | === Dependencies === | ||
{| 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 86: | Line 127: | ||
|} | |} | ||
| − | |||
Revision as of 23:05, 2 February 2010
Contents
wikibot
| Table | Purchasing.VendorContact |
| Description | Cross-reference table mapping vendors and their employees. |
Columns
| Column | Data Type | Nullable | Default | Description |
| VendorID | int | not null | Primary key. | |
| ContactID | int | not null | Contact (Vendor employee) identification number. Foreign key to Contact.ContactID. | |
| ContactTypeID | int | not null | Contact type such as sales manager, or sales agent. | |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key
| Primary Key | Columns |
| PK_VendorContact_VendorID_ContactID | VendorID, ContactID |
Indexes
| Index | Type | Columns |
| IX_VendorContact_ContactID | ContactID | |
| IX_VendorContact_ContactTypeID | ContactTypeID |
Foreign Keys
| Relation | Column | Referenced Column |
| Person.Contact | ContactID | ContactID |
| Person.ContactType | ContactTypeID | ContactTypeID |
| Purchasing.Vendor | VendorID | VendorID |
References
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Purchasing |
Dependencies
| Reference Type | Object Type | Referencing Object |
| Select | View | Purchasing.vVendor |
| Select | SQL table-valued-function | dbo.ufnGetContactInformation |
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 |
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Purchasing |
| Reference Type | Object Type | Referencing Object |
| Select | View | Purchasing.vVendor |
| Select | SQL table-valued-function | dbo.ufnGetContactInformation |