[dbo].[OutgoingEmailBatchFailure]
CREATE TABLE [dbo].[OutgoingEmailBatchFailure]
(
[OutgoingEmailBatchFailureId] [int] NOT NULL IDENTITY(1, 1),
[BodyOrMessage] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AttemptedAt] [datetimeoffset] NOT NULL,
[SentAt] [datetimeoffset] NULL,
[CompletedAt] [datetimeoffset] NULL,
[RequestTraceId] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailBatchFailure] ADD CONSTRAINT [PK_OutgoingEmailBatchFailure] PRIMARY KEY CLUSTERED ([OutgoingEmailBatchFailureId]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailBatchFailure_RequestTraceId] ON [dbo].[OutgoingEmailBatchFailure] ([RequestTraceId]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[OutgoingEmailBatchFailure] TO [MssExec]
GRANT INSERT ON [dbo].[OutgoingEmailBatchFailure] TO [MssExec]
GRANT DELETE ON [dbo].[OutgoingEmailBatchFailure] TO [MssExec]
GRANT UPDATE ON [dbo].[OutgoingEmailBatchFailure] TO [MssExec]
GO