CREATE TABLE [dbo].[UnitType]
(
[UnitTypeID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SystemType] [bit] NOT NULL CONSTRAINT [DF_UnitType_SystemType] DEFAULT ((0)),
[MinimumUnits] [int] NOT NULL CONSTRAINT [DF_UnitType_MinUnits] DEFAULT ((1)),
[HourLevelAddUnit] [decimal] (12, 2) NOT NULL CONSTRAINT [DF_UnitType_HourLevelAddUnit] DEFAULT ((8.00)),
[LocalServiceUnitLabel] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UnitType] ADD CONSTRAINT [PK_UnitType] PRIMARY KEY NONCLUSTERED ([UnitTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UnitType] ADD CONSTRAINT [IX_UnitType_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[UnitType] TO [MssExec]
GRANT INSERT ON [dbo].[UnitType] TO [MssExec]
GRANT DELETE ON [dbo].[UnitType] TO [MssExec]
GRANT UPDATE ON [dbo].[UnitType] TO [MssExec]
GO