/*
Navicat MySQL Data Transfer

Source Server         : .
Source Server Version : 50553
Source Host           : localhost:3306
Source Database       : openauthdb

Target Server Type    : MYSQL
Target Server Version : 50553
File Encoding         : 65001

Date: 2017-06-29 14:46:55
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
  `Id` char(36) NOT NULL COMMENT '分类表ID',
  `CascadeId` varchar(255) NOT NULL COMMENT '节点语义ID',
  `Name` varchar(255) NOT NULL COMMENT '名称',
  `Status` int(11) NOT NULL COMMENT '当前状态',
  `SortNo` int(11) NOT NULL COMMENT '排序号',
  `RootKey` varchar(100) NOT NULL COMMENT '分类所属科目',
  `RootName` varchar(200) NOT NULL COMMENT '分类所属科目名称',
  `ParentId` char(36) DEFAULT NULL COMMENT '父节点流水号',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='分类表';

-- ----------------------------
-- Records of category
-- ----------------------------
INSERT INTO `category` VALUES ('FA37B322-508B-47CE-B29F-B1DACB82637A', '0.3.', '机密资源', '0', '0', 'STOCK', '进出库管理', null);
INSERT INTO `category` VALUES ('8FE31CFE-B117-4875-A29A-CC16F33AE11D', '0.4.', '角色类型', '0', '0', '', '', null);

-- ----------------------------
-- Table structure for dicdetail
-- ----------------------------
DROP TABLE IF EXISTS `dicdetail`;
CREATE TABLE `dicdetail` (
  `Id` char(36) NOT NULL COMMENT 'ID',
  `Value` varchar(100) NOT NULL COMMENT '值',
  `Text` varchar(100) NOT NULL COMMENT '文本描述',
  `SortNo` int(11) NOT NULL COMMENT '排序号',
  `Status` int(11) NOT NULL COMMENT '状态',
  `Description` varchar(100) NOT NULL COMMENT '描述',
  `DicId` char(36) NOT NULL COMMENT '所属字典ID',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='数据字典详情';

-- ----------------------------
-- Records of dicdetail
-- ----------------------------

-- ----------------------------
-- Table structure for dicindex
-- ----------------------------
DROP TABLE IF EXISTS `dicindex`;
CREATE TABLE `dicindex` (
  `Id` char(36) NOT NULL COMMENT '数据字典ID',
  `Name` varchar(255) NOT NULL COMMENT '名称',
  `Key` varchar(100) NOT NULL,
  `SortNo` int(11) NOT NULL COMMENT '排序号',
  `Description` varchar(200) NOT NULL COMMENT '描述',
  `CategoryId` char(36) DEFAULT NULL COMMENT '所属分类',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='数据字典';

-- ----------------------------
-- Records of dicindex
-- ----------------------------

-- ----------------------------
-- Table structure for module
-- ----------------------------
DROP TABLE IF EXISTS `module`;
CREATE TABLE `module` (
  `Id` char(36) NOT NULL COMMENT '功能模块流水号',
  `CascadeId` varchar(255) NOT NULL COMMENT '节点语义ID',
  `Name` varchar(255) NOT NULL COMMENT '功能模块名称',
  `Url` varchar(255) NOT NULL COMMENT '主页面URL',
  `HotKey` varchar(255) NOT NULL COMMENT '热键',
  `IsLeaf` tinyint(4) NOT NULL COMMENT '是否叶子节点',
  `IsAutoExpand` tinyint(4) NOT NULL COMMENT '是否自动展开',
  `IconName` varchar(255) NOT NULL COMMENT '节点图标文件名称',
  `Status` int(11) NOT NULL COMMENT '当前状态',
  `ParentName` varchar(255) NOT NULL COMMENT '父节点名称',
  `Vector` varchar(255) NOT NULL COMMENT '矢量图标',
  `SortNo` int(11) NOT NULL COMMENT '排序号',
  `ParentId` char(36) DEFAULT NULL COMMENT '父节点流水号',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='功能模块表';

-- ----------------------------
-- Records of module
-- ----------------------------
INSERT INTO `module` VALUES ('BEDB41A2-F310-4775-AF99-01BE08ADDA93', '.0.1.1.', '角色管理', '/RoleManager/Index', '', '1', '0', 'fa-users', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('0031262C-689C-4B96-BAE2-2C9D67076ADE', '.0.1.2.', '流程设计', '/flowmanage/flowdesign/index', '', '0', '0', 'fa-anchor', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('E8DC5DB6-4FC4-4795-A1CC-681CBCCEEC91', '.0.1.3.', '资源管理', '/ResourceManager/Index', '', '0', '0', 'fa-calculator', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C', '.0.1.4.', '用户管理', '/UserManager/Index', '', '0', '0', 'fa-user', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('9486FF22-B696-4D7F-8093-8A3E53C45453', '.0.2.3.', '流程处理', '/FlowManage/FlowInstances/Index', '', '0', '0', 'fa-clock-o', '0', '应用功能', '', '2', '069475E3-C997-487A-9F29-E6A864C5C1D4');
INSERT INTO `module` VALUES ('7580672F-A390-4BB6-982D-9A4570CB5199', '.0.1.', '基础配置', ' ', ' ', '1', '0', 'fa-cog', '1', '根节点', ' ', '0', null);
INSERT INTO `module` VALUES ('92B00259-2D15-43E7-9321-ADFFB29E8BF2', '.0.1.5.', '表单设计', '/flowmanage/formdesign/index', '', '0', '0', 'fa-anchor', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('89C3BFBE-246F-4112-8EB1-B6789DA54202', '.0.2.2.', '进出库管理', '/StockManager/Index', '', '0', '0', 'fa-archive', '0', '应用功能', '', '1', '069475E3-C997-487A-9F29-E6A864C5C1D4');
INSERT INTO `module` VALUES ('BC80478D-0547-4437-9CFF-BE4B40144BDF', '.0.1.6.', '模块管理', '/ModuleManager/Index', ' ', '1', '0', 'fa-file-code-o', '0', '基础配置', ' ', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('069475E3-C997-487A-9F29-E6A864C5C1D4', '.0.2.', '应用功能', '/', 'c', '0', '0', 'fa-bars', '0', '根节点', '', '0', null);
INSERT INTO `module` VALUES ('A94D5648-C2A9-405E-BA6F-F1602EC9B807', '.0.1.7.', '分类管理', '/CategoryManager/Index', '', '0', '0', 'fa-archive', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `module` VALUES ('6A9E1346-0C01-44D2-8EB1-F929FDAB542A', '.0.1.8.', '部门管理', '/OrgManager/Index', '', '0', '0', 'fa-plus-square-o', '0', '基础配置', '', '0', '7580672F-A390-4BB6-982D-9A4570CB5199');

-- ----------------------------
-- Table structure for moduleelement
-- ----------------------------
DROP TABLE IF EXISTS `moduleelement`;
CREATE TABLE `moduleelement` (
  `Id` char(36) NOT NULL COMMENT '流水号',
  `DomId` varchar(255) NOT NULL COMMENT 'DOM ID',
  `Name` varchar(255) NOT NULL COMMENT '名称',
  `Type` varchar(50) NOT NULL COMMENT '类型',
  `Attr` text NOT NULL COMMENT '元素附加属性',
  `Script` text NOT NULL COMMENT '元素调用脚本',
  `Icon` varchar(255) NOT NULL COMMENT '元素图标',
  `Class` varchar(255) NOT NULL COMMENT '元素样式',
  `Remark` varchar(200) NOT NULL COMMENT '备注',
  `Sort` int(11) NOT NULL COMMENT '排序字段',
  `ModuleId` char(36) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='模块元素表(需要权限控制的按钮)';

-- ----------------------------
-- Records of moduleelement
-- ----------------------------
INSERT INTO `moduleelement` VALUES ('38109CA0-32EC-44BD-A243-017E591B532B', 'btnEditStock', '编辑', 'button', ' ', 'edit()', 'pencil', 'btn-pink', '编辑进出库', '0', '89C3BFBE-246F-4112-8EB1-B6789DA54202');
INSERT INTO `moduleelement` VALUES ('18CC3217-28A6-49B2-9A20-080230065984', 'btnEdit', '编辑', '', '', 'edit()', 'plus', 'btn-pink', '', '1', '0031262C-689C-4B96-BAE2-2C9D67076ADE');
INSERT INTO `moduleelement` VALUES ('8966B04F-8E26-4046-8B03-0C64F9F833DD', 'btnDel', '删除', '', '', 'del()', 'trash', 'btn-danger', '', '3', '92B00259-2D15-43E7-9321-ADFFB29E8BF2');
INSERT INTO `moduleelement` VALUES ('15A4F88C-4FAE-4CAB-BA2F-0CBD2CCA8736', 'btnAssignRes', '为角色分配资源', 'button', '', 'openRoleReourceAccess(this)', 'pencil', 'btn-success', '为角色分配资源', '3', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `moduleelement` VALUES ('0D25438E-1436-48E0-AEDF-0F1690693282', 'btnAccessModule', '为角色分配模块', 'button', '', 'assignRoleModule(this)', 'pencil', 'btn-success', '为角色分配模块', '4', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `moduleelement` VALUES ('3DC0EC4D-BF86-4BAE-9EC0-1D6C2403FB99', 'btnAdd', '添加', '', '', 'add()', 'plus', 'btn-success', '', '1', '92B00259-2D15-43E7-9321-ADFFB29E8BF2');
INSERT INTO `moduleelement` VALUES ('2FEEFCE1-E3D8-42AC-B811-2352679628DA', 'btnDel', '删除', 'button', '', 'del()', 'trash', 'btn-danger', '刪除用戶', '2', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('17AE4FD4-AB4E-439E-BA1D-2A53B46D112B', 'btnDel', '删除', '', '', 'del()', 'trash', 'btn-danger', '', '2', '0031262C-689C-4B96-BAE2-2C9D67076ADE');
INSERT INTO `moduleelement` VALUES ('816B12B3-E916-446D-A2FA-329CFD13C831', 'btnDetail', '进度详情', 'button', '', 'detail()', 'bar', 'btn-success', '', '4', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `moduleelement` VALUES ('68484265-7802-4F06-B024-33E8B2F2EDCF', 'btnAdd', '新的申请', 'button', '', 'add()', 'plus', 'btn-success', '申请物品', '0', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `moduleelement` VALUES ('68FC793F-069F-43E1-A012-42AC2D7C585C', 'btnDel', '删除', 'button', '', 'del()', 'trash', 'btn-danger', '删除角色', '2', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `moduleelement` VALUES ('D1BA6A72-BA14-44C0-BABA-46D0AD96FE8A', 'btnRefresh', '刷新', 'button', '', 'refresh()', 'refresh', 'btn-success', '刷新用户', '3', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('50C9DF24-B233-42CB-9A0D-4CE158C75F86', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-success', '添加用戶', '0', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('6839A297-350B-4215-B680-4E5DFDAE5615', 'btnAssignReource', '为用户分配资源', 'button', '', 'openUserReourceAccess(this)', 'pencil', 'btn-success', '为用户分配资源', '4', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('7F071C63-1620-4486-9264-5806B2E63218', 'btnAccessRole', '为用户分配角色', 'button', '', 'openUserRoleAccess(this)', 'pencil', 'btn-success', '为用户分配角色', '5', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('DADDF3B9-71B5-45AC-B85D-5A11C522F2F4', 'btnDel', '删除', 'button', ' ', 'del()', 'pencil', 'btn-danger', '删除模块', '0', 'BC80478D-0547-4437-9CFF-BE4B40144BDF');
INSERT INTO `moduleelement` VALUES ('34730F5A-D307-457B-9041-5F7DE30ABFA9', 'btnEdit', '编辑', 'button', '', 'edit()', 'pencil', 'btn-pink', '编辑用户', '1', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('645B40AC-4223-44A7-AAB4-66EB56CF9864', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-success', '添加角色', '0', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `moduleelement` VALUES ('1C9ACC3E-A40D-4D07-B495-6E60EB9B71B9', 'btnEdit', '编辑', 'button', '', 'edit()', 'pencil', 'btn-pink', '编辑角色', '1', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `moduleelement` VALUES ('F8DDE22A-2A37-47C4-8E67-70FB3AF5303E', 'btnRefresh', '刷新', 'button', '', 'refresh()', 'refresh', 'btn-success', '刷新部门', '0', '6A9E1346-0C01-44D2-8EB1-F929FDAB542A');
INSERT INTO `moduleelement` VALUES ('79CCD3EB-3AAF-4E08-83C9-713D8FF446FE', 'btnVerification', '处理', '', '', 'verificationForm()', 'bar', 'btn-danger', '', '5', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `moduleelement` VALUES ('584C7A3B-D28A-47B4-8648-7797D05D83D1', 'btnDel', '删除', 'button', '', 'del()', 'trash', 'btn-danger', '', '3', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `moduleelement` VALUES ('84694EA5-D6E1-4A65-8A59-7B5B779688D4', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn btn-green ', '添加模块', '0', 'BC80478D-0547-4437-9CFF-BE4B40144BDF');
INSERT INTO `moduleelement` VALUES ('44075557-496E-4DDE-BB75-7B69F51AB4FE', 'btnEdit', '编辑', 'button', '', 'edit()', 'pencil', 'btn-pink', '编辑模块', '0', 'BC80478D-0547-4437-9CFF-BE4B40144BDF');
INSERT INTO `moduleelement` VALUES ('EF42721F-D223-4A00-A1D9-80B81121F21A', 'btnEdit', '编辑', 'button', ' ', 'edit()', 'pencil', 'btn-pink', '编辑部门', '0', '6A9E1346-0C01-44D2-8EB1-F929FDAB542A');
INSERT INTO `moduleelement` VALUES ('1A473AFD-CBD4-41E9-9471-81F9435AAABE', 'btnEdit', '编辑', 'button', ' ', 'edit()', 'pencil', 'btn-success', '编辑分类', '0', 'A94D5648-C2A9-405E-BA6F-F1602EC9B807');
INSERT INTO `moduleelement` VALUES ('6DB928FE-93DF-460F-9472-8BB0B6CAE52C', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-success', '添加进出库', '0', '89C3BFBE-246F-4112-8EB1-B6789DA54202');
INSERT INTO `moduleelement` VALUES ('CF7388BE-2677-427C-AD78-8F00F1062B96', 'btnAssignElement', '为用户分配菜单', 'button', '', 'openAssignUserElement(this)', 'pencil', 'btn-success', '为用户分配菜单', '7', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('7B2B1FFB-398B-4F7B-83DA-8F484E1BCEA0', 'btnDel', '删除', 'button', '', 'del()', 'del', 'btn-danger', '删除部门', '0', '6A9E1346-0C01-44D2-8EB1-F929FDAB542A');
INSERT INTO `moduleelement` VALUES ('D352C8EE-3DFF-4D28-A0DE-903AE68F2533', 'btnPreview', '预览', '', '', 'preview()', 'pencil', 'btn-primary', '', '1', '0031262C-689C-4B96-BAE2-2C9D67076ADE');
INSERT INTO `moduleelement` VALUES ('84E38920-F6E5-499C-BF52-A3C6F8499FF7', 'btnDelStock', '删除', 'button', ' ', 'del()', 'trash', 'btn-danger', '删除分类', '0', 'A94D5648-C2A9-405E-BA6F-F1602EC9B807');
INSERT INTO `moduleelement` VALUES ('C3D7B478-21E9-4C1E-B866-A3C80BE7909B', 'btnRefresh', '刷新', 'button', '', 'refresh()', 'refresh', 'btn-success', '刷新分类', '0', 'A94D5648-C2A9-405E-BA6F-F1602EC9B807');
INSERT INTO `moduleelement` VALUES ('1C870438-4260-43A5-8996-A6E1DC8BBF6A', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-success', '添加部门', '0', '6A9E1346-0C01-44D2-8EB1-F929FDAB542A');
INSERT INTO `moduleelement` VALUES ('5ED1681C-13D2-4C87-8675-A8D95C0B40AE', 'btnAssign', '为模块分配按钮', 'button', '', 'assignButton()', 'bar', 'btn-danger', '为模块分配按钮', '0', 'BC80478D-0547-4437-9CFF-BE4B40144BDF');
INSERT INTO `moduleelement` VALUES ('4F2737DB-633F-4946-8A71-B08B9885F151', 'btnEdit', '编辑', '', '', 'edit()', 'pencil', 'btn-primary', '', '2', '92B00259-2D15-43E7-9321-ADFFB29E8BF2');
INSERT INTO `moduleelement` VALUES ('C7D7DAF0-3669-4A22-8BED-B092617DEB9C', 'btnDel', '删除', 'button', '', 'del()', 'trash', 'btn-danger', '删除资源', '3', 'E8DC5DB6-4FC4-4795-A1CC-681CBCCEEC91');
INSERT INTO `moduleelement` VALUES ('6C814946-DB5C-48BD-84DD-B1C38196AD74', 'btnAdd', '添加模版', '', '', 'add()', 'plus', 'btn-success', '', '0', '0031262C-689C-4B96-BAE2-2C9D67076ADE');
INSERT INTO `moduleelement` VALUES ('2D595A2A-5DE5-479E-A331-B53C799A6B10', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-success', '添加分类', '0', 'A94D5648-C2A9-405E-BA6F-F1602EC9B807');
INSERT INTO `moduleelement` VALUES ('4BFA8EA0-6B0D-426F-8687-B654575CA780', 'btnEdit', '编辑', 'button', '', 'edit()', 'pencil', 'btn-pink', '编辑资源', '2', 'E8DC5DB6-4FC4-4795-A1CC-681CBCCEEC91');
INSERT INTO `moduleelement` VALUES ('362D1EDA-C85E-4B14-A80A-B923291E08DE', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-pink', '添加', '0', 'F0F06B8F-0A86-487C-8B0E-0A12573CCD46');
INSERT INTO `moduleelement` VALUES ('9E2C6754-F258-4B14-96A0-B9D981196A65', 'btnAdd', '添加', 'button', '', 'add()', 'plus', 'btn-success', '添加资源', '0', 'E8DC5DB6-4FC4-4795-A1CC-681CBCCEEC91');
INSERT INTO `moduleelement` VALUES ('C7123D75-DD86-4CF3-AC71-C11676CD3909', 'btnAddInstance', '发起流程', '', '', 'addInstance()', 'plus', 'btn-pink', '', '3', '0031262C-689C-4B96-BAE2-2C9D67076ADE');
INSERT INTO `moduleelement` VALUES ('FA816AF1-A28D-47B5-9B8B-C46E18F902E9', 'btnAccessModule', '为用户分配模块', 'button', '', 'openUserModuleAccess(this)', 'pencil', 'btn-success', '为用户分配模块', '6', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `moduleelement` VALUES ('C0D8505C-061A-467D-862A-C94F27CAA208', 'btnAssignElement', '为角色分配菜单', 'button', '', 'assignRoleElement(this)', 'bar', 'btn-success', '为角色分配菜单', '5', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `moduleelement` VALUES ('C4C1ACBB-9CBF-4B1E-9CC0-CCF5FF544EC2', 'btnDel', '删除', 'button', '', 'del()', 'trash', 'btn-danger', '删除进出库', '0', '89C3BFBE-246F-4112-8EB1-B6789DA54202');
INSERT INTO `moduleelement` VALUES ('9C96E485-84A6-45F0-B6A7-F01DAB94B0C6', 'btnPreview', '预览', '', '', 'preview()', 'bar', 'btn-pink', '', '4', '92B00259-2D15-43E7-9321-ADFFB29E8BF2');

-- ----------------------------
-- Table structure for org
-- ----------------------------
DROP TABLE IF EXISTS `org`;
CREATE TABLE `org` (
  `Id` char(36) NOT NULL COMMENT '流水号',
  `CascadeId` varchar(255) NOT NULL COMMENT '节点语义ID',
  `Name` varchar(255) NOT NULL COMMENT '组织名称',
  `HotKey` varchar(255) NOT NULL COMMENT '热键',
  `ParentName` varchar(255) NOT NULL COMMENT '父节点名称',
  `IsLeaf` tinyint(4) NOT NULL COMMENT '是否叶子节点',
  `IsAutoExpand` tinyint(4) NOT NULL COMMENT '是否自动展开',
  `IconName` varchar(255) NOT NULL COMMENT '节点图标文件名称',
  `Status` int(11) NOT NULL COMMENT '当前状态',
  `Type` int(11) NOT NULL COMMENT '组织类型',
  `BizCode` varchar(255) NOT NULL COMMENT '业务对照码',
  `CustomCode` text NOT NULL COMMENT '自定义扩展码',
  `CreateTime` datetime NOT NULL COMMENT '创建时间',
  `CreateId` int(11) NOT NULL COMMENT '创建人ID',
  `SortNo` int(11) NOT NULL COMMENT '排序号',
  `ParentId` char(36) DEFAULT NULL COMMENT '父节点流水号',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='组织表';

-- ----------------------------
-- Records of org
-- ----------------------------
INSERT INTO `org` VALUES ('543A9FCF-4770-4FD9-865F-030E562BE238', '.0.1.', '集团总部', '', '根节点', '0', '0', '', '0', '0', '', '', '2016-10-14 11:37:13', '0', '0', null);
INSERT INTO `org` VALUES ('990CB229-CC18-41F3-8E2B-13F0F0110798', '.0.1.3.', '研发部', '', '集团总部', '0', '1', '', '0', '0', '', '', '2016-04-16 13:03:41', '0', '0', '543A9FCF-4770-4FD9-865F-030E562BE238');
INSERT INTO `org` VALUES ('08F41BF6-4388-4B1E-BD3E-2FF538B44B1B', '.0.1.3.1.', '研发小组', '', '研发部', '0', '0', '', '0', '0', '', '', '2016-10-14 11:40:31', '0', '1', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `org` VALUES ('C36E43DF-3A99-45DA-80D9-3AC5D24F4014', '.0.2.', '汇丰', '', '根节点', '0', '0', '', '0', '0', '', '', '2016-05-26 15:10:39', '0', '1', null);
INSERT INTO `org` VALUES ('86449128-D5AC-44BF-B999-F7735B7458FD', '.0.2.1.', '汇丰软件部', '', '汇丰', '0', '0', '', '0', '0', '', '', '2016-05-26 15:11:02', '0', '1', 'C36E43DF-3A99-45DA-80D9-3AC5D24F4014');

-- ----------------------------
-- Table structure for relevance
-- ----------------------------
DROP TABLE IF EXISTS `relevance`;
CREATE TABLE `relevance` (
  `Id` char(36) NOT NULL COMMENT '流水号',
  `Description` varchar(100) NOT NULL COMMENT '描述',
  `Key` varchar(100) NOT NULL,
  `Status` int(11) NOT NULL COMMENT '状态',
  `OperateTime` datetime NOT NULL COMMENT '授权时间',
  `OperatorId` int(11) NOT NULL COMMENT '授权人',
  `FirstId` char(36) NOT NULL COMMENT '第一个表主键ID',
  `SecondId` char(36) NOT NULL COMMENT '第二个表主键ID',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='多对多关系集中映射';

-- ----------------------------
-- Records of relevance
-- ----------------------------
INSERT INTO `relevance` VALUES ('120D7A5D-203C-4261-95F5-0125757FB386', '', 'UserElement', '0', '2016-10-20 17:01:00', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '7F071C63-1620-4486-9264-5806B2E63218');
INSERT INTO `relevance` VALUES ('68912E65-256E-45B6-B48E-036382598D32', '', 'RoleOrg', '0', '2016-10-17 10:03:49', '0', '2EB423D6-6AD9-4EFE-B423-872478A2A434', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `relevance` VALUES ('1CF19B35-E2C2-436F-99B9-03AC2B232CC6', '', 'RoleElement', '0', '2016-09-04 23:21:04', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '44075557-496E-4DDE-BB75-7B69F51AB4FE');
INSERT INTO `relevance` VALUES ('DFD5430B-3422-465A-BE79-05A1E06DEED2', '', 'RoleElement', '0', '2016-09-04 23:20:53', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'C7D7DAF0-3669-4A22-8BED-B092617DEB9C');
INSERT INTO `relevance` VALUES ('13612A4C-B20C-4BD0-A2CD-0AE47576364D', '', 'UserElement', '0', '2016-10-20 16:34:12', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', 'C7D7DAF0-3669-4A22-8BED-B092617DEB9C');
INSERT INTO `relevance` VALUES ('6DB5666B-6F8C-4E83-BADA-0B45054BD9A4', '', 'RoleElement', '0', '2016-09-04 23:20:41', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '0D25438E-1436-48E0-AEDF-0F1690693282');
INSERT INTO `relevance` VALUES ('3BCAAB20-E096-480E-A9BB-0FDB70686714', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'CF7388BE-2677-427C-AD78-8F00F1062B96');
INSERT INTO `relevance` VALUES ('A051AA08-38DA-4B6D-8D90-10B3C2485E4B', '', 'RoleOrg', '0', '2016-09-05 00:00:00', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '543A9FCF-4770-4FD9-865F-030E562BE238');
INSERT INTO `relevance` VALUES ('5725FF79-43C6-4778-BBFF-131CF364DAB6', '', 'UserElement', '0', '2016-10-20 17:01:01', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', 'CF7388BE-2677-427C-AD78-8F00F1062B96');
INSERT INTO `relevance` VALUES ('242E9543-3343-41D4-8816-15FFEEAEF551', '', 'UserElement', '0', '2016-09-07 15:31:15', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', '584C7A3B-D28A-47B4-8648-7797D05D83D1');
INSERT INTO `relevance` VALUES ('A8123B37-BA70-4AAB-AEF6-1938733B5210', '', 'RoleElement', '0', '2016-09-04 23:20:41', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'C0D8505C-061A-467D-862A-C94F27CAA208');
INSERT INTO `relevance` VALUES ('DA6C0645-0BF9-4ADE-9DD3-1B09E91E504C', '', 'RoleElement', '0', '2016-09-05 09:22:06', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '816B12B3-E916-446D-A2FA-329CFD13C831');
INSERT INTO `relevance` VALUES ('2D0FCC88-A7C0-4D33-8A08-1D688E9DDE83', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', 'A94D5648-C2A9-405E-BA6F-F1602EC9B807');
INSERT INTO `relevance` VALUES ('4BA3982B-F0AE-4F9A-980E-1EAEDC3B5F2E', '', 'UserElement', '0', '2016-09-07 17:48:33', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '584C7A3B-D28A-47B4-8648-7797D05D83D1');
INSERT INTO `relevance` VALUES ('AF263192-DAA8-4F29-99B9-1EFB96E31627', '', 'RoleElement', '0', '2016-09-04 23:20:41', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '645B40AC-4223-44A7-AAB4-66EB56CF9864');
INSERT INTO `relevance` VALUES ('C14ADDEB-1812-4A78-9152-1F7115B22D89', '', 'UserRole', '0', '2016-09-05 00:00:47', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813');
INSERT INTO `relevance` VALUES ('832F4A8F-7791-4AA6-BCD2-20DCB6F5EF37', '', 'UserElement', '0', '2016-09-02 14:53:04', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '15A4F88C-4FAE-4CAB-BA2F-0CBD2CCA8736');
INSERT INTO `relevance` VALUES ('9E46A946-6E81-4F61-BCBA-21E4F7FAC3DF', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `relevance` VALUES ('DF2D90B3-4E2E-40E9-B406-220009726460', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '6A9E1346-0C01-44D2-8EB1-F929FDAB542A');
INSERT INTO `relevance` VALUES ('08FF97F7-17FC-4072-B29A-287135898ECE', '', 'RoleResource', '0', '2016-09-04 23:20:21', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'FDF3AAC3-4507-40AD-AA2F-D7F0459DE252');
INSERT INTO `relevance` VALUES ('4FDE1DC6-9D73-4C7C-9238-28981858C5A6', '', 'RoleModule', '0', '2016-09-05 09:21:56', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '89C3BFBE-246F-4112-8EB1-B6789DA54202');
INSERT INTO `relevance` VALUES ('1873ED85-A88A-4236-BD40-2C416AA2576C', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `relevance` VALUES ('C9099371-8D4E-4F5B-9686-2C60A2C1C641', '', 'ProcessUser', '0', '2016-09-08 16:48:14', '0', '10CC09FB-D469-41E5-AE3F-FDD805A4BD4C', '3A95E392-07D4-4AF3-B30D-140CA93340F5');
INSERT INTO `relevance` VALUES ('2EBFF9A4-B2D5-4A35-A7DD-2CFA2F5B0522', '', 'ProcessUser', '0', '2016-09-07 17:33:38', '0', '52CC7933-A045-4DCC-8C17-1B618BFA772B', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7');
INSERT INTO `relevance` VALUES ('2D15E438-CC3A-41E9-9B13-325BFD5C804A', '', 'RoleElement', '0', '2016-09-04 23:21:09', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '84E38920-F6E5-499C-BF52-A3C6F8499FF7');
INSERT INTO `relevance` VALUES ('715D017A-68B6-468D-AA3F-32CA4CFD4B9E', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `relevance` VALUES ('9AD706E3-8E6B-4BC7-A502-371B298EF062', '', 'RoleElement', '0', '2016-09-04 23:21:13', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'EF42721F-D223-4A00-A1D9-80B81121F21A');
INSERT INTO `relevance` VALUES ('77BD93DA-2C2B-4BA8-BF05-3A1382811A6A', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', 'E8DC5DB6-4FC4-4795-A1CC-681CBCCEEC91');
INSERT INTO `relevance` VALUES ('84A52091-08A0-4A46-B661-3CD206771C29', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '0031262C-689C-4B96-BAE2-2C9D67076ADE');
INSERT INTO `relevance` VALUES ('93BCAC7A-0FF1-488C-8D1C-3DA7E44CBEFC', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'D1BA6A72-BA14-44C0-BABA-46D0AD96FE8A');
INSERT INTO `relevance` VALUES ('965F010B-2FD6-4B34-BA23-3E44C1AF2877', '', 'RoleOrg', '0', '2016-09-08 16:19:17', '0', '36094F5D-07E7-40D5-91DC-FF60F98B496A', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `relevance` VALUES ('ACC51898-5335-4903-83B9-4701A782BC4D', '', 'UserElement', '0', '2016-10-20 17:01:01', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', 'FA816AF1-A28D-47B5-9B8B-C46E18F902E9');
INSERT INTO `relevance` VALUES ('AB84B111-FB5D-4DDD-99D5-479954D9D521', '', 'RoleOrg', '0', '2016-09-08 16:19:18', '0', '36094F5D-07E7-40D5-91DC-FF60F98B496A', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `relevance` VALUES ('B2EDFEE4-F980-4AA5-B547-492D677E0674', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'EF386D5D-CD58-43C0-A4AB-80AFD0DBCD6C');
INSERT INTO `relevance` VALUES ('06F4C4A2-FAA8-4BAD-9184-50CEB517F30B', '', 'ProcessUser', '0', '2016-09-08 16:48:14', '0', '10CC09FB-D469-41E5-AE3F-FDD805A4BD4C', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7');
INSERT INTO `relevance` VALUES ('19C9621C-3D23-46B7-A841-54D5C82EC8E8', '', 'UserOrg', '0', '2016-09-02 13:56:52', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `relevance` VALUES ('16154FC4-D18E-44A3-BCF2-5539B168ABA7', '', 'RoleElement', '0', '2016-10-24 17:25:15', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '18CC3217-28A6-49B2-9A20-080230065984');
INSERT INTO `relevance` VALUES ('2014027E-0CFF-41CF-974B-56126D6EAA9A', '', 'RoleElement', '0', '2016-09-05 09:22:11', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', 'C4C1ACBB-9CBF-4B1E-9CC0-CCF5FF544EC2');
INSERT INTO `relevance` VALUES ('92F0B297-96C1-47D4-84DD-571374431BC0', '', 'RoleElement', '0', '2016-09-04 23:21:04', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '84694EA5-D6E1-4A65-8A59-7B5B779688D4');
INSERT INTO `relevance` VALUES ('80310629-5E52-482C-9A0F-5C5BDFABCD9E', '', 'RoleOrg', '0', '2016-09-05 00:00:00', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `relevance` VALUES ('64E4F5AA-28EF-4690-9B20-5F0B543964F6', '', 'UserElement', '0', '2016-09-07 15:30:19', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '816B12B3-E916-446D-A2FA-329CFD13C831');
INSERT INTO `relevance` VALUES ('9EDC7B81-2B51-4193-8805-6062E596CCDC', '', 'UserOrg', '0', '2016-09-02 13:57:32', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `relevance` VALUES ('AC184827-9899-4B40-8939-61FE9D2B187C', '', 'UserElement', '0', '2016-09-07 17:48:49', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '584C7A3B-D28A-47B4-8648-7797D05D83D1');
INSERT INTO `relevance` VALUES ('F6367CA1-0486-46A4-B9C6-65C00936A516', '', 'RoleElement', '0', '2016-09-04 23:20:53', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '9E2C6754-F258-4B14-96A0-B9D981196A65');
INSERT INTO `relevance` VALUES ('A8094B46-DE5A-40EA-A8EE-69EA905480EF', '', 'RoleModule', '0', '2016-09-05 09:21:56', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '069475E3-C997-487A-9F29-E6A864C5C1D4');
INSERT INTO `relevance` VALUES ('361FEB63-BDE2-49C7-86EC-6DF3EC6F0FE3', '', 'RoleElement', '0', '2016-09-04 23:21:13', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '1C870438-4260-43A5-8996-A6E1DC8BBF6A');
INSERT INTO `relevance` VALUES ('5167DBCD-3A32-4AE8-827E-6F381CC58FA2', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'FA816AF1-A28D-47B5-9B8B-C46E18F902E9');
INSERT INTO `relevance` VALUES ('4E613188-0387-4D17-A60D-703B4A606D75', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'BC80478D-0547-4437-9CFF-BE4B40144BDF');
INSERT INTO `relevance` VALUES ('72BF4729-AF60-42F5-B0D7-717362FFAD7F', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '2FEEFCE1-E3D8-42AC-B811-2352679628DA');
INSERT INTO `relevance` VALUES ('F579A427-A9ED-4EBE-8411-72E8E6ABD01D', '', 'UserElement', '0', '2016-09-05 16:25:26', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', '816B12B3-E916-446D-A2FA-329CFD13C831');
INSERT INTO `relevance` VALUES ('E785147C-F46B-474F-8FAD-73B14FA69822', '', 'UserRole', '0', '2016-09-06 17:06:28', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF');
INSERT INTO `relevance` VALUES ('3DE0359B-6331-4DC7-A00E-751F71DBADB5', '', 'ProcessUser', '0', '2016-09-28 09:23:30', '0', '68295D2A-4DFD-4C5E-81E3-9C787E2603BC', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7');
INSERT INTO `relevance` VALUES ('2A36A2B7-41AA-4190-B88C-75D44A56AD6E', '', 'UserModule', '0', '2017-02-06 00:14:18', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '92B00259-2D15-43E7-9321-ADFFB29E8BF2');
INSERT INTO `relevance` VALUES ('332A373C-F485-4F85-9AF9-7792F7462BF1', '', 'RoleModule', '0', '2016-09-02 17:03:46', '0', '648B04C4-4AC2-4D69-BEF6-07081EF27871', '89C3BFBE-246F-4112-8EB1-B6789DA54202');
INSERT INTO `relevance` VALUES ('5A20D59C-6EE6-4FE2-98FE-7B35B11026AE', '', 'UserElement', '0', '2016-09-07 15:30:19', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '68484265-7802-4F06-B024-33E8B2F2EDCF');
INSERT INTO `relevance` VALUES ('E28C0DCD-168A-4B60-A514-7B6EB8026709', '', 'RoleOrg', '0', '2016-10-17 10:03:30', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `relevance` VALUES ('7FD7F976-F10E-44AA-A7BA-7CA40D2E8F90', '', 'RoleOrg', '0', '2016-10-17 10:03:30', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `relevance` VALUES ('E84F6B9C-716D-4E94-A1AA-7FD0D1A2E23E', '', 'RoleModule', '0', '2016-09-02 17:03:46', '0', '648B04C4-4AC2-4D69-BEF6-07081EF27871', '069475E3-C997-487A-9F29-E6A864C5C1D4');
INSERT INTO `relevance` VALUES ('7475B0C3-F204-4F95-A22F-80591FE76BC7', '', 'ProcessUser', '0', '2016-10-31 11:52:39', '0', 'B8BCDF59-1E29-4D97-A364-12AC8E8C5C61', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7');
INSERT INTO `relevance` VALUES ('AD267296-5EBA-4D59-B821-8148D8CFB3C6', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'E8DC5DB6-4FC4-4795-A1CC-681CBCCEEC91');
INSERT INTO `relevance` VALUES ('EC9C80CE-DBDF-4BA5-9091-82F75392C3B0', '', 'UserElement', '0', '2016-09-07 15:30:42', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '68484265-7802-4F06-B024-33E8B2F2EDCF');
INSERT INTO `relevance` VALUES ('27C4D50C-32DA-4DBC-88A1-84B343CDD649', '', 'UserElement', '0', '2016-10-20 17:01:00', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '6839A297-350B-4215-B680-4E5DFDAE5615');
INSERT INTO `relevance` VALUES ('1ACEC4C4-0136-4E2B-A839-8676DBD6594A', '', 'ProcessUser', '0', '2016-09-14 11:38:22', '0', '6C6AFE3C-349C-4198-8710-CF19C90F3AFD', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7');
INSERT INTO `relevance` VALUES ('6431A464-6F1F-4FFC-8157-89212B70F09A', '', 'RoleOrg', '0', '2016-09-05 00:00:00', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `relevance` VALUES ('13433400-A32C-4539-B988-8B417C09BC0E', '', 'UserModule', '0', '2016-09-07 15:30:06', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `relevance` VALUES ('620B368A-7B56-4C74-AB85-8BC91D08DDC9', '', 'RoleElement', '0', '2016-09-04 23:20:41', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '1C9ACC3E-A40D-4D07-B495-6E60EB9B71B9');
INSERT INTO `relevance` VALUES ('A7213FBA-6072-49AA-B193-8FA43B9C37FA', '', 'UserOrg', '0', '2016-09-19 19:52:44', '0', '3EACDEDD-E93A-4816-B49C-99BA3D5323C2', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `relevance` VALUES ('340C60FE-8B95-474C-AA04-9197903998D2', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '7580672F-A390-4BB6-982D-9A4570CB5199');
INSERT INTO `relevance` VALUES ('BEE6572D-8FB8-4E0E-AF15-93AAFC989717', '', 'RoleElement', '0', '2016-09-04 23:20:41', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '68FC793F-069F-43E1-A012-42AC2D7C585C');
INSERT INTO `relevance` VALUES ('4757BB30-E4BC-4C2D-A824-947EF151D341', '', 'UserRole', '0', '2016-09-07 20:21:15', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF');
INSERT INTO `relevance` VALUES ('F4BA636A-9002-43E6-93EB-95132A3E68C5', '', 'ProcessUser', '0', '2016-09-28 09:23:30', '0', '68295D2A-4DFD-4C5E-81E3-9C787E2603BC', '3A95E392-07D4-4AF3-B30D-140CA93340F5');
INSERT INTO `relevance` VALUES ('0FD5B371-B010-4846-8833-95CC1E813A32', '', 'UserElement', '0', '2016-09-07 15:31:15', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', '68484265-7802-4F06-B024-33E8B2F2EDCF');
INSERT INTO `relevance` VALUES ('54B2E9B6-1F7C-4A39-92C9-98F58429C1FC', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', 'BC80478D-0547-4437-9CFF-BE4B40144BDF');
INSERT INTO `relevance` VALUES ('854E0658-AB8A-4869-B157-9941955ACDC6', '', 'RoleElement', '0', '2016-09-04 23:21:09', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '1A473AFD-CBD4-41E9-9471-81F9435AAABE');
INSERT INTO `relevance` VALUES ('ACB4D37F-8B45-4A99-B364-99F3881DFCDA', '', 'RoleElement', '0', '2016-09-04 23:21:13', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'F8DDE22A-2A37-47C4-8E67-70FB3AF5303E');
INSERT INTO `relevance` VALUES ('9FA50449-5D87-4579-9F1F-9CDCD876976B', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '6839A297-350B-4215-B680-4E5DFDAE5615');
INSERT INTO `relevance` VALUES ('10E58D75-DEC1-4B85-882F-9DAC79AD1210', '', 'RoleResource', '0', '2016-10-21 18:08:13', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', 'EC99F670-0ECA-465C-9F64-D4D5DC510B83');
INSERT INTO `relevance` VALUES ('C3050D65-D26B-4E46-BECE-A212B0CC00EC', '', 'RoleElement', '0', '2016-09-04 23:20:41', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '15A4F88C-4FAE-4CAB-BA2F-0CBD2CCA8736');
INSERT INTO `relevance` VALUES ('66E25FC5-093D-42AB-85DC-A38F6600889B', '', 'UserOrg', '0', '2016-09-02 13:57:32', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', 'C36E43DF-3A99-45DA-80D9-3AC5D24F4014');
INSERT INTO `relevance` VALUES ('C4771AC5-3375-4DE9-ADB8-A603398F0D62', '', 'RoleElement', '0', '2016-09-04 23:21:09', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '2D595A2A-5DE5-479E-A331-B53C799A6B10');
INSERT INTO `relevance` VALUES ('EEC41FCB-61C0-4E56-A5C0-A9F8BE6E6FDC', '', 'UserModule', '0', '2016-09-07 15:30:06', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', '069475E3-C997-487A-9F29-E6A864C5C1D4');
INSERT INTO `relevance` VALUES ('A9821DB0-49BD-49BE-A554-AFA811C99760', '', 'RoleResource', '0', '2016-09-04 23:20:21', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'EC99F670-0ECA-465C-9F64-D4D5DC510B83');
INSERT INTO `relevance` VALUES ('9D568D6D-D78D-47D6-8FB6-B1327CDBE83A', '', 'RoleModule', '0', '2016-09-04 23:20:33', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'A94D5648-C2A9-405E-BA6F-F1602EC9B807');
INSERT INTO `relevance` VALUES ('03BE9B5E-38B0-4525-8431-B26D35CE6CE3', '', 'UserElement', '0', '2016-09-07 15:30:42', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '816B12B3-E916-446D-A2FA-329CFD13C831');
INSERT INTO `relevance` VALUES ('960224E6-5910-472B-A5EF-B2AA9A8B106F', '', 'UserRole', '0', '2016-09-06 17:06:15', '0', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813');
INSERT INTO `relevance` VALUES ('75340AD3-FB80-4646-B1DE-BA801688DDC2', '', 'RoleElement', '0', '2016-09-04 23:21:04', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '5ED1681C-13D2-4C87-8675-A8D95C0B40AE');
INSERT INTO `relevance` VALUES ('AA051096-A23A-431D-9053-BB954F9453A7', '', 'RoleElement', '0', '2016-09-04 23:20:53', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '4BFA8EA0-6B0D-426F-8687-B654575CA780');
INSERT INTO `relevance` VALUES ('EC72F6AE-09EE-4DB9-99A1-BF15C8E35DDA', '', 'ProcessUser', '0', '2016-09-14 11:38:22', '0', '6C6AFE3C-349C-4198-8710-CF19C90F3AFD', '3A95E392-07D4-4AF3-B30D-140CA93340F5');
INSERT INTO `relevance` VALUES ('2CA288A6-D222-4328-951E-C01C3E77A0C7', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '7F071C63-1620-4486-9264-5806B2E63218');
INSERT INTO `relevance` VALUES ('8B633F3C-965B-4E35-8496-C364890D7760', '', 'RoleElement', '0', '2016-09-04 23:21:09', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'C3D7B478-21E9-4C1E-B866-A3C80BE7909B');
INSERT INTO `relevance` VALUES ('7F25286F-246B-4143-98EB-C3E574FE7455', '', 'ProcessUser', '0', '2016-09-07 17:33:38', '0', '52CC7933-A045-4DCC-8C17-1B618BFA772B', '3A95E392-07D4-4AF3-B30D-140CA93340F5');
INSERT INTO `relevance` VALUES ('AD5BC7A6-E307-4FA8-A4EF-CE9E09F7E21B', '', 'RoleModule', '0', '2016-09-05 09:21:56', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `relevance` VALUES ('C98B3D02-A76B-4ECC-94A5-CFEFFD5E29FB', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', 'BEDB41A2-F310-4775-AF99-01BE08ADDA93');
INSERT INTO `relevance` VALUES ('B08D7763-A725-406F-A7D5-D144F00D716E', '', 'UserOrg', '0', '2016-09-02 13:56:41', '0', '3A95E392-07D4-4AF3-B30D-140CA93340F5', '543A9FCF-4770-4FD9-865F-030E562BE238');
INSERT INTO `relevance` VALUES ('EE4F39FD-4FBF-4F68-9A70-D6C7D7DB9723', '', 'ProcessUser', '0', '2016-10-31 11:52:39', '0', 'B8BCDF59-1E29-4D97-A364-12AC8E8C5C61', '3A95E392-07D4-4AF3-B30D-140CA93340F5');
INSERT INTO `relevance` VALUES ('C2D3B7D6-B47D-4BD8-9DC6-D9134D86713F', '', 'RoleOrg', '0', '2016-10-17 10:03:30', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '86449128-D5AC-44BF-B999-F7735B7458FD');
INSERT INTO `relevance` VALUES ('A06FE8C6-3F5E-4085-9BBF-E366571A356C', '', 'RoleElement', '0', '2016-09-04 23:21:04', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', 'DADDF3B9-71B5-45AC-B85D-5A11C522F2F4');
INSERT INTO `relevance` VALUES ('C58CB482-6AB7-49EB-B5B0-E45424B6E502', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '34730F5A-D307-457B-9041-5F7DE30ABFA9');
INSERT INTO `relevance` VALUES ('30C82D18-7892-4E5F-9AEE-E4F483A858C2', '', 'UserModule', '0', '2016-09-05 16:24:55', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', '9486FF22-B696-4D7F-8093-8A3E53C45453');
INSERT INTO `relevance` VALUES ('C50FAE2A-B36F-486F-9D53-E58406590101', '', 'ProcessUser', '0', '2016-10-27 16:47:51', '0', '054FF054-D8AE-4911-A596-8FB1F66B348F', '3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7');
INSERT INTO `relevance` VALUES ('55B10ECC-3FB3-4127-B69E-E7A3467D7A1A', '', 'RoleElement', '0', '2016-09-05 09:22:11', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '6DB928FE-93DF-460F-9472-8BB0B6CAE52C');
INSERT INTO `relevance` VALUES ('B102EF08-8806-4B96-BBF3-E83A836E682A', '', 'UserOrg', '0', '2016-09-19 19:52:44', '0', '3EACDEDD-E93A-4816-B49C-99BA3D5323C2', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `relevance` VALUES ('AB924BA7-8A74-4804-82B0-ECBBEDF4C13E', '', 'RoleElement', '0', '2016-09-05 09:22:11', '0', '4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '38109CA0-32EC-44BD-A243-017E591B532B');
INSERT INTO `relevance` VALUES ('A0904102-E26A-4BC5-9C95-ED5EF977586B', '', 'RoleModule', '0', '2016-09-02 17:03:39', '0', '211E12C7-E466-496E-8D26-0660A38E24CC', '6A9E1346-0C01-44D2-8EB1-F929FDAB542A');
INSERT INTO `relevance` VALUES ('6B9C4789-042C-4F6F-A749-EE68EE87462D', '', 'ProcessUser', '0', '2016-10-27 16:47:51', '0', '054FF054-D8AE-4911-A596-8FB1F66B348F', '3A95E392-07D4-4AF3-B30D-140CA93340F5');
INSERT INTO `relevance` VALUES ('1CED1564-2FEA-4C04-8AEA-F071FA5BB293', '', 'UserModule', '0', '2016-09-05 16:24:54', '0', 'EA25646B-964B-4D41-AB03-D8964E1494FB', '069475E3-C997-487A-9F29-E6A864C5C1D4');
INSERT INTO `relevance` VALUES ('E12B77DE-B7CE-4F38-B7A3-F3B2D285F33B', '', 'RoleOrg', '0', '2016-10-17 10:03:49', '0', '2EB423D6-6AD9-4EFE-B423-872478A2A434', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `relevance` VALUES ('AD29467E-EEEE-494C-AB82-F6BE5D2619D5', '', 'RoleElement', '0', '2016-09-04 23:21:00', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '50C9DF24-B233-42CB-9A0D-4CE158C75F86');
INSERT INTO `relevance` VALUES ('88A4C966-D042-4A2E-B133-FF7EDED1C5DE', '', 'RoleElement', '0', '2016-09-04 23:21:13', '0', 'DB309D88-FD21-4B81-A4D9-AE6276A1D813', '7B2B1FFB-398B-4F7B-83DA-8F484E1BCEA0');

-- ----------------------------
-- Table structure for resource
-- ----------------------------
DROP TABLE IF EXISTS `resource`;
CREATE TABLE `resource` (
  `Id` char(36) NOT NULL COMMENT '资源表ID',
  `CascadeId` varchar(255) NOT NULL COMMENT '节点语义ID',
  `Key` varchar(200) NOT NULL,
  `Name` varchar(255) NOT NULL COMMENT '名称',
  `Status` int(11) NOT NULL COMMENT '当前状态',
  `SortNo` int(11) NOT NULL COMMENT '排序号',
  `Description` text NOT NULL COMMENT '描述',
  `ParentId` char(36) DEFAULT NULL COMMENT '父节点流水号',
  `CategoryId` char(36) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='资源表';

-- ----------------------------
-- Records of resource
-- ----------------------------
INSERT INTO `resource` VALUES ('EC99F670-0ECA-465C-9F64-D4D5DC510B83', '', 'DEV', '开发可见', '0', '0', '仅开发维护可见的内容', null, 'FA37B322-508B-47CE-B29F-B1DACB82637A');
INSERT INTO `resource` VALUES ('FDF3AAC3-4507-40AD-AA2F-D7F0459DE252', '', 'ADMIN', '管理层可见', '0', '0', '仅管理层可见的内容', null, 'FA37B322-508B-47CE-B29F-B1DACB82637A');

-- ----------------------------
-- Table structure for role
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
  `Id` char(36) NOT NULL COMMENT '流水号',
  `Name` varchar(255) NOT NULL COMMENT '角色名称',
  `Status` int(11) NOT NULL COMMENT '当前状态',
  `Type` int(11) NOT NULL COMMENT '角色类型',
  `CreateTime` datetime NOT NULL COMMENT '创建时间',
  `CreateId` varchar(64) NOT NULL COMMENT '创建人ID',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='角色表';

-- ----------------------------
-- Records of role
-- ----------------------------
INSERT INTO `role` VALUES ('4980A85B-E3DB-4607-BC2C-0BAF0140D7DF', '集团高层', '0', '0', '2016-09-05 00:00:00', '');
INSERT INTO `role` VALUES ('DB309D88-FD21-4B81-A4D9-AE6276A1D813', '研发主管', '0', '0', '2016-10-17 10:03:30', '');

-- ----------------------------
-- Table structure for stock
-- ----------------------------
DROP TABLE IF EXISTS `stock`;
CREATE TABLE `stock` (
  `Id` char(36) NOT NULL COMMENT '数据ID',
  `Name` text NOT NULL COMMENT '产品名称',
  `Number` int(11) NOT NULL COMMENT '产品数量',
  `Price` decimal(10,1) NOT NULL COMMENT '产品单价',
  `Status` int(11) NOT NULL COMMENT '出库/入库',
  `Viewable` varchar(50) NOT NULL COMMENT '可见范围',
  `Time` datetime NOT NULL COMMENT '操作时间',
  `OrgId` char(36) DEFAULT NULL COMMENT '组织ID',
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='出入库信息表';

-- ----------------------------
-- Records of stock
-- ----------------------------
INSERT INTO `stock` VALUES ('B1D19F2B-2FBF-45FA-9805-04E30CDA8597', '普通产品', '3', '100.0', '0', 'DEV', '2016-04-12 00:00:00', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `stock` VALUES ('5DEB7F53-850D-4BC5-AB03-5982836FFED3', '权限管理软件一套', '2', '10000.0', '0', 'ADMIN', '2016-04-21 00:00:00', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `stock` VALUES ('C9AC16D0-0F07-40DB-AA50-59B42AA5BE0D', '颠三倒四多', '1', '0.0', '0', '', '2017-01-10 10:14:26', '990CB229-CC18-41F3-8E2B-13F0F0110798');
INSERT INTO `stock` VALUES ('20FE07A1-695F-4DED-BB92-6CF8C0D64173', '权限管理', '1', '10000.0', '1', '', '2016-09-14 00:00:00', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `stock` VALUES ('6A4ED45E-C7F5-4DD7-84BB-7B7C13DC2F5B', '打印机', '2', '3333.0', '1', '', '2016-04-21 00:00:00', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');
INSERT INTO `stock` VALUES ('1B2499A3-C89D-4030-8F1E-C2D6B947F4EA', '高级权限管理', '1', '999.0', '0', 'ADMIN', '2016-01-08 09:15:49', '08F41BF6-4388-4B1E-BD3E-2FF538B44B1B');

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `Id` char(36) NOT NULL,
  `Account` varchar(255) NOT NULL,
  `Password` varchar(255) NOT NULL,
  `Name` varchar(255) NOT NULL,
  `Sex` int(11) NOT NULL,
  `Status` int(11) NOT NULL,
  `Type` int(11) NOT NULL,
  `BizCode` varchar(255) NOT NULL,
  `CreateTime` datetime NOT NULL,
  `CrateId` char(36) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('3A95E392-07D4-4AF3-B30D-140CA93340F5', 'admin', 'admin', 'admin', '0', '0', '0', '', '2016-09-02 13:56:40', null);
INSERT INTO `user` VALUES ('3B64B643-CB9A-4654-81E4-6DD9B2F8A6F7', 'test', 'test', 'test', '0', '0', '0', '', '2016-09-02 13:56:52', null);
INSERT INTO `user` VALUES ('3EACDEDD-E93A-4816-B49C-99BA3D5323C2', 'test1', 'test1', 'test1', '0', '0', '0', '', '2016-09-19 19:52:44', null);
INSERT INTO `user` VALUES ('EA25646B-964B-4D41-AB03-D8964E1494FB', 'testno', 'testno', 'testno(无任何权限)', '0', '0', '0', '', '2016-09-02 13:57:32', null);

-- ----------------------------
-- Table structure for wf_frmmain
-- ----------------------------
DROP TABLE IF EXISTS `wf_frmmain`;
CREATE TABLE `wf_frmmain` (
  `Id` char(36) NOT NULL,
  `FrmCode` varchar(50) DEFAULT NULL,
  `FrmName` varchar(200) DEFAULT NULL,
  `FrmType` varchar(50) DEFAULT NULL,
  `FrmDbId` varchar(50) DEFAULT NULL,
  `FrmTable` varchar(50) DEFAULT NULL,
  `isSystemTable` int(11) DEFAULT NULL,
  `FrmTableId` varchar(50) DEFAULT NULL,
  `FrmContent` longtext,
  `SortCode` int(11) DEFAULT NULL,
  `DeleteMark` int(11) DEFAULT NULL,
  `EnabledMark` int(11) DEFAULT NULL,
  `Description` varchar(200) DEFAULT NULL,
  `CreateDate` datetime DEFAULT NULL,
  `CreateUserId` varchar(50) DEFAULT NULL,
  `CreateUserName` varchar(50) DEFAULT NULL,
  `ModifyDate` datetime DEFAULT NULL,
  `ModifyUserId` varchar(50) DEFAULT NULL,
  `ModifyUserName` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_frmmain
-- ----------------------------
INSERT INTO `wf_frmmain` VALUES ('99EEC887-1A27-4051-A153-09320C90E617', '请假单', '请假单', '', null, null, '0', null, '[{\"control_type\":\"radio\",\"control_label\":\"请假事由\",\"control_field\":\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\",\"control_item\":[{\"identify\":\"2338287584876091\",\"color\":\"color_a\",\"name\":\"事假\",\"defaults\":1},{\"identify\":\"43241665285144115\",\"color\":\"color_a\",\"name\":\"病假\",\"defaults\":0},{\"identify\":\"4863826466749944\",\"color\":\"color_a\",\"name\":\"婚假\",\"defaults\":0}],\"control_required\":1},{\"control_type\":\"text\",\"control_label\":\"请假天数\",\"control_field\":\"da5497c8-5780-4651-41f5-ceb6580d5acb\",\"control_verify\":\"Num\",\"control_default\":\"2\",\"control_required\":1},{\"control_type\":\"datetime\",\"control_label\":\"开始时间\",\"control_field\":\"84bbec08-9841-c69d-060b-766f82cb3887\",\"control_dateformat\":\"date\",\"control_default\":\"Today\",\"control_required\":1}]', null, null, '1', '请假用的', '2017-02-06 23:13:39', '', '', '2017-02-06 23:13:39', 'System', '');

-- ----------------------------
-- Table structure for wf_processinstance
-- ----------------------------
DROP TABLE IF EXISTS `wf_processinstance`;
CREATE TABLE `wf_processinstance` (
  `Id` char(36) NOT NULL,
  `Code` varchar(200) NOT NULL,
  `CustomName` varchar(200) DEFAULT NULL,
  `ActivityId` varchar(50) NOT NULL,
  `ActivityType` int(11) NOT NULL,
  `ActivityName` varchar(200) NOT NULL,
  `PreviousId` varchar(50) DEFAULT NULL,
  `ProcessSchemeId` char(36) NOT NULL,
  `SchemeType` varchar(50) NOT NULL,
  `FrmType` int(11) DEFAULT NULL,
  `EnabledMark` int(11) NOT NULL,
  `CreateDate` datetime NOT NULL,
  `CreateUserId` varchar(50) NOT NULL,
  `CreateUserName` varchar(50) NOT NULL,
  `wfLevel` int(11) DEFAULT NULL,
  `Description` varchar(200) DEFAULT NULL,
  `isFinish` int(11) DEFAULT NULL,
  `MakerList` text,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_processinstance
-- ----------------------------
INSERT INTO `wf_processinstance` VALUES ('CD962282-E700-45AE-B41F-F2315701B955', '请假流程', '老夫病了', 'FlowPanel_node_3', '2', '二审', 'FlowPanel_node_2', 'EB9884CA-90AA-49B4-BBE5-69B51C8E8924', '', null, '1', '2017-02-06 23:16:28', '00000000-0000-0000-0000-000000000000', 'System', '2', '批还是不批？', '0', '1');

-- ----------------------------
-- Table structure for wf_processoperationhistory
-- ----------------------------
DROP TABLE IF EXISTS `wf_processoperationhistory`;
CREATE TABLE `wf_processoperationhistory` (
  `Id` char(36) NOT NULL,
  `ProcessId` char(36) NOT NULL,
  `Content` varchar(200) NOT NULL,
  `CreateDate` datetime NOT NULL,
  `CreateUserId` varchar(50) NOT NULL,
  `CreateUserName` varchar(50) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_processoperationhistory
-- ----------------------------
INSERT INTO `wf_processoperationhistory` VALUES ('6249B91E-0B89-48A4-A0CF-0B5DA1A65501', 'CD962282-E700-45AE-B41F-F2315701B955', '【todo name】【一审】【2017-02-06 23:17】同意,备注：一审通过', '2017-02-06 23:17:02', '', '');
INSERT INTO `wf_processoperationhistory` VALUES ('8C44D4CA-8B89-43A5-9F48-CF539A4899DD', 'CD962282-E700-45AE-B41F-F2315701B955', '【创建】创建了一个流程进程【请假流程/老夫病了】', '2017-02-06 23:16:28', '', '');

-- ----------------------------
-- Table structure for wf_processscheme
-- ----------------------------
DROP TABLE IF EXISTS `wf_processscheme`;
CREATE TABLE `wf_processscheme` (
  `Id` char(36) NOT NULL,
  `SchemeContent` longtext NOT NULL,
  `SchemeInfoId` char(36) NOT NULL,
  `SchemeVersion` varchar(50) NOT NULL,
  `ProcessType` int(11) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_processscheme
-- ----------------------------
INSERT INTO `wf_processscheme` VALUES ('EB9884CA-90AA-49B4-BBE5-69B51C8E8924', '{\"SchemeContent\":\"{\\r\\n  \\\"Frm\\\": {\\r\\n    \\\"FrmId\\\": \\\"99eec887-1a27-4051-a153-09320c90e617\\\",\\r\\n    \\\"FrmDbId\\\": null,\\r\\n    \\\"FrmTable\\\": null,\\r\\n    \\\"FrmName\\\": \\\"请假单\\\",\\r\\n    \\\"FrmContent\\\": \\\"[{\\\\\\\"control_type\\\\\\\":\\\\\\\"radio\\\\\\\",\\\\\\\"control_label\\\\\\\":\\\\\\\"请假事由\\\\\\\",\\\\\\\"control_field\\\\\\\":\\\\\\\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\\\\\\\",\\\\\\\"control_item\\\\\\\":[{\\\\\\\"identify\\\\\\\":\\\\\\\"2338287584876091\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"color_a\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"事假\\\\\\\",\\\\\\\"defaults\\\\\\\":1},{\\\\\\\"identify\\\\\\\":\\\\\\\"43241665285144115\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"color_a\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"病假\\\\\\\",\\\\\\\"defaults\\\\\\\":0},{\\\\\\\"identify\\\\\\\":\\\\\\\"4863826466749944\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"color_a\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"婚假\\\\\\\",\\\\\\\"defaults\\\\\\\":0}],\\\\\\\"control_required\\\\\\\":1},{\\\\\\\"control_type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"control_label\\\\\\\":\\\\\\\"请假天数\\\\\\\",\\\\\\\"control_field\\\\\\\":\\\\\\\"da5497c8-5780-4651-41f5-ceb6580d5acb\\\\\\\",\\\\\\\"control_verify\\\\\\\":\\\\\\\"Num\\\\\\\",\\\\\\\"control_default\\\\\\\":\\\\\\\"2\\\\\\\",\\\\\\\"control_required\\\\\\\":1},{\\\\\\\"control_type\\\\\\\":\\\\\\\"datetime\\\\\\\",\\\\\\\"control_label\\\\\\\":\\\\\\\"开始时间\\\\\\\",\\\\\\\"control_field\\\\\\\":\\\\\\\"84bbec08-9841-c69d-060b-766f82cb3887\\\\\\\",\\\\\\\"control_dateformat\\\\\\\":\\\\\\\"date\\\\\\\",\\\\\\\"control_default\\\\\\\":\\\\\\\"Today\\\\\\\",\\\\\\\"control_required\\\\\\\":1}]\\\",\\r\\n    \\\"FrmTableId\\\": null\\r\\n  },\\r\\n  \\\"Flow\\\": {\\r\\n    \\\"title\\\": \\\"newFlow_1\\\",\\r\\n    \\\"nodes\\\": [\\r\\n      {\\r\\n        \\\"name\\\": \\\"开始\\\",\\r\\n        \\\"left\\\": 77,\\r\\n        \\\"top\\\": 60,\\r\\n        \\\"type\\\": \\\"startround\\\",\\r\\n        \\\"css\\\": \\\"\\\",\\r\\n        \\\"img\\\": \\\"\\\",\\r\\n        \\\"width\\\": 24,\\r\\n        \\\"height\\\": 24,\\r\\n        \\\"alt\\\": true,\\r\\n        \\\"id\\\": \\\"FlowPanel_node_1\\\"\\r\\n      },\\r\\n      {\\r\\n        \\\"name\\\": \\\"一审\\\",\\r\\n        \\\"left\\\": 48,\\r\\n        \\\"top\\\": 148,\\r\\n        \\\"type\\\": \\\"stepnode\\\",\\r\\n        \\\"css\\\": \\\"\\\",\\r\\n        \\\"img\\\": \\\"\\\",\\r\\n        \\\"width\\\": 152,\\r\\n        \\\"height\\\": 67,\\r\\n        \\\"alt\\\": true,\\r\\n        \\\"id\\\": \\\"FlowPanel_node_2\\\",\\r\\n        \\\"setInfo\\\": {\\r\\n          \\\"NodeCode\\\": \\\"96fa08d0-06df-4506-a90a-6a546f59f523\\\",\\r\\n          \\\"NodeName\\\": \\\"一审\\\",\\r\\n          \\\"NodeDataBase\\\": \\\"\\\",\\r\\n          \\\"NodeTable\\\": \\\"\\\",\\r\\n          \\\"NodePram\\\": \\\"\\\",\\r\\n          \\\"NodeRejectType\\\": \\\"0\\\",\\r\\n          \\\"NodeRejectStep\\\": \\\"\\\",\\r\\n          \\\"NodeIsOver\\\": \\\"0\\\",\\r\\n          \\\"NodeConfluenceType\\\": \\\"\\\",\\r\\n          \\\"NodeConfluenceRate\\\": \\\"100\\\",\\r\\n          \\\"Description\\\": \\\"\\\",\\r\\n          \\\"NodeDesignate\\\": \\\"NodeDesignateType1\\\",\\r\\n          \\\"frmPermissionInfo\\\": [\\r\\n            {\\r\\n              \\\"fieldid\\\": \\\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\\\",\\r\\n              \\\"look\\\": true\\r\\n            },\\r\\n            {\\r\\n              \\\"fieldid\\\": \\\"da5497c8-5780-4651-41f5-ceb6580d5acb\\\",\\r\\n              \\\"look\\\": true\\r\\n            },\\r\\n            {\\r\\n              \\\"fieldid\\\": \\\"84bbec08-9841-c69d-060b-766f82cb3887\\\",\\r\\n              \\\"look\\\": true\\r\\n            }\\r\\n          ],\\r\\n          \\\"NodeDataBaseToSQL\\\": \\\"\\\",\\r\\n          \\\"NodeSQL\\\": \\\"\\\",\\r\\n          \\\"Taged\\\": 1,\\r\\n          \\\"UserId\\\": \\\"System\\\",\\r\\n          \\\"description\\\": \\\"一审通过\\\",\\r\\n          \\\"TagedTime\\\": \\\"2017-02-06 23:17\\\"\\r\\n        }\\r\\n      },\\r\\n      {\\r\\n        \\\"name\\\": \\\"二审\\\",\\r\\n        \\\"left\\\": 47,\\r\\n        \\\"top\\\": 261,\\r\\n        \\\"type\\\": \\\"stepnode\\\",\\r\\n        \\\"css\\\": \\\"\\\",\\r\\n        \\\"img\\\": \\\"\\\",\\r\\n        \\\"width\\\": 152,\\r\\n        \\\"height\\\": 67,\\r\\n        \\\"alt\\\": true,\\r\\n        \\\"id\\\": \\\"FlowPanel_node_3\\\",\\r\\n        \\\"setInfo\\\": {\\r\\n          \\\"NodeCode\\\": \\\"d8a2cda6-aa82-4088-b8f1-25a1c73ecdb3\\\",\\r\\n          \\\"NodeName\\\": \\\"二审\\\",\\r\\n          \\\"NodeDataBase\\\": \\\"\\\",\\r\\n          \\\"NodeTable\\\": \\\"\\\",\\r\\n          \\\"NodePram\\\": \\\"\\\",\\r\\n          \\\"NodeRejectType\\\": \\\"0\\\",\\r\\n          \\\"NodeRejectStep\\\": \\\"\\\",\\r\\n          \\\"NodeIsOver\\\": \\\"0\\\",\\r\\n          \\\"NodeConfluenceType\\\": \\\"\\\",\\r\\n          \\\"NodeConfluenceRate\\\": \\\"100\\\",\\r\\n          \\\"Description\\\": \\\"\\\",\\r\\n          \\\"NodeDesignate\\\": \\\"NodeDesignateType1\\\",\\r\\n          \\\"frmPermissionInfo\\\": [\\r\\n            {\\r\\n              \\\"fieldid\\\": \\\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\\\",\\r\\n              \\\"look\\\": true\\r\\n            },\\r\\n            {\\r\\n              \\\"fieldid\\\": \\\"da5497c8-5780-4651-41f5-ceb6580d5acb\\\",\\r\\n              \\\"look\\\": true\\r\\n            },\\r\\n            {\\r\\n              \\\"fieldid\\\": \\\"84bbec08-9841-c69d-060b-766f82cb3887\\\",\\r\\n              \\\"look\\\": true\\r\\n            }\\r\\n          ],\\r\\n          \\\"NodeDataBaseToSQL\\\": \\\"\\\",\\r\\n          \\\"NodeSQL\\\": \\\"\\\"\\r\\n        }\\r\\n      },\\r\\n      {\\r\\n        \\\"name\\\": \\\"结束\\\",\\r\\n        \\\"left\\\": 105,\\r\\n        \\\"top\\\": 384,\\r\\n        \\\"type\\\": \\\"endround\\\",\\r\\n        \\\"css\\\": \\\"\\\",\\r\\n        \\\"img\\\": \\\"\\\",\\r\\n        \\\"width\\\": 24,\\r\\n        \\\"height\\\": 24,\\r\\n        \\\"alt\\\": true,\\r\\n        \\\"id\\\": \\\"FlowPanel_node_4\\\"\\r\\n      }\\r\\n    ],\\r\\n    \\\"lines\\\": [\\r\\n      {\\r\\n        \\\"id\\\": \\\"FlowPanel_line_5\\\",\\r\\n        \\\"type\\\": \\\"sl\\\",\\r\\n        \\\"from\\\": \\\"FlowPanel_node_1\\\",\\r\\n        \\\"to\\\": \\\"FlowPanel_node_2\\\",\\r\\n        \\\"name\\\": \\\"\\\",\\r\\n        \\\"alt\\\": true\\r\\n      },\\r\\n      {\\r\\n        \\\"id\\\": \\\"FlowPanel_line_6\\\",\\r\\n        \\\"type\\\": \\\"sl\\\",\\r\\n        \\\"from\\\": \\\"FlowPanel_node_2\\\",\\r\\n        \\\"to\\\": \\\"FlowPanel_node_3\\\",\\r\\n        \\\"name\\\": \\\"\\\",\\r\\n        \\\"alt\\\": true\\r\\n      },\\r\\n      {\\r\\n        \\\"id\\\": \\\"FlowPanel_line_7\\\",\\r\\n        \\\"type\\\": \\\"sl\\\",\\r\\n        \\\"from\\\": \\\"FlowPanel_node_3\\\",\\r\\n        \\\"to\\\": \\\"FlowPanel_node_4\\\",\\r\\n        \\\"name\\\": \\\"\\\",\\r\\n        \\\"alt\\\": true\\r\\n      }\\r\\n    ],\\r\\n    \\\"areas\\\": {},\\r\\n    \\\"initNum\\\": 8\\r\\n  }\\r\\n}\",\"frmData\":\"{\\\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\\\":\\\"事假\\\",\\\"da5497c8-5780-4651-41f5-ceb6580d5acb\\\":\\\"2\\\",\\\"84bbec08-9841-c69d-060b-766f82cb3887\\\":\\\"2017-02-06\\\"}\"}', '5A0B49A2-22F9-43B2-AB81-2DD2341DEDBE', '201702062315353920', '1');

-- ----------------------------
-- Table structure for wf_processtransitionhistory
-- ----------------------------
DROP TABLE IF EXISTS `wf_processtransitionhistory`;
CREATE TABLE `wf_processtransitionhistory` (
  `Id` char(36) NOT NULL,
  `ProcessId` char(36) NOT NULL,
  `fromNodeId` varchar(50) NOT NULL,
  `fromNodeType` int(11) DEFAULT NULL,
  `fromNodeName` varchar(200) DEFAULT NULL,
  `toNodeId` varchar(50) NOT NULL,
  `toNodeType` int(11) DEFAULT NULL,
  `toNodeName` varchar(200) DEFAULT NULL,
  `TransitionSate` int(11) NOT NULL,
  `isFinish` int(11) NOT NULL,
  `CreateDate` datetime NOT NULL,
  `CreateUserId` varchar(50) NOT NULL,
  `CreateUserName` varchar(50) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_processtransitionhistory
-- ----------------------------
INSERT INTO `wf_processtransitionhistory` VALUES ('8FA95FB5-788B-4067-B60A-6AD879E2D763', 'CD962282-E700-45AE-B41F-F2315701B955', 'FlowPanel_node_2', '2', '一审', 'FlowPanel_node_3', '2', '二审', '0', '0', '2017-02-06 23:17:03', '', '');
INSERT INTO `wf_processtransitionhistory` VALUES ('FFDFDA0B-3FB4-4197-800A-7AA5AA14D23F', 'CD962282-E700-45AE-B41F-F2315701B955', 'FlowPanel_node_1', '3', '开始', 'FlowPanel_node_2', '2', '一审', '0', '0', '2017-02-06 23:16:28', '', '');

-- ----------------------------
-- Table structure for wf_schemecontent
-- ----------------------------
DROP TABLE IF EXISTS `wf_schemecontent`;
CREATE TABLE `wf_schemecontent` (
  `Id` char(36) NOT NULL,
  `SchemeInfoId` char(36) NOT NULL,
  `SchemeVersion` varchar(50) NOT NULL,
  `SchemeContent` longtext,
  `CreateDate` datetime NOT NULL,
  `CreateUserId` varchar(50) NOT NULL,
  `CreateUserName` varchar(50) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_schemecontent
-- ----------------------------
INSERT INTO `wf_schemecontent` VALUES ('A514AA0B-284D-4744-A99F-984CA85A424E', '5A0B49A2-22F9-43B2-AB81-2DD2341DEDBE', '201702062315353920', '{\"Frm\":{\"FrmId\":\"99eec887-1a27-4051-a153-09320c90e617\",\"FrmDbId\":null,\"FrmTable\":null,\"FrmName\":\"请假单\",\"FrmContent\":\"[{\\\"control_type\\\":\\\"radio\\\",\\\"control_label\\\":\\\"请假事由\\\",\\\"control_field\\\":\\\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\\\",\\\"control_item\\\":[{\\\"identify\\\":\\\"2338287584876091\\\",\\\"color\\\":\\\"color_a\\\",\\\"name\\\":\\\"事假\\\",\\\"defaults\\\":1},{\\\"identify\\\":\\\"43241665285144115\\\",\\\"color\\\":\\\"color_a\\\",\\\"name\\\":\\\"病假\\\",\\\"defaults\\\":0},{\\\"identify\\\":\\\"4863826466749944\\\",\\\"color\\\":\\\"color_a\\\",\\\"name\\\":\\\"婚假\\\",\\\"defaults\\\":0}],\\\"control_required\\\":1},{\\\"control_type\\\":\\\"text\\\",\\\"control_label\\\":\\\"请假天数\\\",\\\"control_field\\\":\\\"da5497c8-5780-4651-41f5-ceb6580d5acb\\\",\\\"control_verify\\\":\\\"Num\\\",\\\"control_default\\\":\\\"2\\\",\\\"control_required\\\":1},{\\\"control_type\\\":\\\"datetime\\\",\\\"control_label\\\":\\\"开始时间\\\",\\\"control_field\\\":\\\"84bbec08-9841-c69d-060b-766f82cb3887\\\",\\\"control_dateformat\\\":\\\"date\\\",\\\"control_default\\\":\\\"Today\\\",\\\"control_required\\\":1}]\",\"FrmTableId\":null},\"Flow\":{\"title\":\"newFlow_1\",\"nodes\":[{\"name\":\"开始\",\"left\":77,\"top\":60,\"type\":\"startround\",\"css\":\"\",\"img\":\"\",\"width\":24,\"height\":24,\"alt\":true,\"id\":\"FlowPanel_node_1\"},{\"name\":\"一审\",\"left\":48,\"top\":148,\"type\":\"stepnode\",\"css\":\"\",\"img\":\"\",\"width\":152,\"height\":67,\"alt\":true,\"id\":\"FlowPanel_node_2\",\"setInfo\":{\"NodeCode\":\"96fa08d0-06df-4506-a90a-6a546f59f523\",\"NodeName\":\"一审\",\"NodeDataBase\":\"\",\"NodeTable\":\"\",\"NodePram\":\"\",\"NodeRejectType\":\"0\",\"NodeRejectStep\":\"\",\"NodeIsOver\":\"0\",\"NodeConfluenceType\":\"\",\"NodeConfluenceRate\":\"100\",\"Description\":\"\",\"NodeDesignate\":\"NodeDesignateType1\",\"frmPermissionInfo\":[{\"fieldid\":\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\",\"look\":true},{\"fieldid\":\"da5497c8-5780-4651-41f5-ceb6580d5acb\",\"look\":true},{\"fieldid\":\"84bbec08-9841-c69d-060b-766f82cb3887\",\"look\":true}],\"NodeDataBaseToSQL\":\"\",\"NodeSQL\":\"\"}},{\"name\":\"二审\",\"left\":47,\"top\":261,\"type\":\"stepnode\",\"css\":\"\",\"img\":\"\",\"width\":152,\"height\":67,\"alt\":true,\"id\":\"FlowPanel_node_3\",\"setInfo\":{\"NodeCode\":\"d8a2cda6-aa82-4088-b8f1-25a1c73ecdb3\",\"NodeName\":\"二审\",\"NodeDataBase\":\"\",\"NodeTable\":\"\",\"NodePram\":\"\",\"NodeRejectType\":\"0\",\"NodeRejectStep\":\"\",\"NodeIsOver\":\"0\",\"NodeConfluenceType\":\"\",\"NodeConfluenceRate\":\"100\",\"Description\":\"\",\"NodeDesignate\":\"NodeDesignateType1\",\"frmPermissionInfo\":[{\"fieldid\":\"d9ebcbe9-a29d-e727-0e70-f2ece84cea95\",\"look\":true},{\"fieldid\":\"da5497c8-5780-4651-41f5-ceb6580d5acb\",\"look\":true},{\"fieldid\":\"84bbec08-9841-c69d-060b-766f82cb3887\",\"look\":true}],\"NodeDataBaseToSQL\":\"\",\"NodeSQL\":\"\"}},{\"name\":\"结束\",\"left\":105,\"top\":384,\"type\":\"endround\",\"css\":\"\",\"img\":\"\",\"width\":24,\"height\":24,\"alt\":true,\"id\":\"FlowPanel_node_4\"}],\"lines\":[{\"id\":\"FlowPanel_line_5\",\"type\":\"sl\",\"from\":\"FlowPanel_node_1\",\"to\":\"FlowPanel_node_2\",\"name\":\"\",\"alt\":true},{\"id\":\"FlowPanel_line_6\",\"type\":\"sl\",\"from\":\"FlowPanel_node_2\",\"to\":\"FlowPanel_node_3\",\"name\":\"\",\"alt\":true},{\"id\":\"FlowPanel_line_7\",\"type\":\"sl\",\"from\":\"FlowPanel_node_3\",\"to\":\"FlowPanel_node_4\",\"name\":\"\",\"alt\":true}],\"areas\":{},\"initNum\":8}}', '2017-02-06 23:15:35', '', '');

-- ----------------------------
-- Table structure for wf_schemeinfo
-- ----------------------------
DROP TABLE IF EXISTS `wf_schemeinfo`;
CREATE TABLE `wf_schemeinfo` (
  `Id` char(36) NOT NULL,
  `SchemeCode` varchar(50) DEFAULT NULL,
  `SchemeName` varchar(200) DEFAULT NULL,
  `SchemeType` varchar(50) DEFAULT NULL,
  `SchemeVersion` varchar(50) DEFAULT NULL,
  `SchemeCanUser` longtext,
  `FrmType` int(11) DEFAULT NULL,
  `AuthorizeType` int(11) DEFAULT NULL,
  `SortCode` int(11) DEFAULT NULL,
  `DeleteMark` int(11) NOT NULL,
  `EnabledMark` int(11) NOT NULL,
  `Description` varchar(200) DEFAULT NULL,
  `CreateDate` datetime NOT NULL,
  `CreateUserId` varchar(50) NOT NULL,
  `CreateUserName` varchar(50) NOT NULL,
  `ModifyDate` datetime DEFAULT NULL,
  `ModifyUserId` varchar(50) DEFAULT NULL,
  `ModifyUserName` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wf_schemeinfo
-- ----------------------------
INSERT INTO `wf_schemeinfo` VALUES ('5A0B49A2-22F9-43B2-AB81-2DD2341DEDBE', '请假流程', '请假流程', '', '201702062315353920', '', null, null, null, '0', '1', '', '2017-02-06 23:15:35', '', '', '2017-02-06 23:15:35', '', '');
