IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[pub_programtype]') AND type = 'U')
CREATE TABLE [dbo].[pub_programtype]
(
    [pt_id] int NOT NULL IDENTITY(1, 1),
    [pt_caption] nvarchar(200) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [pt_program] int NULL DEFAULT((1)),
    [pt_fid] int NULL DEFAULT((0)),
    [pt_system] int NULL DEFAULT((1)),
    [pt_filename] varchar(50) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [pt_icon] varchar(100) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [pt_share] int NULL DEFAULT((1)),
    [pt_templatename] nvarchar(500) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    CONSTRAINT [PK_PUB_PROGRAMTYPE] PRIMARY KEY ([pt_id] ASC)
)