ScrewTurn Wiki

Edit

wikibot

TablePurchasing.VendorContact
DescriptionCross-reference table mapping vendors and their employees.

Edit

Columns

ColumnData TypeNullableDefaultDescription
VendorIDintnot null Primary key.
ContactIDintnot null Contact (Vendor employee) identification number. Foreign key to Contact.ContactID.
ContactTypeIDintnot null Contact type such as sales manager, or sales agent.
ModifiedDatedatetimenot null(getdate())Date and time the record was last updated.

Edit

Primary Key

Primary KeyColumns
PK_VendorContact_VendorID_ContactIDVendorID, ContactID

Edit

Indexes

IndexTypeColumns
IX_VendorContact_ContactID ContactID
IX_VendorContact_ContactTypeID ContactTypeID

Edit

Foreign Keys

RelationColumnReferenced Column
Person.ContactContactIDContactID
Person.ContactTypeContactTypeIDContactTypeID
Purchasing.VendorVendorIDVendorID

Edit

References

Dependency TypeObject TypeReferenced Object
SchemaSchemaPurchasing

Edit

Dependencies

Reference TypeObject TypeReferencing Object
SelectViewPurchasing.vVendor
SelectSQL table-valued-functiondbo.ufnGetContactInformation

Edit

automatically generated

TablePurchasing.VendorContact
DescriptionCross-reference table mapping vendors and their employees.

ColumnData TypeNullableDefaultDescription / PK / Index
VendorIDintnot null Primary key.
PK_VendorContact_VendorID_ContactID
ContactIDintnot null Contact (Vendor employee) identification number. Foreign key to Contact.ContactID.
PK_VendorContact_VendorID_ContactIDIX_VendorContact_ContactID
ContactTypeIDintnot null Contact type such as sales manager, or sales agent.
IX_VendorContact_ContactTypeID
ModifiedDatedatetimenot null(GETDATE())Date and time the record was last updated.



RelationColumnReferenced Column
Person.ContactContactIDContactID
Person.ContactTypeContactTypeIDContactTypeID
Purchasing.VendorVendorIDVendorID

Dependency TypeObject TypeReferenced Object
SchemaSchemaPurchasing

Reference TypeObject TypeReferencing Object
SelectViewPurchasing.vVendor
SelectSQL table-valued-functiondbo.ufnGetContactInformation

ScrewTurn Wiki version 2.0.36. Some of the icons created by FamFamFam.