Difference between revisions of "Sales.SalesOrderHeaderSalesReason (table)"
Line 86: | Line 86: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to SalesOrderHeader.SalesOrderID.PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | + | | Primary key. Foreign key to SalesOrderHeader.SalesOrderID.<br />PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID |
|- valign="top" | |- valign="top" | ||
| SalesReasonID | | SalesReasonID | ||
Line 92: | Line 92: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to SalesReason.SalesReasonID.PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | + | | Primary key. Foreign key to SalesReason.SalesReasonID.<br />PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
Line 98: | Line 98: | ||
| not null | | not null | ||
| (GETDATE()) | | (GETDATE()) | ||
− | | Date and time the record was last updated. | + | | Date and time the record was last updated.<br /> |
|} | |} | ||
Revision as of 00:10, 27 November 2009
wikibot
Table | Sales.SalesOrderHeaderSalesReason |
Column | Data Type | Nullable | Default | PK | Index |
SalesOrderID | int | not null | PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | ||
SalesReasonID | int | not null | PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | ||
ModifiedDate | datetime | not null | (getdate()) |
Relation | Column | Referenced Column |
Sales.SalesOrderHeader | SalesOrderID | SalesOrderID |
Sales.SalesReason | SalesReasonID | SalesReasonID |
automatically generated
Table | Sales.SalesOrderHeaderSalesReason |
Description | Cross-reference table mapping sales orders to sales reason codes. |
Column | Data Type | Nullable | Default | Description / PK / Index |
SalesOrderID | int | not null | Primary key. Foreign key to SalesOrderHeader.SalesOrderID. PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | |
SalesReasonID | int | not null | Primary key. Foreign key to SalesReason.SalesReasonID. PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | |
ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
Relation | Column | Referenced Column |
Sales.SalesOrderHeader | SalesOrderID | SalesOrderID |
Sales.SalesReason | SalesReasonID | SalesReasonID |