[dbo].[XmlSystemConnector]
CREATE TABLE [dbo].[XmlSystemConnector]
(
[XmlSystemConnectorID] [int] NOT NULL IDENTITY(1, 1),
[XmlSystemFID] [int] NOT NULL,
[TokenUrl] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ServiceUrl] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentTypeFID] [int] NULL,
[CheckedWatchListNoteTypeFID] [smallint] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemConnector] ADD CONSTRAINT [PK_XmlSystemConnector] PRIMARY KEY CLUSTERED ([XmlSystemConnectorID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemConnector] ADD CONSTRAINT [IX_XmlSystemConnector_XmlSystem] UNIQUE NONCLUSTERED ([XmlSystemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemConnector] ADD CONSTRAINT [FK_XmlSystemConnector_CheckedWatchListNoteTypeFID] FOREIGN KEY ([CheckedWatchListNoteTypeFID]) REFERENCES [dbo].[NoteType] ([NoteTypeID])
GO
ALTER TABLE [dbo].[XmlSystemConnector] ADD CONSTRAINT [FK_XmlSystemConnector_DocumentType] FOREIGN KEY ([DocumentTypeFID]) REFERENCES [dbo].[DocumentType] ([DocumentTypeID])
GO
ALTER TABLE [dbo].[XmlSystemConnector] ADD CONSTRAINT [FK_XmlSystemConnector_XmlSystem] FOREIGN KEY ([XmlSystemFID]) REFERENCES [dbo].[XmlSystem] ([XmlSystemID])
GO
GRANT SELECT ON [dbo].[XmlSystemConnector] TO [MssExec]
GRANT INSERT ON [dbo].[XmlSystemConnector] TO [MssExec]
GRANT DELETE ON [dbo].[XmlSystemConnector] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlSystemConnector] TO [MssExec]
GO