IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[order_239_users]') AND type = 'U')
CREATE TABLE [dbo].[order_239_users]
(
    [ordp_cuid] int NOT NULL DEFAULT((0)),
    [ordp_ordid] bigint NOT NULL DEFAULT((0)),
    [ordp_otid] int NOT NULL DEFAULT((0)),
    [ordp_type] varchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL,
)

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

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

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