[dbo].[StatementDetailPhoneNumber]
CREATE TABLE [dbo].[StatementDetailPhoneNumber]
(
[StatementDetailPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[StatementDetailContactFID] [int] NOT NULL,
[StatementDetailPhoneTypeFID] [int] NOT NULL,
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementDetailPhoneNumber] ADD CONSTRAINT [PK_StatementDetailPhoneNumber] PRIMARY KEY CLUSTERED ([StatementDetailPhoneNumberID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementDetailPhoneNumber] ADD CONSTRAINT [FK_StatementDetailPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
ALTER TABLE [dbo].[StatementDetailPhoneNumber] ADD CONSTRAINT [FK_StatementDetailPhoneNumber_StatementDetailContact] FOREIGN KEY ([StatementDetailContactFID]) REFERENCES [dbo].[StatementDetailContact] ([StatementDetailContactID])
GO
ALTER TABLE [dbo].[StatementDetailPhoneNumber] ADD CONSTRAINT [FK_StatementDetailPhoneNumber_StatementDetailPhoneType] FOREIGN KEY ([StatementDetailPhoneTypeFID]) REFERENCES [dbo].[StatementDetailPhoneType] ([StatementDetailPhoneTypeID])
GO
GRANT SELECT ON [dbo].[StatementDetailPhoneNumber] TO [MssExec]
GRANT INSERT ON [dbo].[StatementDetailPhoneNumber] TO [MssExec]
GRANT DELETE ON [dbo].[StatementDetailPhoneNumber] TO [MssExec]
GRANT UPDATE ON [dbo].[StatementDetailPhoneNumber] TO [MssExec]
GO