Production.ScrapReason Table
Information
| Name | ScrapReason |
| Schema | Production |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:56 |
Extended Properties
| Name | Type | Property Name | Value |
| ScrapReason | TABLE | MS_Description | Manufacturing failure reasons lookup table. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | ScrapReasonID | smallint |   | | | |   | |
| |   |   | Name | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
SQL Script
CREATE TABLE [Production].[ScrapReason] (
[ScrapReasonID] smallint NOT NULL IDENTITY,
[Name] nvarchar(50) NOT NULL,
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_ScrapReason_Name] on [Production].[ScrapReason]([Name]);