94 lines
5.6 KiB
SQL
94 lines
5.6 KiB
SQL
alter table flow_definition
|
||
add model_value varchar(40) default 'CLASSICS' null comment '设计器模型(CLASSICS经典模型 MIMIC仿钉钉模型)' after flow_code;
|
||
|
||
alter table flow_definition
|
||
add create_by varchar(64) default '' null comment '创建人' after create_time;
|
||
|
||
alter table flow_definition
|
||
add update_by varchar(64) default '' null comment '更新人' after update_time;
|
||
|
||
alter table flow_node
|
||
add create_by varchar(64) default '' null comment '创建人' after create_time;
|
||
|
||
alter table flow_node
|
||
add update_by varchar(64) default '' null comment '更新人' after update_time;
|
||
|
||
alter table flow_skip
|
||
add create_by varchar(64) default '' null comment '创建人' after create_time;
|
||
|
||
alter table flow_skip
|
||
add update_by varchar(64) default '' null comment '更新人' after update_time;
|
||
|
||
alter table flow_instance
|
||
add update_by varchar(64) default '' null comment '更新人' after update_time;
|
||
|
||
alter table flow_task
|
||
add create_by varchar(64) default '' null comment '创建人' after create_time;
|
||
|
||
alter table flow_task
|
||
add update_by varchar(64) default '' null comment '更新人' after update_time;
|
||
|
||
|
||
alter table flow_his_task
|
||
modify collaborator varchar(500) null comment '协作人';
|
||
|
||
alter table flow_user
|
||
add update_by varchar(64) default '' null comment '更新人' after update_time;
|
||
|
||
|
||
|
||
CREATE TABLE flow_spel (
|
||
id bigint(20) NOT NULL COMMENT '主键id',
|
||
component_name varchar(255) DEFAULT NULL COMMENT '组件名称',
|
||
method_name varchar(255) DEFAULT NULL COMMENT '方法名',
|
||
method_params varchar(255) DEFAULT NULL COMMENT '参数',
|
||
view_spel varchar(255) DEFAULT NULL COMMENT '预览spel表达式',
|
||
remark varchar(255) DEFAULT NULL COMMENT '备注',
|
||
status char(1) DEFAULT '0' COMMENT '状态(0正常 1停用)',
|
||
del_flag char(1) DEFAULT '0' COMMENT '删除标志',
|
||
create_dept bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||
create_by bigint(20) DEFAULT NULL COMMENT '创建者',
|
||
create_time datetime DEFAULT NULL COMMENT '创建时间',
|
||
update_by bigint(20) DEFAULT NULL COMMENT '更新者',
|
||
update_time datetime DEFAULT NULL COMMENT '更新时间',
|
||
PRIMARY KEY (id)
|
||
) ENGINE = InnoDB COMMENT='流程spel表达式定义表';
|
||
|
||
INSERT INTO flow_spel VALUES (1, 'spelRuleComponent', 'selectDeptLeaderById', 'initiatorDeptId', '#{@spelRuleComponent.selectDeptLeaderById(#initiatorDeptId)}', '根据部门id获取部门负责人', '0', '0', 103, 1, sysdate(), 1, sysdate());
|
||
INSERT INTO flow_spel VALUES (2, NULL, NULL, 'initiator', '${initiator}', '流程发起人', '0', '0', 103, 1, sysdate(), 1, sysdate());
|
||
|
||
-- ----------------------------
|
||
-- 流程实例业务扩展表
|
||
-- ----------------------------
|
||
|
||
create table flow_instance_biz_ext (
|
||
id bigint not null comment '主键id',
|
||
tenant_id varchar(20) default '000000' null comment '租户编号',
|
||
create_dept bigint null comment '创建部门',
|
||
create_by bigint null comment '创建者',
|
||
create_time datetime null comment '创建时间',
|
||
update_by bigint null comment '更新者',
|
||
update_time datetime null comment '更新时间',
|
||
business_code varchar(255) null comment '业务编码',
|
||
business_title varchar(1000) null comment '业务标题',
|
||
del_flag char default '0' null comment '删除标志(0代表存在 1代表删除)',
|
||
instance_id bigint null comment '流程实例Id',
|
||
business_id varchar(255) null comment '业务Id',
|
||
PRIMARY KEY (id)
|
||
) ENGINE = InnoDB COMMENT '流程实例业务扩展表';
|
||
|
||
|
||
alter table test_leave
|
||
add apply_code varchar(50) null comment '申请编号' after tenant_id;
|
||
|
||
|
||
INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, query_param, is_frame, is_cache,
|
||
menu_type, visible, status, perms, icon, create_dept, create_by, create_time,
|
||
update_by, update_time, remark)
|
||
VALUES
|
||
('11802', '流程达式定义查询', '11801', 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:query', '#', 103, 1, sysdate(), NULL, NULL, ''),
|
||
('11803', '流程达式定义新增', '11801', 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:add', '#', 103, 1, sysdate(), NULL, NULL, ''),
|
||
('11804', '流程达式定义修改', '11801', 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:edit', '#', 103, 1, sysdate(), NULL, NULL, ''),
|
||
('11805', '流程达式定义删除', '11801', 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:remove', '#', 103, 1, sysdate(), NULL, NULL, ''),
|
||
('11806', '流程达式定义导出', '11801', 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:export', '#', 103, 1, sysdate(), NULL, NULL, '');
|