Difference between revisions of "Sales.StoreContact (table)"
(New page: == wikibot == {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" |- | '''Table | Sales.StoreContact |- |} {| border="1" cellpadding="5" cellspacing="0" style...) |
|||
Line 52: | Line 52: | ||
| (getdate()) | | (getdate()) | ||
| | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Relation | ||
+ | | '''Column | ||
+ | | '''Referenced Column | ||
+ | |||
+ | |- | ||
+ | | [[Person.Contact_(table)|Person.Contact]] | ||
+ | | ContactID | ||
+ | | ContactID | ||
+ | |- | ||
+ | | [[Person.ContactType_(table)|Person.ContactType]] | ||
+ | | ContactTypeID | ||
+ | | ContactTypeID | ||
+ | |- | ||
+ | | [[Sales.Store_(table)|Sales.Store]] | ||
+ | | CustomerID | ||
+ | | CustomerID | ||
+ | |} | ||
+ | |||
+ | == automatically generated == | ||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- | ||
+ | | '''Table | ||
+ | | Sales.StoreContact | ||
+ | |- | ||
+ | |||
+ | | '''Description | ||
+ | | Cross-reference table mapping stores and their employees. | ||
+ | |- | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Column | ||
+ | | '''Data Type | ||
+ | | '''Nullable | ||
+ | | '''Default | ||
+ | | '''Description | ||
+ | | '''PK / Index | ||
+ | |||
+ | |- | ||
+ | | CustomerID | ||
+ | | int | ||
+ | | not null | ||
+ | | | ||
+ | | Store identification number. Foreign key to Customer.CustomerID. | ||
+ | | PK_StoreContact_CustomerID_ContactID | ||
+ | |- | ||
+ | | ContactID | ||
+ | | int | ||
+ | | not null | ||
+ | | | ||
+ | | Contact (store employee) identification number. Foreign key to Contact.ContactID. | ||
+ | | PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID | ||
+ | |- | ||
+ | | ContactTypeID | ||
+ | | int | ||
+ | | not null | ||
+ | | | ||
+ | | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID. | ||
+ | | IX_StoreContact_ContactTypeID | ||
+ | |- | ||
+ | | rowguid | ||
+ | | uniqueidentifier | ||
+ | | not null | ||
+ | | (NEWID()) | ||
+ | | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | ||
+ | | AK_StoreContact_rowguid | ||
+ | |- | ||
+ | | ModifiedDate | ||
+ | | datetime | ||
+ | | not null | ||
+ | | (GETDATE()) | ||
+ | | Date and time the record was last updated. | ||
| | | | ||
|} | |} |
Revision as of 23:27, 26 November 2009
wikibot
Table | Sales.StoreContact |
Column | Data Type | Nullable | Default | PK | Index |
CustomerID | int | not null | PK_StoreContact_CustomerID_ContactID | ||
ContactID | int | not null | PK_StoreContact_CustomerID_ContactID | IX_StoreContact_ContactID | |
ContactTypeID | int | not null | IX_StoreContact_ContactTypeID | ||
rowguid | uniqueidentifier | not null | (newid()) | AK_StoreContact_rowguid | |
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Person.Contact | ContactID | ContactID |
Person.ContactType | ContactTypeID | ContactTypeID |
Sales.Store | CustomerID | CustomerID |
automatically generated
Table | Sales.StoreContact |
Description | Cross-reference table mapping stores and their employees. |
Column | Data Type | Nullable | Default | Description | PK / Index |
CustomerID | int | not null | Store identification number. Foreign key to Customer.CustomerID. | PK_StoreContact_CustomerID_ContactID | |
ContactID | int | not null | Contact (store employee) identification number. Foreign key to Contact.ContactID. | PK_StoreContact_CustomerID_ContactIDIX_StoreContact_ContactID | |
ContactTypeID | int | not null | Contact type such as owner or purchasing agent. Foreign key to ContactType.ContactTypeID. | IX_StoreContact_ContactTypeID | |
rowguid | uniqueidentifier | not null | (NEWID()) | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | AK_StoreContact_rowguid |
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 |
Sales.Store | CustomerID | CustomerID |