CREATE TABLE [dbo].[AdminFields]
(
[AdFldsPriKey] [int] NOT NULL IDENTITY(1, 1),
[TableName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FieldName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EnglishName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DependentField] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DependentTable] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DisplayField] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DisplayOrder] [smallint] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdminFields] ADD CONSTRAINT [PK_AdminFields] PRIMARY KEY NONCLUSTERED ([AdFldsPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdminFields] ADD CONSTRAINT [IX_AdminFields] UNIQUE CLUSTERED ([TableName], [FieldName], [EnglishName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[AdminFields] TO [MssExec]
GRANT INSERT ON [dbo].[AdminFields] TO [MssExec]
GRANT DELETE ON [dbo].[AdminFields] TO [MssExec]
GRANT UPDATE ON [dbo].[AdminFields] TO [MssExec]
GO