[dbo].[MSSDocumentExternalContent]
CREATE TABLE [dbo].[MSSDocumentExternalContent]
(
[MSSDocumentExternalContentID] [int] NOT NULL IDENTITY(1, 1),
[MSSDocumentFID] [int] NOT NULL,
[IntegratorKeyID] [nvarchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreationDateUtc] [datetime] NOT NULL CONSTRAINT [DF_MSSDocumentExternalContent_CreationDateUtc] DEFAULT (getutcdate()),
[ExternalDocumentID] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ErrorCode] [int] NOT NULL,
[ErrorMessage] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentContentUrl] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DocumentContentHttpMethod] [varchar] (7) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MSSDocumentExternalContent] ADD CONSTRAINT [PK_MSSDocumentExternalContent] PRIMARY KEY CLUSTERED ([MSSDocumentExternalContentID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MSSDocumentExternalContent_MSSDocument] ON [dbo].[MSSDocumentExternalContent] ([MSSDocumentFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MSSDocumentExternalContent] ADD CONSTRAINT [FK_MSSDocumentExternalContent_MSSDocument] FOREIGN KEY ([MSSDocumentFID]) REFERENCES [dbo].[MSSDocument] ([MSSDocumentID])
GO
GRANT SELECT ON [dbo].[MSSDocumentExternalContent] TO [MssExec]
GRANT INSERT ON [dbo].[MSSDocumentExternalContent] TO [MssExec]
GRANT DELETE ON [dbo].[MSSDocumentExternalContent] TO [MssExec]
GRANT UPDATE ON [dbo].[MSSDocumentExternalContent] TO [MssExec]
GO