CREATE TABLE hey_act_hi_detail (
    ID                   VARCHAR2(256) ,
    TYPE                 VARCHAR2(1020)    NOT NULL,
    PROC_DEF_KEY         VARCHAR2(1020),
    PROC_DEF_ID          VARCHAR2(256) ,
    ROOT_PROC_INST_ID    VARCHAR2(256) ,
    PROC_INST_ID         VARCHAR2(256) ,
    EXECUTION_ID         VARCHAR2(256) ,
    CASE_DEF_KEY         VARCHAR2(1020),
    CASE_DEF_ID          VARCHAR2(256) ,
    CASE_INST_ID         VARCHAR2(256) ,
    CASE_EXECUTION_ID    VARCHAR2(256) ,
    TASK_ID              VARCHAR2(256) ,
    ACT_INST_ID          VARCHAR2(256) ,
    VAR_INST_ID          VARCHAR2(256) ,
    NAME                 VARCHAR2(1020)    NOT NULL,
    VAR_TYPE             VARCHAR2(256) ,
    REV                  NUMBER        ,
    TIME                 TIMESTAMP(6)      NOT NULL,
    BYTEARRAY_ID         VARCHAR2(256) ,
    DOUBLE               NUMBER        ,
    LONG1                NUMBER(19, 0) ,
    TEXT                 VARCHAR2(4000),
    TEXT2                VARCHAR2(4000),
    SEQUENCE_COUNTER     NUMBER(19, 0) ,
    TENANT_ID            VARCHAR2(256) ,
    OPERATION_ID         VARCHAR2(256) ,
    REMOVAL_TIME         TIMESTAMP(6)  ,
    INITIAL1             NUMBER(1, 0)  ,
    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) ,
    TYPE                 VARCHAR2(1020)    NOT NULL,
    PROC_DEF_KEY         VARCHAR2(1020),
    PROC_DEF_ID          VARCHAR2(256) ,
    ROOT_PROC_INST_ID    VARCHAR2(256) ,
    PROC_INST_ID         VARCHAR2(256) ,
    EXECUTION_ID         VARCHAR2(256) ,
    CASE_DEF_KEY         VARCHAR2(1020),
    CASE_DEF_ID          VARCHAR2(256) ,
    CASE_INST_ID         VARCHAR2(256) ,
    CASE_EXECUTION_ID    VARCHAR2(256) ,
    TASK_ID              VARCHAR2(256) ,
    ACT_INST_ID          VARCHAR2(256) ,
    VAR_INST_ID          VARCHAR2(256) ,
    NAME                 VARCHAR2(1020)    NOT NULL,
    VAR_TYPE             VARCHAR2(256) ,
    REV                  NUMBER        ,
    TIME                 TIMESTAMP(6)      NOT NULL,
    BYTEARRAY_ID         VARCHAR2(256) ,
    DOUBLE               NUMBER        ,
    LONG1                NUMBER(19, 0) ,
    TEXT                 VARCHAR2(4000),
    TEXT2                VARCHAR2(4000),
    SEQUENCE_COUNTER     NUMBER(19, 0) ,
    TENANT_ID            VARCHAR2(256) ,
    OPERATION_ID         VARCHAR2(256) ,
    REMOVAL_TIME         TIMESTAMP(6)  ,
    INITIAL1             NUMBER(1, 0)  ,
    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_detail PRIMARY KEY (ID, ID)
);
