CREATE TABLE
    IF
    NOT EXISTS "erp_mold_brand"
(
    "id"            BIGINT   NOT NULL GENERATED BY DEFAULT AS IDENTITY,
    "code"          VARCHAR  NOT NULL,
    "name"          VARCHAR  NOT NULL,
    "mold_type"     VARCHAR  NOT NULL,
    "product_id"    BIGINT   NOT NULL,
    "use_time"      VARCHAR,
    "maintain_type" INT,
    "maintain_time" VARCHAR,
    "mold_size"     BIGINT   NOT NULL,
    "remark"        VARCHAR,
    "is_enable"     bit      NOT NULL,
    "creator"       VARCHAR           DEFAULT '',
    "create_time"   datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updater"       VARCHAR           DEFAULT '',
    "update_time"   datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    "deleted"       bit      NOT NULL DEFAULT FALSE,
    "tenant_id"     BIGINT,
    PRIMARY KEY ("id")
) COMMENT '模具型号表';