IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[pub_code]') AND type = 'U')
CREATE TABLE [dbo].[pub_code]
(
    [bm_id] int NOT NULL IDENTITY(1, 1),
    [bm_category] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [bm_ctg] varchar(20) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [bm_ctgcaption] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [bm_text] nvarchar(200) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [bm_order] int NULL DEFAULT((0)),
    [bm_fastkey] varchar(200) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    CONSTRAINT [PK_PUB_CODE] PRIMARY KEY ([bm_id] ASC)
)