IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[order_30_10]') AND type = 'U')
CREATE TABLE [dbo].[order_30_10]
(
    [ord2_bz] nvarchar(100) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [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_dwmc] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [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_group] nvarchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_id] bigint NOT NULL IDENTITY(1, 1),
    [ord2_job] nvarchar(2000) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_key] varchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_order] int NOT NULL DEFAULT((999)),
    [ord2_ordid] bigint NOT NULL DEFAULT((0)),
    [ord2_rbizid] int NOT NULL DEFAULT((0)),
    [ord2_reason] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [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_status] nvarchar(30) COLLATE Chinese_PRC_CI_AS NOT NULL DEFAULT(''),
    [ord2_szbm] 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_title] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_updated] datetime NOT NULL DEFAULT(getdate()),
    [ord2_xc] decimal(18, 2) NULL DEFAULT((0)),
    [ord2_jzrq] datetime NULL DEFAULT('1900-1-1'),
    [ord2_ksrq] datetime NULL DEFAULT('1900-1-1'),
    [ord2_gzxc] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_hbsj] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ord2_xzrs] int NULL DEFAULT((0)),
    [ord2_zzsj] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
)