[dbo].[EquipmentDocumentType]
CREATE TABLE [dbo].[EquipmentDocumentType]
(
[EquipmentDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[EquipmentDocumentGroupFID] [int] NOT NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_EquipmentDocumentType_Inactive] DEFAULT ((0)),
[IsSecure] [bit] NOT NULL CONSTRAINT [DF_EquipmentDocumentType_IsSecure] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentType] ADD CONSTRAINT [PK_EquipmentDocumentType] PRIMARY KEY CLUSTERED ([EquipmentDocumentTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentType] ADD CONSTRAINT [IX_EquipmentDocumentType_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentType] ADD CONSTRAINT [FK_EquipmentDocumentType_EquipmentDocumentGroup] FOREIGN KEY ([EquipmentDocumentGroupFID]) REFERENCES [dbo].[EquipmentDocumentGroup] ([EquipmentDocumentGroupID])
GO
GRANT SELECT ON [dbo].[EquipmentDocumentType] TO [MssExec]
GRANT INSERT ON [dbo].[EquipmentDocumentType] TO [MssExec]
GRANT DELETE ON [dbo].[EquipmentDocumentType] TO [MssExec]
GRANT UPDATE ON [dbo].[EquipmentDocumentType] TO [MssExec]
GO