IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_document_text]') AND type = 'U')
CREATE TABLE [dbo].[mps_document_text]
(
    [docd_docid] bigint NOT NULL DEFAULT((0)),
    [docd_text] text(16) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    CONSTRAINT [PK_MPS_DOCUMENT_TEXT] PRIMARY KEY ([docd_docid] ASC)
)

ALTER TABLE [dbo].[mps_document_text] WITH CHECK ADD CONSTRAINT [FK_MPS_DOCU_REFERENCE_MPS_DOCU] FOREIGN KEY ([docd_docid]) REFERENCES [dbo].[mps_document] ([doc_id]) ON DELETE CASCADEALTER TABLE [dbo].[mps_document_text] CHECK CONSTRAINT [FK_MPS_DOCU_REFERENCE_MPS_DOCU]