mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-23 23:09:47 +08:00
update 优化 表sql书写格式
This commit is contained in:
@ -383,22 +383,24 @@ INSERT INTO flow_spel VALUES (2, NULL, NULL, 'initiator', '${initiator}', '流
|
|||||||
-- 流程实例业务扩展表
|
-- 流程实例业务扩展表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
CREATE TABLE flow_instance_biz_ext (
|
CREATE TABLE flow_instance_biz_ext (
|
||||||
id NUMBER(19) PRIMARY KEY,
|
id NUMBER(20),
|
||||||
tenant_id VARCHAR2(20) DEFAULT '000000',
|
tenant_id VARCHAR2(20) DEFAULT '000000',
|
||||||
create_dept NUMBER(19),
|
create_dept NUMBER(20),
|
||||||
create_by NUMBER(19),
|
create_by NUMBER(20),
|
||||||
create_time TIMESTAMP,
|
create_time TIMESTAMP,
|
||||||
update_by NUMBER(19),
|
update_by NUMBER(20),
|
||||||
update_time TIMESTAMP,
|
update_time TIMESTAMP,
|
||||||
business_code VARCHAR2(255),
|
business_code VARCHAR2(255),
|
||||||
business_title VARCHAR2(1000),
|
business_title VARCHAR2(1000),
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
del_flag CHAR(1) DEFAULT '0',
|
||||||
instance_id NUMBER(19),
|
instance_id NUMBER(20),
|
||||||
business_id VARCHAR2(255)
|
business_id VARCHAR2(255)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
alter table flow_instance_biz_ext add constraint pk_fi_biz_ext primary key (id);
|
||||||
|
|
||||||
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.id IS '岗位ID';
|
COMMENT ON COLUMN flow_instance_biz_ext.id IS '主键id';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
||||||
@ -410,6 +412,7 @@ COMMENT ON COLUMN flow_instance_biz_ext.business_title IS '业务标题';
|
|||||||
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- 请假单信息
|
-- 请假单信息
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
@ -325,7 +325,7 @@ INSERT INTO flow_category VALUES (109, '000000', 102, '0,100,102', '离职', 2,
|
|||||||
-- 流程spel表达式定义表
|
-- 流程spel表达式定义表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
CREATE TABLE flow_spel (
|
CREATE TABLE flow_spel (
|
||||||
id BIGINT NOT NULL,
|
id int8 NOT NULL,
|
||||||
component_name VARCHAR(255),
|
component_name VARCHAR(255),
|
||||||
method_name VARCHAR(255),
|
method_name VARCHAR(255),
|
||||||
method_params VARCHAR(255),
|
method_params VARCHAR(255),
|
||||||
@ -333,10 +333,10 @@ CREATE TABLE flow_spel (
|
|||||||
remark VARCHAR(255),
|
remark VARCHAR(255),
|
||||||
status CHAR(1) DEFAULT '0',
|
status CHAR(1) DEFAULT '0',
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
del_flag CHAR(1) DEFAULT '0',
|
||||||
create_dept BIGINT,
|
create_dept int8,
|
||||||
create_by BIGINT,
|
create_by int8,
|
||||||
create_time TIMESTAMP,
|
create_time TIMESTAMP,
|
||||||
update_by BIGINT,
|
update_by int8,
|
||||||
update_time TIMESTAMP,
|
update_time TIMESTAMP,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
@ -363,22 +363,23 @@ INSERT INTO flow_spel VALUES (2, NULL, NULL, 'initiator', '${initiator}', '流
|
|||||||
-- 流程实例业务扩展表
|
-- 流程实例业务扩展表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
CREATE TABLE flow_instance_biz_ext (
|
CREATE TABLE flow_instance_biz_ext (
|
||||||
id BIGINT PRIMARY KEY,
|
id int8,
|
||||||
tenant_id VARCHAR(20) DEFAULT '000000',
|
tenant_id VARCHAR(20) DEFAULT '000000',
|
||||||
create_dept BIGINT,
|
create_dept int8,
|
||||||
create_by BIGINT,
|
create_by int8,
|
||||||
create_time TIMESTAMP,
|
create_time TIMESTAMP,
|
||||||
update_by BIGINT,
|
update_by int8,
|
||||||
update_time TIMESTAMP,
|
update_time TIMESTAMP,
|
||||||
business_code VARCHAR(255),
|
business_code VARCHAR(255),
|
||||||
business_title VARCHAR(1000),
|
business_title VARCHAR(1000),
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
del_flag CHAR(1) DEFAULT '0',
|
||||||
instance_id BIGINT,
|
instance_id int8,
|
||||||
business_id VARCHAR(255)
|
business_id VARCHAR(255),
|
||||||
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.id IS 'ID';
|
COMMENT ON COLUMN flow_instance_biz_ext.id IS '主键id';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
||||||
|
@ -211,10 +211,8 @@ INSERT INTO flow_spel VALUES (2, NULL, NULL, 'initiator', '${initiator}', '流
|
|||||||
-- 流程实例业务扩展表
|
-- 流程实例业务扩展表
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
|
|
||||||
create table flow_instance_biz_ext
|
create table flow_instance_biz_ext (
|
||||||
(
|
id bigint not null comment '主键id',
|
||||||
id bigint not null comment 'ID'
|
|
||||||
primary key,
|
|
||||||
tenant_id varchar(20) default '000000' null comment '租户编号',
|
tenant_id varchar(20) default '000000' null comment '租户编号',
|
||||||
create_dept bigint null comment '创建部门',
|
create_dept bigint null comment '创建部门',
|
||||||
create_by bigint null comment '创建者',
|
create_by bigint null comment '创建者',
|
||||||
@ -225,9 +223,9 @@ create table flow_instance_biz_ext
|
|||||||
business_title varchar(1000) null comment '业务标题',
|
business_title varchar(1000) null comment '业务标题',
|
||||||
del_flag char default '0' null comment '删除标志(0代表存在 1代表删除)',
|
del_flag char default '0' null comment '删除标志(0代表存在 1代表删除)',
|
||||||
instance_id bigint null comment '流程实例Id',
|
instance_id bigint null comment '流程实例Id',
|
||||||
business_id varchar(255) null comment '业务Id'
|
business_id varchar(255) null comment '业务Id',
|
||||||
)
|
PRIMARY KEY (id)
|
||||||
comment '流程实例业务扩展表';
|
) ENGINE = InnoDB COMMENT '流程实例业务扩展表';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- 请假单信息
|
-- 请假单信息
|
||||||
|
@ -1155,7 +1155,9 @@ CREATE TABLE flow_spel (
|
|||||||
create_time DATETIME,
|
create_time DATETIME,
|
||||||
update_by BIGINT,
|
update_by BIGINT,
|
||||||
update_time DATETIME,
|
update_time DATETIME,
|
||||||
CONSTRAINT PK_flow_spel PRIMARY KEY (id)
|
CONSTRAINT PK__flow_spel__D54EE9B4AE98B9C1 PRIMARY KEY CLUSTERED (id)
|
||||||
|
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||||
|
ON [PRIMARY]
|
||||||
);
|
);
|
||||||
GO
|
GO
|
||||||
|
|
||||||
@ -1262,8 +1264,8 @@ INSERT flow_spel VALUES (2, NULL, NULL, N'initiator', N'${initiator}', N'流程
|
|||||||
GO
|
GO
|
||||||
|
|
||||||
CREATE TABLE flow_instance_biz_ext (
|
CREATE TABLE flow_instance_biz_ext (
|
||||||
id BIGINT NOT NULL PRIMARY KEY,
|
id BIGINT NOT NULL,
|
||||||
tenant_id VARCHAR(20) DEFAULT '000000',
|
tenant_id VARCHAR(20) DEFAULT ('000000'),
|
||||||
create_dept BIGINT,
|
create_dept BIGINT,
|
||||||
create_by BIGINT,
|
create_by BIGINT,
|
||||||
create_time DATETIME,
|
create_time DATETIME,
|
||||||
@ -1271,31 +1273,103 @@ CREATE TABLE flow_instance_biz_ext (
|
|||||||
update_time DATETIME,
|
update_time DATETIME,
|
||||||
business_code VARCHAR(255),
|
business_code VARCHAR(255),
|
||||||
business_title VARCHAR(1000),
|
business_title VARCHAR(1000),
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
del_flag CHAR(1) DEFAULT ('0'),
|
||||||
instance_id BIGINT,
|
instance_id BIGINT,
|
||||||
business_id VARCHAR(255)
|
business_id VARCHAR(255),
|
||||||
|
CONSTRAINT PK__fi_biz_ext__D54EE9B4AE98B9C1 PRIMARY KEY CLUSTERED (id)
|
||||||
|
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||||
|
ON [PRIMARY]
|
||||||
);
|
);
|
||||||
|
|
||||||
EXEC sp_addextendedproperty
|
EXEC sp_addextendedproperty
|
||||||
@name = N'MS_Description',
|
'MS_Description', N'流程实例业务扩展表',
|
||||||
@value = '流程实例业务扩展表',
|
'SCHEMA', N'dbo',
|
||||||
@level0type = N'SCHEMA',
|
'TABLE', N'flow_instance_biz_ext'
|
||||||
@level0name = 'dbo',
|
GO
|
||||||
@level1type = N'TABLE',
|
|
||||||
@level1name = 'flow_instance_biz_ext';
|
|
||||||
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = 'ID', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'id';
|
EXEC sp_addextendedproperty
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '租户编号', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'tenant_id';
|
'MS_Description', N'主键id',
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '创建部门', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'create_dept';
|
'SCHEMA', N'dbo',
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '创建者', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'create_by';
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '创建时间', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'create_time';
|
'COLUMN', N'id'
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '更新者', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'update_by';
|
GO
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '更新时间', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'update_time';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '业务编码', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'business_code';
|
EXEC sp_addextendedproperty
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '业务标题', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'business_title';
|
'MS_Description', N'租户编号',
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '删除标志(0代表存在 1代表删除)', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'del_flag';
|
'SCHEMA', N'dbo',
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '流程实例Id', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'instance_id';
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '业务Id', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'business_id';
|
'COLUMN', N'tenant_id'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建部门',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'create_dept'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建者',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'create_by'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建时间',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'create_time'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新者',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'update_by'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新时间',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'update_time'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'删除标志',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'del_flag'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'业务编码',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'business_code'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'业务标题',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'business_title'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'流程实例Id',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'instance_id'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'业务Id',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'business_id'
|
||||||
|
GO
|
||||||
|
|
||||||
CREATE TABLE test_leave (
|
CREATE TABLE test_leave (
|
||||||
id bigint NOT NULL,
|
id bigint NOT NULL,
|
||||||
|
@ -51,3 +51,37 @@ UPDATE flow_skip SET skip_condition = REPLACE(skip_condition, 'notNike', 'notLik
|
|||||||
|
|
||||||
ALTER TABLE flow_his_task MODIFY (collaborator VARCHAR2(500) DEFAULT NULL NULL);
|
ALTER TABLE flow_his_task MODIFY (collaborator VARCHAR2(500) DEFAULT NULL NULL);
|
||||||
COMMENT ON COLUMN flow_his_task.collaborator IS '协作人';
|
COMMENT ON COLUMN flow_his_task.collaborator IS '协作人';
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 流程实例业务扩展表
|
||||||
|
-- ----------------------------
|
||||||
|
CREATE TABLE flow_instance_biz_ext (
|
||||||
|
id NUMBER(20),
|
||||||
|
tenant_id VARCHAR2(20) DEFAULT '000000',
|
||||||
|
create_dept NUMBER(20),
|
||||||
|
create_by NUMBER(20),
|
||||||
|
create_time TIMESTAMP,
|
||||||
|
update_by NUMBER(20),
|
||||||
|
update_time TIMESTAMP,
|
||||||
|
business_code VARCHAR2(255),
|
||||||
|
business_title VARCHAR2(1000),
|
||||||
|
del_flag CHAR(1) DEFAULT '0',
|
||||||
|
instance_id NUMBER(20),
|
||||||
|
business_id VARCHAR2(255)
|
||||||
|
);
|
||||||
|
|
||||||
|
alter table flow_instance_biz_ext add constraint pk_fi_biz_ext primary key (id);
|
||||||
|
|
||||||
|
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.id IS '主键id';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.update_by IS '更新者';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.update_time IS '更新时间';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.business_code IS '业务编码';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.business_title IS '业务标题';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
CREATE TABLE flow_instance_biz_ext (
|
|
||||||
id NUMBER(19) PRIMARY KEY,
|
|
||||||
tenant_id VARCHAR2(20) DEFAULT '000000',
|
|
||||||
create_dept NUMBER(19),
|
|
||||||
create_by NUMBER(19),
|
|
||||||
create_time TIMESTAMP,
|
|
||||||
update_by NUMBER(19),
|
|
||||||
update_time TIMESTAMP,
|
|
||||||
business_code VARCHAR2(255),
|
|
||||||
business_title VARCHAR2(1000),
|
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
|
||||||
instance_id NUMBER(19),
|
|
||||||
business_id VARCHAR2(255)
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.id IS '岗位ID';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_time IS '创建时间';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.update_by IS '更新者';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.update_time IS '更新时间';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_code IS '业务编码';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_title IS '业务标题';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
|
@ -53,3 +53,37 @@ ALTER TABLE flow_his_task
|
|||||||
ALTER COLUMN collaborator SET DEFAULT NULL,
|
ALTER COLUMN collaborator SET DEFAULT NULL,
|
||||||
ALTER COLUMN collaborator TYPE VARCHAR(500);
|
ALTER COLUMN collaborator TYPE VARCHAR(500);
|
||||||
COMMENT ON COLUMN flow_his_task.collaborator IS '协作人';
|
COMMENT ON COLUMN flow_his_task.collaborator IS '协作人';
|
||||||
|
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 流程实例业务扩展表
|
||||||
|
-- ----------------------------
|
||||||
|
CREATE TABLE flow_instance_biz_ext (
|
||||||
|
id int8,
|
||||||
|
tenant_id VARCHAR(20) DEFAULT '000000',
|
||||||
|
create_dept int8,
|
||||||
|
create_by int8,
|
||||||
|
create_time TIMESTAMP,
|
||||||
|
update_by int8,
|
||||||
|
update_time TIMESTAMP,
|
||||||
|
business_code VARCHAR(255),
|
||||||
|
business_title VARCHAR(1000),
|
||||||
|
del_flag CHAR(1) DEFAULT '0',
|
||||||
|
instance_id int8,
|
||||||
|
business_id VARCHAR(255),
|
||||||
|
PRIMARY KEY (id)
|
||||||
|
);
|
||||||
|
|
||||||
|
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.id IS '主键id';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.create_time IS '创建时间';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.update_by IS '更新者';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.update_time IS '更新时间';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.business_code IS '业务编码';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.business_title IS '业务标题';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
||||||
|
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
CREATE TABLE flow_instance_biz_ext (
|
|
||||||
id BIGINT PRIMARY KEY,
|
|
||||||
tenant_id VARCHAR(20) DEFAULT '000000',
|
|
||||||
create_dept BIGINT,
|
|
||||||
create_by BIGINT,
|
|
||||||
create_time TIMESTAMP,
|
|
||||||
update_by BIGINT,
|
|
||||||
update_time TIMESTAMP,
|
|
||||||
business_code VARCHAR(255),
|
|
||||||
business_title VARCHAR(1000),
|
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
|
||||||
instance_id BIGINT,
|
|
||||||
business_id VARCHAR(255)
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.id IS 'ID';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.create_time IS '创建时间';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.update_by IS '更新者';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.update_time IS '更新时间';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_code IS '业务编码';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_title IS '业务标题';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
|
||||||
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
|
@ -162,3 +162,111 @@ ELSE
|
|||||||
'TABLE', N'flow_his_task',
|
'TABLE', N'flow_his_task',
|
||||||
'COLUMN', N'collaborator'
|
'COLUMN', N'collaborator'
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
CREATE TABLE flow_instance_biz_ext (
|
||||||
|
id BIGINT NOT NULL,
|
||||||
|
tenant_id VARCHAR(20) DEFAULT ('000000'),
|
||||||
|
create_dept BIGINT,
|
||||||
|
create_by BIGINT,
|
||||||
|
create_time DATETIME,
|
||||||
|
update_by BIGINT,
|
||||||
|
update_time DATETIME,
|
||||||
|
business_code VARCHAR(255),
|
||||||
|
business_title VARCHAR(1000),
|
||||||
|
del_flag CHAR(1) DEFAULT ('0'),
|
||||||
|
instance_id BIGINT,
|
||||||
|
business_id VARCHAR(255),
|
||||||
|
CONSTRAINT PK__fi_biz_ext__D54EE9B4AE98B9C1 PRIMARY KEY CLUSTERED (id)
|
||||||
|
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||||
|
ON [PRIMARY]
|
||||||
|
);
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'流程实例业务扩展表',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'主键id',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'id'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'租户编号',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'tenant_id'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建部门',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'create_dept'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建者',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'create_by'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'创建时间',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'create_time'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新者',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'update_by'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'更新时间',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'update_time'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'删除标志',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'del_flag'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'业务编码',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'business_code'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'业务标题',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'business_title'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'流程实例Id',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'instance_id'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sp_addextendedproperty
|
||||||
|
'MS_Description', N'业务Id',
|
||||||
|
'SCHEMA', N'dbo',
|
||||||
|
'TABLE', N'flow_instance_biz_ext',
|
||||||
|
'COLUMN', N'business_id'
|
||||||
|
GO
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
CREATE TABLE flow_instance_biz_ext (
|
|
||||||
id BIGINT NOT NULL PRIMARY KEY,
|
|
||||||
tenant_id VARCHAR(20) DEFAULT '000000',
|
|
||||||
create_dept BIGINT,
|
|
||||||
create_by BIGINT,
|
|
||||||
create_time DATETIME,
|
|
||||||
update_by BIGINT,
|
|
||||||
update_time DATETIME,
|
|
||||||
business_code VARCHAR(255),
|
|
||||||
business_title VARCHAR(1000),
|
|
||||||
del_flag CHAR(1) DEFAULT '0',
|
|
||||||
instance_id BIGINT,
|
|
||||||
business_id VARCHAR(255)
|
|
||||||
);
|
|
||||||
|
|
||||||
EXEC sp_addextendedproperty
|
|
||||||
@name = N'MS_Description',
|
|
||||||
@value = '流程实例业务扩展表',
|
|
||||||
@level0type = N'SCHEMA',
|
|
||||||
@level0name = 'dbo',
|
|
||||||
@level1type = N'TABLE',
|
|
||||||
@level1name = 'flow_instance_biz_ext';
|
|
||||||
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = 'ID', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'id';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '租户编号', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'tenant_id';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '创建部门', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'create_dept';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '创建者', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'create_by';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '创建时间', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'create_time';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '更新者', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'update_by';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '更新时间', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'update_time';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '业务编码', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'business_code';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '业务标题', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'business_title';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '删除标志(0代表存在 1代表删除)', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'del_flag';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '流程实例Id', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'instance_id';
|
|
||||||
EXEC sp_addextendedproperty @name = N'MS_Description', @value = '业务Id', @level0type = N'SCHEMA', @level0name = 'dbo', @level1type = N'TABLE', @level1name = 'flow_instance_biz_ext', @level2type = N'COLUMN', @level2name = 'business_id';
|
|
@ -35,3 +35,23 @@ update flow_skip set skip_condition = REPLACE(skip_condition,'notNike','notLike'
|
|||||||
|
|
||||||
ALTER TABLE `flow_his_task`
|
ALTER TABLE `flow_his_task`
|
||||||
MODIFY COLUMN `collaborator` varchar(500) NULL DEFAULT NULL COMMENT '协作人' AFTER `cooperate_type`;
|
MODIFY COLUMN `collaborator` varchar(500) NULL DEFAULT NULL COMMENT '协作人' AFTER `cooperate_type`;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 流程实例业务扩展表
|
||||||
|
-- ----------------------------
|
||||||
|
|
||||||
|
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 '流程实例业务扩展表';
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
create table flow_instance_biz_ext
|
|
||||||
(
|
|
||||||
id bigint not null comment 'ID'
|
|
||||||
primary key,
|
|
||||||
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'
|
|
||||||
)
|
|
||||||
comment '流程实例业务扩展表';
|
|
Reference in New Issue
Block a user