IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_prd1_0]') AND type = 'U')
CREATE TABLE [dbo].[mps_prd1_0]
(
    [prd3_id] bigint NOT NULL IDENTITY(1, 1),
    [prd3_idname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [prd3_prdid] bigint NULL DEFAULT((0)),
    [prd3_text] text(16) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    CONSTRAINT [mps_prd1_0_pk] PRIMARY KEY ([prd3_id] ASC)
)

IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('[dbo].[mps_prd1_0]') AND name = 'mps_prd1_0_index_1')
CREATE NONCLUSTERED INDEX [mps_prd1_0_index_1] ON [dbo].[mps_prd1_0]([prd3_prdid] ASC)

IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('[dbo].[mps_prd1_0]') AND name = 'mps_prd1_0_index_1')
CREATE NONCLUSTERED INDEX [mps_prd1_0_index_1] ON [dbo].[mps_prd1_0]([prd3_idname] ASC)

IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('[dbo].[mps_prd1_0]') AND name = 'index_mps_prd1_0_prd3_prdid')
CREATE NONCLUSTERED INDEX [index_mps_prd1_0_prd3_prdid] ON [dbo].[mps_prd1_0]([prd3_prdid] ASC)

IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('[dbo].[mps_prd1_0]') AND name = 'index_mps_prd1_0_prd3_idname')
CREATE NONCLUSTERED INDEX [index_mps_prd1_0_prd3_idname] ON [dbo].[mps_prd1_0]([prd3_idname] ASC)