Difference between revisions of "Sales.SalesOrderHeaderSalesReason (table)"
Line 5: | Line 5: | ||
| '''Table | | '''Table | ||
| Sales.SalesOrderHeaderSalesReason | | Sales.SalesOrderHeaderSalesReason | ||
+ | |- valign="top" | ||
+ | | '''Description | ||
+ | | Cross-reference table mapping sales orders to sales reason codes. | ||
|- | |- | ||
|} | |} | ||
Line 15: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''PK | + | | '''Description / PK / Index |
− | |||
− | |- | + | |- valign="top" |
| SalesOrderID | | SalesOrderID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | + | | Primary key. Foreign key to SalesOrderHeader.SalesOrderID.<br />PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID |
− | + | |- valign="top" | |
− | |- | ||
| SalesReasonID | | SalesReasonID | ||
| int | | int | ||
| not null | | not null | ||
| | | | ||
− | | PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | + | | Primary key. Foreign key to SalesReason.SalesReasonID.<br />PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID |
− | + | |- valign="top" | |
− | |- | ||
| ModifiedDate | | ModifiedDate | ||
| datetime | | datetime | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
− | | | + | | Date and time the record was last updated.<br /> |
− | |||
|} | |} | ||
Line 58: | Line 57: | ||
| SalesReasonID | | SalesReasonID | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
== automatically generated == | == automatically generated == | ||
Revision as of 22:55, 28 December 2009
wikibot
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 |
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 |
Dependency Type | Object Type | Referenced Object |
Schema | Schema | Sales |