Difference between revisions of "Purchasing.VendorAddress (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. Foreign key to Vendor.VendorID. | + | | Primary key. Foreign key to Vendor.VendorID. |
|- valign="top" | |- valign="top" | ||
| AddressID | | AddressID | ||
| Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key. Foreign key to Address.AddressID. | + | | Primary key. Foreign key to Address.AddressID. |
|- valign="top" | |- valign="top" | ||
| AddressTypeID | | AddressTypeID | ||
| Line 37: | Line 38: | ||
| not null | | not null | ||
| | | | ||
| − | | Address type. Foreign key to AddressType.AddressTypeID. | + | | Address type. Foreign key to AddressType.AddressTypeID. |
|- 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_VendorAddress_VendorID_AddressID | ||
| + | | VendorID, AddressID | ||
| + | |} | ||
| + | === Indexes === | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Index | ||
| + | | '''Type | ||
| + | | '''Columns | ||
| + | |||
| + | |- | ||
| + | | IX_VendorAddress_AddressID | ||
| + | | | ||
| + | | AddressID | ||
| + | |} | ||
| + | === 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 91: | ||
|} | |} | ||
| + | === 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 81: | Line 118: | ||
|} | |} | ||
| − | |||
Revision as of 23:05, 2 February 2010
Contents
wikibot
| Table | Purchasing.VendorAddress |
| Description | Cross-reference mapping vendors and addresses. |
Columns
| Column | Data Type | Nullable | Default | Description |
| VendorID | int | not null | Primary key. Foreign key to Vendor.VendorID. | |
| AddressID | int | not null | Primary key. Foreign key to Address.AddressID. | |
| AddressTypeID | int | not null | Address type. Foreign key to AddressType.AddressTypeID. | |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
Primary Key
| Primary Key | Columns |
| PK_VendorAddress_VendorID_AddressID | VendorID, AddressID |
Indexes
| Index | Type | Columns |
| IX_VendorAddress_AddressID | AddressID |
Foreign Keys
| Relation | Column | Referenced Column |
| Person.Address | AddressID | AddressID |
| Person.AddressType | AddressTypeID | AddressTypeID |
| 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 |
automatically generated
| Table | Purchasing.VendorAddress |
| Description | Cross-reference mapping vendors and addresses. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| VendorID | int | not null | Primary key. Foreign key to Vendor.VendorID. PK_VendorAddress_VendorID_AddressID | |
| AddressID | int | not null | Primary key. Foreign key to Address.AddressID. PK_VendorAddress_VendorID_AddressIDIX_VendorAddress_AddressID | |
| AddressTypeID | int | not null | Address type. Foreign key to AddressType.AddressTypeID. | |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Relation | Column | Referenced Column |
| Person.Address | AddressID | AddressID |
| Person.AddressType | AddressTypeID | AddressTypeID |
| Purchasing.Vendor | VendorID | VendorID |
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Purchasing |
| Reference Type | Object Type | Referencing Object |
| Select | View | Purchasing.vVendor |