Difference between revisions of "Sales.SalesOrderHeaderSalesReason (table)"
Line 58: | Line 58: | ||
| SalesReasonID | | SalesReasonID | ||
|} | |} | ||
− | |||
== automatically generated == | == automatically generated == | ||
Line 80: | Line 79: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| SalesOrderID | | SalesOrderID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to SalesOrderHeader.SalesOrderID. | + | | Primary key. Foreign key to SalesOrderHeader.SalesOrderID.PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID |
− | + | |- valign="top" | |
− | |- | ||
| SalesReasonID | | SalesReasonID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | Primary key. Foreign key to SalesReason.SalesReasonID. | + | | Primary key. Foreign key to SalesReason.SalesReasonID.PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
Line 103: | Line 99: | ||
| (GETDATE()) | | (GETDATE()) | ||
| Date and time the record was last updated. | | Date and time the record was last updated. | ||
− | |||
|} | |} | ||
Revision as of 23:58, 26 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 |