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

From dbscript Online Help
Jump to: navigation, search
Line 140: Line 140:
 
| '''Table
 
| '''Table
 
| Production.WorkOrder
 
| Production.WorkOrder
|-
+
|- valign="top"
  
 
| '''Description
 
| '''Description
Line 162: Line 162:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for WorkOrder records.PK_WorkOrder_WorkOrderID
+
| Primary key for WorkOrder records.<br />PK_WorkOrder_WorkOrderID
 
|- valign="top"
 
|- valign="top"
 
| ProductID
 
| ProductID
Line 168: Line 168:
 
| not null
 
| not null
 
|  
 
|  
| Product identification number. Foreign key to Product.ProductID.IX_WorkOrder_ProductID
+
| Product identification number. Foreign key to Product.ProductID.<br />IX_WorkOrder_ProductID
 
|- valign="top"
 
|- valign="top"
 
| OrderQty
 
| OrderQty
Line 174: Line 174:
 
| not null
 
| not null
 
|  
 
|  
| Product quantity to build.
+
| Product quantity to build.<br />
 
|- valign="top"
 
|- valign="top"
 
| StockedQty
 
| StockedQty
Line 180: Line 180:
 
|  
 
|  
 
|  
 
|  
| Quantity built and put in inventory.
+
| Quantity built and put in inventory.<br />
 
|- valign="top"
 
|- valign="top"
 
| ScrappedQty
 
| ScrappedQty
Line 186: Line 186:
 
| not null
 
| not null
 
|  
 
|  
| Quantity that failed inspection.
+
| Quantity that failed inspection.<br />
 
|- valign="top"
 
|- valign="top"
 
| StartDate
 
| StartDate
Line 192: Line 192:
 
| not null
 
| not null
 
|  
 
|  
| Work order start date.
+
| Work order start date.<br />
 
|- valign="top"
 
|- valign="top"
 
| EndDate
 
| EndDate
Line 198: Line 198:
 
| null
 
| null
 
|  
 
|  
| Work order end date.
+
| Work order end date.<br />
 
|- valign="top"
 
|- valign="top"
 
| DueDate
 
| DueDate
Line 204: Line 204:
 
| not null
 
| not null
 
|  
 
|  
| Work order due date.
+
| Work order due date.<br />
 
|- valign="top"
 
|- valign="top"
 
| ScrapReasonID
 
| ScrapReasonID
Line 210: Line 210:
 
| null
 
| null
 
|  
 
|  
| Reason for inspection failure.IX_WorkOrder_ScrapReasonID
+
| Reason for inspection failure.<br />IX_WorkOrder_ScrapReasonID
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 216: Line 216:
 
| 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.WorkOrder


Column Data Type Nullable Default PK Index
WorkOrderID int not null PK_WorkOrder_WorkOrderID
ProductID int not null IX_WorkOrder_ProductID
OrderQty int not null
StockedQty
ScrappedQty smallint not null
StartDate datetime not null
EndDate datetime null
DueDate datetime not null
ScrapReasonID smallint null IX_WorkOrder_ScrapReasonID
ModifiedDate datetime not null (getdate())


Relation Column Referenced Column
Production.Product ProductID ProductID
Production.ScrapReason ScrapReasonID ScrapReasonID


Detail Table Column Referencing Column
Production.WorkOrderRouting WorkOrderID WorkOrderID


Triggers Type
iWorkOrder ON INSERT
uWorkOrder ON UPDATE

automatically generated

Table Production.WorkOrder
Description Manufacturing work orders.


Column Data Type Nullable Default Description / PK / Index
WorkOrderID int not null Primary key for WorkOrder records.
PK_WorkOrder_WorkOrderID
ProductID int not null Product identification number. Foreign key to Product.ProductID.
IX_WorkOrder_ProductID
OrderQty int not null Product quantity to build.
StockedQty Quantity built and put in inventory.
ScrappedQty smallint not null Quantity that failed inspection.
StartDate datetime not null Work order start date.
EndDate datetime null Work order end date.
DueDate datetime not null Work order due date.
ScrapReasonID smallint null Reason for inspection failure.
IX_WorkOrder_ScrapReasonID
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Relation Column Referenced Column
Production.Product ProductID ProductID
Production.ScrapReason ScrapReasonID ScrapReasonID


Detail Table Column Referencing Column
Production.WorkOrderRouting WorkOrderID WorkOrderID


Triggers Type
iWorkOrder ON INSERT
uWorkOrder ON UPDATE


Referenced Object Object Type Dependency Type
Production.TransactionHistory Table Insert
Production.TransactionHistory Table Insert
dbo.uspLogError Procedure Execute
dbo.uspLogError Procedure Execute
dbo.uspPrintError Procedure Execute
dbo.uspPrintError Procedure Execute