工作流資料表設計

2022-09-16 01:06:09 字數 1817 閱讀 1252

create table `bk_workflow` (

`id` int(11) not null auto_increment,

`name` varchar(255) not null comment '工作流的名字',

`description` text not null comment '描述',

`addtime` int(11) not null default '0' comment '資料插入的時間',

`code` varchar(20) not null comment '呼叫字串,用於與程式結合',

`type` tinyint(1) not null default '0' comment '工作流的型別,1為多使用者的類oa審核,2為輔助許可權',

primary key (`id`),

unique key `code` (`code`) using btree,

key `type` (`type`) using btree

) engine=innodb auto_increment=11 default charset=utf8 comment='工作流表';

create table `bk_workflow_step` (

`id` int(11) not null auto_increment,

`workflow_id` int(11) not null comment '所屬的工作流',

`name` varchar(255) not null comment '工作流步驟的名稱',

`description` text not null comment '工作流步驟的描述',

`step_level` tinyint(4) not null default '0' comment '該工作流步驟所處的第幾步,如果為99代表已經審核完成',

`code` varchar(20) not null comment '主要用於許可權輔助呼叫',

`addtime` int(11) not null comment '資料增加的日期',

primary key (`id`),

key `workflow_id` (`workflow_id`) using btree,

key `step_level` (`step_level`) using btree,

key `code` (`code`) using btree

) engine=innodb auto_increment=16 default charset=utf8 comment='工作流的詳細步驟';

create table `bk_workflow_user` (

`id` int(11) not null auto_increment,

`workflow_step_id` int(11) not null comment '工作流步驟的id',

`user_id` int(11) not null comment '後台管理員的id',

`workflow_id` int(11) not null comment '工作流id',

primary key (`id`),

key `user_id` (`user_id`) using btree,

key `workflow_step_id` (`workflow_step_id`) using btree,

key `workflow_id` (`workflow_id`) using btree

) engine=innodb auto_increment=29 default charset=utf8 comment='工作流操作人';

工作流設計 1

工作流講解 1 工作流基礎 合同申報流程 科員 科長 法律科 處 專業處室 領導 法律處 合同起草 合同初審 合同分發 合同審批 合同審批 100w 合同簽訂 流程和簡化為 a b c d e 除過線性關係外還包括 a b1 b2 b3 c 這樣流程中包括分解和匯集的情況,在分解和匯集時會出現條件轉...

工作流引擎設計

工作流引擎設計 entworkflow 工作流主表 name code type isnull 主鍵entworkflowid intnot null 工作流名稱 workflowname varchar 50 not null 說明entworkflowobjectname varchar 255...

初探工作流的庫表設計

觀察分析上圖中,發現圖中名字應該寫錯了,應該是如下 5個表 頁面功能表 節點模板表 工作流程表 流程過程表 流程例項表 使用者表 流程人員 角色 表。下面是個人的理解,有不當之處歡迎指點!頁面功能表 是指oa流程中乙個節點的具體頁面,比如上圖中的 維修廠接貨 qc檢測 這一環節中使用者所看到的的ui...