[dbo].[DocumentAutoUploadRuleItem]
CREATE TABLE [dbo].[DocumentAutoUploadRuleItem]
(
[DocumentAutoUploadRuleItemID] [int] NOT NULL IDENTITY(1, 1),
[ItemDescription] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TableName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PriKeyName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DetailKeyTableName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DetailKeyColumnName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DetailLookupDescription] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SqlText] [nvarchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ParenthesisCount] [smallint] NOT NULL,
[IsBooleanCombiner] [bit] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DocumentAutoUploadRuleItem] ADD CONSTRAINT [PK_DocumentAutoUploadRuleItem] PRIMARY KEY CLUSTERED ([DocumentAutoUploadRuleItemID]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[DocumentAutoUploadRuleItem] TO [MssExec]
GRANT INSERT ON [dbo].[DocumentAutoUploadRuleItem] TO [MssExec]
GRANT DELETE ON [dbo].[DocumentAutoUploadRuleItem] TO [MssExec]
GRANT UPDATE ON [dbo].[DocumentAutoUploadRuleItem] TO [MssExec]
GO