[dbo].[XmlInternationalPortMap]
CREATE TABLE [dbo].[XmlInternationalPortMap]
(
[XmlInternationalPortMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[InternationalPortFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [PK_XmlInternationalPortMap] PRIMARY KEY NONCLUSTERED ([XmlInternationalPortMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [IX_XmlInternationalPortMap_InternationalPortFID_XMLInterface_ExternalCode] UNIQUE CLUSTERED ([InternationalPortFID], [XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [IX_XmlInternationalPortMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [FK_XmlInternationalPortMap_InternationalPort] FOREIGN KEY ([InternationalPortFID]) REFERENCES [dbo].[InternationalPort] ([InternationalPortID])
GO
ALTER TABLE [dbo].[XmlInternationalPortMap] ADD CONSTRAINT [FK_XmlInternationalPortMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON [dbo].[XmlInternationalPortMap] TO [MssExec]
GRANT INSERT ON [dbo].[XmlInternationalPortMap] TO [MssExec]
GRANT DELETE ON [dbo].[XmlInternationalPortMap] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlInternationalPortMap] TO [MssExec]
GO