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

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| Production.TransactionHistoryArchive
 
| Production.TransactionHistoryArchive
 +
|- valign="top"
 +
| '''Description
 +
| Transactions for previous years.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| TransactionID
 
| TransactionID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_TransactionHistoryArchive_TransactionID
+
| Primary key for TransactionHistoryArchive records.<br />PK_TransactionHistoryArchive_TransactionID
|
+
|- valign="top"
|-
 
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Product identification number. Foreign key to Product.ProductID.<br />IX_TransactionHistoryArchive_ProductID
| IX_TransactionHistoryArchive_ProductID
+
|- valign="top"
|-
 
 
| ReferenceOrderID
 
| ReferenceOrderID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Purchase order, sales order, or work order identification number.<br />IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
| IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
+
|- valign="top"
|-
 
 
| ReferenceOrderLineID
 
| ReferenceOrderLineID
 
| int
 
| int
 
| not null
 
| not null
 
| ((0))
 
| ((0))
|  
+
| Line number associated with the purchase order, sales order, or work order.<br />IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
| IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID
+
|- valign="top"
|-
 
 
| TransactionDate
 
| TransactionDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time of the transaction.<br />
|
+
|- valign="top"
|-
 
 
| TransactionType
 
| TransactionType
 
| nchar(1)
 
| nchar(1)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| W = Work Order, S = Sales Order, P = Purchase Order<br />
|
+
|- valign="top"
|-
 
 
| Quantity
 
| Quantity
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Product quantity.<br />
|
+
|- valign="top"
|-
 
 
| ActualCost
 
| ActualCost
 
| money
 
| money
 
| not null
 
| not null
 
|  
 
|  
|  
+
| Product cost.<br />
|
+
|- valign="top"
|-
 
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| Date and time the record was last updated.<br />
|
 
 
|}
 
|}
 +
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 23:55, 28 December 2009

wikibot

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.



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.


Dependency Type Object Type Referenced Object
Schema Schema Production