[dbo].[PlasticProviderTypeTransactionErrorProcessing]
CREATE TABLE [dbo].[PlasticProviderTypeTransactionErrorProcessing]
(
[ProviderTypeTransactionErrorProcessingID] [int] NOT NULL IDENTITY(1, 1),
[ProviderTypeFID] [int] NOT NULL,
[DealType] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ErrorNumber] [int] NOT NULL,
[ReportToUser] [bit] NOT NULL,
[EndsProcessing] [bit] NOT NULL,
[ErrorMessage] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeTransactionErrorProcessing] ADD CONSTRAINT [PK_PlasticProviderTypeTransactionErrorProcessing] PRIMARY KEY CLUSTERED ([ProviderTypeTransactionErrorProcessingID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeTransactionErrorProcessing] ADD CONSTRAINT [IX_PlasticProviderTypeTransactionErrorProcessing_Type_DealType_ErrorNumber] UNIQUE NONCLUSTERED ([ProviderTypeFID], [DealType], [ErrorNumber]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeTransactionErrorProcessing] ADD CONSTRAINT [FK_PlasticProviderTypeTransactionErrorProcessing_ProviderType] FOREIGN KEY ([ProviderTypeFID]) REFERENCES [dbo].[PlasticProviderType] ([ProviderTypeID])
GO
GRANT SELECT ON [dbo].[PlasticProviderTypeTransactionErrorProcessing] TO [MssExec]
GRANT INSERT ON [dbo].[PlasticProviderTypeTransactionErrorProcessing] TO [MssExec]
GRANT DELETE ON [dbo].[PlasticProviderTypeTransactionErrorProcessing] TO [MssExec]
GRANT UPDATE ON [dbo].[PlasticProviderTypeTransactionErrorProcessing] TO [MssExec]
GO