diff --git a/db/standard/zentao21.7.8.sql b/db/standard/zentao21.7.8.sql index 8f1f9302de..44e057ac33 100644 --- a/db/standard/zentao21.7.8.sql +++ b/db/standard/zentao21.7.8.sql @@ -1,27 +1,27 @@ CREATE TABLE `zt_acl` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `type` varchar(40) NOT NULL DEFAULT 'whitelist', `source` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_action` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `product` text DEFAULT NULL, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `actor` varchar(30) NOT NULL DEFAULT '', `action` varchar(80) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `comment` text DEFAULT NULL, `files` text DEFAULT NULL, `extra` text DEFAULT NULL, - `read` tinyint(3) unsigned NOT NULL DEFAULT 0, - `efforted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `read` tinyint unsigned NOT NULL DEFAULT 0, + `efforted` tinyint unsigned NOT NULL DEFAULT 0, `vision` varchar(10) NOT NULL DEFAULT 'rnd', PRIMARY KEY (`id`), KEY `vision_date` (`vision`,`date`), @@ -32,28 +32,28 @@ CREATE TABLE `zt_action` ( KEY `objectID` (`objectID`) ) ENGINE=InnoDB; CREATE TABLE `zt_actionproduct` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `action` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `action` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `action_product` (`action`,`product`), KEY `product` (`product`) ) ENGINE=InnoDB; CREATE TABLE `zt_actionrecent` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `product` text DEFAULT NULL, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `actor` varchar(30) NOT NULL DEFAULT '', `action` varchar(80) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `comment` text DEFAULT NULL, `files` text DEFAULT NULL, `extra` text DEFAULT NULL, - `read` tinyint(3) unsigned NOT NULL DEFAULT 0, - `efforted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `read` tinyint unsigned NOT NULL DEFAULT 0, + `efforted` tinyint unsigned NOT NULL DEFAULT 0, `vision` varchar(10) NOT NULL DEFAULT 'rnd', PRIMARY KEY (`id`), KEY `vision_date` (`vision`,`date`), @@ -64,8 +64,8 @@ CREATE TABLE `zt_actionrecent` ( KEY `objectID` (`objectID`) ) ENGINE=InnoDB; CREATE TABLE `zt_activity` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `process` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `process` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `optional` varchar(255) NOT NULL DEFAULT '', `tailorNorm` varchar(255) NOT NULL DEFAULT '', @@ -78,31 +78,31 @@ CREATE TABLE `zt_activity` ( `editedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_assistant` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '', - `modelId` int(10) unsigned NOT NULL DEFAULT 0, + `modelId` int unsigned NOT NULL DEFAULT 0, `desc` text DEFAULT NULL, `systemMessage` text DEFAULT NULL, `greetings` text DEFAULT NULL, `icon` varchar(30) NOT NULL DEFAULT 'coding-1', - `enabled` tinyint(3) unsigned NOT NULL DEFAULT 1, + `enabled` tinyint unsigned NOT NULL DEFAULT 1, `createdDate` datetime DEFAULT NULL, `publishedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_knowledgeitem` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '知识库内容条目在禅道中的 ID', - `lib` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '知识库内容条目所属知识库,对应 zt_ai_knowledgelib.id', + `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '知识库内容条目在禅道中的 ID', + `lib` int unsigned NOT NULL DEFAULT 0 COMMENT '知识库内容条目所属知识库,对应 zt_ai_knowledgelib.id', `type` varchar(30) NOT NULL DEFAULT '' COMMENT '知识内容类型,目前包括:自定义文本(text)、文件(file)、禅道对象(object)', - `file` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '文件类型条目对应的文件在禅道中的 ID,对应 zt_file.id', + `file` int unsigned NOT NULL DEFAULT 0 COMMENT '文件类型条目对应的文件在禅道中的 ID,对应 zt_file.id', `objectType` varchar(30) NOT NULL DEFAULT '' COMMENT '禅道对象类型条目对应的禅道对象在禅道中的类型,例如 bug', - `objectID` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '禅道对象类型条目对应的禅道对象在禅道中的 ID', + `objectID` int unsigned NOT NULL DEFAULT 0 COMMENT '禅道对象类型条目对应的禅道对象在禅道中的 ID', `objectData` text DEFAULT NULL COMMENT '禅道对象数据,JSON 格式', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题', `content` text DEFAULT NULL COMMENT '知识库内容条目内容,如果是自定义文本,对应的是文本内容,如果是文件则为空,如果是禅道对象,则为禅道对象转为 Markdown 的内容', @@ -114,22 +114,22 @@ CREATE TABLE `zt_ai_knowledgeitem` ( `editedDate` datetime DEFAULT NULL COMMENT '知识库内容条目编辑时间', `externalID` varchar(255) NOT NULL DEFAULT '' COMMENT '知识库在外部服务中的 ID,在 ZAI 中对应 memory_content_id,如果没有 ID,表示未在外部服务中创建对应的内容条目', `syncedDate` datetime DEFAULT NULL COMMENT '上次成功同步时间,为空表示未同步', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '是否已删除', + `deleted` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否已删除', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_knowledgelib` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `vision` varchar(10) NOT NULL DEFAULT 'rnd' COMMENT '所属界面', `type` varchar(30) NOT NULL DEFAULT '' COMMENT '知识库类型,目前包括:我的知识库(my)、组织知识库(team)', `importType` varchar(20) NOT NULL DEFAULT '' COMMENT '知识库导入类型,目前包括:从文档库导入(doclib)、从资产库导入(assetlib)', - `importID` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '知识库导入类型条目对应的导入对象在禅道中的 ID,对应 zt_doclib.id 或 zt_assetlib.id', + `importID` int unsigned NOT NULL DEFAULT 0 COMMENT '知识库导入类型条目对应的导入对象在禅道中的 ID,对应 zt_doclib.id 或 zt_assetlib.id', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '知识库名称', `desc` text DEFAULT NULL COMMENT '知识库描述', `createdBy` varchar(30) NOT NULL DEFAULT '' COMMENT '创建者', `createdDate` datetime DEFAULT NULL COMMENT '创建时间', `editedBy` varchar(30) NOT NULL DEFAULT '' COMMENT '编辑者', `editedDate` datetime DEFAULT NULL COMMENT '编辑时间', - `published` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '是否已发布', + `published` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否已发布', `publishedDate` datetime DEFAULT NULL COMMENT '上次发布时间', `publishedBy` varchar(30) NOT NULL DEFAULT '' COMMENT '上次发布者', `acl` varchar(10) NOT NULL DEFAULT 'open' COMMENT '权限控制', @@ -138,20 +138,20 @@ CREATE TABLE `zt_ai_knowledgelib` ( `externalID` varchar(255) NOT NULL DEFAULT '' COMMENT '知识库在外部服务中的 ID,在 ZAI 中对应 memory_id,如果没有 ID,表示未在外部服务中创建对应知识库', `syncedBy` varchar(30) NOT NULL DEFAULT '' COMMENT '上次成功同步者', `syncedDate` datetime DEFAULT NULL COMMENT '上次成功同步时间,为空表示未同步', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '是否已删除', + `deleted` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否已删除', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_message` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `appID` int(10) unsigned NOT NULL DEFAULT 0, - `user` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `appID` int unsigned NOT NULL DEFAULT 0, + `user` int unsigned NOT NULL DEFAULT 0, `type` varchar(10) NOT NULL DEFAULT '', `content` text DEFAULT NULL, `createdDate` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_miniprogram` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '', `category` varchar(30) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, @@ -162,33 +162,33 @@ CREATE TABLE `zt_ai_miniprogram` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `published` tinyint(3) unsigned NOT NULL DEFAULT 0, + `published` tinyint unsigned NOT NULL DEFAULT 0, `publishedDate` datetime DEFAULT NULL, `prompt` text DEFAULT NULL, - `builtIn` tinyint(3) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `builtIn` tinyint unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_miniprogramfield` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `appID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `appID` int unsigned NOT NULL DEFAULT 0, `name` varchar(30) NOT NULL DEFAULT '', `type` varchar(10) NOT NULL DEFAULT 'text', `placeholder` text DEFAULT NULL, `options` text DEFAULT NULL, - `required` tinyint(3) unsigned NOT NULL DEFAULT 1, + `required` tinyint unsigned NOT NULL DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_miniprogramstar` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `appID` int(10) unsigned NOT NULL DEFAULT 0, - `userID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `appID` int unsigned NOT NULL DEFAULT 0, + `userID` int unsigned NOT NULL DEFAULT 0, `createdDate` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uk_appUser` (`appID`,`userID`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_model` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(20) NOT NULL DEFAULT '', `vendor` varchar(20) NOT NULL DEFAULT '', `credentials` text DEFAULT NULL, @@ -199,12 +199,12 @@ CREATE TABLE `zt_ai_model` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `enabled` tinyint(3) unsigned NOT NULL DEFAULT 1, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `enabled` tinyint unsigned NOT NULL DEFAULT 1, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_prompt` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, `model` varchar(255) NOT NULL DEFAULT '', @@ -221,34 +221,34 @@ CREATE TABLE `zt_ai_prompt` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_promptfield` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', - `appID` int(10) unsigned NOT NULL COMMENT '所属 Prompt 的 ID,对应 zt_ai_prompt.id', + `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', + `appID` int unsigned NOT NULL COMMENT '所属 Prompt 的 ID,对应 zt_ai_prompt.id', `name` varchar(30) NOT NULL DEFAULT '' COMMENT '字段名称', `type` varchar(20) NOT NULL DEFAULT 'text' COMMENT '字段类型', `placeholder` text DEFAULT NULL COMMENT '输入提示', `options` text DEFAULT NULL COMMENT '选项列表,逗号分隔', - `required` tinyint(3) unsigned NOT NULL DEFAULT 1 COMMENT '是否必填', + `required` tinyint unsigned NOT NULL DEFAULT 1 COMMENT '是否必填', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_ai_promptrole` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, `model` varchar(255) NOT NULL DEFAULT '', `role` text DEFAULT NULL, `characterization` text DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_api` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `product` varchar(255) NOT NULL DEFAULT '', - `lib` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `lib` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `title` varchar(100) NOT NULL DEFAULT '', `path` varchar(255) NOT NULL DEFAULT '', `protocol` varchar(10) NOT NULL DEFAULT '', @@ -258,7 +258,7 @@ CREATE TABLE `zt_api` ( `status` varchar(20) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `params` text DEFAULT NULL, `paramsExample` text DEFAULT NULL, `responseExample` text DEFAULT NULL, @@ -268,12 +268,12 @@ CREATE TABLE `zt_api` ( `addedDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_api_lib_release` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `lib` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `lib` int unsigned NOT NULL DEFAULT 0, `desc` varchar(255) NOT NULL DEFAULT '', `version` varchar(255) NOT NULL DEFAULT '', `snap` mediumtext DEFAULT NULL, @@ -282,9 +282,9 @@ CREATE TABLE `zt_api_lib_release` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_apispec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `doc` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `doc` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `title` varchar(100) NOT NULL DEFAULT '', `path` varchar(255) NOT NULL DEFAULT '', `protocol` varchar(10) NOT NULL DEFAULT '', @@ -294,7 +294,7 @@ CREATE TABLE `zt_apispec` ( `status` varchar(20) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `params` text DEFAULT NULL, `paramsExample` text DEFAULT NULL, `responseExample` text DEFAULT NULL, @@ -304,79 +304,79 @@ CREATE TABLE `zt_apispec` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_apistruct` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `lib` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `lib` int unsigned NOT NULL DEFAULT 0, `name` varchar(30) NOT NULL DEFAULT '', `type` varchar(50) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `attribute` text DEFAULT NULL, `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_apistruct_spec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(50) NOT NULL DEFAULT '', `desc` varchar(255) NOT NULL DEFAULT '', `attribute` text DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_approval` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `flow` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `flow` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `nodes` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `status` varchar(20) NOT NULL DEFAULT 'doing', `result` varchar(20) NOT NULL DEFAULT '', `extra` text DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_approvalflow` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `code` varchar(100) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `workflow` varchar(30) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_approvalflowobject` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `root` int(10) unsigned NOT NULL DEFAULT 0, - `flow` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `root` int unsigned NOT NULL DEFAULT 0, + `flow` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `extra` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_approvalflowspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `flow` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `flow` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `nodes` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_approvalnode` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `approval` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `approval` int unsigned NOT NULL DEFAULT 0, `type` varchar(10) NOT NULL DEFAULT 'review', `title` varchar(255) NOT NULL DEFAULT '', `account` varchar(30) NOT NULL DEFAULT '', @@ -384,9 +384,9 @@ CREATE TABLE `zt_approvalnode` ( `reviewType` varchar(100) NOT NULL DEFAULT 'manual', `agentType` varchar(100) NOT NULL DEFAULT 'pass', `multipleType` varchar(10) NOT NULL DEFAULT 'and', - `percent` tinyint(3) unsigned NOT NULL DEFAULT 0, - `needAll` tinyint(3) unsigned NOT NULL DEFAULT 0, - `solicit` tinyint(3) unsigned NOT NULL DEFAULT 0, + `percent` tinyint unsigned NOT NULL DEFAULT 0, + `needAll` tinyint unsigned NOT NULL DEFAULT 0, + `solicit` tinyint unsigned NOT NULL DEFAULT 0, `prev` mediumtext DEFAULT NULL, `next` mediumtext DEFAULT NULL, `status` varchar(20) NOT NULL DEFAULT 'wait', @@ -402,10 +402,10 @@ CREATE TABLE `zt_approvalnode` ( KEY `idx_reviewed_date` (`reviewedDate`) ) ENGINE=InnoDB; CREATE TABLE `zt_approvalobject` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `approval` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `approval` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `reviewers` text DEFAULT NULL, `opinion` text DEFAULT NULL, `result` varchar(10) NOT NULL DEFAULT '', @@ -417,19 +417,19 @@ CREATE TABLE `zt_approvalobject` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_approvalrole` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(30) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, `users` longtext DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_artifactrepo` ( - `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, + `id` smallint unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL DEFAULT '', `products` varchar(255) NOT NULL DEFAULT '', - `serverID` smallint(5) unsigned NOT NULL DEFAULT 0, + `serverID` smallint unsigned NOT NULL DEFAULT 0, `repoName` varchar(45) NOT NULL DEFAULT '', `format` varchar(10) NOT NULL DEFAULT '', `type` varchar(7) NOT NULL DEFAULT '', @@ -438,24 +438,24 @@ CREATE TABLE `zt_artifactrepo` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_assetlib` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_attend` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `date` date DEFAULT NULL, `signIn` time DEFAULT NULL, @@ -481,7 +481,7 @@ CREATE TABLE `zt_attend` ( KEY `reviewedBy` (`reviewedBy`) ) ENGINE=InnoDB; CREATE TABLE `zt_attendstat` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `month` varchar(10) NOT NULL DEFAULT '', `normal` decimal(12,2) NOT NULL DEFAULT 0.00, @@ -506,13 +506,13 @@ CREATE TABLE `zt_attendstat` ( KEY `status` (`status`) ) ENGINE=InnoDB; CREATE TABLE `zt_auditcl` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `model` varchar(30) NOT NULL DEFAULT 'waterfall', `practiceArea` varchar(30) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '', `objectType` varchar(10) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -521,23 +521,23 @@ CREATE TABLE `zt_auditcl` ( `editedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_auditplan` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `dateType` varchar(30) NOT NULL DEFAULT '', `config` text DEFAULT NULL, - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(10) NOT NULL DEFAULT '', - `process` int(10) unsigned NOT NULL DEFAULT 0, + `process` int unsigned NOT NULL DEFAULT 0, `processType` varchar(30) NOT NULL DEFAULT '', `checkDate` date DEFAULT NULL, `checkedBy` varchar(30) NOT NULL DEFAULT '', `realCheckDate` date DEFAULT NULL, `result` varchar(30) NOT NULL DEFAULT '', - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -547,18 +547,18 @@ CREATE TABLE `zt_auditplan` ( `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, `checkBy` varchar(30) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_auditresult` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `auditplan` int(10) unsigned NOT NULL DEFAULT 0, - `listID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `auditplan` int unsigned NOT NULL DEFAULT 0, + `listID` int unsigned NOT NULL DEFAULT 0, `result` varchar(30) NOT NULL DEFAULT '', `checkedBy` varchar(30) NOT NULL DEFAULT '', `checkedDate` date DEFAULT NULL, `comment` text DEFAULT NULL, - `severity` tinyint(3) unsigned NOT NULL DEFAULT 0, + `severity` tinyint unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -567,20 +567,20 @@ CREATE TABLE `zt_auditresult` ( `editedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_autocache` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(30) NOT NULL DEFAULT '', `fields` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `cache` (`code`,`fields`) ) ENGINE=InnoDB; CREATE TABLE `zt_automation` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `node` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `node` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `scriptPath` varchar(255) NOT NULL DEFAULT '', `shell` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -588,7 +588,7 @@ CREATE TABLE `zt_automation` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_basicmeas` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `purpose` varchar(50) NOT NULL DEFAULT '', `scope` varchar(30) NOT NULL DEFAULT '', `object` varchar(30) NOT NULL DEFAULT '', @@ -607,48 +607,48 @@ CREATE TABLE `zt_basicmeas` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `code` (`code`) ) ENGINE=InnoDB; CREATE TABLE `zt_block` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `dashboard` varchar(20) NOT NULL DEFAULT '', `module` varchar(20) NOT NULL DEFAULT '', `title` varchar(100) NOT NULL DEFAULT '', `block` varchar(30) NOT NULL DEFAULT '', `code` varchar(30) NOT NULL DEFAULT '', - `width` tinyint(3) unsigned NOT NULL DEFAULT 1, - `height` smallint(5) unsigned NOT NULL DEFAULT 3, - `left` tinyint(3) unsigned NOT NULL DEFAULT 0, - `top` smallint(5) unsigned NOT NULL DEFAULT 0, + `width` tinyint unsigned NOT NULL DEFAULT 1, + `height` smallint unsigned NOT NULL DEFAULT 3, + `left` tinyint unsigned NOT NULL DEFAULT 0, + `top` smallint unsigned NOT NULL DEFAULT 0, `params` text DEFAULT NULL, - `hidden` tinyint(3) unsigned NOT NULL DEFAULT 0, + `hidden` tinyint unsigned NOT NULL DEFAULT 0, `vision` varchar(10) NOT NULL DEFAULT 'rnd', PRIMARY KEY (`id`), KEY `account` (`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_branch` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `product` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', - `default` tinyint(3) unsigned NOT NULL DEFAULT 0, + `default` tinyint unsigned NOT NULL DEFAULT 0, `status` varchar(10) NOT NULL DEFAULT 'active', `desc` varchar(255) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `closedDate` datetime DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`) ) ENGINE=InnoDB; CREATE TABLE `zt_budget` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `stage` varchar(30) NOT NULL DEFAULT '', - `subject` int(10) unsigned NOT NULL DEFAULT 0, + `subject` int unsigned NOT NULL DEFAULT 0, `amount` varchar(30) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, @@ -656,28 +656,28 @@ CREATE TABLE `zt_budget` ( `createdDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_bug` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `injection` varchar(30) NOT NULL DEFAULT '', `identify` varchar(30) NOT NULL DEFAULT '', - `branch` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `plan` int(10) unsigned NOT NULL DEFAULT 0, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `storyVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `task` int(10) unsigned NOT NULL DEFAULT 0, - `toTask` int(10) unsigned NOT NULL DEFAULT 0, - `toStory` int(10) unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, + `plan` int unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `storyVersion` smallint unsigned NOT NULL DEFAULT 1, + `task` int unsigned NOT NULL DEFAULT 0, + `toTask` int unsigned NOT NULL DEFAULT 0, + `toStory` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `keywords` varchar(255) NOT NULL DEFAULT '', - `severity` tinyint(3) unsigned NOT NULL DEFAULT 0, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 0, + `severity` tinyint unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', `os` varchar(255) NOT NULL DEFAULT '', `browser` varchar(255) NOT NULL DEFAULT '', @@ -687,8 +687,8 @@ CREATE TABLE `zt_bug` ( `status` varchar(10) NOT NULL DEFAULT 'active', `subStatus` varchar(30) NOT NULL DEFAULT '', `color` char(7) NOT NULL DEFAULT '', - `confirmed` tinyint(3) unsigned NOT NULL DEFAULT 0, - `activatedCount` smallint(5) unsigned NOT NULL DEFAULT 0, + `confirmed` tinyint unsigned NOT NULL DEFAULT 0, + `activatedCount` smallint unsigned NOT NULL DEFAULT 0, `activatedDate` datetime DEFAULT NULL, `feedbackBy` varchar(100) NOT NULL DEFAULT '', `notifyEmail` varchar(100) NOT NULL DEFAULT '', @@ -705,24 +705,24 @@ CREATE TABLE `zt_bug` ( `resolvedDate` datetime DEFAULT NULL, `closedBy` varchar(30) NOT NULL DEFAULT '', `closedDate` datetime DEFAULT NULL, - `duplicateBug` int(10) unsigned NOT NULL DEFAULT 0, + `duplicateBug` int unsigned NOT NULL DEFAULT 0, `relatedBug` varchar(255) NOT NULL DEFAULT '', - `case` int(10) unsigned NOT NULL DEFAULT 0, - `caseVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `feedback` int(10) unsigned NOT NULL DEFAULT 0, - `result` int(10) unsigned NOT NULL DEFAULT 0, - `repo` int(10) unsigned NOT NULL DEFAULT 0, - `mr` int(10) unsigned NOT NULL DEFAULT 0, + `case` int unsigned NOT NULL DEFAULT 0, + `caseVersion` smallint unsigned NOT NULL DEFAULT 1, + `feedback` int unsigned NOT NULL DEFAULT 0, + `result` int unsigned NOT NULL DEFAULT 0, + `repo` int unsigned NOT NULL DEFAULT 0, + `mr` int unsigned NOT NULL DEFAULT 0, `entry` text DEFAULT NULL, `lines` varchar(10) NOT NULL DEFAULT '', `v1` varchar(255) NOT NULL DEFAULT '', `v2` varchar(255) NOT NULL DEFAULT '', `repoType` varchar(30) NOT NULL DEFAULT '', `issueKey` varchar(50) NOT NULL DEFAULT '', - `testtask` int(10) unsigned NOT NULL DEFAULT 0, + `testtask` int unsigned NOT NULL DEFAULT 0, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `execution` (`execution`), @@ -740,35 +740,35 @@ CREATE TABLE `zt_bug` ( KEY `feedback` (`feedback`) ) ENGINE=InnoDB; CREATE TABLE `zt_build` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `branch` varchar(255) NOT NULL DEFAULT '0', - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `builds` varchar(255) NOT NULL DEFAULT '', `name` varchar(150) NOT NULL DEFAULT '', - `system` int(10) unsigned NOT NULL DEFAULT 0, + `system` int unsigned NOT NULL DEFAULT 0, `scmPath` varchar(255) NOT NULL DEFAULT '', `filePath` varchar(255) NOT NULL DEFAULT '', `date` date DEFAULT NULL, `stories` text DEFAULT NULL, `bugs` text DEFAULT NULL, - `artifactRepoID` int(10) unsigned NOT NULL DEFAULT 0, + `artifactRepoID` int unsigned NOT NULL DEFAULT 0, `builder` varchar(30) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `execution` (`execution`), KEY `idx_system` (`system`) ) ENGINE=InnoDB; CREATE TABLE `zt_burn` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `task` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `execution` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `task` int unsigned NOT NULL DEFAULT 0, `date` date DEFAULT NULL, `estimate` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `left` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, @@ -778,20 +778,20 @@ CREATE TABLE `zt_burn` ( UNIQUE KEY `execution_task` (`execution`,`date`,`task`) ) ENGINE=InnoDB; CREATE TABLE `zt_case` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, - `lib` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, - `path` int(10) unsigned NOT NULL DEFAULT 0, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `storyVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, + `lib` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, + `path` int unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `storyVersion` smallint unsigned NOT NULL DEFAULT 1, `title` varchar(255) NOT NULL DEFAULT '', `precondition` text DEFAULT NULL, `keywords` varchar(255) NOT NULL DEFAULT '', - `pri` tinyint(3) unsigned NOT NULL DEFAULT 3, + `pri` tinyint unsigned NOT NULL DEFAULT 3, `type` varchar(30) NOT NULL DEFAULT '', `auto` varchar(10) NOT NULL DEFAULT 'no', `frame` varchar(10) NOT NULL DEFAULT '', @@ -805,25 +805,25 @@ CREATE TABLE `zt_case` ( `status` varchar(30) NOT NULL DEFAULT '', `subStatus` varchar(30) NOT NULL DEFAULT '', `color` char(7) NOT NULL DEFAULT '', - `frequency` tinyint(3) unsigned NOT NULL DEFAULT 1, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `frequency` tinyint unsigned NOT NULL DEFAULT 1, + `order` int unsigned NOT NULL DEFAULT 0, `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, `reviewedBy` varchar(255) NOT NULL DEFAULT '', `reviewedDate` date DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `linkCase` varchar(255) NOT NULL DEFAULT '', - `fromBug` int(10) unsigned NOT NULL DEFAULT 0, - `fromCaseID` int(10) unsigned NOT NULL DEFAULT 0, - `fromCaseVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `fromBug` int unsigned NOT NULL DEFAULT 0, + `fromCaseID` int unsigned NOT NULL DEFAULT 0, + `fromCaseVersion` smallint unsigned NOT NULL DEFAULT 1, `lastRunner` varchar(30) NOT NULL DEFAULT '', `lastRunDate` datetime DEFAULT NULL, `lastRunResult` varchar(30) NOT NULL DEFAULT '', - `scene` int(10) unsigned NOT NULL DEFAULT 0, - `sort` int(10) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `scene` int unsigned NOT NULL DEFAULT 0, + `sort` int unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `story` (`story`), @@ -832,9 +832,9 @@ CREATE TABLE `zt_case` ( KEY `scene` (`scene`) ) ENGINE=InnoDB; CREATE TABLE `zt_casespec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `case` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `case` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `title` varchar(255) NOT NULL DEFAULT '', `precondition` text DEFAULT NULL, `files` text DEFAULT NULL, @@ -842,10 +842,10 @@ CREATE TABLE `zt_casespec` ( UNIQUE KEY `case` (`case`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_casestep` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `case` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `parent` int unsigned NOT NULL DEFAULT 0, + `case` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `type` varchar(10) NOT NULL DEFAULT 'step', `desc` text DEFAULT NULL, `expect` text DEFAULT NULL, @@ -854,22 +854,22 @@ CREATE TABLE `zt_casestep` ( KEY `version` (`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_cfd` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `execution` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', `name` varchar(30) NOT NULL DEFAULT '', - `count` smallint(5) unsigned NOT NULL DEFAULT 0, + `count` smallint unsigned NOT NULL DEFAULT 0, `date` date DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `execution_type_name_date` (`execution`,`type`,`name`,`date`) ) ENGINE=InnoDB; CREATE TABLE `zt_chart` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `code` varchar(255) NOT NULL DEFAULT '', `driver` varchar(10) NOT NULL DEFAULT 'mysql', `mode` varchar(10) NOT NULL DEFAULT 'builder', - `dimension` int(10) unsigned NOT NULL DEFAULT 0, + `dimension` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', `group` varchar(255) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, @@ -877,28 +877,28 @@ CREATE TABLE `zt_chart` ( `whitelist` text DEFAULT NULL, `settings` mediumtext DEFAULT NULL, `filters` mediumtext DEFAULT NULL, - `step` tinyint(3) unsigned NOT NULL DEFAULT 0, + `step` tinyint unsigned NOT NULL DEFAULT 0, `fields` mediumtext DEFAULT NULL, `langs` text DEFAULT NULL, `sql` mediumtext DEFAULT NULL, `version` varchar(10) NOT NULL DEFAULT '1', `stage` varchar(10) NOT NULL DEFAULT 'draft', - `builtin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `builtin` tinyint unsigned NOT NULL DEFAULT 0, `objects` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_charter` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `level` varchar(255) NOT NULL DEFAULT '', `category` varchar(30) NOT NULL DEFAULT '', `market` varchar(30) NOT NULL DEFAULT '', - `check` tinyint(3) unsigned NOT NULL DEFAULT 0, + `check` tinyint unsigned NOT NULL DEFAULT 0, `appliedBy` varchar(30) NOT NULL DEFAULT '', `appliedDate` datetime DEFAULT NULL, `appliedReviewer` text DEFAULT NULL, @@ -936,37 +936,37 @@ CREATE TABLE `zt_charter` ( `meetingDate` date DEFAULT NULL, `meetingLocation` varchar(255) NOT NULL DEFAULT '', `meetingMinutes` mediumtext DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_charterproduct` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `charter` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `charter` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, `plan` varchar(255) NOT NULL DEFAULT '', `roadmap` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `charter_product` (`charter`,`product`,`branch`) ) ENGINE=InnoDB; CREATE TABLE `zt_cmcl` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(30) NOT NULL DEFAULT '', `projectType` varchar(255) NOT NULL DEFAULT '', - `title` int(10) unsigned NOT NULL DEFAULT 0, + `title` int unsigned NOT NULL DEFAULT 0, `contents` text DEFAULT NULL, `assignedTo` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_company` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(120) NOT NULL DEFAULT '', `phone` varchar(20) NOT NULL DEFAULT '', `fax` varchar(20) NOT NULL DEFAULT '', @@ -974,32 +974,32 @@ CREATE TABLE `zt_company` ( `zipcode` varchar(10) NOT NULL DEFAULT '', `website` varchar(120) NOT NULL DEFAULT '', `backyard` varchar(120) NOT NULL DEFAULT '', - `guest` tinyint(3) unsigned NOT NULL DEFAULT 0, + `guest` tinyint unsigned NOT NULL DEFAULT 0, `admins` varchar(255) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_compile` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', - `job` int(10) unsigned NOT NULL DEFAULT 0, - `queue` int(10) unsigned NOT NULL DEFAULT 0, + `job` int unsigned NOT NULL DEFAULT 0, + `queue` int unsigned NOT NULL DEFAULT 0, `status` varchar(100) NOT NULL DEFAULT '', `branch` varchar(255) NOT NULL DEFAULT '', `logs` longtext DEFAULT NULL, `atTime` varchar(10) NOT NULL DEFAULT '', - `testtask` int(10) unsigned NOT NULL DEFAULT 0, + `testtask` int unsigned NOT NULL DEFAULT 0, `tag` varchar(255) NOT NULL DEFAULT '', - `times` tinyint(3) unsigned NOT NULL DEFAULT 0, + `times` tinyint unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `updateDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `idx_created_status` (`createdDate`,`status`,`deleted`) ) ENGINE=InnoDB; CREATE TABLE `zt_config` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `vision` varchar(10) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', `module` varchar(30) NOT NULL DEFAULT '', @@ -1014,7 +1014,7 @@ CREATE TABLE `zt_config` ( KEY `key` (`key`) ) ENGINE=InnoDB; CREATE TABLE `zt_cron` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `m` varchar(20) NOT NULL DEFAULT '', `h` varchar(20) NOT NULL DEFAULT '', `dom` varchar(20) NOT NULL DEFAULT '', @@ -1023,26 +1023,26 @@ CREATE TABLE `zt_cron` ( `command` text DEFAULT NULL, `remark` varchar(255) NOT NULL DEFAULT '', `type` varchar(20) NOT NULL DEFAULT '', - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `status` varchar(20) NOT NULL DEFAULT '', `lastTime` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `lastTime` (`lastTime`) ) ENGINE=InnoDB; CREATE TABLE `zt_dataset` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(155) NOT NULL DEFAULT '', `sql` text DEFAULT NULL, `fields` mediumtext DEFAULT NULL, `objects` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_dataview` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `name` varchar(155) NOT NULL DEFAULT '', `code` varchar(50) NOT NULL DEFAULT '', `mode` varchar(50) NOT NULL DEFAULT 'builder', @@ -1056,11 +1056,11 @@ CREATE TABLE `zt_dataview` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_deliverable` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `module` varchar(30) NOT NULL DEFAULT '', `method` varchar(30) NOT NULL DEFAULT '', @@ -1072,16 +1072,16 @@ CREATE TABLE `zt_deliverable` ( `createdDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_demand` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `pool` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `pool` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `product` varchar(255) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 3, + `parent` int unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 3, `category` varchar(30) NOT NULL DEFAULT '', `source` varchar(30) NOT NULL DEFAULT '', `sourceNote` varchar(255) NOT NULL DEFAULT '', @@ -1096,15 +1096,15 @@ CREATE TABLE `zt_demand` ( `stage` varchar(20) NOT NULL DEFAULT 'wait', `duration` varchar(30) NOT NULL DEFAULT '', `BSA` varchar(30) NOT NULL DEFAULT '', - `story` int(10) unsigned NOT NULL DEFAULT 0, - `roadmap` int(10) unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `roadmap` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `mailto` text DEFAULT NULL, - `duplicateDemand` int(10) unsigned NOT NULL DEFAULT 0, + `duplicateDemand` int unsigned NOT NULL DEFAULT 0, `childDemands` varchar(255) NOT NULL DEFAULT '', - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `parentVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, + `parentVersion` smallint unsigned NOT NULL DEFAULT 1, `color` char(7) NOT NULL DEFAULT '', `changedBy` varchar(30) NOT NULL DEFAULT '', `changedDate` datetime DEFAULT NULL, @@ -1117,14 +1117,14 @@ CREATE TABLE `zt_demand` ( `activatedDate` datetime DEFAULT NULL, `distributedBy` varchar(30) NOT NULL DEFAULT '', `distributedDate` datetime DEFAULT NULL, - `feedback` int(10) unsigned NOT NULL DEFAULT 0, + `feedback` int unsigned NOT NULL DEFAULT 0, `keywords` varchar(255) NOT NULL DEFAULT '', `vision` varchar(10) NOT NULL DEFAULT 'or', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_demandpool` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `status` varchar(30) NOT NULL DEFAULT '', @@ -1134,13 +1134,13 @@ CREATE TABLE `zt_demandpool` ( `owner` text DEFAULT NULL, `reviewer` text DEFAULT NULL, `acl` varchar(10) NOT NULL DEFAULT 'open', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_demandreview` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `demand` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `demand` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `reviewer` varchar(30) NOT NULL DEFAULT '', `result` varchar(30) NOT NULL DEFAULT '', `reviewDate` datetime DEFAULT NULL, @@ -1148,9 +1148,9 @@ CREATE TABLE `zt_demandreview` ( UNIQUE KEY `demand` (`demand`,`version`,`reviewer`) ) ENGINE=InnoDB; CREATE TABLE `zt_demandspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `demand` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `demand` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `title` varchar(255) NOT NULL DEFAULT '', `spec` mediumtext DEFAULT NULL, `verify` mediumtext DEFAULT NULL, @@ -1159,7 +1159,7 @@ CREATE TABLE `zt_demandspec` ( UNIQUE KEY `demand` (`demand`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_deploy` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `begin` datetime DEFAULT NULL, `end` datetime DEFAULT NULL, `estimate` datetime DEFAULT NULL, @@ -1174,21 +1174,21 @@ CREATE TABLE `zt_deploy` ( `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `result` varchar(20) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_deployproduct` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `deploy` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `release` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `deploy` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `release` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `deploy_product_release` (`deploy`,`product`,`release`) ) ENGINE=InnoDB; CREATE TABLE `zt_deploystep` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `deploy` int(10) unsigned NOT NULL DEFAULT 0, - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `deploy` int unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `stage` varchar(30) NOT NULL DEFAULT '', `content` text DEFAULT NULL, @@ -1199,16 +1199,16 @@ CREATE TABLE `zt_deploystep` ( `finishedDate` datetime DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_dept` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `position` varchar(30) NOT NULL DEFAULT '', `function` varchar(255) NOT NULL DEFAULT '', `manager` varchar(30) NOT NULL DEFAULT '', @@ -1217,12 +1217,12 @@ CREATE TABLE `zt_dept` ( KEY `path` (`path`) ) ENGINE=InnoDB; CREATE TABLE `zt_design` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `commit` text DEFAULT NULL, `commitedBy` varchar(30) NOT NULL DEFAULT '', - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -1232,20 +1232,20 @@ CREATE TABLE `zt_design` ( `assignedTo` varchar(30) NOT NULL DEFAULT '', `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `storyVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `story` int unsigned NOT NULL DEFAULT 0, + `storyVersion` smallint unsigned NOT NULL DEFAULT 1, `docs` text DEFAULT NULL, `docVersions` text DEFAULT NULL, `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `type` varchar(30) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_designspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `design` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `design` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `name` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `files` varchar(255) NOT NULL DEFAULT '', @@ -1253,7 +1253,7 @@ CREATE TABLE `zt_designspec` ( UNIQUE KEY `design` (`design`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_dimension` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(90) NOT NULL DEFAULT '', `code` varchar(45) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, @@ -1263,16 +1263,16 @@ CREATE TABLE `zt_dimension` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `code` (`code`) ) ENGINE=InnoDB; CREATE TABLE `zt_doc` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `lib` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, + `lib` int unsigned NOT NULL DEFAULT 0, `template` varchar(30) NOT NULL DEFAULT '', `templateType` varchar(30) NOT NULL DEFAULT '', `templateDesc` text DEFAULT NULL, @@ -1280,23 +1280,23 @@ CREATE TABLE `zt_doc` ( `chapterType` varchar(30) NOT NULL DEFAULT '', `cycle` varchar(10) NOT NULL DEFAULT '', `cycleConfig` text DEFAULT NULL, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `reportModule` varchar(20) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '', `keywords` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT 'normal', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `views` smallint(5) unsigned NOT NULL DEFAULT 0, - `assetLib` int(10) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `views` smallint unsigned NOT NULL DEFAULT 0, + `assetLib` int unsigned NOT NULL DEFAULT 0, `assetLibType` varchar(30) NOT NULL DEFAULT '', - `from` int(10) unsigned NOT NULL DEFAULT 0, - `fromVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `from` int unsigned NOT NULL DEFAULT 0, + `fromVersion` smallint unsigned NOT NULL DEFAULT 1, `draft` longtext DEFAULT NULL, - `collects` smallint(5) unsigned NOT NULL DEFAULT 0, + `collects` smallint unsigned NOT NULL DEFAULT 0, `weeklyDate` char(8) NOT NULL DEFAULT '', `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, @@ -1313,10 +1313,10 @@ CREATE TABLE `zt_doc` ( `users` text DEFAULT NULL, `readGroups` varchar(255) NOT NULL DEFAULT '', `readUsers` text DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `builtIn` tinyint(3) unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, + `builtIn` tinyint unsigned NOT NULL DEFAULT 0, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `execution` (`execution`), @@ -1324,8 +1324,8 @@ CREATE TABLE `zt_doc` ( KEY `templateType` (`templateType`) ) ENGINE=InnoDB; CREATE TABLE `zt_docaction` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `doc` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `doc` int unsigned NOT NULL DEFAULT 0, `action` varchar(80) NOT NULL DEFAULT '', `actor` varchar(30) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, @@ -1334,8 +1334,8 @@ CREATE TABLE `zt_docaction` ( KEY `actor` (`actor`) ) ENGINE=InnoDB; CREATE TABLE `zt_docblock` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `doc` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `doc` int unsigned NOT NULL DEFAULT 0, `type` varchar(50) NOT NULL DEFAULT '', `settings` text DEFAULT NULL, `content` mediumtext DEFAULT NULL, @@ -1344,8 +1344,8 @@ CREATE TABLE `zt_docblock` ( KEY `idx_doc` (`doc`) ) ENGINE=InnoDB; CREATE TABLE `zt_doccontent` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `doc` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `doc` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `digest` varchar(255) NOT NULL DEFAULT '', `content` longtext DEFAULT NULL, @@ -1356,39 +1356,39 @@ CREATE TABLE `zt_doccontent` ( `addedDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `fromVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, + `fromVersion` smallint unsigned NOT NULL DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `doc_version` (`doc`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_doclib` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(30) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `name` varchar(60) NOT NULL DEFAULT '', `baseUrl` varchar(255) NOT NULL DEFAULT '', `acl` varchar(10) NOT NULL DEFAULT 'open', `groups` varchar(255) NOT NULL DEFAULT '', `users` text DEFAULT NULL, - `main` tinyint(3) unsigned NOT NULL DEFAULT 0, + `main` tinyint unsigned NOT NULL DEFAULT 0, `collector` text DEFAULT NULL, `desc` mediumtext DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, - `archived` tinyint(3) unsigned NOT NULL DEFAULT 0, + `archived` tinyint unsigned NOT NULL DEFAULT 0, `orderBy` varchar(30) NOT NULL DEFAULT 'id_asc', `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `execution` (`execution`) ) ENGINE=InnoDB; CREATE TABLE `zt_duckdbqueue` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, `object` varchar(255) NOT NULL DEFAULT '', `updatedTime` datetime DEFAULT NULL, `syncTime` datetime DEFAULT NULL, @@ -1396,9 +1396,9 @@ CREATE TABLE `zt_duckdbqueue` ( UNIQUE KEY `object` (`object`) ) ENGINE=InnoDB; CREATE TABLE `zt_durationestimation` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `stage` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `stage` int unsigned NOT NULL DEFAULT 0, `workload` varchar(255) NOT NULL DEFAULT '', `worktimeRate` varchar(255) NOT NULL DEFAULT '', `people` varchar(255) NOT NULL DEFAULT '', @@ -1408,16 +1408,16 @@ CREATE TABLE `zt_durationestimation` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_effort` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `product` text DEFAULT NULL, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `account` varchar(30) NOT NULL DEFAULT '', `work` text DEFAULT NULL, `date` date DEFAULT NULL, @@ -1426,9 +1426,9 @@ CREATE TABLE `zt_effort` ( `begin` char(4) NOT NULL DEFAULT '', `end` char(4) NOT NULL DEFAULT '', `extra` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `execution` (`execution`), KEY `objectID` (`objectID`), @@ -1436,35 +1436,35 @@ CREATE TABLE `zt_effort` ( KEY `account` (`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_entry` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `account` varchar(30) NOT NULL DEFAULT '', `code` varchar(20) NOT NULL DEFAULT '', `key` char(32) NOT NULL DEFAULT '', - `freePasswd` tinyint(3) unsigned NOT NULL DEFAULT 0, + `freePasswd` tinyint unsigned NOT NULL DEFAULT 0, `ip` varchar(100) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `calledTime` int(10) unsigned NOT NULL DEFAULT 0, + `calledTime` int unsigned NOT NULL DEFAULT 0, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_expect` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `userID` int(10) unsigned NOT NULL DEFAULT 0, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `userID` int unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, `expect` text DEFAULT NULL, `progress` text DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_extension` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL DEFAULT '', `code` varchar(30) NOT NULL DEFAULT '', `version` varchar(50) NOT NULL DEFAULT '', @@ -1485,39 +1485,39 @@ CREATE TABLE `zt_extension` ( KEY `installedTime` (`installedTime`) ) ENGINE=InnoDB; CREATE TABLE `zt_extuser` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(255) NOT NULL DEFAULT '', `account` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_faq` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `module` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `module` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `question` varchar(255) NOT NULL DEFAULT '', `answer` text DEFAULT NULL, `addedtime` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_feedback` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `product` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `solution` varchar(30) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 2, + `pri` tinyint unsigned NOT NULL DEFAULT 2, `status` varchar(30) NOT NULL DEFAULT '', `subStatus` varchar(30) NOT NULL DEFAULT '', `prevStatus` varchar(30) NOT NULL DEFAULT '', - `public` tinyint(3) unsigned NOT NULL DEFAULT 0, - `notify` tinyint(3) unsigned NOT NULL DEFAULT 0, + `public` tinyint unsigned NOT NULL DEFAULT 0, + `notify` tinyint unsigned NOT NULL DEFAULT 0, `notifyEmail` varchar(100) NOT NULL DEFAULT '', `source` varchar(255) NOT NULL DEFAULT '', `likes` text DEFAULT NULL, - `result` int(10) unsigned NOT NULL DEFAULT 0, - `faq` int(10) unsigned NOT NULL DEFAULT 0, + `result` int unsigned NOT NULL DEFAULT 0, + `faq` int unsigned NOT NULL DEFAULT 0, `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, `reviewedBy` varchar(255) NOT NULL DEFAULT '', @@ -1535,41 +1535,41 @@ CREATE TABLE `zt_feedback` ( `activatedBy` varchar(30) NOT NULL DEFAULT '', `activatedDate` datetime DEFAULT NULL, `feedbackBy` varchar(100) NOT NULL DEFAULT '', - `repeatFeedback` int(10) unsigned NOT NULL DEFAULT 0, + `repeatFeedback` int unsigned NOT NULL DEFAULT 0, `mailto` varchar(255) NOT NULL DEFAULT '', `keywords` varchar(255) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_feedbackview` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', - `product` int(10) unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `account_product` (`account`,`product`) ) ENGINE=InnoDB; CREATE TABLE `zt_file` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `pathname` varchar(100) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '', `extension` varchar(30) NOT NULL DEFAULT '', - `size` int(10) unsigned NOT NULL DEFAULT 0, + `size` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `gid` char(48) NOT NULL DEFAULT '', `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, - `downloads` int(10) unsigned NOT NULL DEFAULT 0, + `downloads` int unsigned NOT NULL DEFAULT 0, `extra` varchar(255) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `objectType` (`objectType`), KEY `objectID` (`objectID`), KEY `gid` (`gid`) ) ENGINE=InnoDB; CREATE TABLE `zt_gapanalysis` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `account` varchar(30) NOT NULL DEFAULT '', `role` varchar(20) NOT NULL DEFAULT '', `analysis` mediumtext DEFAULT NULL, @@ -1578,32 +1578,32 @@ CREATE TABLE `zt_gapanalysis` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `project_account` (`project`,`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_group` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `name` varchar(30) NOT NULL DEFAULT '', `role` varchar(30) NOT NULL DEFAULT '', `desc` varchar(255) NOT NULL DEFAULT '', `acl` text DEFAULT NULL, - `developer` tinyint(3) unsigned NOT NULL DEFAULT 1, + `developer` tinyint unsigned NOT NULL DEFAULT 1, `vision` varchar(10) NOT NULL DEFAULT 'rnd', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_grouppriv` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `module` varchar(30) NOT NULL DEFAULT '', `method` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `group` (`group`,`module`,`method`) ) ENGINE=InnoDB; CREATE TABLE `zt_history` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `action` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `action` int unsigned NOT NULL DEFAULT 0, `field` varchar(30) NOT NULL DEFAULT '', `old` longtext DEFAULT NULL, `oldValue` text DEFAULT NULL, @@ -1614,7 +1614,7 @@ CREATE TABLE `zt_history` ( KEY `action` (`action`) ) ENGINE=InnoDB; CREATE TABLE `zt_holiday` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '', `type` varchar(10) NOT NULL DEFAULT 'holiday', `desc` text DEFAULT NULL, @@ -1626,7 +1626,7 @@ CREATE TABLE `zt_holiday` ( KEY `name` (`name`) ) ENGINE=InnoDB; CREATE TABLE `zt_host` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT 'normal', `hostType` varchar(30) NOT NULL DEFAULT '', @@ -1642,14 +1642,14 @@ CREATE TABLE `zt_host` ( `vsoft` varchar(30) NOT NULL DEFAULT '', `heartbeat` datetime DEFAULT NULL, `zap` varchar(10) NOT NULL DEFAULT '', - `vnc` int(10) unsigned NOT NULL DEFAULT 0, - `ztf` int(10) unsigned NOT NULL DEFAULT 0, - `zd` int(10) unsigned NOT NULL DEFAULT 0, - `ssh` int(10) unsigned NOT NULL DEFAULT 0, - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `image` int(10) unsigned NOT NULL DEFAULT 0, - `admin` smallint(5) unsigned NOT NULL DEFAULT 0, - `serverRoom` int(10) unsigned NOT NULL DEFAULT 0, + `vnc` int unsigned NOT NULL DEFAULT 0, + `ztf` int unsigned NOT NULL DEFAULT 0, + `zd` int unsigned NOT NULL DEFAULT 0, + `ssh` int unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, + `image` int unsigned NOT NULL DEFAULT 0, + `admin` smallint unsigned NOT NULL DEFAULT 0, + `serverRoom` int unsigned NOT NULL DEFAULT 0, `cpuNumber` varchar(16) NOT NULL DEFAULT '', `cpuCores` varchar(30) NOT NULL DEFAULT '', `intranet` varchar(128) NOT NULL DEFAULT '', @@ -1661,12 +1661,12 @@ CREATE TABLE `zt_host` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_image` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `host` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `host` int unsigned NOT NULL DEFAULT 0, `name` varchar(64) NOT NULL DEFAULT '', `localName` varchar(64) NOT NULL DEFAULT '', `address` varchar(64) NOT NULL DEFAULT '', @@ -1685,11 +1685,11 @@ CREATE TABLE `zt_image` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_instance` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `space` int(10) unsigned NOT NULL DEFAULT 0, - `solution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `space` int unsigned NOT NULL DEFAULT 0, + `solution` int unsigned NOT NULL DEFAULT 0, `name` varchar(50) NOT NULL DEFAULT '', - `appID` int(10) unsigned NOT NULL DEFAULT 0, + `appID` int unsigned NOT NULL DEFAULT 0, `appName` varchar(50) NOT NULL DEFAULT '', `appVersion` varchar(20) NOT NULL DEFAULT '', `chart` varchar(50) NOT NULL DEFAULT '', @@ -1701,27 +1701,27 @@ CREATE TABLE `zt_instance` ( `channel` varchar(20) NOT NULL DEFAULT '', `k8name` varchar(64) NOT NULL DEFAULT '', `status` varchar(20) NOT NULL DEFAULT '', - `pinned` tinyint(3) unsigned NOT NULL DEFAULT 0, + `pinned` tinyint unsigned NOT NULL DEFAULT 0, `domain` varchar(255) NOT NULL DEFAULT '', `smtpSnippetName` varchar(30) NOT NULL DEFAULT '', `ldapSnippetName` varchar(30) NOT NULL DEFAULT '', `ldapSettings` text DEFAULT NULL, `dbSettings` text DEFAULT NULL, - `autoBackup` tinyint(3) unsigned NOT NULL DEFAULT 0, - `backupKeepDays` int(10) unsigned NOT NULL DEFAULT 1, - `autoRestore` tinyint(3) unsigned NOT NULL DEFAULT 0, + `autoBackup` tinyint unsigned NOT NULL DEFAULT 0, + `backupKeepDays` int unsigned NOT NULL DEFAULT 1, + `autoRestore` tinyint unsigned NOT NULL DEFAULT 0, `env` text DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdAt` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `space` (`space`), KEY `k8name` (`k8name`) ) ENGINE=InnoDB; CREATE TABLE `zt_intervention` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `activity` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `activity` int unsigned NOT NULL DEFAULT 0, `status` varchar(30) NOT NULL DEFAULT '', `partake` text DEFAULT NULL, `begin` date DEFAULT NULL, @@ -1729,19 +1729,19 @@ CREATE TABLE `zt_intervention` ( `situation` varchar(255) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `project` (`project`,`activity`) ) ENGINE=InnoDB; CREATE TABLE `zt_issue` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `resolvedBy` varchar(30) NOT NULL DEFAULT '', - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 3, - `severity` tinyint(3) unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 3, + `severity` tinyint unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', `activity` varchar(255) NOT NULL DEFAULT '', `deadline` date DEFAULT NULL, @@ -1751,9 +1751,9 @@ CREATE TABLE `zt_issue` ( `resolvedDate` datetime DEFAULT NULL, `status` varchar(30) NOT NULL DEFAULT '', `owner` varchar(255) NOT NULL DEFAULT '', - `lib` int(10) unsigned NOT NULL DEFAULT 0, - `from` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `lib` int unsigned NOT NULL DEFAULT 0, + `from` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', @@ -1766,21 +1766,21 @@ CREATE TABLE `zt_issue` ( `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, `approvedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_job` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', - `repo` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `repo` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `frame` varchar(20) NOT NULL DEFAULT '', `engine` varchar(20) NOT NULL DEFAULT '', - `autoRun` tinyint(3) unsigned NOT NULL DEFAULT 1, - `server` int(10) unsigned NOT NULL DEFAULT 0, + `autoRun` tinyint unsigned NOT NULL DEFAULT 1, + `server` int unsigned NOT NULL DEFAULT 0, `pipeline` varchar(500) NOT NULL DEFAULT '', `triggerType` varchar(255) NOT NULL DEFAULT '', - `sonarqubeServer` int(10) unsigned NOT NULL DEFAULT 0, + `sonarqubeServer` int unsigned NOT NULL DEFAULT 0, `projectKey` varchar(255) NOT NULL DEFAULT '', `svnDir` varchar(255) NOT NULL DEFAULT '', `atDay` varchar(255) NOT NULL DEFAULT '', @@ -1796,29 +1796,29 @@ CREATE TABLE `zt_job` ( `lastStatus` varchar(255) NOT NULL DEFAULT '', `lastTag` varchar(255) NOT NULL DEFAULT '', `lastSyncDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `idx_repo_deleted` (`repo`,`deleted`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanban` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `space` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `space` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', `team` text DEFAULT NULL, `desc` mediumtext DEFAULT NULL, `acl` varchar(10) NOT NULL DEFAULT 'open', `whitelist` text DEFAULT NULL, - `archived` tinyint(3) unsigned NOT NULL DEFAULT 1, - `performable` tinyint(3) unsigned NOT NULL DEFAULT 0, + `archived` tinyint unsigned NOT NULL DEFAULT 1, + `performable` tinyint unsigned NOT NULL DEFAULT 0, `status` varchar(10) NOT NULL DEFAULT 'active', - `order` int(10) unsigned NOT NULL DEFAULT 0, - `displayCards` smallint(5) unsigned NOT NULL DEFAULT 0, - `showWIP` tinyint(3) unsigned NOT NULL DEFAULT 1, - `fluidBoard` tinyint(3) unsigned NOT NULL DEFAULT 0, - `colWidth` smallint(5) unsigned NOT NULL DEFAULT 264, - `minColWidth` smallint(5) unsigned NOT NULL DEFAULT 200, - `maxColWidth` smallint(5) unsigned NOT NULL DEFAULT 384, + `order` int unsigned NOT NULL DEFAULT 0, + `displayCards` smallint unsigned NOT NULL DEFAULT 0, + `showWIP` tinyint unsigned NOT NULL DEFAULT 1, + `fluidBoard` tinyint unsigned NOT NULL DEFAULT 0, + `colWidth` smallint unsigned NOT NULL DEFAULT 264, + `minColWidth` smallint unsigned NOT NULL DEFAULT 200, + `maxColWidth` smallint unsigned NOT NULL DEFAULT 384, `object` varchar(255) NOT NULL DEFAULT '', `alignment` varchar(10) NOT NULL DEFAULT 'center', `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -1829,19 +1829,19 @@ CREATE TABLE `zt_kanban` ( `closedDate` datetime DEFAULT NULL, `activatedBy` varchar(30) NOT NULL DEFAULT '', `activatedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbancard` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `kanban` int(10) unsigned NOT NULL DEFAULT 0, - `region` int(10) unsigned NOT NULL DEFAULT 0, - `group` int(10) unsigned NOT NULL DEFAULT 0, - `fromID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `kanban` int unsigned NOT NULL DEFAULT 0, + `region` int unsigned NOT NULL DEFAULT 0, + `group` int unsigned NOT NULL DEFAULT 0, + `fromID` int unsigned NOT NULL DEFAULT 0, `fromType` varchar(30) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT 'doing', - `pri` int(10) unsigned NOT NULL DEFAULT 0, + `pri` int unsigned NOT NULL DEFAULT 0, `assignedTo` text DEFAULT NULL, `desc` mediumtext DEFAULT NULL, `begin` date DEFAULT NULL, @@ -1851,8 +1851,8 @@ CREATE TABLE `zt_kanbancard` ( `color` char(7) NOT NULL DEFAULT '', `acl` varchar(10) NOT NULL DEFAULT 'open', `whitelist` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `archived` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `archived` tinyint unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', @@ -1861,14 +1861,14 @@ CREATE TABLE `zt_kanbancard` ( `archivedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbancell` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `kanban` int(10) unsigned NOT NULL DEFAULT 0, - `lane` int(10) unsigned NOT NULL DEFAULT 0, - `column` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `kanban` int unsigned NOT NULL DEFAULT 0, + `lane` int unsigned NOT NULL DEFAULT 0, + `column` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', `cards` mediumtext DEFAULT NULL, PRIMARY KEY (`id`), @@ -1876,60 +1876,60 @@ CREATE TABLE `zt_kanbancell` ( KEY `lane` (`lane`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbancolumn` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `parent` int(11) NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `parent` int NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', - `region` int(10) unsigned NOT NULL DEFAULT 0, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `region` int unsigned NOT NULL DEFAULT 0, + `group` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `color` char(7) NOT NULL DEFAULT '', - `limit` smallint(6) NOT NULL DEFAULT -1, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `archived` tinyint(3) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `limit` smallint NOT NULL DEFAULT -1, + `order` int unsigned NOT NULL DEFAULT 0, + `archived` tinyint unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `parent` (`parent`), KEY `group` (`group`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbangroup` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `kanban` int(10) unsigned NOT NULL DEFAULT 0, - `region` int(10) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `kanban` int unsigned NOT NULL DEFAULT 0, + `region` int unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbanlane` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `execution` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', - `region` int(10) unsigned NOT NULL DEFAULT 0, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `region` int unsigned NOT NULL DEFAULT 0, + `group` int unsigned NOT NULL DEFAULT 0, `groupby` varchar(30) NOT NULL DEFAULT '', `extra` varchar(30) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', `color` char(7) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `lastEditedTime` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `execution` (`execution`), KEY `group` (`group`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbanregion` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `space` int(10) unsigned NOT NULL DEFAULT 0, - `kanban` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `space` int unsigned NOT NULL DEFAULT 0, + `kanban` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_kanbanspace` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(50) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', @@ -1938,7 +1938,7 @@ CREATE TABLE `zt_kanbanspace` ( `acl` varchar(10) NOT NULL DEFAULT 'open', `whitelist` text DEFAULT NULL, `status` varchar(10) NOT NULL DEFAULT 'active', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', @@ -1947,23 +1947,23 @@ CREATE TABLE `zt_kanbanspace` ( `closedDate` datetime DEFAULT NULL, `activatedBy` varchar(30) NOT NULL DEFAULT '', `activatedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_lang` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `lang` varchar(30) NOT NULL DEFAULT '', `module` varchar(30) NOT NULL DEFAULT '', `section` varchar(50) NOT NULL DEFAULT '', `key` varchar(60) NOT NULL DEFAULT '', `value` text DEFAULT NULL, - `system` tinyint(3) unsigned NOT NULL DEFAULT 1, + `system` tinyint unsigned NOT NULL DEFAULT 1, `vision` varchar(10) NOT NULL DEFAULT 'rnd', PRIMARY KEY (`id`), UNIQUE KEY `lang` (`lang`,`module`,`section`,`key`,`vision`) ) ENGINE=InnoDB; CREATE TABLE `zt_leave` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `year` char(4) NOT NULL DEFAULT '', `begin` date DEFAULT NULL, `end` date DEFAULT NULL, @@ -1978,7 +1978,7 @@ CREATE TABLE `zt_leave` ( `createdDate` datetime DEFAULT NULL, `reviewedBy` varchar(30) NOT NULL DEFAULT '', `reviewedDate` datetime DEFAULT NULL, - `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level` tinyint unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `reviewers` text DEFAULT NULL, `backReviewers` text DEFAULT NULL, @@ -1989,7 +1989,7 @@ CREATE TABLE `zt_leave` ( KEY `createdBy` (`createdBy`) ) ENGINE=InnoDB; CREATE TABLE `zt_lieu` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `year` char(4) NOT NULL DEFAULT '', `begin` date DEFAULT NULL, `end` date DEFAULT NULL, @@ -2004,7 +2004,7 @@ CREATE TABLE `zt_lieu` ( `createdDate` datetime DEFAULT NULL, `reviewedBy` varchar(30) NOT NULL DEFAULT '', `reviewedDate` datetime DEFAULT NULL, - `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level` tinyint unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `reviewers` text DEFAULT NULL, PRIMARY KEY (`id`), @@ -2013,10 +2013,10 @@ CREATE TABLE `zt_lieu` ( KEY `createdBy` (`createdBy`) ) ENGINE=InnoDB; CREATE TABLE `zt_log` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, - `action` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, + `action` int unsigned NOT NULL DEFAULT 0, `date` datetime DEFAULT NULL, `url` varchar(255) NOT NULL DEFAULT '', `contentType` varchar(30) NOT NULL DEFAULT '', @@ -2027,9 +2027,9 @@ CREATE TABLE `zt_log` ( KEY `obejctID` (`objectID`) ) ENGINE=InnoDB; CREATE TABLE `zt_mark` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(10) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `version` varchar(10) NOT NULL DEFAULT '1', `account` varchar(30) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, @@ -2040,7 +2040,7 @@ CREATE TABLE `zt_mark` ( KEY `idx_account` (`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_market` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `industry` varchar(255) NOT NULL DEFAULT '', `scale` decimal(10,2) NOT NULL DEFAULT 0.00, @@ -2054,14 +2054,14 @@ CREATE TABLE `zt_market` ( `openedDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_marketreport` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', - `market` int(10) unsigned NOT NULL DEFAULT 0, - `research` int(10) unsigned NOT NULL DEFAULT 0, + `market` int unsigned NOT NULL DEFAULT 0, + `research` int unsigned NOT NULL DEFAULT 0, `maturity` varchar(30) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', `participants` varchar(255) NOT NULL DEFAULT '', @@ -2074,13 +2074,13 @@ CREATE TABLE `zt_marketreport` ( `lastEditedDate` datetime DEFAULT NULL, `publishedBy` varchar(30) NOT NULL DEFAULT '', `publishedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_measqueue` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(30) NOT NULL DEFAULT '', - `mid` int(10) unsigned NOT NULL DEFAULT 0, + `mid` int unsigned NOT NULL DEFAULT 0, `status` varchar(100) NOT NULL DEFAULT '', `logs` text DEFAULT NULL, `execTime` varchar(10) NOT NULL DEFAULT '', @@ -2088,18 +2088,18 @@ CREATE TABLE `zt_measqueue` ( `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `updateDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `status_deleted` (`status`,`deleted`) ) ENGINE=InnoDB; CREATE TABLE `zt_measrecords` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(30) NOT NULL DEFAULT '', - `mid` int(10) unsigned NOT NULL DEFAULT 0, + `mid` int unsigned NOT NULL DEFAULT 0, `measCode` varchar(50) NOT NULL DEFAULT '', - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `params` text DEFAULT NULL, `year` char(4) NOT NULL DEFAULT '', `month` char(6) NOT NULL DEFAULT '', @@ -2113,57 +2113,57 @@ CREATE TABLE `zt_measrecords` ( KEY `project` (`project`) ) ENGINE=InnoDB; CREATE TABLE `zt_meastemplate` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `model` varchar(30) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', `content` mediumtext DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_meeting` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(255) NOT NULL DEFAULT '', `begin` time DEFAULT NULL, `end` time DEFAULT NULL, - `dept` int(10) unsigned NOT NULL DEFAULT 0, + `dept` int unsigned NOT NULL DEFAULT 0, `mode` varchar(255) NOT NULL DEFAULT '', `host` varchar(30) NOT NULL DEFAULT '', `participant` text DEFAULT NULL, `date` date DEFAULT NULL, - `room` int(10) unsigned NOT NULL DEFAULT 0, + `room` int unsigned NOT NULL DEFAULT 0, `minutes` text DEFAULT NULL, `minutedBy` varchar(30) NOT NULL DEFAULT '', `minutedDate` datetime DEFAULT NULL, `objectType` varchar(15) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_meetingroom` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `position` varchar(30) NOT NULL DEFAULT '', - `seats` int(10) unsigned NOT NULL DEFAULT 0, + `seats` int unsigned NOT NULL DEFAULT 0, `equipment` varchar(255) NOT NULL DEFAULT '', `openTime` varchar(255) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_metric` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `purpose` varchar(50) NOT NULL DEFAULT '', `scope` varchar(30) NOT NULL DEFAULT '', `object` varchar(30) NOT NULL DEFAULT '', @@ -2189,23 +2189,23 @@ CREATE TABLE `zt_metric` ( `implementedDate` datetime DEFAULT NULL, `delistedBy` varchar(30) NOT NULL DEFAULT '', `delistedDate` datetime DEFAULT NULL, - `builtin` tinyint(3) unsigned NOT NULL DEFAULT 0, - `fromID` int(10) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `lastCalcRows` int(10) unsigned NOT NULL DEFAULT 0, + `builtin` tinyint unsigned NOT NULL DEFAULT 0, + `fromID` int unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `lastCalcRows` int unsigned NOT NULL DEFAULT 0, `lastCalcTime` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_metriclib` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `metricID` int(10) unsigned NOT NULL DEFAULT 0, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `metricID` int unsigned NOT NULL DEFAULT 0, `metricCode` varchar(100) NOT NULL DEFAULT '', - `system` tinyint(3) unsigned NOT NULL DEFAULT 0, - `program` int(10) unsigned NOT NULL DEFAULT 0, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `system` tinyint unsigned NOT NULL DEFAULT 0, + `program` int unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `code` varchar(30) NOT NULL DEFAULT '', `pipeline` varchar(30) NOT NULL DEFAULT '', `repo` varchar(30) NOT NULL DEFAULT '', @@ -2219,7 +2219,7 @@ CREATE TABLE `zt_metriclib` ( `calcType` varchar(10) NOT NULL DEFAULT 'cron', `calculatedBy` varchar(30) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `metricCode_system_date` (`metricCode`,`system`,`date`), KEY `metricCode_program_date` (`metricCode`,`program`,`date`), @@ -2229,33 +2229,33 @@ CREATE TABLE `zt_metriclib` ( KEY `metricCode_user_date` (`metricCode`,`user`,`date`) ) ENGINE=InnoDB; CREATE TABLE `zt_module` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `root` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `root` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, `name` varchar(60) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT '', - `from` int(10) unsigned NOT NULL DEFAULT 0, + `from` int unsigned NOT NULL DEFAULT 0, `owner` varchar(30) NOT NULL DEFAULT '', `collector` text DEFAULT NULL, `short` varchar(60) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `root` (`root`), KEY `type` (`type`), KEY `path` (`path`) ) ENGINE=InnoDB; CREATE TABLE `zt_mr` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `hostID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `hostID` int unsigned NOT NULL DEFAULT 0, `sourceProject` varchar(50) NOT NULL DEFAULT '', `sourceBranch` varchar(100) NOT NULL DEFAULT '', `targetProject` varchar(50) NOT NULL DEFAULT '', `targetBranch` varchar(100) NOT NULL DEFAULT '', - `mriid` int(10) unsigned NOT NULL DEFAULT 0, + `mriid` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `description` text DEFAULT NULL, `assignee` varchar(255) NOT NULL DEFAULT '', @@ -2268,26 +2268,26 @@ CREATE TABLE `zt_mr` ( `status` varchar(30) NOT NULL DEFAULT '', `mergeStatus` varchar(30) NOT NULL DEFAULT '', `approvalStatus` varchar(30) NOT NULL DEFAULT '', - `needApproved` tinyint(3) unsigned NOT NULL DEFAULT 0, - `needCI` tinyint(3) unsigned NOT NULL DEFAULT 0, - `repoID` int(10) unsigned NOT NULL DEFAULT 0, - `jobID` int(10) unsigned NOT NULL DEFAULT 0, - `executionID` int(10) unsigned NOT NULL DEFAULT 0, - `compileID` int(10) unsigned NOT NULL DEFAULT 0, + `needApproved` tinyint unsigned NOT NULL DEFAULT 0, + `needCI` tinyint unsigned NOT NULL DEFAULT 0, + `repoID` int unsigned NOT NULL DEFAULT 0, + `jobID` int unsigned NOT NULL DEFAULT 0, + `executionID` int unsigned NOT NULL DEFAULT 0, + `compileID` int unsigned NOT NULL DEFAULT 0, `compileStatus` varchar(30) NOT NULL DEFAULT '', - `removeSourceBranch` tinyint(3) unsigned NOT NULL DEFAULT 0, - `squash` tinyint(3) unsigned NOT NULL DEFAULT 0, - `isFlow` tinyint(3) unsigned NOT NULL DEFAULT 0, - `synced` tinyint(3) unsigned NOT NULL DEFAULT 1, + `removeSourceBranch` tinyint unsigned NOT NULL DEFAULT 0, + `squash` tinyint unsigned NOT NULL DEFAULT 0, + `isFlow` tinyint unsigned NOT NULL DEFAULT 0, + `synced` tinyint unsigned NOT NULL DEFAULT 1, `syncError` varchar(255) NOT NULL DEFAULT '', - `hasNoConflict` tinyint(3) unsigned NOT NULL DEFAULT 0, + `hasNoConflict` tinyint unsigned NOT NULL DEFAULT 0, `diffs` longtext DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_mrapproval` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `mrID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `mrID` int unsigned NOT NULL DEFAULT 0, `account` varchar(255) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `action` varchar(30) NOT NULL DEFAULT '', @@ -2295,22 +2295,22 @@ CREATE TABLE `zt_mrapproval` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_nc` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `auditplan` int(10) unsigned NOT NULL DEFAULT 0, - `listID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `auditplan` int unsigned NOT NULL DEFAULT 0, + `listID` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `type` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT 'active', - `severity` tinyint(3) unsigned NOT NULL DEFAULT 0, + `severity` tinyint unsigned NOT NULL DEFAULT 0, `deadline` date DEFAULT NULL, `resolvedBy` varchar(30) NOT NULL DEFAULT '', `resolution` varchar(30) NOT NULL DEFAULT '', `resolvedDate` date DEFAULT NULL, `closedBy` varchar(30) NOT NULL DEFAULT '', `closedDate` datetime DEFAULT NULL, - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, `activateDate` datetime DEFAULT NULL, @@ -2318,14 +2318,14 @@ CREATE TABLE `zt_nc` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_notify` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(10) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, - `action` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, + `action` int unsigned NOT NULL DEFAULT 0, `toList` text DEFAULT NULL, `ccList` text DEFAULT NULL, `subject` text DEFAULT NULL, @@ -2340,11 +2340,11 @@ CREATE TABLE `zt_notify` ( KEY `status` (`status`) ) ENGINE=InnoDB; CREATE TABLE `zt_oauth` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `openID` varchar(100) NOT NULL DEFAULT '', `providerType` varchar(30) NOT NULL DEFAULT '', - `providerID` int(10) unsigned NOT NULL DEFAULT 0, + `providerID` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `account_openID` (`account`,`openID`,`providerType`,`providerID`), KEY `account` (`account`), @@ -2352,15 +2352,15 @@ CREATE TABLE `zt_oauth` ( KEY `providerID` (`providerID`) ) ENGINE=InnoDB; CREATE TABLE `zt_object` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `from` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `from` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `category` varchar(30) NOT NULL DEFAULT '', `version` varchar(255) NOT NULL DEFAULT '', `type` varchar(10) NOT NULL DEFAULT 'reviewed', - `enabled` tinyint(3) unsigned NOT NULL DEFAULT 1, + `enabled` tinyint unsigned NOT NULL DEFAULT 1, `range` text DEFAULT NULL, `data` text DEFAULT NULL, `storyEst` varchar(30) NOT NULL DEFAULT '', @@ -2372,22 +2372,22 @@ CREATE TABLE `zt_object` ( `end` date DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_opportunity` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `source` varchar(30) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `strategy` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT 'active', - `impact` int(10) unsigned NOT NULL DEFAULT 0, - `chance` int(10) unsigned NOT NULL DEFAULT 0, - `ratio` int(10) unsigned NOT NULL DEFAULT 0, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 3, + `impact` int unsigned NOT NULL DEFAULT 0, + `chance` int unsigned NOT NULL DEFAULT 0, + `ratio` int unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 3, `identifiedDate` date DEFAULT NULL, `assignedTo` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, @@ -2395,10 +2395,10 @@ CREATE TABLE `zt_opportunity` ( `prevention` mediumtext DEFAULT NULL, `plannedClosedDate` date DEFAULT NULL, `actualClosedDate` date DEFAULT NULL, - `lib` int(10) unsigned NOT NULL DEFAULT 0, - `from` int(10) unsigned NOT NULL DEFAULT 0, + `lib` int unsigned NOT NULL DEFAULT 0, + `from` int unsigned NOT NULL DEFAULT 0, `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', @@ -2417,11 +2417,11 @@ CREATE TABLE `zt_opportunity` ( `resolvedDate` datetime DEFAULT NULL, `lastCheckedBy` varchar(30) NOT NULL DEFAULT '', `lastCheckedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_overtime` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `year` char(4) NOT NULL DEFAULT '', `begin` date DEFAULT NULL, `end` date DEFAULT NULL, @@ -2437,7 +2437,7 @@ CREATE TABLE `zt_overtime` ( `createdDate` datetime DEFAULT NULL, `reviewedBy` varchar(30) NOT NULL DEFAULT '', `reviewedDate` datetime DEFAULT NULL, - `level` tinyint(3) unsigned NOT NULL DEFAULT 0, + `level` tinyint unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(30) NOT NULL DEFAULT '', `reviewers` text DEFAULT NULL, PRIMARY KEY (`id`), @@ -2447,7 +2447,7 @@ CREATE TABLE `zt_overtime` ( KEY `createdBy` (`createdBy`) ) ENGINE=InnoDB; CREATE TABLE `zt_pipeline` ( - `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, + `id` smallint unsigned NOT NULL AUTO_INCREMENT, `type` varchar(30) NOT NULL DEFAULT '', `name` varchar(50) NOT NULL DEFAULT '', `url` varchar(255) NOT NULL DEFAULT '', @@ -2455,17 +2455,17 @@ CREATE TABLE `zt_pipeline` ( `password` varchar(255) NOT NULL DEFAULT '', `token` varchar(255) NOT NULL DEFAULT '', `private` char(32) NOT NULL DEFAULT '', - `instanceID` int(10) unsigned NOT NULL DEFAULT 0, + `instanceID` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_pivot` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `dimension` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `dimension` int unsigned NOT NULL DEFAULT 0, `group` varchar(255) NOT NULL DEFAULT '', `code` varchar(255) NOT NULL DEFAULT '', `driver` varchar(10) NOT NULL DEFAULT 'mysql', @@ -2481,22 +2481,22 @@ CREATE TABLE `zt_pivot` ( `objects` text DEFAULT NULL, `settings` text DEFAULT NULL, `filters` text DEFAULT NULL, - `step` tinyint(3) unsigned NOT NULL DEFAULT 0, + `step` tinyint unsigned NOT NULL DEFAULT 0, `stage` varchar(10) NOT NULL DEFAULT 'draft', - `builtin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `builtin` tinyint unsigned NOT NULL DEFAULT 0, `version` varchar(10) NOT NULL DEFAULT '1', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `dimension` (`dimension`), KEY `group` (`group`) ) ENGINE=InnoDB; CREATE TABLE `zt_pivotdrill` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `pivot` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `pivot` int unsigned NOT NULL DEFAULT 0, `version` varchar(10) NOT NULL DEFAULT '1', `field` varchar(255) NOT NULL DEFAULT '', `object` varchar(40) NOT NULL DEFAULT '', @@ -2508,8 +2508,8 @@ CREATE TABLE `zt_pivotdrill` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_pivotspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `pivot` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `pivot` int unsigned NOT NULL DEFAULT 0, `version` varchar(10) NOT NULL DEFAULT '1', `driver` varchar(10) NOT NULL DEFAULT 'mysql', `mode` varchar(10) NOT NULL DEFAULT 'builder', @@ -2527,16 +2527,16 @@ CREATE TABLE `zt_pivotspec` ( UNIQUE KEY `idx_pivot_version` (`pivot`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_planstory` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `plan` int(10) unsigned NOT NULL DEFAULT 0, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `plan` int unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `plan_story` (`plan`,`story`) ) ENGINE=InnoDB; CREATE TABLE `zt_practice` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `module` int unsigned NOT NULL DEFAULT 0, `code` varchar(50) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '', `labels` varchar(255) NOT NULL DEFAULT '', @@ -2547,7 +2547,7 @@ CREATE TABLE `zt_practice` ( UNIQUE KEY `code` (`code`) ) ENGINE=InnoDB; CREATE TABLE `zt_process` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `model` varchar(30) NOT NULL DEFAULT 'waterfall', `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', @@ -2555,24 +2555,24 @@ CREATE TABLE `zt_process` ( `desc` mediumtext DEFAULT NULL, `assignedTo` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_product` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `program` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `program` int unsigned NOT NULL DEFAULT 0, `name` varchar(110) NOT NULL DEFAULT '', `code` varchar(45) NOT NULL DEFAULT '', - `shadow` tinyint(3) unsigned NOT NULL DEFAULT 0, - `bind` tinyint(3) unsigned NOT NULL DEFAULT 0, - `line` int(10) unsigned NOT NULL DEFAULT 0, + `shadow` tinyint unsigned NOT NULL DEFAULT 0, + `bind` tinyint unsigned NOT NULL DEFAULT 0, + `line` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT 'normal', `status` varchar(30) NOT NULL DEFAULT '', `subStatus` varchar(30) NOT NULL DEFAULT '', @@ -2582,55 +2582,55 @@ CREATE TABLE `zt_product` ( `RD` varchar(30) NOT NULL DEFAULT '', `feedback` varchar(30) NOT NULL DEFAULT '', `ticket` varchar(30) NOT NULL DEFAULT '', - `workflowGroup` int(10) unsigned NOT NULL DEFAULT 0, + `workflowGroup` int unsigned NOT NULL DEFAULT 0, `acl` varchar(10) NOT NULL DEFAULT 'open', `groups` text DEFAULT NULL, `whitelist` text DEFAULT NULL, `reviewer` text DEFAULT NULL, `PMT` text DEFAULT NULL, - `draftEpics` int(10) unsigned NOT NULL DEFAULT 0, - `activeEpics` int(10) unsigned NOT NULL DEFAULT 0, - `changingEpics` int(10) unsigned NOT NULL DEFAULT 0, - `reviewingEpics` int(10) unsigned NOT NULL DEFAULT 0, - `finishedEpics` int(10) unsigned NOT NULL DEFAULT 0, - `closedEpics` int(10) unsigned NOT NULL DEFAULT 0, - `totalEpics` int(10) unsigned NOT NULL DEFAULT 0, - `draftRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `activeRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `changingRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `reviewingRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `finishedRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `closedRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `totalRequirements` int(10) unsigned NOT NULL DEFAULT 0, - `draftStories` int(10) unsigned NOT NULL DEFAULT 0, - `activeStories` int(10) unsigned NOT NULL DEFAULT 0, - `changingStories` int(10) unsigned NOT NULL DEFAULT 0, - `reviewingStories` int(10) unsigned NOT NULL DEFAULT 0, - `finishedStories` int(10) unsigned NOT NULL DEFAULT 0, - `closedStories` int(10) unsigned NOT NULL DEFAULT 0, - `totalStories` int(10) unsigned NOT NULL DEFAULT 0, - `unresolvedBugs` int(10) unsigned NOT NULL DEFAULT 0, - `closedBugs` int(10) unsigned NOT NULL DEFAULT 0, - `fixedBugs` int(10) unsigned NOT NULL DEFAULT 0, - `totalBugs` int(10) unsigned NOT NULL DEFAULT 0, - `plans` int(10) unsigned NOT NULL DEFAULT 0, - `releases` int(10) unsigned NOT NULL DEFAULT 0, + `draftEpics` int unsigned NOT NULL DEFAULT 0, + `activeEpics` int unsigned NOT NULL DEFAULT 0, + `changingEpics` int unsigned NOT NULL DEFAULT 0, + `reviewingEpics` int unsigned NOT NULL DEFAULT 0, + `finishedEpics` int unsigned NOT NULL DEFAULT 0, + `closedEpics` int unsigned NOT NULL DEFAULT 0, + `totalEpics` int unsigned NOT NULL DEFAULT 0, + `draftRequirements` int unsigned NOT NULL DEFAULT 0, + `activeRequirements` int unsigned NOT NULL DEFAULT 0, + `changingRequirements` int unsigned NOT NULL DEFAULT 0, + `reviewingRequirements` int unsigned NOT NULL DEFAULT 0, + `finishedRequirements` int unsigned NOT NULL DEFAULT 0, + `closedRequirements` int unsigned NOT NULL DEFAULT 0, + `totalRequirements` int unsigned NOT NULL DEFAULT 0, + `draftStories` int unsigned NOT NULL DEFAULT 0, + `activeStories` int unsigned NOT NULL DEFAULT 0, + `changingStories` int unsigned NOT NULL DEFAULT 0, + `reviewingStories` int unsigned NOT NULL DEFAULT 0, + `finishedStories` int unsigned NOT NULL DEFAULT 0, + `closedStories` int unsigned NOT NULL DEFAULT 0, + `totalStories` int unsigned NOT NULL DEFAULT 0, + `unresolvedBugs` int unsigned NOT NULL DEFAULT 0, + `closedBugs` int unsigned NOT NULL DEFAULT 0, + `fixedBugs` int unsigned NOT NULL DEFAULT 0, + `totalBugs` int unsigned NOT NULL DEFAULT 0, + `plans` int unsigned NOT NULL DEFAULT 0, + `releases` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `createdVersion` varchar(20) NOT NULL DEFAULT '', `closedDate` datetime DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `acl` (`acl`), KEY `order` (`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_productplan` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `product` int unsigned NOT NULL DEFAULT 0, `branch` varchar(255) NOT NULL DEFAULT '0', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `title` varchar(90) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT 'wait', `desc` mediumtext DEFAULT NULL, @@ -2642,17 +2642,17 @@ CREATE TABLE `zt_productplan` ( `closedReason` varchar(20) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `end` (`end`) ) ENGINE=InnoDB; CREATE TABLE `zt_programactivity` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `process` int(10) unsigned NOT NULL DEFAULT 0, - `activity` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, + `process` int unsigned NOT NULL DEFAULT 0, + `activity` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `content` text DEFAULT NULL, `reason` varchar(255) NOT NULL DEFAULT '', @@ -2660,16 +2660,16 @@ CREATE TABLE `zt_programactivity` ( `linkedBy` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_programoutput` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `process` int(10) unsigned NOT NULL DEFAULT 0, - `activity` int(10) unsigned NOT NULL DEFAULT 0, - `output` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, + `process` int unsigned NOT NULL DEFAULT 0, + `activity` int unsigned NOT NULL DEFAULT 0, + `output` int unsigned NOT NULL DEFAULT 0, `content` text DEFAULT NULL, `name` varchar(255) NOT NULL DEFAULT '', `reason` varchar(255) NOT NULL DEFAULT '', @@ -2677,13 +2677,13 @@ CREATE TABLE `zt_programoutput` ( `linkedBy` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_programprocess` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `process` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `process` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `abbr` varchar(30) NOT NULL DEFAULT '', @@ -2692,26 +2692,26 @@ CREATE TABLE `zt_programprocess` ( `linkedBy` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_programreport` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `template` int(10) unsigned NOT NULL DEFAULT 0, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `template` int unsigned NOT NULL DEFAULT 0, + `project` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `params` text DEFAULT NULL, `content` text DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_project` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `isTpl` tinyint(3) unsigned NOT NULL DEFAULT 0, - `charter` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `isTpl` tinyint unsigned NOT NULL DEFAULT 0, + `charter` int unsigned NOT NULL DEFAULT 0, `model` varchar(30) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT 'sprint', `category` varchar(30) NOT NULL DEFAULT '', @@ -2720,37 +2720,37 @@ CREATE TABLE `zt_project` ( `budgetUnit` varchar(30) NOT NULL DEFAULT 'CNY', `attribute` varchar(30) NOT NULL DEFAULT '', `percent` decimal(5,2) unsigned NOT NULL DEFAULT 0.00, - `milestone` tinyint(3) unsigned NOT NULL DEFAULT 0, + `milestone` tinyint unsigned NOT NULL DEFAULT 0, `output` text DEFAULT NULL, `auth` varchar(30) NOT NULL DEFAULT '', `storyType` varchar(30) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, `name` varchar(90) NOT NULL DEFAULT '', `code` varchar(45) NOT NULL DEFAULT '', - `hasProduct` tinyint(3) unsigned NOT NULL DEFAULT 1, - `workflowGroup` int(10) unsigned NOT NULL DEFAULT 0, + `hasProduct` tinyint unsigned NOT NULL DEFAULT 1, + `workflowGroup` int unsigned NOT NULL DEFAULT 0, `begin` date DEFAULT NULL, `end` date DEFAULT NULL, `firstEnd` date DEFAULT NULL, `realBegan` date DEFAULT NULL, `realEnd` date DEFAULT NULL, - `days` smallint(5) unsigned NOT NULL DEFAULT 0, + `days` smallint unsigned NOT NULL DEFAULT 0, `status` varchar(10) NOT NULL DEFAULT '', `subStatus` varchar(30) NOT NULL DEFAULT '', - `pri` tinyint(3) unsigned NOT NULL DEFAULT 1, + `pri` tinyint unsigned NOT NULL DEFAULT 1, `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `parentVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `planDuration` int(10) unsigned NOT NULL DEFAULT 0, - `realDuration` int(10) unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, + `parentVersion` smallint unsigned NOT NULL DEFAULT 1, + `planDuration` int unsigned NOT NULL DEFAULT 0, + `realDuration` int unsigned NOT NULL DEFAULT 0, `progress` decimal(5,2) unsigned NOT NULL DEFAULT 0.00, `estimate` decimal(12,2) unsigned NOT NULL DEFAULT 0.00, `left` decimal(12,2) unsigned NOT NULL DEFAULT 0.00, `consumed` decimal(12,2) unsigned NOT NULL DEFAULT 0.00, - `teamCount` int(10) unsigned NOT NULL DEFAULT 0, - `market` int(10) unsigned NOT NULL DEFAULT 0, + `teamCount` int unsigned NOT NULL DEFAULT 0, + `market` int unsigned NOT NULL DEFAULT 0, `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, `openedVersion` varchar(20) NOT NULL DEFAULT '', @@ -2771,21 +2771,21 @@ CREATE TABLE `zt_project` ( `whitelist` text DEFAULT NULL, `tplAcl` varchar(30) NOT NULL DEFAULT 'open', `tplWhiteList` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `stageBy` varchar(10) NOT NULL DEFAULT 'product', - `displayCards` smallint(5) unsigned NOT NULL DEFAULT 0, - `fluidBoard` tinyint(3) unsigned NOT NULL DEFAULT 0, - `multiple` tinyint(3) unsigned NOT NULL DEFAULT 1, - `parallel` int(10) unsigned NOT NULL DEFAULT 0, + `displayCards` smallint unsigned NOT NULL DEFAULT 0, + `fluidBoard` tinyint unsigned NOT NULL DEFAULT 0, + `multiple` tinyint unsigned NOT NULL DEFAULT 1, + `parallel` int unsigned NOT NULL DEFAULT 0, `enabled` varchar(10) NOT NULL DEFAULT 'on', `linkType` varchar(30) NOT NULL DEFAULT 'plan', `taskDateLimit` varchar(30) NOT NULL DEFAULT 'auto', - `colWidth` smallint(5) unsigned NOT NULL DEFAULT 264, - `minColWidth` smallint(5) unsigned NOT NULL DEFAULT 200, - `maxColWidth` smallint(5) unsigned NOT NULL DEFAULT 384, + `colWidth` smallint unsigned NOT NULL DEFAULT 264, + `minColWidth` smallint unsigned NOT NULL DEFAULT 200, + `maxColWidth` smallint unsigned NOT NULL DEFAULT 384, `deliverable` text DEFAULT NULL, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `parent` (`parent`), KEY `begin` (`begin`), @@ -2797,8 +2797,8 @@ CREATE TABLE `zt_project` ( KEY `type_order` (`type`,`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_projectadmin` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` smallint(5) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` smallint unsigned NOT NULL DEFAULT 0, `account` varchar(30) NOT NULL DEFAULT '', `programs` text DEFAULT NULL, `projects` text DEFAULT NULL, @@ -2808,74 +2808,74 @@ CREATE TABLE `zt_projectadmin` ( UNIQUE KEY `group_account` (`group`,`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_projectcase` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `case` int(10) unsigned NOT NULL DEFAULT 0, - `count` int(10) unsigned NOT NULL DEFAULT 1, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `case` int unsigned NOT NULL DEFAULT 0, + `count` int unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `project` (`project`,`case`) ) ENGINE=InnoDB; CREATE TABLE `zt_projectproduct` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, `plan` varchar(255) NOT NULL DEFAULT '', `roadmap` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `project_product` (`project`,`product`,`branch`) ) ENGINE=InnoDB; CREATE TABLE `zt_projectspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `name` varchar(255) NOT NULL DEFAULT '', - `milestone` tinyint(3) unsigned NOT NULL DEFAULT 0, + `milestone` tinyint unsigned NOT NULL DEFAULT 0, `begin` date DEFAULT NULL, `end` date DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `project` (`project`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_projectstory` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `project` (`project`,`story`), KEY `story` (`story`) ) ENGINE=InnoDB; CREATE TABLE `zt_queue` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cron` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `cron` int unsigned NOT NULL DEFAULT 0, `type` varchar(255) NOT NULL DEFAULT '', `command` text DEFAULT NULL, `status` varchar(10) NOT NULL DEFAULT 'wait', - `execId` int(10) unsigned NOT NULL DEFAULT 0, + `execId` int unsigned NOT NULL DEFAULT 0, `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `status_createdDate` (`status`,`createdDate`), KEY `cron_createdDate` (`cron`,`createdDate`) ) ENGINE=InnoDB; CREATE TABLE `zt_relation` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `AType` varchar(30) NOT NULL DEFAULT '', - `AID` int(10) unsigned NOT NULL DEFAULT 0, - `AVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `AID` int unsigned NOT NULL DEFAULT 0, + `AVersion` smallint unsigned NOT NULL DEFAULT 1, `relation` varchar(30) NOT NULL DEFAULT '', `BType` varchar(30) NOT NULL DEFAULT '', - `BID` int(10) unsigned NOT NULL DEFAULT 0, - `BVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `BID` int unsigned NOT NULL DEFAULT 0, + `BVersion` smallint unsigned NOT NULL DEFAULT 1, `extra` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `relation` (`product`,`relation`,`AType`,`BType`,`AID`,`BID`), @@ -2883,27 +2883,27 @@ CREATE TABLE `zt_relation` ( KEY `BID` (`BType`,`BID`) ) ENGINE=InnoDB; CREATE TABLE `zt_relationoftasks` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `execution` varchar(30) NOT NULL DEFAULT '', - `pretask` int(10) unsigned NOT NULL DEFAULT 0, + `pretask` int unsigned NOT NULL DEFAULT 0, `condition` varchar(10) NOT NULL DEFAULT '', - `task` int(10) unsigned NOT NULL DEFAULT 0, + `task` int unsigned NOT NULL DEFAULT 0, `action` varchar(10) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `relationoftasks` (`execution`,`task`) ) ENGINE=InnoDB; CREATE TABLE `zt_release` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `project` varchar(255) NOT NULL DEFAULT '0', - `product` int(10) unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `branch` varchar(255) NOT NULL DEFAULT '0', - `shadow` int(10) unsigned NOT NULL DEFAULT 0, + `shadow` int unsigned NOT NULL DEFAULT 0, `build` varchar(255) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', - `system` int(10) unsigned NOT NULL DEFAULT 0, + `system` int unsigned NOT NULL DEFAULT 0, `releases` varchar(255) NOT NULL DEFAULT '', - `marker` tinyint(3) unsigned NOT NULL DEFAULT 0, + `marker` tinyint unsigned NOT NULL DEFAULT 0, `date` date DEFAULT NULL, `releasedDate` date DEFAULT NULL, `stories` text DEFAULT NULL, @@ -2916,16 +2916,16 @@ CREATE TABLE `zt_release` ( `subStatus` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`), KEY `build` (`build`), KEY `idx_system` (`system`) ) ENGINE=InnoDB; CREATE TABLE `zt_releaserelated` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `release` int(10) unsigned NOT NULL DEFAULT 0, - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `release` int unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(10) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `unique` (`release`,`objectID`,`objectType`), @@ -2933,7 +2933,7 @@ CREATE TABLE `zt_releaserelated` ( KEY `objectType` (`objectType`) ) ENGINE=InnoDB; CREATE TABLE `zt_repo` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `product` varchar(255) NOT NULL DEFAULT '', `projects` varchar(255) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '', @@ -2944,28 +2944,28 @@ CREATE TABLE `zt_repo` ( `client` varchar(100) NOT NULL DEFAULT '', `serviceHost` varchar(50) NOT NULL DEFAULT '', `serviceProject` varchar(100) NOT NULL DEFAULT '', - `commits` int(10) unsigned NOT NULL DEFAULT 0, + `commits` int unsigned NOT NULL DEFAULT 0, `account` varchar(30) NOT NULL DEFAULT '', `password` varchar(30) NOT NULL DEFAULT '', `encrypt` varchar(30) NOT NULL DEFAULT 'plain', `acl` text DEFAULT NULL, - `synced` tinyint(3) unsigned NOT NULL DEFAULT 0, + `synced` tinyint unsigned NOT NULL DEFAULT 0, `lastSync` datetime DEFAULT NULL, `lastCommit` datetime DEFAULT NULL, `desc` text DEFAULT NULL, `extra` varchar(30) NOT NULL DEFAULT '', - `preMerge` tinyint(3) unsigned NOT NULL DEFAULT 0, - `job` int(10) unsigned NOT NULL DEFAULT 0, + `preMerge` tinyint unsigned NOT NULL DEFAULT 0, + `job` int unsigned NOT NULL DEFAULT 0, `fileServerUrl` text DEFAULT NULL, `fileServerAccount` varchar(40) NOT NULL DEFAULT '', `fileServerPassword` varchar(100) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_repobranch` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `repo` int(10) unsigned NOT NULL DEFAULT 0, - `revision` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `repo` int unsigned NOT NULL DEFAULT 0, + `revision` int unsigned NOT NULL DEFAULT 0, `branch` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `repo_revision_branch` (`repo`,`revision`,`branch`), @@ -2973,9 +2973,9 @@ CREATE TABLE `zt_repobranch` ( KEY `revision` (`revision`) ) ENGINE=InnoDB; CREATE TABLE `zt_repofiles` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `repo` int(10) unsigned NOT NULL DEFAULT 0, - `revision` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `repo` int unsigned NOT NULL DEFAULT 0, + `revision` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', `oldPath` varchar(255) NOT NULL DEFAULT '', `parent` varchar(255) NOT NULL DEFAULT '', @@ -2988,10 +2988,10 @@ CREATE TABLE `zt_repofiles` ( KEY `revision` (`revision`) ) ENGINE=InnoDB; CREATE TABLE `zt_repohistory` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `repo` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `repo` int unsigned NOT NULL DEFAULT 0, `revision` varchar(40) NOT NULL DEFAULT '', - `commit` int(10) unsigned NOT NULL DEFAULT 0, + `commit` int unsigned NOT NULL DEFAULT 0, `comment` text DEFAULT NULL, `committer` varchar(100) NOT NULL DEFAULT '', `time` datetime DEFAULT NULL, @@ -3000,16 +3000,16 @@ CREATE TABLE `zt_repohistory` ( KEY `revision` (`revision`) ) ENGINE=InnoDB; CREATE TABLE `zt_report` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(100) NOT NULL DEFAULT '', `name` text DEFAULT NULL, - `dimension` int(10) unsigned NOT NULL DEFAULT 0, + `dimension` int unsigned NOT NULL DEFAULT 0, `module` varchar(100) NOT NULL DEFAULT '', `sql` text DEFAULT NULL, `vars` text DEFAULT NULL, `langs` text DEFAULT NULL, `params` text DEFAULT NULL, - `step` tinyint(3) unsigned NOT NULL DEFAULT 2, + `step` tinyint unsigned NOT NULL DEFAULT 2, `desc` text DEFAULT NULL, `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, @@ -3017,8 +3017,8 @@ CREATE TABLE `zt_report` ( UNIQUE KEY `code` (`code`) ) ENGINE=InnoDB; CREATE TABLE `zt_researchplan` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `customer` varchar(255) NOT NULL DEFAULT '', `stakeholder` varchar(255) NOT NULL DEFAULT '', @@ -3034,13 +3034,13 @@ CREATE TABLE `zt_researchplan` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_researchreport` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `relatedPlan` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `relatedPlan` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `author` varchar(30) NOT NULL DEFAULT '', `content` mediumtext DEFAULT NULL, @@ -3054,15 +3054,15 @@ CREATE TABLE `zt_researchreport` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_review` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', - `object` int(10) unsigned NOT NULL DEFAULT 0, - `template` int(10) unsigned NOT NULL DEFAULT 0, + `object` int unsigned NOT NULL DEFAULT 0, + `template` int unsigned NOT NULL DEFAULT 0, `doc` varchar(255) NOT NULL DEFAULT '', `docVersion` varchar(255) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', @@ -3082,17 +3082,17 @@ CREATE TABLE `zt_review` ( `lastEditedDate` datetime DEFAULT NULL, `result` varchar(30) NOT NULL DEFAULT '', `auditResult` varchar(30) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_reviewcl` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL DEFAULT '', `object` varchar(30) NOT NULL DEFAULT '', `category` varchar(30) NOT NULL DEFAULT '', `type` varchar(255) NOT NULL DEFAULT '', `assignedTo` varchar(30) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `status` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, @@ -3100,18 +3100,18 @@ CREATE TABLE `zt_reviewcl` ( `editedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_reviewissue` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `review` int(10) unsigned NOT NULL DEFAULT 0, - `approval` int(10) unsigned NOT NULL DEFAULT 0, - `injection` int(10) unsigned NOT NULL DEFAULT 0, - `identify` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `review` int unsigned NOT NULL DEFAULT 0, + `approval` int unsigned NOT NULL DEFAULT 0, + `injection` int unsigned NOT NULL DEFAULT 0, + `identify` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT 'review', - `listID` int(10) unsigned NOT NULL DEFAULT 0, + `listID` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `opinion` mediumtext DEFAULT NULL, `opinionDate` date DEFAULT NULL, @@ -3121,11 +3121,11 @@ CREATE TABLE `zt_reviewissue` ( `resolutionDate` datetime DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_reviewlist` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL DEFAULT '', `object` varchar(30) NOT NULL DEFAULT '', `category` varchar(30) NOT NULL DEFAULT '', @@ -3137,12 +3137,12 @@ CREATE TABLE `zt_reviewlist` ( `editedDate` datetime DEFAULT NULL, `assignedBy` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_reviewresult` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `review` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `review` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT 'review', `result` varchar(30) NOT NULL DEFAULT '', `opinion` text DEFAULT NULL, @@ -3154,9 +3154,9 @@ CREATE TABLE `zt_reviewresult` ( UNIQUE KEY `reviewer` (`review`,`reviewer`,`type`) ) ENGINE=InnoDB; CREATE TABLE `zt_risk` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `source` varchar(30) NOT NULL DEFAULT '', `category` varchar(30) NOT NULL DEFAULT '', @@ -3165,15 +3165,15 @@ CREATE TABLE `zt_risk` ( `impact` varchar(30) NOT NULL DEFAULT '', `probability` varchar(30) NOT NULL DEFAULT '', `rate` varchar(30) NOT NULL DEFAULT '', - `pri` tinyint(3) unsigned NOT NULL DEFAULT 2, + `pri` tinyint unsigned NOT NULL DEFAULT 2, `identifiedDate` date DEFAULT NULL, `prevention` mediumtext DEFAULT NULL, `remedy` mediumtext DEFAULT NULL, `plannedClosedDate` date DEFAULT NULL, `actualClosedDate` date DEFAULT NULL, - `lib` int(10) unsigned NOT NULL DEFAULT 0, - `from` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `lib` int unsigned NOT NULL DEFAULT 0, + `from` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', @@ -3194,20 +3194,20 @@ CREATE TABLE `zt_risk` ( `trackedDate` datetime DEFAULT NULL, `assignedDate` datetime DEFAULT NULL, `approvedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_riskissue` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `risk` int(10) unsigned NOT NULL DEFAULT 0, - `issue` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `risk` int unsigned NOT NULL DEFAULT 0, + `issue` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `risk_issue` (`risk`,`issue`) ) ENGINE=InnoDB; CREATE TABLE `zt_roadmap` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `product` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', `begin` date DEFAULT NULL, @@ -3218,43 +3218,43 @@ CREATE TABLE `zt_roadmap` ( `closedBy` varchar(30) NOT NULL DEFAULT '', `closedDate` datetime DEFAULT NULL, `closedReason` varchar(10) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_roadmapstory` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `roadmap` int(10) unsigned NOT NULL DEFAULT 0, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `roadmap` int unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `roadmap_story` (`roadmap`,`story`) ) ENGINE=InnoDB; CREATE TABLE `zt_scene` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `product` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', - `sort` int(10) unsigned NOT NULL DEFAULT 0, + `sort` int unsigned NOT NULL DEFAULT 0, `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, `path` varchar(1000) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_score` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `module` varchar(30) NOT NULL DEFAULT '', `method` varchar(30) NOT NULL DEFAULT '', `desc` varchar(250) NOT NULL DEFAULT '', - `before` int(10) unsigned NOT NULL DEFAULT 0, - `score` int(10) unsigned NOT NULL DEFAULT 0, - `after` int(10) unsigned NOT NULL DEFAULT 0, + `before` int unsigned NOT NULL DEFAULT 0, + `score` int unsigned NOT NULL DEFAULT 0, + `after` int unsigned NOT NULL DEFAULT 0, `time` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `account` (`account`), @@ -3262,8 +3262,8 @@ CREATE TABLE `zt_score` ( KEY `method` (`method`) ) ENGINE=InnoDB; CREATE TABLE `zt_screen` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `dimension` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `dimension` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `acl` varchar(10) NOT NULL DEFAULT 'open', @@ -3271,25 +3271,25 @@ CREATE TABLE `zt_screen` ( `cover` mediumtext DEFAULT NULL, `scheme` mediumtext DEFAULT NULL, `status` varchar(10) NOT NULL DEFAULT 'draft', - `builtin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `builtin` tinyint unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_searchdict` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `key` smallint(5) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `key` smallint unsigned NOT NULL DEFAULT 0, `value` char(3) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `key_value` (`key`,`value`) ) ENGINE=InnoDB; CREATE TABLE `zt_searchindex` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `title` text DEFAULT NULL, `content` text DEFAULT NULL, `addedDate` datetime DEFAULT NULL, @@ -3301,7 +3301,7 @@ CREATE TABLE `zt_searchindex` ( FULLTEXT KEY `title_content` (`title`,`content`) ) ENGINE=InnoDB; CREATE TABLE `zt_serverroom` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL DEFAULT '', `city` varchar(128) NOT NULL DEFAULT '', `line` varchar(20) NOT NULL DEFAULT '', @@ -3312,13 +3312,13 @@ CREATE TABLE `zt_serverroom` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_solutions` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `contents` text DEFAULT NULL, `support` text DEFAULT NULL, `measures` text DEFAULT NULL, @@ -3327,30 +3327,30 @@ CREATE TABLE `zt_solutions` ( `addedDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_space` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) NOT NULL DEFAULT '', `k8space` varchar(64) NOT NULL DEFAULT '', `owner` varchar(30) NOT NULL DEFAULT '', - `default` tinyint(3) unsigned NOT NULL DEFAULT 0, + `default` tinyint unsigned NOT NULL DEFAULT 0, `createdAt` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `name` (`name`) ) ENGINE=InnoDB; CREATE TABLE `zt_sqlbuilder` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `objectID` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(10) NOT NULL DEFAULT '', `sql` text DEFAULT NULL, `setting` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_sqlview` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(90) NOT NULL DEFAULT '', `code` varchar(45) NOT NULL DEFAULT '', `sql` text DEFAULT NULL, @@ -3359,11 +3359,11 @@ CREATE TABLE `zt_sqlview` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_stage` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `percent` varchar(255) NOT NULL DEFAULT '', `type` varchar(255) NOT NULL DEFAULT '', @@ -3372,46 +3372,46 @@ CREATE TABLE `zt_stage` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_stakeholder` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `objectID` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(10) NOT NULL DEFAULT '', `user` varchar(30) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', - `key` tinyint(3) unsigned NOT NULL DEFAULT 0, + `key` tinyint unsigned NOT NULL DEFAULT 0, `from` varchar(30) NOT NULL DEFAULT '', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `objectID` (`objectID`), KEY `objectType` (`objectType`) ) ENGINE=InnoDB; CREATE TABLE `zt_story` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `isParent` tinyint(3) unsigned NOT NULL DEFAULT 0, - `root` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `parent` int unsigned NOT NULL DEFAULT 0, + `isParent` tinyint unsigned NOT NULL DEFAULT 0, + `root` int unsigned NOT NULL DEFAULT 0, `path` text DEFAULT NULL, - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `plan` text DEFAULT NULL, `source` varchar(20) NOT NULL DEFAULT '', `sourceNote` varchar(255) NOT NULL DEFAULT '', - `fromBug` int(10) unsigned NOT NULL DEFAULT 0, - `feedback` int(10) unsigned NOT NULL DEFAULT 0, + `fromBug` int unsigned NOT NULL DEFAULT 0, + `feedback` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `keywords` varchar(255) NOT NULL DEFAULT '', `type` varchar(20) NOT NULL DEFAULT 'story', `category` varchar(30) NOT NULL DEFAULT 'feature', - `pri` tinyint(3) unsigned NOT NULL DEFAULT 3, + `pri` tinyint unsigned NOT NULL DEFAULT 3, `estimate` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `status` varchar(10) NOT NULL DEFAULT '', `subStatus` varchar(30) NOT NULL DEFAULT '', @@ -3419,9 +3419,9 @@ CREATE TABLE `zt_story` ( `stage` varchar(10) NOT NULL DEFAULT 'wait', `stagedBy` varchar(30) NOT NULL DEFAULT '', `mailto` text DEFAULT NULL, - `lib` int(10) unsigned NOT NULL DEFAULT 0, - `fromStory` int(10) unsigned NOT NULL DEFAULT 0, - `fromVersion` smallint(5) unsigned NOT NULL DEFAULT 1, + `lib` int unsigned NOT NULL DEFAULT 0, + `fromStory` int unsigned NOT NULL DEFAULT 0, + `fromVersion` smallint unsigned NOT NULL DEFAULT 1, `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, `assignedTo` varchar(30) NOT NULL DEFAULT '', @@ -3438,31 +3438,31 @@ CREATE TABLE `zt_story` ( `closedDate` datetime DEFAULT NULL, `closedReason` varchar(30) NOT NULL DEFAULT '', `activatedDate` datetime DEFAULT NULL, - `toBug` int(10) unsigned NOT NULL DEFAULT 0, + `toBug` int unsigned NOT NULL DEFAULT 0, `linkStories` varchar(255) NOT NULL DEFAULT '', `linkRequirements` varchar(255) NOT NULL DEFAULT '', `docs` text DEFAULT NULL, `twins` varchar(255) NOT NULL DEFAULT '', - `duplicateStory` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `parentVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `demandVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `storyChanged` tinyint(3) unsigned NOT NULL DEFAULT 0, + `duplicateStory` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, + `parentVersion` smallint unsigned NOT NULL DEFAULT 1, + `demandVersion` smallint unsigned NOT NULL DEFAULT 1, + `storyChanged` tinyint unsigned NOT NULL DEFAULT 0, `feedbackBy` varchar(100) NOT NULL DEFAULT '', `notifyEmail` varchar(100) NOT NULL DEFAULT '', `BSA` varchar(30) NOT NULL DEFAULT '', `duration` varchar(30) NOT NULL DEFAULT '', - `demand` int(10) unsigned NOT NULL DEFAULT 0, + `demand` int unsigned NOT NULL DEFAULT 0, `submitedBy` varchar(30) NOT NULL DEFAULT '', `roadmap` varchar(255) NOT NULL DEFAULT '', - `URChanged` tinyint(3) unsigned NOT NULL DEFAULT 0, + `URChanged` tinyint unsigned NOT NULL DEFAULT 0, `unlinkReason` varchar(10) NOT NULL DEFAULT '', `retractedReason` varchar(10) NOT NULL DEFAULT '', `retractedBy` varchar(30) NOT NULL DEFAULT '', `retractedDate` datetime DEFAULT NULL, `verifiedDate` datetime DEFAULT NULL, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `parent` (`parent`), KEY `product` (`product`), @@ -3472,9 +3472,9 @@ CREATE TABLE `zt_story` ( KEY `feedback` (`feedback`) ) ENGINE=InnoDB; CREATE TABLE `zt_storyestimate` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `round` smallint(5) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `story` int unsigned NOT NULL DEFAULT 0, + `round` smallint unsigned NOT NULL DEFAULT 0, `estimate` text DEFAULT NULL, `average` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `openedBy` varchar(30) NOT NULL DEFAULT '', @@ -3483,17 +3483,17 @@ CREATE TABLE `zt_storyestimate` ( UNIQUE KEY `story` (`story`,`round`) ) ENGINE=InnoDB; CREATE TABLE `zt_storygrade` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(20) NOT NULL DEFAULT '', - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, `name` varchar(30) NOT NULL DEFAULT '', `status` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_storyreview` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `story` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `reviewer` varchar(30) NOT NULL DEFAULT '', `result` varchar(30) NOT NULL DEFAULT '', `reviewDate` datetime DEFAULT NULL, @@ -3501,9 +3501,9 @@ CREATE TABLE `zt_storyreview` ( UNIQUE KEY `story` (`story`,`version`,`reviewer`) ) ENGINE=InnoDB; CREATE TABLE `zt_storyspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `story` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `title` varchar(255) NOT NULL DEFAULT '', `spec` mediumtext DEFAULT NULL, `verify` mediumtext DEFAULT NULL, @@ -3514,9 +3514,9 @@ CREATE TABLE `zt_storyspec` ( UNIQUE KEY `story` (`story`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_storystage` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `branch` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `story` int unsigned NOT NULL DEFAULT 0, + `branch` int unsigned NOT NULL DEFAULT 0, `stage` varchar(50) NOT NULL DEFAULT '', `stagedBy` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`), @@ -3524,20 +3524,20 @@ CREATE TABLE `zt_storystage` ( KEY `story` (`story`) ) ENGINE=InnoDB; CREATE TABLE `zt_suitecase` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `suite` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `case` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `suite` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `case` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `suitecase` (`suite`,`case`) ) ENGINE=InnoDB; CREATE TABLE `zt_system` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL DEFAULT '', - `product` int(10) unsigned NOT NULL DEFAULT 0, - `integrated` tinyint(3) unsigned NOT NULL DEFAULT 0, - `latestRelease` int(10) unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `integrated` tinyint unsigned NOT NULL DEFAULT 0, + `latestRelease` int unsigned NOT NULL DEFAULT 0, `latestDate` datetime DEFAULT NULL, `children` varchar(255) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT 'active', @@ -3546,33 +3546,33 @@ CREATE TABLE `zt_system` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `idx_product` (`product`), KEY `idx_status` (`status`) ) ENGINE=InnoDB; CREATE TABLE `zt_task` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `parent` int(10) unsigned NOT NULL DEFAULT 0, - `isParent` tinyint(3) unsigned NOT NULL DEFAULT 0, - `isTpl` tinyint(3) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, + `isParent` tinyint unsigned NOT NULL DEFAULT 0, + `isTpl` tinyint unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', - `execution` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, - `design` int(10) unsigned NOT NULL DEFAULT 0, - `story` int(10) unsigned NOT NULL DEFAULT 0, - `storyVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `designVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `fromBug` int(10) unsigned NOT NULL DEFAULT 0, - `feedback` int(10) unsigned NOT NULL DEFAULT 0, - `fromIssue` int(10) unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, + `design` int unsigned NOT NULL DEFAULT 0, + `story` int unsigned NOT NULL DEFAULT 0, + `storyVersion` smallint unsigned NOT NULL DEFAULT 1, + `designVersion` smallint unsigned NOT NULL DEFAULT 1, + `fromBug` int unsigned NOT NULL DEFAULT 0, + `feedback` int unsigned NOT NULL DEFAULT 0, + `fromIssue` int unsigned NOT NULL DEFAULT 0, `docs` text DEFAULT NULL, `docVersions` text DEFAULT NULL, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(20) NOT NULL DEFAULT '', `mode` varchar(10) NOT NULL DEFAULT '', - `pri` tinyint(3) unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 0, `estimate` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `consumed` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `left` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, @@ -3583,7 +3583,7 @@ CREATE TABLE `zt_task` ( `mailto` text DEFAULT NULL, `keywords` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `version` smallint unsigned NOT NULL DEFAULT 1, `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, `assignedTo` varchar(30) NOT NULL DEFAULT '', @@ -3597,21 +3597,21 @@ CREATE TABLE `zt_task` ( `canceledDate` datetime DEFAULT NULL, `closedBy` varchar(30) NOT NULL DEFAULT '', `closedDate` datetime DEFAULT NULL, - `planDuration` int(10) unsigned NOT NULL DEFAULT 0, - `realDuration` int(10) unsigned NOT NULL DEFAULT 0, + `planDuration` int unsigned NOT NULL DEFAULT 0, + `realDuration` int unsigned NOT NULL DEFAULT 0, `closedReason` varchar(30) NOT NULL DEFAULT '', `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, `activatedDate` datetime DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `repo` int(10) unsigned NOT NULL DEFAULT 0, - `mr` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `repo` int unsigned NOT NULL DEFAULT 0, + `mr` int unsigned NOT NULL DEFAULT 0, `entry` varchar(255) NOT NULL DEFAULT '', `lines` varchar(10) NOT NULL DEFAULT '', `v1` varchar(40) NOT NULL DEFAULT '', `v2` varchar(40) NOT NULL DEFAULT '', `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `execution` (`execution`), KEY `story` (`story`), @@ -3622,21 +3622,21 @@ CREATE TABLE `zt_task` ( KEY `feedback` (`feedback`) ) ENGINE=InnoDB; CREATE TABLE `zt_taskestimate` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `task` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `task` int unsigned NOT NULL DEFAULT 0, `date` date DEFAULT NULL, `left` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `consumed` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `account` varchar(30) NOT NULL DEFAULT '', `work` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `task` (`task`) ) ENGINE=InnoDB; CREATE TABLE `zt_taskspec` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `task` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `task` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `name` varchar(255) NOT NULL DEFAULT '', `estStarted` date DEFAULT NULL, `deadline` date DEFAULT NULL, @@ -3644,42 +3644,42 @@ CREATE TABLE `zt_taskspec` ( UNIQUE KEY `task` (`task`,`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_taskteam` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `task` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `task` int unsigned NOT NULL DEFAULT 0, `account` varchar(30) NOT NULL DEFAULT '', `estimate` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `consumed` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `left` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `transfer` varchar(30) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT 'wait', - `storyVersion` smallint(5) unsigned NOT NULL DEFAULT 1, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `storyVersion` smallint unsigned NOT NULL DEFAULT 1, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `task` (`task`) ) ENGINE=InnoDB; CREATE TABLE `zt_team` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `root` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `root` int unsigned NOT NULL DEFAULT 0, `type` varchar(10) NOT NULL DEFAULT 'project', `account` varchar(30) NOT NULL DEFAULT '', `role` varchar(30) NOT NULL DEFAULT '', `position` varchar(30) NOT NULL DEFAULT '', `limited` varchar(8) NOT NULL DEFAULT 'no', `join` date DEFAULT NULL, - `days` smallint(5) unsigned NOT NULL DEFAULT 0, + `days` smallint unsigned NOT NULL DEFAULT 0, `hours` decimal(3,1) unsigned NOT NULL DEFAULT 0.0, `estimate` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `consumed` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `left` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `team` (`root`,`type`,`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_testreport` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `execution` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, + `execution` int unsigned NOT NULL DEFAULT 0, `tasks` varchar(255) NOT NULL DEFAULT '', `builds` varchar(255) NOT NULL DEFAULT '', `title` varchar(255) NOT NULL DEFAULT '', @@ -3692,38 +3692,38 @@ CREATE TABLE `zt_testreport` ( `cases` text DEFAULT NULL, `report` text DEFAULT NULL, `objectType` varchar(10) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_testresult` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `run` int(10) unsigned NOT NULL DEFAULT 0, - `case` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, - `job` int(10) unsigned NOT NULL DEFAULT 0, - `compile` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `run` int unsigned NOT NULL DEFAULT 0, + `case` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, + `job` int unsigned NOT NULL DEFAULT 0, + `compile` int unsigned NOT NULL DEFAULT 0, `caseResult` varchar(30) NOT NULL DEFAULT '', `stepResults` text DEFAULT NULL, `ZTFResult` text DEFAULT NULL, - `node` int(10) unsigned NOT NULL DEFAULT 0, + `node` int unsigned NOT NULL DEFAULT 0, `lastRunner` varchar(30) NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `duration` decimal(10,3) unsigned NOT NULL DEFAULT 0.000, `xml` text DEFAULT NULL, - `deploy` int(10) unsigned NOT NULL DEFAULT 0, + `deploy` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `case` (`case`), KEY `version` (`version`), KEY `run` (`run`) ) ENGINE=InnoDB; CREATE TABLE `zt_testrun` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `task` int(10) unsigned NOT NULL DEFAULT 0, - `case` int(10) unsigned NOT NULL DEFAULT 0, - `version` smallint(5) unsigned NOT NULL DEFAULT 1, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `task` int unsigned NOT NULL DEFAULT 0, + `case` int unsigned NOT NULL DEFAULT 0, + `version` smallint unsigned NOT NULL DEFAULT 1, `assignedTo` varchar(30) NOT NULL DEFAULT '', `lastRunner` varchar(30) NOT NULL DEFAULT '', `lastRunDate` datetime DEFAULT NULL, @@ -3733,32 +3733,32 @@ CREATE TABLE `zt_testrun` ( UNIQUE KEY `task` (`task`,`case`) ) ENGINE=InnoDB; CREATE TABLE `zt_testsuite` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, - `product` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, + `product` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `type` varchar(20) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `addedBy` varchar(30) NOT NULL DEFAULT '', `addedDate` datetime DEFAULT NULL, `lastEditedBy` varchar(30) NOT NULL DEFAULT '', `lastEditedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `product` (`product`) ) ENGINE=InnoDB; CREATE TABLE `zt_testtask` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '测试单编号', - `project` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属项目', - `product` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属产品', + `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '测试单编号', + `project` int unsigned NOT NULL DEFAULT 0 COMMENT '所属项目', + `product` int unsigned NOT NULL DEFAULT 0 COMMENT '所属产品', `name` varchar(90) NOT NULL DEFAULT '' COMMENT '测试单名称', - `execution` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属执行', - `build` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属构建', - `joint` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '是否为联调测试单', + `execution` int unsigned NOT NULL DEFAULT 0 COMMENT '所属执行', + `build` int unsigned NOT NULL DEFAULT 0 COMMENT '所属构建', + `joint` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否为联调测试单', `type` varchar(255) NOT NULL DEFAULT '' COMMENT '类型', `owner` varchar(30) NOT NULL DEFAULT '' COMMENT '负责人', - `pri` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '优先级', + `pri` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '优先级', `begin` date DEFAULT NULL COMMENT '计划开始日期', `end` date DEFAULT NULL COMMENT '计划结束日期', `realBegan` date DEFAULT NULL COMMENT '实际开始日期', @@ -3767,49 +3767,49 @@ CREATE TABLE `zt_testtask` ( `desc` mediumtext DEFAULT NULL COMMENT '描述', `report` text DEFAULT NULL, `status` varchar(10) NOT NULL DEFAULT 'wait' COMMENT '状态', - `testreport` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '相关联的测试报告', + `testreport` int unsigned NOT NULL DEFAULT 0 COMMENT '相关联的测试报告', `auto` varchar(10) NOT NULL DEFAULT 'no' COMMENT '是否为自动化测试', `subStatus` varchar(30) NOT NULL DEFAULT '' COMMENT '子状态', `createdBy` varchar(30) NOT NULL DEFAULT '' COMMENT '由谁创建', `createdDate` datetime DEFAULT NULL COMMENT '创建时间', `members` text DEFAULT NULL COMMENT '团队成员', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT '是否删除', + `deleted` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '是否删除', PRIMARY KEY (`id`), KEY `product` (`product`), KEY `build` (`build`) ) ENGINE=InnoDB; CREATE TABLE `zt_testtaskproduct` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号', - `product` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属产品', - `build` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属构建', - `task` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属测试单', - `execution` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属执行', - `project` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属项目', + `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '编号', + `product` int unsigned NOT NULL DEFAULT 0 COMMENT '所属产品', + `build` int unsigned NOT NULL DEFAULT 0 COMMENT '所属构建', + `task` int unsigned NOT NULL DEFAULT 0 COMMENT '所属测试单', + `execution` int unsigned NOT NULL DEFAULT 0 COMMENT '所属执行', + `project` int unsigned NOT NULL DEFAULT 0 COMMENT '所属项目', PRIMARY KEY (`id`), UNIQUE KEY `uk_productbuild` (`product`,`build`,`task`) ) ENGINE=InnoDB; CREATE TABLE `zt_ticket` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `product` int(10) unsigned NOT NULL DEFAULT 0, - `module` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `product` int unsigned NOT NULL DEFAULT 0, + `module` int unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, `openedBuild` varchar(255) NOT NULL DEFAULT '', - `feedback` int(10) unsigned NOT NULL DEFAULT 0, + `feedback` int unsigned NOT NULL DEFAULT 0, `assignedTo` varchar(255) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, `realStarted` datetime DEFAULT NULL, `startedBy` varchar(255) NOT NULL DEFAULT '', `startedDate` datetime DEFAULT NULL, `deadline` date DEFAULT NULL, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 0, `estimate` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `left` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `status` varchar(30) NOT NULL DEFAULT '', `openedBy` varchar(30) NOT NULL DEFAULT '', `openedDate` datetime DEFAULT NULL, - `activatedCount` int(10) unsigned NOT NULL DEFAULT 0, + `activatedCount` int unsigned NOT NULL DEFAULT 0, `activatedBy` varchar(30) NOT NULL DEFAULT '', `activatedDate` datetime DEFAULT NULL, `closedBy` varchar(30) NOT NULL DEFAULT '', @@ -3823,25 +3823,25 @@ CREATE TABLE `zt_ticket` ( `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, `keywords` varchar(255) NOT NULL DEFAULT '', - `repeatTicket` int(10) unsigned NOT NULL DEFAULT 0, + `repeatTicket` int unsigned NOT NULL DEFAULT 0, `mailto` varchar(255) NOT NULL DEFAULT '', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, `subStatus` varchar(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `product` (`product`), KEY `feedback` (`feedback`) ) ENGINE=InnoDB; CREATE TABLE `zt_ticketrelation` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ticketId` int(10) unsigned NOT NULL DEFAULT 0, - `objectId` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `ticketId` int unsigned NOT NULL DEFAULT 0, + `objectId` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(10) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `ticketId` (`ticketId`) ) ENGINE=InnoDB; CREATE TABLE `zt_ticketsource` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ticketId` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `ticketId` int unsigned NOT NULL DEFAULT 0, `customer` varchar(100) NOT NULL DEFAULT '', `contact` varchar(100) NOT NULL DEFAULT '', `notifyEmail` varchar(100) NOT NULL DEFAULT '', @@ -3850,20 +3850,20 @@ CREATE TABLE `zt_ticketsource` ( KEY `ticketId` (`ticketId`) ) ENGINE=InnoDB; CREATE TABLE `zt_todo` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `date` date DEFAULT NULL, `begin` char(4) NOT NULL DEFAULT '', `end` char(4) NOT NULL DEFAULT '', - `feedback` int(10) unsigned NOT NULL DEFAULT 0, + `feedback` int unsigned NOT NULL DEFAULT 0, `type` varchar(15) NOT NULL DEFAULT '', - `cycle` tinyint(3) unsigned NOT NULL DEFAULT 0, - `objectID` int(10) unsigned NOT NULL DEFAULT 0, - `pri` tinyint(3) unsigned NOT NULL DEFAULT 0, + `cycle` tinyint unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, + `pri` tinyint unsigned NOT NULL DEFAULT 0, `name` varchar(150) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `status` varchar(10) NOT NULL DEFAULT 'wait', - `private` tinyint(3) unsigned NOT NULL DEFAULT 0, + `private` tinyint unsigned NOT NULL DEFAULT 0, `config` varchar(1000) NOT NULL DEFAULT '', `assignedTo` varchar(30) NOT NULL DEFAULT '', `assignedBy` varchar(30) NOT NULL DEFAULT '', @@ -3873,7 +3873,7 @@ CREATE TABLE `zt_todo` ( `closedBy` varchar(30) NOT NULL DEFAULT '', `closedDate` datetime DEFAULT NULL, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `account` (`account`), KEY `assignedTo` (`assignedTo`), @@ -3882,54 +3882,54 @@ CREATE TABLE `zt_todo` ( KEY `feedback` (`feedback`) ) ENGINE=InnoDB; CREATE TABLE `zt_traincategory` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', - `grade` tinyint(3) unsigned NOT NULL DEFAULT 0, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `grade` tinyint unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `parent` (`parent`), KEY `path` (`path`) ) ENGINE=InnoDB; CREATE TABLE `zt_traincontents` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(50) NOT NULL DEFAULT '', - `course` int(10) unsigned NOT NULL DEFAULT 0, + `course` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', - `parent` int(10) unsigned NOT NULL DEFAULT 0, + `parent` int unsigned NOT NULL DEFAULT 0, `path` varchar(255) NOT NULL DEFAULT '', `desc` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_traincourse` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(255) NOT NULL DEFAULT '', - `category` int(10) unsigned NOT NULL DEFAULT 0, + `category` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT '', `teacher` varchar(30) NOT NULL DEFAULT '', `desc` mediumtext DEFAULT NULL, `importedStatus` varchar(10) NOT NULL DEFAULT '', - `lastUpdatedTime` int(10) unsigned NOT NULL DEFAULT 0, + `lastUpdatedTime` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(255) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(255) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_trainplan` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `begin` date DEFAULT NULL, `end` date DEFAULT NULL, @@ -3943,20 +3943,20 @@ CREATE TABLE `zt_trainplan` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_trainrecords` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `user` varchar(30) NOT NULL DEFAULT '', - `objectId` int(10) unsigned NOT NULL DEFAULT 0, + `objectId` int unsigned NOT NULL DEFAULT 0, `objectType` varchar(10) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `object` (`user`,`objectId`,`objectType`) ) ENGINE=InnoDB; CREATE TABLE `zt_trip` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(10) NOT NULL DEFAULT 'trip', `customers` varchar(20) NOT NULL DEFAULT '', `name` varchar(30) NOT NULL DEFAULT '', @@ -3975,10 +3975,10 @@ CREATE TABLE `zt_trip` ( KEY `createdBy` (`createdBy`) ) ENGINE=InnoDB; CREATE TABLE `zt_user` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `company` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `company` int unsigned NOT NULL DEFAULT 0, `type` varchar(30) NOT NULL DEFAULT 'inside', - `dept` int(10) unsigned NOT NULL DEFAULT 0, + `dept` int unsigned NOT NULL DEFAULT 0, `account` varchar(30) NOT NULL DEFAULT '', `password` char(32) NOT NULL DEFAULT '', `role` varchar(10) NOT NULL DEFAULT '', @@ -4005,21 +4005,21 @@ CREATE TABLE `zt_user` ( `analysis` text DEFAULT NULL, `strategy` text DEFAULT NULL, `join` date DEFAULT NULL, - `visits` int(10) unsigned NOT NULL DEFAULT 0, + `visits` int unsigned NOT NULL DEFAULT 0, `visions` varchar(20) NOT NULL DEFAULT 'rnd,lite', `ip` varchar(255) NOT NULL DEFAULT '', - `last` int(10) unsigned NOT NULL DEFAULT 0, - `fails` tinyint(3) unsigned NOT NULL DEFAULT 0, + `last` int unsigned NOT NULL DEFAULT 0, + `fails` tinyint unsigned NOT NULL DEFAULT 0, `locked` datetime DEFAULT NULL, - `feedback` tinyint(3) unsigned NOT NULL DEFAULT 0, + `feedback` tinyint unsigned NOT NULL DEFAULT 0, `ranzhi` varchar(30) NOT NULL DEFAULT '', `ldap` varchar(30) NOT NULL DEFAULT '', - `score` int(10) unsigned NOT NULL DEFAULT 0, - `scoreLevel` int(10) unsigned NOT NULL DEFAULT 0, + `score` int unsigned NOT NULL DEFAULT 0, + `scoreLevel` int unsigned NOT NULL DEFAULT 0, `resetToken` varchar(50) NOT NULL DEFAULT '', `clientStatus` varchar(10) NOT NULL DEFAULT 'offline', `clientLang` varchar(10) NOT NULL DEFAULT 'zh-cn', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `account` (`account`), KEY `dept` (`dept`), @@ -4028,47 +4028,47 @@ CREATE TABLE `zt_user` ( KEY `deleted` (`deleted`) ) ENGINE=InnoDB; CREATE TABLE `zt_usercontact` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `listName` varchar(60) NOT NULL DEFAULT '', `userList` text DEFAULT NULL, - `public` tinyint(3) unsigned NOT NULL DEFAULT 0, + `public` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `account` (`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_usergroup` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', - `group` int(10) unsigned NOT NULL DEFAULT 0, + `group` int unsigned NOT NULL DEFAULT 0, `project` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `account` (`account`,`group`) ) ENGINE=InnoDB; CREATE TABLE `zt_userquery` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `module` varchar(30) NOT NULL DEFAULT '', `title` varchar(90) NOT NULL DEFAULT '', `form` text DEFAULT NULL, `sql` text DEFAULT NULL, - `shortcut` tinyint(3) unsigned NOT NULL DEFAULT 0, - `common` tinyint(3) unsigned NOT NULL DEFAULT 0, + `shortcut` tinyint unsigned NOT NULL DEFAULT 0, + `common` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `account` (`account`), KEY `module` (`module`) ) ENGINE=InnoDB; CREATE TABLE `zt_usertpl` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `type` varchar(30) NOT NULL DEFAULT '', `title` varchar(150) NOT NULL DEFAULT '', `content` text DEFAULT NULL, - `public` tinyint(3) unsigned NOT NULL DEFAULT 0, + `public` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `account` (`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_userview` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL DEFAULT '', `programs` mediumtext DEFAULT NULL, `products` mediumtext DEFAULT NULL, @@ -4078,7 +4078,7 @@ CREATE TABLE `zt_userview` ( UNIQUE KEY `account` (`account`) ) ENGINE=InnoDB; CREATE TABLE `zt_webhook` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(15) NOT NULL DEFAULT 'default', `name` varchar(50) NOT NULL DEFAULT '', `url` varchar(255) NOT NULL DEFAULT '', @@ -4095,27 +4095,27 @@ CREATE TABLE `zt_webhook` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_weeklyreport` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `weekStart` date DEFAULT NULL, `pv` decimal(12,2) unsigned NOT NULL DEFAULT 0.00, `ev` decimal(12,2) unsigned NOT NULL DEFAULT 0.00, `ac` decimal(12,2) unsigned NOT NULL DEFAULT 0.00, `sv` decimal(12,2) NOT NULL DEFAULT 0.00, `cv` decimal(12,2) NOT NULL DEFAULT 0.00, - `staff` smallint(5) unsigned NOT NULL DEFAULT 0, + `staff` smallint unsigned NOT NULL DEFAULT 0, `progress` varchar(255) NOT NULL DEFAULT '', `workload` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `week` (`project`,`weekStart`) ) ENGINE=InnoDB; CREATE TABLE `zt_workestimation` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `project` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `project` int unsigned NOT NULL DEFAULT 0, `scale` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `productivity` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, `duration` decimal(10,2) unsigned NOT NULL DEFAULT 0.00, @@ -4128,12 +4128,12 @@ CREATE TABLE `zt_workestimation` ( `assignedTo` varchar(30) NOT NULL DEFAULT '', `assignedDate` datetime DEFAULT NULL, `dayHour` decimal(10,2) NOT NULL DEFAULT 0.00, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflow` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `parent` varchar(30) NOT NULL DEFAULT '', `child` varchar(30) NOT NULL DEFAULT '', `type` varchar(10) NOT NULL DEFAULT 'flow', @@ -4149,8 +4149,8 @@ CREATE TABLE `zt_workflow` ( `flowchart` text DEFAULT NULL, `js` text DEFAULT NULL, `css` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `role` varchar(10) NOT NULL DEFAULT 'buildin', `belong` varchar(50) NOT NULL DEFAULT '', `administrator` text DEFAULT NULL, @@ -4171,8 +4171,8 @@ CREATE TABLE `zt_workflow` ( KEY `order` (`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowaction` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `module` varchar(30) NOT NULL DEFAULT '', `action` varchar(50) NOT NULL DEFAULT '', `method` varchar(50) NOT NULL DEFAULT '', @@ -4184,10 +4184,10 @@ CREATE TABLE `zt_workflowaction` ( `position` varchar(20) NOT NULL DEFAULT 'browseandview', `layout` varchar(20) NOT NULL DEFAULT '', `show` varchar(20) NOT NULL DEFAULT 'dropdownlist', - `order` int(10) unsigned NOT NULL DEFAULT 0, - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `role` varchar(10) NOT NULL DEFAULT 'custom', - `virtual` tinyint(3) unsigned NOT NULL DEFAULT 0, + `virtual` tinyint unsigned NOT NULL DEFAULT 0, `conditions` text DEFAULT NULL, `verifications` text DEFAULT NULL, `hooks` text DEFAULT NULL, @@ -4210,7 +4210,7 @@ CREATE TABLE `zt_workflowaction` ( KEY `order` (`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowdatasource` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(10) NOT NULL DEFAULT 'option', `name` varchar(30) NOT NULL DEFAULT '', `code` varchar(30) NOT NULL DEFAULT '', @@ -4218,7 +4218,7 @@ CREATE TABLE `zt_workflowdatasource` ( `view` varchar(20) NOT NULL DEFAULT '', `keyField` varchar(50) NOT NULL DEFAULT '', `valueField` varchar(50) NOT NULL DEFAULT '', - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', @@ -4228,8 +4228,8 @@ CREATE TABLE `zt_workflowdatasource` ( KEY `type` (`type`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowfield` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `module` varchar(30) NOT NULL DEFAULT '', `field` varchar(50) NOT NULL DEFAULT '', `type` varchar(20) NOT NULL DEFAULT 'varchar', @@ -4241,14 +4241,14 @@ CREATE TABLE `zt_workflowfield` ( `default` varchar(100) NOT NULL DEFAULT '', `rules` varchar(255) NOT NULL DEFAULT '', `placeholder` varchar(255) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, - `searchOrder` smallint(5) unsigned NOT NULL DEFAULT 0, - `exportOrder` smallint(5) unsigned NOT NULL DEFAULT 0, - `canExport` tinyint(3) unsigned NOT NULL DEFAULT 0, - `canSearch` tinyint(3) unsigned NOT NULL DEFAULT 0, - `isValue` tinyint(3) unsigned NOT NULL DEFAULT 0, - `readonly` tinyint(3) unsigned NOT NULL DEFAULT 0, - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `searchOrder` smallint unsigned NOT NULL DEFAULT 0, + `exportOrder` smallint unsigned NOT NULL DEFAULT 0, + `canExport` tinyint unsigned NOT NULL DEFAULT 0, + `canSearch` tinyint unsigned NOT NULL DEFAULT 0, + `isValue` tinyint unsigned NOT NULL DEFAULT 0, + `readonly` tinyint unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `role` varchar(10) NOT NULL DEFAULT 'custom', `desc` text DEFAULT NULL, `createdBy` varchar(30) NOT NULL DEFAULT '', @@ -4262,8 +4262,8 @@ CREATE TABLE `zt_workflowfield` ( KEY `order` (`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowgroup` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `objectID` int unsigned NOT NULL DEFAULT 0, `type` varchar(10) NOT NULL DEFAULT '', `projectModel` varchar(10) NOT NULL DEFAULT '', `projectType` varchar(10) NOT NULL DEFAULT '', @@ -4272,29 +4272,29 @@ CREATE TABLE `zt_workflowgroup` ( `desc` text DEFAULT NULL, `disabledModules` varchar(255) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT 'wait', - `main` tinyint(3) unsigned NOT NULL DEFAULT 0, - `exclusive` tinyint(3) unsigned NOT NULL DEFAULT 0, + `main` tinyint unsigned NOT NULL DEFAULT 0, + `exclusive` tinyint unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, `deliverable` text DEFAULT NULL, `vision` varchar(10) NOT NULL DEFAULT 'rnd', - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `type` (`type`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowlabel` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `module` varchar(30) NOT NULL DEFAULT '', `action` varchar(30) NOT NULL DEFAULT 'browse', `code` varchar(30) NOT NULL DEFAULT '', `label` varchar(255) NOT NULL DEFAULT '', `params` text DEFAULT NULL, `orderBy` text DEFAULT NULL, - `order` tinyint(3) unsigned NOT NULL DEFAULT 0, - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` tinyint unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `role` varchar(10) NOT NULL DEFAULT 'custom', `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, @@ -4304,17 +4304,17 @@ CREATE TABLE `zt_workflowlabel` ( KEY `module` (`module`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowlayout` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `module` varchar(30) NOT NULL DEFAULT '', `action` varchar(50) NOT NULL DEFAULT '', - `ui` int(10) unsigned NOT NULL DEFAULT 0, + `ui` int unsigned NOT NULL DEFAULT 0, `field` varchar(50) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, - `width` smallint(5) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `width` smallint unsigned NOT NULL DEFAULT 0, `position` text DEFAULT NULL, - `readonly` tinyint(3) unsigned NOT NULL DEFAULT 0, - `mobileShow` tinyint(3) unsigned NOT NULL DEFAULT 1, + `readonly` tinyint unsigned NOT NULL DEFAULT 0, + `mobileShow` tinyint unsigned NOT NULL DEFAULT 1, `summary` varchar(20) NOT NULL DEFAULT '', `defaultValue` text DEFAULT NULL, `layoutRules` varchar(255) NOT NULL DEFAULT '', @@ -4326,36 +4326,36 @@ CREATE TABLE `zt_workflowlayout` ( KEY `order` (`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowlinkdata` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `objectType` varchar(30) NOT NULL DEFAULT '', - `objectID` int(10) unsigned NOT NULL DEFAULT 0, + `objectID` int unsigned NOT NULL DEFAULT 0, `linkedType` varchar(30) NOT NULL DEFAULT '', - `linkedID` int(10) unsigned NOT NULL DEFAULT 0, + `linkedID` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique` (`objectType`,`objectID`,`linkedType`,`linkedID`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowrelation` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `prev` varchar(30) NOT NULL DEFAULT '', `next` varchar(30) NOT NULL DEFAULT '', `field` varchar(50) NOT NULL DEFAULT '', `actions` varchar(20) NOT NULL DEFAULT '', `actionCodes` text DEFAULT NULL, - `buildin` tinyint(3) unsigned NOT NULL DEFAULT 0, + `buildin` tinyint unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowrelationlayout` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `prev` varchar(30) NOT NULL DEFAULT '', `next` varchar(30) NOT NULL DEFAULT '', `action` varchar(50) NOT NULL DEFAULT '', - `ui` int(10) unsigned NOT NULL DEFAULT 0, + `ui` int unsigned NOT NULL DEFAULT 0, `field` varchar(50) NOT NULL DEFAULT '', - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `unique` (`prev`,`next`,`action`,`ui`,`field`), KEY `prev` (`prev`), @@ -4364,7 +4364,7 @@ CREATE TABLE `zt_workflowrelationlayout` ( KEY `order` (`order`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowreport` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `module` varchar(30) NOT NULL DEFAULT '', `name` varchar(100) NOT NULL DEFAULT '', `type` varchar(10) NOT NULL DEFAULT 'pie', @@ -4372,13 +4372,13 @@ CREATE TABLE `zt_workflowreport` ( `displayType` varchar(10) NOT NULL DEFAULT 'value', `dimension` varchar(130) NOT NULL DEFAULT '', `fields` text DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, `createdBy` varchar(30) NOT NULL DEFAULT '', `createdDate` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowrule` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `type` varchar(10) NOT NULL DEFAULT 'regex', `name` varchar(30) NOT NULL DEFAULT '', `rule` text DEFAULT NULL, @@ -4390,7 +4390,7 @@ CREATE TABLE `zt_workflowrule` ( KEY `type` (`type`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowsql` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `module` varchar(30) NOT NULL DEFAULT '', `field` varchar(50) NOT NULL DEFAULT '', `action` varchar(50) NOT NULL DEFAULT '', @@ -4406,8 +4406,8 @@ CREATE TABLE `zt_workflowsql` ( KEY `action` (`action`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowui` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `group` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `group` int unsigned NOT NULL DEFAULT 0, `module` varchar(30) NOT NULL DEFAULT '', `action` varchar(50) NOT NULL DEFAULT '', `name` varchar(30) NOT NULL DEFAULT '', @@ -4417,7 +4417,7 @@ CREATE TABLE `zt_workflowui` ( KEY `action` (`action`) ) ENGINE=InnoDB; CREATE TABLE `zt_workflowversion` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `id` int unsigned NOT NULL AUTO_INCREMENT, `module` varchar(30) NOT NULL DEFAULT '', `version` varchar(10) NOT NULL DEFAULT '', `fields` text DEFAULT NULL, @@ -4433,8 +4433,8 @@ CREATE TABLE `zt_workflowversion` ( KEY `version` (`version`) ) ENGINE=InnoDB; CREATE TABLE `zt_zoutput` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `activity` int(10) unsigned NOT NULL DEFAULT 0, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `activity` int unsigned NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', `content` mediumtext DEFAULT NULL, `optional` varchar(20) NOT NULL DEFAULT '', @@ -4444,7 +4444,7 @@ CREATE TABLE `zt_zoutput` ( `createdDate` datetime DEFAULT NULL, `editedBy` varchar(30) NOT NULL DEFAULT '', `editedDate` datetime DEFAULT NULL, - `order` int(10) unsigned NOT NULL DEFAULT 0, - `deleted` tinyint(3) unsigned NOT NULL DEFAULT 0, + `order` int unsigned NOT NULL DEFAULT 0, + `deleted` tinyint unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB;