Editing Production.WorkOrderRouting (table)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|- valign="top"
+
|-
 
| '''Table
 
| '''Table
 
| Production.WorkOrderRouting
 
| Production.WorkOrderRouting
|- valign="top"
+
|-
| '''Description
 
| Work order details.
 
 
|}
 
|}
  
=== Columns ===
+
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 17: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| WorkOrderID
 
| WorkOrderID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to WorkOrder.WorkOrderID.
+
| PK_WorkOrderRouting_WorkOrderID_ProductID_OperationSequence
|- valign="top"
+
|
 +
|-
 
| ProductID
 
| ProductID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Foreign key to Product.ProductID.
+
| PK_WorkOrderRouting_WorkOrderID_ProductID_OperationSequence
|- valign="top"
+
| IX_WorkOrderRouting_ProductID
 +
|-
 
| OperationSequence
 
| OperationSequence
 
| smallint
 
| smallint
 
| not null
 
| not null
 
|  
 
|  
| Primary key. Indicates the manufacturing process sequence.
+
| PK_WorkOrderRouting_WorkOrderID_ProductID_OperationSequence
|- valign="top"
+
|
 +
|-
 
| LocationID
 
| LocationID
 
| smallint
 
| smallint
 
| not null
 
| not null
 
|  
 
|  
| Manufacturing location where the part is processed. Foreign key to Location.LocationID.
+
|  
|- valign="top"
+
|
 +
|-
 
| ScheduledStartDate
 
| ScheduledStartDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
| Planned manufacturing start date.
+
|  
|- valign="top"
+
|
 +
|-
 
| ScheduledEndDate
 
| ScheduledEndDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
|  
 
|  
| Planned manufacturing end date.
+
|  
|- valign="top"
+
|
 +
|-
 
| ActualStartDate
 
| ActualStartDate
 
| datetime
 
| datetime
 
| null
 
| null
 
|  
 
|  
| Actual start date.
+
|  
|- valign="top"
+
|
 +
|-
 
| ActualEndDate
 
| ActualEndDate
 
| datetime
 
| datetime
 
| null
 
| null
 
|  
 
|  
| Actual end date.
+
|  
|- valign="top"
+
|
 +
|-
 
| ActualResourceHrs
 
| ActualResourceHrs
 
| decimal(9, 4)
 
| decimal(9, 4)
 
| null
 
| null
 
|  
 
|  
| Number of manufacturing hours used.
+
|  
|- valign="top"
+
|
 +
|-
 
| PlannedCost
 
| PlannedCost
 
| money
 
| money
 
| not null
 
| not null
 
|  
 
|  
| Estimated manufacturing cost.
+
|  
|- valign="top"
+
|
 +
|-
 
| ActualCost
 
| ActualCost
 
| money
 
| money
 
| null
 
| null
 
|  
 
|  
| Actual manufacturing cost.
+
|  
|- valign="top"
+
|
 +
|-
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.
 
|}
 
 
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PK_WorkOrderRouting_WorkOrderID_ProductID_OperationSequence
 
| WorkOrderID, ProductID, OperationSequence
 
|}
 
 
=== Indexes ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Index
 
| '''Type
 
| '''Columns
 
 
|- valign="top"
 
| IX_WorkOrderRouting_ProductID
 
 
|  
 
|  
| ProductID
+
|  
 
|}
 
|}
  
=== Check Constraints ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Check Constraint
 
| '''Expression
 
| '''Description
 
  
|- valign="top"
 
| CK_WorkOrderRouting_ActualCost
 
| ([ActualCost]>(0.00))
 
| Check constraint [ActualCost] > (0.00)
 
|- valign="top"
 
| CK_WorkOrderRouting_ActualEndDate
 
| ([ActualEndDate]>=[ActualStartDate] OR [ActualEndDate] IS NULL OR [ActualStartDate] IS NULL)
 
| Check constraint [ActualEndDate] >= [ActualStartDate] OR [ActualEndDate] IS NULL OR [ActualStartDate] IS NULL
 
|- valign="top"
 
| CK_WorkOrderRouting_ActualResourceHrs
 
| ([ActualResourceHrs]>=(0.0000))
 
| Check constraint [ActualResourceHrs] >= (0.0000)
 
|- valign="top"
 
| CK_WorkOrderRouting_PlannedCost
 
| ([PlannedCost]>(0.00))
 
| Check constraint [PlannedCost] > (0.00)
 
|- valign="top"
 
| CK_WorkOrderRouting_ScheduledEndDate
 
| ([ScheduledEndDate]>=[ScheduledStartDate])
 
| Check constraint [ScheduledEndDate] >= [ScheduledStartDate]
 
|}
 
  
=== Foreign Keys ===
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 151: Line 111:
 
| '''Column
 
| '''Column
 
| '''Referenced Column
 
| '''Referenced Column
 
+
|- valign="top"
+
|-
 
| [[Production.Location_(table)|Production.Location]]
 
| [[Production.Location_(table)|Production.Location]]
 
| LocationID
 
| LocationID
 
| LocationID
 
| LocationID
|- valign="top"
+
|-
 
| [[Production.WorkOrder_(table)|Production.WorkOrder]]
 
| [[Production.WorkOrder_(table)|Production.WorkOrder]]
 
| WorkOrderID
 
| WorkOrderID
 
| WorkOrderID
 
| WorkOrderID
 
|}
 
|}
 
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|- valign="top"
 
| Schema
 
| Schema
 
| [[Production_(schema)|Production]]
 
 
|}
 
 
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 184: Line 128:
 
| Production.WorkOrderRouting
 
| Production.WorkOrderRouting
 
|- valign="top"
 
|- valign="top"
 +
 
| '''Description
 
| '''Description
 
| Work order details.
 
| Work order details.
 
|-
 
|-
 +
 
|}
 
|}
  
Line 293: Line 239:
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
 +
| '''Referenced Object
 +
| '''Object Type
 
| '''Dependency Type
 
| '''Dependency Type
| '''Object Type
 
| '''Referenced Object
 
  
 
|-
 
|-
 +
| [[.Production_(schema)|.Production]]
 
| Schema
 
| Schema
 
| Schema
 
| Schema
| [[Production_(schema)|Production]]
 
 
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)