Difference between revisions of "Purchasing.VendorAddress (table)"
| Line 69: | Line 69: | ||
| VendorID | | VendorID | ||
|} | |} | ||
| − | |||
== automatically generated == | == automatically generated == | ||
| Line 91: | Line 90: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description / PK / Index |
| − | |||
| − | |- | + | |- valign="top" |
| VendorID | | VendorID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key. Foreign key to Vendor.VendorID. | + | | Primary key. Foreign key to Vendor.VendorID.PK_VendorAddress_VendorID_AddressID |
| − | + | |- valign="top" | |
| − | |- | ||
| AddressID | | AddressID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key. Foreign key to Address.AddressID. | + | | Primary key. Foreign key to Address.AddressID.PK_VendorAddress_VendorID_AddressIDIX_VendorAddress_AddressID |
| − | + | |- valign="top" | |
| − | |- | ||
| AddressTypeID | | AddressTypeID | ||
| int | | int | ||
| Line 114: | Line 110: | ||
| | | | ||
| Address type. Foreign key to AddressType.AddressTypeID. | | Address type. Foreign key to AddressType.AddressTypeID. | ||
| − | + | |- valign="top" | |
| − | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| Line 121: | Line 116: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
| − | |||
|} | |} | ||
| Line 144: | Line 138: | ||
| VendorID | | VendorID | ||
| VendorID | | VendorID | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Referencing Object | ||
| + | | '''Object Type | ||
| + | | '''Reference Type | ||
| + | |||
| + | |- | ||
| + | | [[Purchasing.vVendor_(view)|Purchasing.vVendor]] | ||
| + | | View | ||
| + | | Select | ||
|} | |} | ||
Revision as of 23:58, 26 November 2009
wikibot
| Table | Purchasing.VendorAddress |
| Column | Data Type | Nullable | Default | PK | Index |
| VendorID | int | not null | PK_VendorAddress_VendorID_AddressID | ||
| AddressID | int | not null | PK_VendorAddress_VendorID_AddressID | IX_VendorAddress_AddressID | |
| AddressTypeID | int | not null | |||
| ModifiedDate | datetime | not null | (getdate()) |
| Relation | Column | Referenced Column |
| Person.Address | AddressID | AddressID |
| Person.AddressType | AddressTypeID | AddressTypeID |
| Purchasing.Vendor | VendorID | VendorID |
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 |
| Referencing Object | Object Type | Reference Type |
| Purchasing.vVendor | View | Select |