[dbo].[ClaimEmailAddress]
CREATE TABLE [dbo].[ClaimEmailAddress]
(
[ClaimEmailAddressID] [int] NOT NULL IDENTITY(1, 1),
[ClaimFID] [int] NOT NULL,
[EmailAddressTypeFID] [int] NOT NULL,
[EmailAddress] [dbo].[EmailAddress] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimEmailAddress] ADD CONSTRAINT [PK_ClaimEmailAddress] PRIMARY KEY NONCLUSTERED ([ClaimEmailAddressID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimEmailAddress] ADD CONSTRAINT [IX_ClaimEmailAddress_ClaimAndEmailAddressType] UNIQUE NONCLUSTERED ([ClaimFID], [EmailAddressTypeFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimEmailAddress] ADD CONSTRAINT [FK_ClaimEmailAddress_Claim] FOREIGN KEY ([ClaimFID]) REFERENCES [dbo].[Claim] ([ClaimID])
GO
ALTER TABLE [dbo].[ClaimEmailAddress] ADD CONSTRAINT [FK_ClaimEmailAddress_EmailAddressType] FOREIGN KEY ([EmailAddressTypeFID]) REFERENCES [dbo].[EmailAddressType] ([EmailAddressTypeID])
GO
GRANT SELECT ON [dbo].[ClaimEmailAddress] TO [MssExec]
GRANT INSERT ON [dbo].[ClaimEmailAddress] TO [MssExec]
GRANT DELETE ON [dbo].[ClaimEmailAddress] TO [MssExec]
GRANT UPDATE ON [dbo].[ClaimEmailAddress] TO [MssExec]
GO