[dbo].[MoversConnectEmailRecipient]
CREATE TABLE [dbo].[MoversConnectEmailRecipient]
(
[MoversConnectEmailRecipientID] [int] NOT NULL IDENTITY(1, 1),
[MoversConnectSetupFID] [int] NOT NULL,
[Salutation] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[RecipientEmail] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SendEmails] [bit] NOT NULL,
[EmailIntervalHours] [numeric] (10, 2) NOT NULL,
[MaxLogEntriesPerEmail] [int] NOT NULL,
[LastMoversConnectLogID] [bigint] NULL,
[EmailCount] [int] NOT NULL,
[LastEmailDate] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MoversConnectEmailRecipient] ADD CONSTRAINT [PK_MoversConnectEmailRecipient] PRIMARY KEY NONCLUSTERED ([MoversConnectEmailRecipientID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MoversConnectEmailRecipient_RecipientEmail] ON [dbo].[MoversConnectEmailRecipient] ([RecipientEmail]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MoversConnectEmailRecipient] ADD CONSTRAINT [FK_MoversConnectEmailRecipient_MoversConnectSetup] FOREIGN KEY ([MoversConnectSetupFID]) REFERENCES [dbo].[MoversConnectSetup] ([MoversConnectSetupID])
GO
GRANT SELECT ON [dbo].[MoversConnectEmailRecipient] TO [MssExec]
GRANT INSERT ON [dbo].[MoversConnectEmailRecipient] TO [MssExec]
GRANT DELETE ON [dbo].[MoversConnectEmailRecipient] TO [MssExec]
GRANT UPDATE ON [dbo].[MoversConnectEmailRecipient] TO [MssExec]
GO