DROP TABLE IF EXISTS `jcl_org_item`;
CREATE TABLE `jcl_org_item`  (
    `fid` int(11) NOT NULL AUTO_INCREMENT,
    `fclassid` int(11) NOT NULL,
    `fno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    `fname` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    `fmemo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    `fdelete` int(11) NOT NULL,
    `creator` int(11) NULL DEFAULT NULL,
    `create_time` date NULL DEFAULT NULL,
    `update_time` date NULL DEFAULT NULL,
    PRIMARY KEY (`fid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;


DROP TABLE IF EXISTS `jcl_org_itemclass`;
CREATE TABLE `jcl_org_itemclass`  (
    `fid` int(11) NOT NULL AUTO_INCREMENT,
    `fno` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    `fname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
    `fmemo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    `creator` int(11) NULL DEFAULT NULL,
    `create_time` date NULL DEFAULT NULL,
    `update_time` date NULL DEFAULT NULL,
    PRIMARY KEY (`fid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;


DROP TRIGGER IF EXISTS HrmCompany_ed;
DROP TRIGGER IF EXISTS JCL_ORG_COMP_ed;
DROP TRIGGER IF EXISTS JCL_ORG_COMP_del;
DROP TRIGGER IF EXISTS JCL_ORG_dept_ed;
DROP TRIGGER IF EXISTS JCL_ORG_dept_del;
DROP TRIGGER IF EXISTS JCL_ORG_job_ed;
DROP TRIGGER IF EXISTS JCL_ORG_job_del;
DROP TRIGGER IF EXISTS hrmresource_ed;
DROP TRIGGER IF EXISTS cus_fielddata_jclgw;

update WORKFLOW_BROWSERURL set TYPEID = 2 where id ='666';