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

From dbscript Online Help
Jump to: navigation, search
Line 12: Line 12:
  
  
 +
=== 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 18: Line 19:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
 
 
 
|- valign="top"
 
|- valign="top"
Line 25: Line 26:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for ScrapReason records.<br />PK_ScrapReason_ScrapReasonID
+
| Primary key for ScrapReason records.
 
|- valign="top"
 
|- valign="top"
 
| Name
 
| Name
Line 31: Line 32:
 
| not null
 
| not null
 
|  
 
|  
| Failure description.<br />AK_ScrapReason_Name
+
| Failure description.
 
|- valign="top"
 
|- valign="top"
 
| ModifiedDate
 
| ModifiedDate
Line 37: Line 38:
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.<br />
+
| 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
 +
|-
 +
| PK_ScrapReason_ScrapReasonID
 +
| ScrapReasonID
 +
|}
  
 +
=== Indexes ===
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Index
 +
| '''Type
 +
| '''Columns
 +
 +
|-
 +
| AK_ScrapReason_Name
 +
| Unique
 +
| Name
 +
|}
  
 +
=== Detail Tables ===
 
{| 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 54: Line 77:
 
|}
 
|}
  
 
+
=== References ===
 
{| 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 65: Line 88:
 
| Type
 
| Type
 
| [[dbo.Name_(type)|dbo.Name]]
 
| [[dbo.Name_(type)|dbo.Name]]
 +
 +
|-
 +
| Schema
 +
| Schema
 +
| [[Production_(schema)|Production]]
  
 
|}
 
|}
 +
 +
 
== wikivalues ==
 
== wikivalues ==
  

Revision as of 23:07, 2 February 2010

wikibot

Table Production.ScrapReason
Description Manufacturing failure reasons lookup table.


Columns

Column Data Type Nullable Default Description
ScrapReasonID smallint not null Primary key for ScrapReason records.
Name dbo.Name not null Failure description.
ModifiedDate datetime not null (getdate()) Date and time the record was last updated.

Primary Key

Primary Key Columns
PK_ScrapReason_ScrapReasonID ScrapReasonID

Indexes

Index Type Columns
AK_ScrapReason_Name Unique Name

Detail Tables

Detail Table Column Referencing Column
Production.WorkOrder ScrapReasonID ScrapReasonID

References

Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Production


wikivalues

Table Values Production.ScrapReason


ScrapReasonID Name
1 Brake assembly not as ordered
2 Color incorrect
4 Drill pattern incorrect
5 Drill size too large
6 Drill size too small
3 Gouge in metal
7 Handling damage
8 Paint process failed
9 Primer process failed
10 Seat assembly not as ordered
11 Stress test failed
12 Thermoform temperature too high
13 Thermoform temperature too low
14 Trim length too long
15 Trim length too short
16 Wheel misaligned

automatically generated

Table Production.ScrapReason
Description Manufacturing failure reasons lookup table.


Column Data Type Nullable Default Description / PK / Index
ScrapReasonID smallint not null Primary key for ScrapReason records.
PK_ScrapReason_ScrapReasonID
Name Name not null Failure description.
AK_ScrapReason_Name
ModifiedDate datetime not null (GETDATE()) Date and time the record was last updated.


Detail Table Column Referencing Column
Production.WorkOrder ScrapReasonID ScrapReasonID


Dependency Type Object Type Referenced Object
Data Type Type dbo.Name
Schema Schema Production