IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[sys_sql_uptables]') AND type = 'U')
CREATE TABLE [dbo].[sys_sql_uptables]
(
    [uptableid] int NOT NULL IDENTITY(1, 1),
    [cmpid] int NULL,
    [biztype] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [bizid] int NULL,
    [tagid] int NULL,
    [tablename] varchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL,
    [keyfld] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [upbiztype] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [upbizid] int NULL,
    [uptagid] int NULL,
    [uptablename] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [upkeyfld] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    CONSTRAINT [PK_SYS_SQL_UPTABLES] PRIMARY KEY ([uptableid] ASC)
)