Tables [dbo].[OutgoingEmailSuccess]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:02:55 AM Friday, November 22, 2024
Last Modified9:02:56 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OutgoingEmailSuccess: OutgoingEmailSuccessIDOutgoingEmailSuccessIDint4
No
1 - 1
Foreign Keys FK_OutgoingEmailSuccess_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDIndexes IX_OutgoingEmailSuccess_OutgoingEmailFID: OutgoingEmailFIDOutgoingEmailFIDint4
No
EnqueuedAtdatetimeoffset10
No
SentAtdatetimeoffset10
No
CompletedAtdatetimeoffset10
No
Indexes IX_OutgoingEmailBatchSuccess_RequestTraceId: RequestTraceIdRequestTraceIdvarchar(64)64
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OutgoingEmailSuccess: OutgoingEmailSuccessIDPK_OutgoingEmailSuccessOutgoingEmailSuccessID
Yes
IX_OutgoingEmailBatchSuccess_RequestTraceIdRequestTraceId
IX_OutgoingEmailSuccess_OutgoingEmailFIDOutgoingEmailFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailSuccess_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailSuccess]
(
[OutgoingEmailSuccessID] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[EnqueuedAt] [datetimeoffset] NOT NULL,
[SentAt] [datetimeoffset] NOT NULL,
[CompletedAt] [datetimeoffset] NOT NULL,
[RequestTraceId] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailSuccess] ADD CONSTRAINT [PK_OutgoingEmailSuccess] PRIMARY KEY CLUSTERED  ([OutgoingEmailSuccessID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailSuccess_OutgoingEmailFID] ON [dbo].[OutgoingEmailSuccess] ([OutgoingEmailFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailBatchSuccess_RequestTraceId] ON [dbo].[OutgoingEmailSuccess] ([RequestTraceId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailSuccess] ADD CONSTRAINT [FK_OutgoingEmailSuccess_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailSuccess] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailSuccess] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailSuccess] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailSuccess] TO [MssExec]
GO
Uses
Used By