HumanResources.Shift Table
Information
| Name | Shift |
| Schema | HumanResources |
| Row Count | 0 |
| Data Size | |
| Index Size | |
| Reserved Size | |
| Unused Size | |
| Created | 29.3.2010. 21:58:18 |
| Modified | 29.3.2010. 21:58:54 |
Extended Properties
| Name | Type | Property Name | Value |
| Shift | TABLE | MS_Description | Work shift lookup table. |
Columns
| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | ShiftID | tinyint |   | | | |   | |
| |   |   | Name | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | StartTime | datetime |   | | | |   | |
| |   |   | EndTime | datetime |   | | | |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |
Indexes
SQL Script
CREATE TABLE [HumanResources].[Shift] (
[ShiftID] tinyint NOT NULL IDENTITY,
[Name] nvarchar(50) NOT NULL,
[StartTime] datetime NOT NULL,
[EndTime] datetime NOT NULL,
[ModifiedDate] datetime NOT NULL DEFAULT (getdate())
);
CREATE UNIQUE INDEX [AK_Shift_Name] on [HumanResources].[Shift]([Name]);
CREATE UNIQUE INDEX [AK_Shift_StartTime_EndTime] on [HumanResources].[Shift]([StartTime], [EndTime]);