IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[pub_weixin]') AND type = 'U')
CREATE TABLE [dbo].[pub_weixin]
(
    [wx_id] int NOT NULL IDENTITY(1, 1),
    [wx_cmpid] int NULL DEFAULT((0)),
    [wx_code] varchar(64) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_type] varchar(10) COLLATE Chinese_PRC_CI_AS NULL DEFAULT('GZH'),
    [wx_title] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_appid] int NULL DEFAULT((-1)),
    [wx_token] varchar(64) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_aeskey] varchar(64) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_appsecret] varchar(64) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_tokenpath] varchar(256) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_tokenurl] varchar(256) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [wx_tokenexpired] varchar(256) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    CONSTRAINT [PK_PUB_WEIXIN] PRIMARY KEY ([wx_id] ASC)
)