IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[order_75_2]') AND type = 'U')
CREATE TABLE [dbo].[order_75_2]
(
    [ord2_caption] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_code] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_date] datetime NOT NULL DEFAULT(getdate()),
    [ord2_fatherord2id] bigint NOT NULL DEFAULT((0)),
    [ord2_fbizid] int NOT NULL DEFAULT((0)),
    [ord2_ford2id] bigint NOT NULL DEFAULT((0)),
    [ord2_ford2tag] int NOT NULL DEFAULT((0)),
    [ord2_fordid] bigint NOT NULL DEFAULT((0)),
    [ord2_ftype] varchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_gkxm] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_group] nvarchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_id] bigint NOT NULL IDENTITY(1, 1),
    [ord2_kdgs] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_key] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_lxfs] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_mpbm] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_order] int NOT NULL DEFAULT((999)),
    [ord2_ordid] bigint NOT NULL DEFAULT((0)),
    [ord2_pm] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_rbizid] int NOT NULL DEFAULT((0)),
    [ord2_rord2id] bigint NOT NULL DEFAULT((0)),
    [ord2_rord2tag] int NOT NULL DEFAULT((0)),
    [ord2_rordid] bigint NOT NULL DEFAULT((0)),
    [ord2_rtype] varchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_spqkms] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_status] nvarchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_sxsl] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_tag] int NOT NULL DEFAULT((0)),
    [ord2_tags] varchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_updated] datetime NOT NULL DEFAULT(getdate()),
    [ord2_xpbh] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_ys] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_wxsl] int NULL DEFAULT((0)),
    [ord2_cjdm] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_clfs] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_fcsj] datetime NULL DEFAULT('1900-1-1'),
    [ord2_fcsl] int NULL DEFAULT((0)),
    [ord2_fhsj] datetime NULL DEFAULT('1900-1-1'),
    [ord2_jssl] int NULL DEFAULT((0)),
    [ord2_spjs] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_wfwxyy] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_wxfs] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_lqr] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_wcsj] datetime NULL DEFAULT('1900-1-1'),
    [ord2_wxr] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_bgh] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_kdsh] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_lqsj] datetime NULL DEFAULT('1900-1-1'),
    CONSTRAINT [order_75_2_pk] PRIMARY KEY ([ord2_id] ASC)
)


IF NOT EXISTS (SELECT 1 FROM sys.indexes WHERE object_id = OBJECT_ID('[dbo].[order_75_2]') AND name = 'order_75_2_index_1')
CREATE NONCLUSTERED INDEX [order_75_2_index_1] ON [dbo].[order_75_2]([ord2_ordid] ASC,[ord2_tag] ASC,[ord2_group] ASC)