IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_customer_2]') AND type = 'U')
CREATE TABLE [dbo].[mps_customer_2]
(
    [cc_id] bigint NOT NULL IDENTITY(1, 1),
    [cc_cmpid] int NULL,
    [cc_bcid] int NULL,
    [cc_branch] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_dpid] int NULL,
    [cc_depart] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_tag] int NULL,
    [cc_caption] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_ctid] int NULL,
    [cc_type] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_code] varchar(32) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_createcuid] int NULL,
    [cc_creator] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_cuid] int NULL,
    [cc_cuname] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_createtime] datetime NULL,
    [cc_activetime] datetime NULL,
    [cc_name] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_company] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_gender] int NULL,
    [cc_mobile] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_contact] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_icon] int NULL,
    [cc_fccid] bigint NULL,
    [cc_province] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_municipal] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_county] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_title] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_prof] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_native] nvarchar(30) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_college] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_taboos] nvarchar(200) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_addr] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_post] varchar(6) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_source] varchar(30) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_site] varchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_email] varchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_msnqq] varchar(30) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_status] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_health] decimal(18, 2) NULL,
    [cc_score] decimal(15, 2) NULL,
    [cc_total] decimal(15, 2) NULL,
    [cc_value] decimal(18, 4) NULL,
    [cc_prev] decimal(18, 4) NULL,
    [cc_rear] decimal(18, 4) NULL,
    [cc_allowlogin] tinyint NULL,
    [cc_other] nvarchar(200) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_birth] datetime NULL,
    [cc_monthday] varchar(4) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_creditquantum] decimal(18, 2) NULL,
    [cc_accountperiod] int NULL,
    [cc_use] tinyint NULL,
    [cc_description] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_category] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_baccount] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_taxno] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_phone] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_fax] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_contractdate] datetime NULL,
    [cc_balance] decimal(18, 2) NULL,
    [cc_posid] bigint NULL,
    [cc_identtype] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [cc_identno] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    CONSTRAINT [PK__mps_cust__9F1E187B075BA2ED] PRIMARY KEY ([cc_id] ASC)
)