CREATE TABLE hey_act_hi_caseinst (
    ID                           VARCHAR2(256) ,
    CASE_INST_ID                 VARCHAR2(256)     NOT NULL,
    BUSINESS_KEY                 VARCHAR2(1020),
    CASE_DEF_ID                  VARCHAR2(256)     NOT NULL,
    CREATE_TIME                  TIMESTAMP(6)      NOT NULL,
    CLOSE_TIME                   TIMESTAMP(6)  ,
    DURATION                     NUMBER(19, 0) ,
    STATE                        NUMBER        ,
    CREATE_USER_ID               VARCHAR2(1020),
    SUPER_CASE_INSTANCE_ID       VARCHAR2(256) ,
    SUPER_PROCESS_INSTANCE_ID    VARCHAR2(256) ,
    TENANT_ID                    VARCHAR2(256) ,
    CREATED_BY                   VARCHAR2(256)     NOT NULL,
    CREATION_DATE                TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE             TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128) ,
    ID                           VARCHAR2(256) ,
    CASE_INST_ID                 VARCHAR2(256)     NOT NULL,
    BUSINESS_KEY                 VARCHAR2(1020),
    CASE_DEF_ID                  VARCHAR2(256)     NOT NULL,
    CREATE_TIME                  TIMESTAMP(6)      NOT NULL,
    CLOSE_TIME                   TIMESTAMP(6)  ,
    DURATION                     NUMBER(19, 0) ,
    STATE                        NUMBER        ,
    CREATE_USER_ID               VARCHAR2(1020),
    SUPER_CASE_INSTANCE_ID       VARCHAR2(256) ,
    SUPER_PROCESS_INSTANCE_ID    VARCHAR2(256) ,
    TENANT_ID                    VARCHAR2(256) ,
    CREATED_BY                   VARCHAR2(256)     NOT NULL,
    CREATION_DATE                TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_DATE             TIMESTAMP(6)      NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128) ,
    CONSTRAINT pk_hey_act_hi_caseinst PRIMARY KEY (ID, ID)
);
