Difference between revisions of "Production.TransactionHistoryArchive (table)"

From dbscript Online Help
Jump to: navigation, search
Line 88: Line 88:
 
| '''Table
 
| '''Table
 
| Production.TransactionHistoryArchive
 
| Production.TransactionHistoryArchive
|-
+
|- valign="top"
  
 
| '''Description
 
| '''Description
Line 110: Line 110:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for TransactionHistoryArchive records.PK_TransactionHistoryArchive_TransactionID
+
| Primary key for TransactionHistoryArchive records.<br />PK_TransactionHistoryArchive_TransactionID
 
|- valign="top"
 
|- valign="top"
 
| ProductID
 
| ProductID
Line 116: Line 116:
 
| not null
 
| not null
 
|  
 
|  
| Product identification number. Foreign key to Product.ProductID.IX_TransactionHistoryArchive_ProductID
+
| Product identification number. Foreign key to Product.ProductID.<br />IX_TransactionHistoryArchive_ProductID
 
|- valign="top"
 
|- valign="top"
 
| ReferenceOrderID
 
| ReferenceOrderID
Line 122: Line 122:
 
| not null
 
| not null
 
|  
 
|  
| Purchase order, sales order, or work order identification number.IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
+
| Purchase order, sales order, or work order identification number.<br />IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
 
|- valign="top"
 
|- valign="top"
 
| ReferenceOrderLineID
 
| ReferenceOrderLineID
Line 128: Line 128:
 
| not null
 
| not null
 
| (0)
 
| (0)
| Line number associated with the purchase order, sales order, or work order.IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
+
| Line number associated with the purchase order, sales order, or work order.<br />IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
 
|- valign="top"
 
|- valign="top"
 
| TransactionDate
 
| TransactionDate
Line 134: Line 134:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time of the transaction.
+
| Date and time of the transaction.<br />
 
|- valign="top"
 
|- valign="top"
 
| TransactionType
 
| TransactionType
Line 140: Line 140:
 
| not null
 
| not null
 
|  
 
|  
| W = Work Order, S = Sales Order, P = Purchase Order
+
| W = Work Order, S = Sales Order, P = Purchase Order<br />
 
|- valign="top"
 
|- valign="top"
 
| Quantity
 
| Quantity
Line 146: Line 146:
 
| not null
 
| not null
 
|  
 
|  
| Product quantity.
+
| Product quantity.<br />
 
|- valign="top"
 
|- valign="top"
 
| ActualCost
 
| ActualCost
Line 152: Line 152:
 
| not null
 
| not null
 
|  
 
|  
| Product cost.
+
| Product cost.<br />
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 158: Line 158:
 
| 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:11, 27 November 2009

wikibot

Table Production.TransactionHistoryArchive


Column Data Type Nullable Default PK Index
TransactionID int not null PK_TransactionHistoryArchive_TransactionID
ProductID int not null IX_TransactionHistoryArchive_ProductID
ReferenceOrderID int not null IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
ReferenceOrderLineID int not null ((0)) IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
TransactionDate datetime not null (getdate())
TransactionType nchar(1) not null
Quantity int not null
ActualCost money not null
ModifiedDate datetime not null (getdate())

automatically generated

Table Production.TransactionHistoryArchive
Description Transactions for previous years.


Column Data Type Nullable Default Description / PK / Index
TransactionID int not null Primary key for TransactionHistoryArchive records.
PK_TransactionHistoryArchive_TransactionID
ProductID int not null Product identification number. Foreign key to Product.ProductID.
IX_TransactionHistoryArchive_ProductID
ReferenceOrderID int not null Purchase order, sales order, or work order identification number.
IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
ReferenceOrderLineID int not null (0) Line number associated with the purchase order, sales order, or work order.
IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
TransactionDate datetime not null (GETDATE()) Date and time of the transaction.
TransactionType nchar(1) not null W = Work Order, S = Sales Order, P = Purchase Order
Quantity int not null Product quantity.
ActualCost money not null Product cost.
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.