123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- create table ACT_HI_PROCINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- BUSINESS_KEY_ varchar(255),
- PROC_DEF_ID_ varchar(64) not null,
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- START_USER_ID_ varchar(255),
- START_ACT_ID_ varchar(255),
- END_ACT_ID_ varchar(255),
- SUPER_PROCESS_INSTANCE_ID_ varchar(64),
- DELETE_REASON_ varchar(4000),
- TENANT_ID_ varchar(255) default '',
- NAME_ varchar(255),
- primary key (ID_)
- );
- alter table ACT_HI_PROCINST add constraint PROC_INST_ID_ unique(PROC_INST_ID_);
- create table ACT_HI_ACTINST (
- ID_ varchar(64) not null,
- PROC_DEF_ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64) not null,
- EXECUTION_ID_ varchar(64) not null,
- ACT_ID_ varchar(255) not null,
- TASK_ID_ varchar(64),
- CALL_PROC_INST_ID_ varchar(64),
- ACT_NAME_ varchar(255),
- ACT_TYPE_ varchar(255) not null,
- OWNER_ varchar(64),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- END_TIME_ timestamp,
- DURATION_ bigint,
- TENANT_ID_ varchar(255) default '',
- primary key (ID_)
- );
- create table ACT_HI_TASKINST (
- ID_ varchar(64) not null,
- PROC_DEF_ID_ varchar(64),
- TASK_DEF_KEY_ varchar(255),
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- NAME_ varchar(255),
- PARENT_TASK_ID_ varchar(64),
- DESCRIPTION_ varchar(4000),
- OWNER_ varchar(255),
- ASSIGNEE_ varchar(255),
- START_TIME_ timestamp not null,
- CLAIM_TIME_ timestamp,
- END_TIME_ timestamp,
- DURATION_ bigint,
- DELETE_REASON_ varchar(4000),
- PRIORITY_ integer,
- DUE_DATE_ timestamp,
- FORM_KEY_ varchar(255),
- CATEGORY_ varchar(255),
- TENANT_ID_ varchar(255) default '',
- primary key (ID_)
- );
- create table ACT_HI_VARINST (
- ID_ varchar(64) not null,
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(100),
- REV_ integer,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- CREATE_TIME_ timestamp,
- LAST_UPDATED_TIME_ timestamp,
- primary key (ID_)
- );
- create table ACT_HI_DETAIL (
- ID_ varchar(64) not null,
- TYPE_ varchar(255) not null,
- PROC_INST_ID_ varchar(64),
- EXECUTION_ID_ varchar(64),
- TASK_ID_ varchar(64),
- ACT_INST_ID_ varchar(64),
- NAME_ varchar(255) not null,
- VAR_TYPE_ varchar(255),
- REV_ integer,
- TIME_ timestamp not null,
- BYTEARRAY_ID_ varchar(64),
- DOUBLE_ double precision,
- LONG_ bigint,
- TEXT_ varchar(4000),
- TEXT2_ varchar(4000),
- primary key (ID_)
- );
- create table ACT_HI_COMMENT (
- ID_ varchar(64) not null,
- TYPE_ varchar(255),
- TIME_ timestamp not null,
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- ACTION_ varchar(255),
- MESSAGE_ varchar(4000),
- FULL_MSG_ BLOB,
- primary key (ID_)
- );
- create table ACT_HI_ATTACHMENT (
- ID_ varchar(64) not null,
- REV_ integer,
- USER_ID_ varchar(255),
- NAME_ varchar(255),
- DESCRIPTION_ varchar(4000),
- TYPE_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- URL_ varchar(4000),
- CONTENT_ID_ varchar(64),
- TIME_ timestamp,
- primary key (ID_)
- );
- create table ACT_HI_IDENTITYLINK (
- ID_ varchar(64) not null,
- GROUP_ID_ varchar(255),
- TYPE_ varchar(255),
- USER_ID_ varchar(255),
- TASK_ID_ varchar(64),
- PROC_INST_ID_ varchar(64),
- primary key (ID_)
- );
- create index ACT_IDX_HI_PRO_INST_END on ACT_HI_PROCINST(END_TIME_);
- create index ACT_IDX_HI_PRO_I_BUSKEY on ACT_HI_PROCINST(BUSINESS_KEY_);
- create index ACT_IDX_HI_ACT_INST_START on ACT_HI_ACTINST(START_TIME_);
- create index ACT_IDX_HI_ACT_INST_END on ACT_HI_ACTINST(END_TIME_);
- create index ACT_IDX_HI_DETAIL_PROC_INST on ACT_HI_DETAIL(PROC_INST_ID_);
- create index ACT_IDX_HI_DETAIL_ACT_INST on ACT_HI_DETAIL(ACT_INST_ID_);
- create index ACT_IDX_HI_DETAIL_TIME on ACT_HI_DETAIL(TIME_);
- create index ACT_IDX_HI_DETAIL_NAME on ACT_HI_DETAIL(NAME_);
- create index ACT_IDX_HI_DETAIL_TASK_ID on ACT_HI_DETAIL(TASK_ID_);
- create index ACT_IDX_HI_PROCVAR_PROC_INST on ACT_HI_VARINST(PROC_INST_ID_);
- create index ACT_IDX_HI_PROCVAR_NAME_TYPE on ACT_HI_VARINST(NAME_, VAR_TYPE_);
- create index ACT_IDX_HI_PROCVAR_TASK_ID on ACT_HI_VARINST(TASK_ID_);
- create index ACT_IDX_HI_ACT_INST_PROCINST on ACT_HI_ACTINST(PROC_INST_ID_, ACT_ID_);
- create index ACT_IDX_HI_ACT_INST_EXEC on ACT_HI_ACTINST(EXECUTION_ID_, ACT_ID_);
- create index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK(USER_ID_);
- create index ACT_IDX_HI_IDENT_LNK_TASK on ACT_HI_IDENTITYLINK(TASK_ID_);
- create index ACT_IDX_HI_IDENT_LNK_PROCINST on ACT_HI_IDENTITYLINK(PROC_INST_ID_);
- create index ACT_IDX_HI_TASK_INST_PROCINST on ACT_HI_TASKINST(PROC_INST_ID_);
|