CREATE TABLE [dbo].[GroupsnTables]
(
[GntPriKey] [int] NOT NULL IDENTITY(1, 1),
[IsTable] [bit] NOT NULL,
[EnglishName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Parent] [int] NULL,
[ToolTip] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GroupsnTables] ADD CONSTRAINT [PK_GroupsnTables] PRIMARY KEY NONCLUSTERED ([GntPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GroupsnTables] ADD CONSTRAINT [IX_GroupsnTables] UNIQUE CLUSTERED ([EnglishName], [Parent]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GroupsnTables] ADD CONSTRAINT [FK_GroupsnTables_GroupsnTables] FOREIGN KEY ([Parent]) REFERENCES [dbo].[GroupsnTables] ([GntPriKey])
GO
GRANT SELECT ON [dbo].[GroupsnTables] TO [MssExec]
GRANT INSERT ON [dbo].[GroupsnTables] TO [MssExec]
GRANT DELETE ON [dbo].[GroupsnTables] TO [MssExec]
GRANT UPDATE ON [dbo].[GroupsnTables] TO [MssExec]
GO