DROP TABLE IF EXISTS "ERP"."ERP_DATASYNCLOG";
CREATE TABLE "ERP"."ERP_DATASYNCLOG" (
                                         "ID" VARCHAR(255) NOT NULL,
                                         "CREATE_TIME" DATE,
                                         "LAST_UPDATE_TIME" DATE,
                                         "CHANGE_TYPE" TINYINT,
                                         "MESSAGE" VARCHAR(8188)
)
;
COMMENT ON COLUMN "ERP"."ERP_DATASYNCLOG"."ID" IS 'ID';
COMMENT ON COLUMN "ERP"."ERP_DATASYNCLOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "ERP"."ERP_DATASYNCLOG"."LAST_UPDATE_TIME" IS '最后更新时间';
COMMENT ON COLUMN "ERP"."ERP_DATASYNCLOG"."CHANGE_TYPE" IS '更改类型（1 新增，2更改）';
COMMENT ON COLUMN "ERP"."ERP_DATASYNCLOG"."MESSAGE" IS '报文';
COMMENT ON TABLE "ERP"."ERP_DATASYNCLOG" IS 'erp数据同步中间表';

ALTER TABLE "ERP"."ERP_DATASYNCLOG" ADD PRIMARY KEY ("ID");