From ab5a5ed02089440cfefcdf455e89ca75c83cd560 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 9 Dec 2025 16:40:03 +0800 Subject: [PATCH 01/18] * [misc] Remove display width of integer fields. --- db/standard/zentao21.7.8.sql | 2160 +++++++++++++++++----------------- 1 file changed, 1080 insertions(+), 1080 deletions(-) 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; From 74c7ede29b3da9c8773b884af9fd7d6ca85055d2 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 9 Dec 2025 16:42:45 +0800 Subject: [PATCH 02/18] * [bug#67872] Change the parent field data type from int unsigned to int. --- db/standard/zentao21.7.8.sql | 2 +- db/zentao.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/standard/zentao21.7.8.sql b/db/standard/zentao21.7.8.sql index 44e057ac33..c91f89f550 100644 --- a/db/standard/zentao21.7.8.sql +++ b/db/standard/zentao21.7.8.sql @@ -2630,7 +2630,7 @@ CREATE TABLE `zt_productplan` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `product` int unsigned NOT NULL DEFAULT 0, `branch` varchar(255) NOT NULL DEFAULT '0', - `parent` int unsigned NOT NULL DEFAULT 0, + `parent` int NOT NULL DEFAULT 0, `title` varchar(90) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT 'wait', `desc` mediumtext DEFAULT NULL, diff --git a/db/zentao.sql b/db/zentao.sql index a21df0d3df..9ba303b7e6 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -1497,7 +1497,7 @@ CREATE TABLE IF NOT EXISTS `zt_productplan` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `product` int unsigned NOT NULL DEFAULT 0, `branch` varchar(255) NOT NULL DEFAULT '0', - `parent` int unsigned NOT NULL DEFAULT 0, + `parent` int NOT NULL DEFAULT 0, `title` varchar(90) NOT NULL DEFAULT '', `status` varchar(10) NOT NULL DEFAULT 'wait', `desc` mediumtext DEFAULT NULL, From 12550c166df35042438f479e2060afe4e488deff Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 9 Dec 2025 17:03:24 +0800 Subject: [PATCH 03/18] * [bug#67855] Convert the budget field to float. --- module/program/config/form.php | 4 ++-- module/project/config/form.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/program/config/form.php b/module/program/config/form.php index 556ca7991c..0f86f0139d 100644 --- a/module/program/config/form.php +++ b/module/program/config/form.php @@ -7,7 +7,7 @@ $config->program->form = new stdclass(); $config->program->form->create['parent'] = array('type' => 'int', 'control' => 'picker', 'required' => false, 'default' => 0); $config->program->form->create['name'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim'); $config->program->form->create['PM'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => 0); -$config->program->form->create['budget'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => ''); +$config->program->form->create['budget'] = array('type' => 'float', 'control' => 'text', 'required' => false, 'default' => ''); $config->program->form->create['budgetUnit'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => 'CNY'); $config->program->form->create['begin'] = array('type' => 'date', 'control' => 'datepicker', 'required' => true, 'default' => ''); $config->program->form->create['end'] = array('type' => 'date', 'control' => 'datepicker', 'required' => false, 'default' => ''); @@ -19,7 +19,7 @@ $config->program->form->create['whitelist'] = array('type' => 'array', 'cont $config->program->form->edit['parent'] = array('type' => 'int', 'control' => 'picker', 'required' => false, 'default' => 0); $config->program->form->edit['name'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim'); $config->program->form->edit['PM'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => 0); -$config->program->form->edit['budget'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => ''); +$config->program->form->edit['budget'] = array('type' => 'float', 'control' => 'text', 'required' => false, 'default' => ''); $config->program->form->edit['budgetUnit'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => 'CNY'); $config->program->form->edit['begin'] = array('type' => 'date', 'control' => 'datepicker', 'required' => true, 'default' => ''); $config->program->form->edit['end'] = array('type' => 'date', 'control' => 'datepicker', 'required' => false, 'default' => ''); diff --git a/module/project/config/form.php b/module/project/config/form.php index 600eff679e..a0f3efa536 100755 --- a/module/project/config/form.php +++ b/module/project/config/form.php @@ -17,7 +17,7 @@ $config->project->form->create['multiple'] = array('type' => 'string', 'req $config->project->form->create['hasProduct'] = array('type' => 'string', 'required' => false, 'default' => ''); $config->project->form->create['stageBy'] = array('type' => 'string', 'required' => false, 'default' => 'product'); $config->project->form->create['PM'] = array('type' => 'string', 'required' => false, 'default' => ''); -$config->project->form->create['budget'] = array('type' => 'string', 'required' => false, 'default' => ''); +$config->project->form->create['budget'] = array('type' => 'float', 'required' => false, 'default' => ''); $config->project->form->create['budgetUnit'] = array('type' => 'string', 'required' => false, 'default' => 'CNY'); $config->project->form->create['begin'] = array('type' => 'date', 'required' => true); $config->project->form->create['end'] = array('type' => 'date', 'required' => false, 'default' => null); From 8b6c1f1444eb17e96eab08f86538c3b3f6b62446 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 9 Dec 2025 17:04:36 +0800 Subject: [PATCH 04/18] * [misc] Update the budget field's value to float. --- db/update21.7.7.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/update21.7.7.sql b/db/update21.7.7.sql index 878074e36f..2a426d22c1 100644 --- a/db/update21.7.7.sql +++ b/db/update21.7.7.sql @@ -95,3 +95,6 @@ CREATE TABLE IF NOT EXISTS `zt_ai_promptfield` ( `required` tinyint unsigned NOT NULL DEFAULT 1 COMMENT '是否必填', PRIMARY KEY (`id`) ) ENGINE=InnoDB; + +UPDATE `zt_project` SET `budget` = 0 WHERE `budget` = ''; +UPDATE `zt_project` SET `budget` = REPLACE(`budget`, '万', '0000'); From a59b04396defda53b259d762b62a6136dc66d9c9 Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 10 Dec 2025 09:00:32 +0800 Subject: [PATCH 05/18] * [misc] update zui3 lib. --- www/js/zui3/zui.zentao.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/js/zui3/zui.zentao.js b/www/js/zui3/zui.zentao.js index ed3ee22c69..1bdb10e08c 100644 --- a/www/js/zui3/zui.zentao.js +++ b/www/js/zui3/zui.zentao.js @@ -1,11 +1,11 @@ var x_=(M,wt,on)=>{if(!wt.has(M))throw TypeError("Cannot "+on)};var rr=(M,wt,on)=>(x_(M,wt,"read from private field"),on?on.call(M):wt.get(M)),pf=(M,wt,on)=>{if(wt.has(M))throw TypeError("Cannot add the same private member more than once");wt instanceof WeakSet?wt.add(M):wt.set(M,on)},or=(M,wt,on,mc)=>(x_(M,wt,"write to private field"),mc?mc.call(M,on):wt.set(M,on),on);(function(M,wt){typeof exports=="object"&&typeof module<"u"?wt(exports):typeof define=="function"&&define.amd?define(["exports"],wt):(M=typeof globalThis<"u"?globalThis:M||self,wt(M.zui={}))})(this,function(M){var Ss,Ts,Hv,Uv;"use strict";const wt="",on="",mc="",QS="",eT="",tT="",nT="",sT="",iT="",rT="",oT="",aT="",gc="3.0.0",O_="production",wf="cd884635161401c7820cf3b9b741fd9943f08aa4",On=document,Mo=window,Cf=On.documentElement,Ls=On.createElement.bind(On),xf=Ls("div"),yc=Ls("table"),j_=Ls("tbody"),kf=Ls("tr"),{isArray:No,prototype:Sf}=Array,{concat:B_,filter:vc,indexOf:Tf,map:$f,push:H_,slice:Df,some:_c,splice:U_}=Sf,V_=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,W_=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,K_=/<.+>/,q_=/^\w+$/;function bc(i,e){const t=G_(e);return!i||!t&&!Rs(e)&&!mt(e)?[]:!t&&W_.test(i)?e.getElementsByClassName(i.slice(1).replace(/\\/g,"")):!t&&q_.test(i)?e.getElementsByTagName(i):e.querySelectorAll(i)}class Eo{constructor(e,t){if(!e)return;if(wc(e))return e;let n=e;if(Pt(e)){const s=t||On;if(n=V_.test(e)&&Rs(s)?s.getElementById(e.slice(1).replace(/\\/g,"")):K_.test(e)?Pf(e):wc(s)?s.find(e):Pt(s)?y(s).find(e):bc(e,s),!n)return}else if(zs(e))return this.ready(e);(n.nodeType||n===Mo)&&(n=[n]),this.length=n.length;for(let s=0,r=this.length;s{for(;e.firstChild;)e.removeChild(e.firstChild)})};function Ao(...i){const e=Y_(i[0])?i.shift():!1,t=i.shift(),n=i.length;if(!t)return{};if(!n)return Ao(e,y,t);for(let s=0;s{mt(r)&&Ct(t,(o,a)=>{n?e?r.classList.add(a):r.classList.remove(a):r.classList.toggle(a)})})},ae.addClass=function(i){return this.toggleClass(i,!0)},ae.removeAttr=function(i){const e=Po(i);return this.each((t,n)=>{mt(n)&&Ct(e,(s,r)=>{n.removeAttribute(r)})})};function X_(i,e){if(i){if(Pt(i)){if(arguments.length<2){if(!this[0]||!mt(this[0]))return;const t=this[0].getAttribute(i);return cr(t)?void 0:t}return Ht(e)?this:cr(e)?this.removeAttr(i):this.each((t,n)=>{mt(n)&&n.setAttribute(i,e)})}for(const t in i)this.attr(t,i[t]);return this}}ae.attr=X_,ae.removeClass=function(i){return arguments.length?this.toggleClass(i,!1):this.attr("class","")},ae.hasClass=function(i){return!!i&&_c.call(this,e=>mt(e)&&e.classList.contains(i))},ae.get=function(i){return Ht(i)?Df.call(this):(i=Number(i),this[i<0?i+this.length:i])},ae.eq=function(i){return y(this.get(i))},ae.first=function(){return this.eq(0)},ae.last=function(){return this.eq(-1)};function Q_(i){return Ht(i)?this.get().map(e=>mt(e)||Z_(e)?e.textContent:"").join(""):this.each((e,t)=>{mt(t)&&(t.textContent=i)})}ae.text=Q_;function jn(i,e,t){if(!mt(i))return;const n=Mo.getComputedStyle(i,null);return t?n.getPropertyValue(e)||void 0:n[e]||i.style[e]}function wn(i,e){return parseInt(jn(i,e),10)||0}function Mf(i,e){return wn(i,`border${e?"Left":"Top"}Width`)+wn(i,`padding${e?"Left":"Top"}`)+wn(i,`padding${e?"Right":"Bottom"}`)+wn(i,`border${e?"Right":"Bottom"}Width`)}const xc={};function eb(i){if(xc[i])return xc[i];const e=Ls(i);On.body.insertBefore(e,null);const t=jn(e,"display");return On.body.removeChild(e),xc[i]=t!=="none"?t:"block"}function Nf(i){return jn(i,"display")==="none"}function Ef(i,e){const t=i&&(i.matches||i.webkitMatchesSelector||i.msMatchesSelector);return!!t&&!!e&&t.call(i,e)}function Lo(i){return Pt(i)?(e,t)=>Ef(t,i):zs(i)?i:wc(i)?(e,t)=>i.is(t):i?(e,t)=>t===i:()=>!1}ae.filter=function(i){const e=Lo(i);return y(vc.call(this,(t,n)=>e.call(t,n,t)))};function ss(i,e){return e?i.filter(e):i}ae.detach=function(i){return ss(this,i).each((e,t)=>{t.parentNode&&t.parentNode.removeChild(t)}),this};const tb=/^\s*<(\w+)[^>]*>/,nb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Af={"*":xf,tr:j_,td:kf,th:kf,thead:yc,tbody:yc,tfoot:yc};function Pf(i){if(!Pt(i))return[];if(nb.test(i))return[Ls(RegExp.$1)];const e=tb.test(i)&&RegExp.$1,t=Af[e]||Af["*"];return t.innerHTML=i,y(t.childNodes).detach().get()}y.parseHTML=Pf,ae.has=function(i){const e=Pt(i)?(t,n)=>bc(i,n).length:(t,n)=>n.contains(i);return this.filter(e)},ae.not=function(i){const e=Lo(i);return this.filter((t,n)=>(!Pt(i)||mt(n))&&!e.call(n,t,n))};function Bn(i,e,t,n){const s=[],r=zs(e),o=n&&Lo(n);for(let a=0,l=i.length;ae.selected&&!e.disabled&&!e.parentNode.disabled),"value"):i.value||""}function sb(i){return arguments.length?this.each((e,t)=>{const n=t.multiple&&t.options;if(n||Kf.test(t.type)){const s=No(i)?$f.call(i,String):cr(i)?[]:[String(i)];n?Ct(t.options,(r,o)=>{o.selected=s.indexOf(o.value)>=0},!0):t.checked=s.indexOf(t.value)>=0}else t.value=Ht(i)||cr(i)?"":i}):this[0]&&Lf(this[0])}ae.val=sb,ae.is=function(i){const e=Lo(i);return _c.call(this,(t,n)=>e.call(t,n,t))},y.guid=1;function Cn(i){return i.length>1?vc.call(i,(e,t,n)=>Tf.call(n,e)===t):i}y.unique=Cn,ae.add=function(i,e){return y(Cn(this.get().concat(y(i,e).get())))},ae.children=function(i){return ss(y(Cn(Bn(this,e=>e.children))),i)},ae.parent=function(i){return ss(y(Cn(Bn(this,"parentNode"))),i)},ae.index=function(i){const e=i?y(i)[0]:this[0],t=i?this:y(e).parent().children();return Tf.call(t,e)},ae.closest=function(i){const e=this.filter(i);if(e.length)return e;const t=this.parent();return t.length?t.closest(i):e},ae.siblings=function(i){return ss(y(Cn(Bn(this,e=>y(e).parent().children().not(e)))),i)},ae.find=function(i){return y(Cn(Bn(this,e=>bc(i,e))))};const ib=/^\s*\s*$/g,rb=/^$|^module$|\/(java|ecma)script/i,ob=["type","src","nonce","noModule"];function ab(i,e){const t=y(i);t.filter("script").add(t.find("script")).each((n,s)=>{if(rb.test(s.type)&&Cf.contains(s)){const r=Ls("script");r.text=s.textContent.replace(ib,""),Ct(ob,(o,a)=>{s[a]&&(r[a]=s[a])}),e.head.insertBefore(r,null),e.head.removeChild(r)}})}function lb(i,e,t,n,s){n?i.insertBefore(e,t?i.firstChild:null):i.nodeName==="HTML"?i.parentNode.replaceChild(e,i):i.parentNode.insertBefore(e,t?i:i.nextSibling),s&&ab(e,i.ownerDocument)}function is(i,e,t,n,s,r,o,a){return Ct(i,(l,c)=>{Ct(y(c),(h,d)=>{Ct(y(e),(f,m)=>{const v=t?d:m,b=t?m:d,w=t?h:f;lb(v,w?b.cloneNode(!0):b,n,s,!w)},a)},o)},r),e}ae.after=function(){return is(arguments,this,!1,!1,!1,!0,!0)},ae.append=function(){return is(arguments,this,!1,!1,!0)};function cb(i){if(!arguments.length)return this[0]&&this[0].innerHTML;if(Ht(i))return this;const e=/]/.test(i);return this.each((t,n)=>{mt(n)&&(e?y(n).empty().append(i):n.innerHTML=i)})}ae.html=cb,ae.appendTo=function(i){return is(arguments,this,!0,!1,!0)},ae.wrapInner=function(i){return this.each((e,t)=>{const n=y(t),s=n.contents();s.length?s.wrapAll(i):n.append(i)})},ae.before=function(){return is(arguments,this,!1,!0)},ae.wrapAll=function(i){let e=y(i),t=e[0];for(;t.children.length;)t=t.firstElementChild;return this.first().before(e),this.appendTo(t)},ae.wrap=function(i){return this.each((e,t)=>{const n=y(i)[0];y(t).wrapAll(e?n.cloneNode(!0):n)})},ae.insertAfter=function(i){return is(arguments,this,!0,!1,!1,!1,!1,!0)},ae.insertBefore=function(i){return is(arguments,this,!0,!0)},ae.prepend=function(){return is(arguments,this,!1,!0,!0,!0,!0)},ae.prependTo=function(i){return is(arguments,this,!0,!0,!0,!1,!1,!0)},ae.contents=function(){return y(Cn(Bn(this,i=>i.tagName==="IFRAME"?[i.contentDocument]:i.tagName==="TEMPLATE"?i.content.childNodes:i.childNodes)))},ae.next=function(i,e,t){return ss(y(Cn(Bn(this,"nextElementSibling",e,t))),i)},ae.nextAll=function(i){return this.next(i,!0)},ae.nextUntil=function(i,e){return this.next(e,!0,i)},ae.parents=function(i,e){return ss(y(Cn(Bn(this,"parentElement",!0,e))),i)},ae.parentsUntil=function(i,e){return this.parents(e,i)},ae.prev=function(i,e,t){return ss(y(Cn(Bn(this,"previousElementSibling",e,t))),i)},ae.prevAll=function(i){return this.prev(i,!0)},ae.prevUntil=function(i,e){return this.prev(e,!0,i)},ae.map=function(i){return y(B_.apply([],$f.call(this,(e,t)=>i.call(e,t,e))))},ae.clone=function(){return this.map((i,e)=>e.cloneNode(!0))},ae.offsetParent=function(){return this.map((i,e)=>{let t=e.offsetParent;for(;t&&jn(t,"position")==="static";)t=t.offsetParent;return t||Cf})},ae.slice=function(i,e){return y(Df.call(this,i,e))};const hb=/-([a-z])/g;function kc(i){return i.replace(hb,(e,t)=>t.toUpperCase())}ae.ready=function(i){const e=()=>setTimeout(i,0,y);return On.readyState!=="loading"?e():On.addEventListener("DOMContentLoaded",e),this},ae.unwrap=function(){return this.parent().each((i,e)=>{if(e.tagName==="BODY")return;const t=y(e);t.replaceWith(t.children())}),this},ae.offset=function(){const i=this[0];if(!i)return;const e=i.getBoundingClientRect();return{top:e.top+Mo.pageYOffset,left:e.left+Mo.pageXOffset}},ae.position=function(){const i=this[0];if(!i)return;const e=jn(i,"position")==="fixed",t=e?i.getBoundingClientRect():this.offset();if(!e){const n=i.ownerDocument;let s=i.offsetParent||n.documentElement;for(;(s===n.body||s===n.documentElement)&&jn(s,"position")==="static";)s=s.parentNode;if(s!==i&&mt(s)){const r=y(s).offset();t.top-=r.top+wn(s,"borderTopWidth"),t.left-=r.left+wn(s,"borderLeftWidth")}}return{top:t.top-wn(i,"marginTop"),left:t.left-wn(i,"marginLeft")}};const Rf={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};ae.prop=function(i,e){if(i){if(Pt(i))return i=Rf[i]||i,arguments.length<2?this[0]&&this[0][i]:this.each((t,n)=>{n[i]=e});for(const t in i)this.prop(t,i[t]);return this}},ae.removeProp=function(i){return this.each((e,t)=>{delete t[Rf[i]||i]})};const db=/^--/;function Sc(i){return db.test(i)}const Tc={},{style:ub}=xf,fb=["webkit","moz","ms"];function pb(i,e=Sc(i)){if(e)return i;if(!Tc[i]){const t=kc(i),n=`${t[0].toUpperCase()}${t.slice(1)}`,s=`${t} ${fb.join(`${n} `)}${n}`.split(" ");Ct(s,(r,o)=>{if(o in ub)return Tc[i]=o,!1})}return Tc[i]}const mb={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function zf(i,e,t=Sc(i)){return!t&&!mb[i]&&If(e)?`${e}px`:e}function gb(i,e){if(Pt(i)){const t=Sc(i);return i=pb(i,t),arguments.length<2?this[0]&&jn(this[0],i,t):i?(e=zf(i,e,t),this.each((n,s)=>{mt(s)&&(t?s.style.setProperty(i,e):s.style[i]=e)})):this}for(const t in i)this.css(t,i[t]);return this}ae.css=gb;function Ff(i,e){try{return i(e)}catch{return e}}const yb=/^\s+|\s+$/;function Of(i,e){const t=i.dataset[e]||i.dataset[kc(e)];return yb.test(t)?t:Ff(JSON.parse,t)}function vb(i,e,t){t=Ff(JSON.stringify,t),i.dataset[kc(e)]=t}function _b(i,e){if(!i){if(!this[0])return;const t={};for(const n in this[0].dataset)t[n]=Of(this[0],n);return t}if(Pt(i))return arguments.length<2?this[0]&&Of(this[0],i):Ht(e)?this:this.each((t,n)=>{vb(n,i,e)});for(const t in i)this.data(t,i[t]);return this}ae.data=_b;function jf(i,e){const t=i.documentElement;return Math.max(i.body[`scroll${e}`],t[`scroll${e}`],i.body[`offset${e}`],t[`offset${e}`],t[`client${e}`])}Ct([!0,!1],(i,e)=>{Ct(["Width","Height"],(t,n)=>{const s=`${e?"outer":"inner"}${n}`;ae[s]=function(r){if(this[0])return mi(this[0])?e?this[0][`inner${n}`]:this[0].document.documentElement[`client${n}`]:Rs(this[0])?jf(this[0],n):this[0][`${e?"offset":"client"}${n}`]+(r&&e?wn(this[0],`margin${t?"Top":"Left"}`)+wn(this[0],`margin${t?"Bottom":"Right"}`):0)}})}),Ct(["Width","Height"],(i,e)=>{const t=e.toLowerCase();ae[t]=function(n){if(!this[0])return Ht(n)?void 0:this;if(!arguments.length)return mi(this[0])?this[0].document.documentElement[`client${e}`]:Rs(this[0])?jf(this[0],e):this[0].getBoundingClientRect()[t]-Mf(this[0],!i);const s=parseInt(n,10);return this.each((r,o)=>{if(!mt(o))return;const a=jn(o,"boxSizing");o.style[t]=zf(t,s+(a==="border-box"?Mf(o,!i):0))})}});const Bf="___cd";ae.toggle=function(i){return this.each((e,t)=>{if(!mt(t))return;const n=Nf(t);(Ht(i)?n:i)?(t.style.display=t[Bf]||"",Nf(t)&&(t.style.display=eb(t.tagName))):n||(t[Bf]=jn(t,"display"),t.style.display="none")})},ae.hide=function(){return this.toggle(!1)},ae.show=function(){return this.toggle(!0)};const Hf="___ce",$c=".",Dc={focus:"focusin",blur:"focusout"},Uf={mouseenter:"mouseover",mouseleave:"mouseout"},bb=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function Ic(i){return Uf[i]||Dc[i]||i}function Mc(i){const e=i.split($c);return[e[0],e.slice(1).sort()]}ae.trigger=function(i,e){if(Pt(i)){const[n,s]=Mc(i),r=Ic(n);if(!r)return this;const o=bb.test(r)?"MouseEvents":"HTMLEvents";i=On.createEvent(o),i.initEvent(r,!0,!0),i.namespace=s.join($c),i.___ot=n}i.___td=e;const t=i.___ot in Dc;return this.each((n,s)=>{t&&zs(s[i.___ot])&&(s[`___i${i.type}`]=!0,s[i.___ot](),s[`___i${i.type}`]=!1),s.dispatchEvent(i)})};function Vf(i){return i[Hf]=i[Hf]||{}}function wb(i,e,t,n,s){const r=Vf(i);r[e]=r[e]||[],r[e].push([t,n,s]),i.addEventListener(e,s)}function Wf(i,e){return!e||!_c.call(e,t=>i.indexOf(t)<0)}function Ro(i,e,t,n,s){const r=Vf(i);if(e)r[e]&&(r[e]=r[e].filter(([o,a,l])=>{if(s&&l.guid!==s.guid||!Wf(o,t)||n&&n!==a)return!0;i.removeEventListener(e,l)}));else for(e in r)Ro(i,e,t,n,s)}ae.off=function(i,e,t){if(Ht(i))this.each((n,s)=>{!mt(s)&&!Rs(s)&&!mi(s)||Ro(s)});else if(Pt(i))zs(e)&&(t=e,e=""),Ct(Po(i),(n,s)=>{const[r,o]=Mc(s),a=Ic(r);this.each((l,c)=>{!mt(c)&&!Rs(c)&&!mi(c)||Ro(c,a,o,e,t)})});else for(const n in i)this.off(n,i[n]);return this},ae.remove=function(i){return ss(this,i).detach().off(),this},ae.replaceWith=function(i){return this.before(i).remove()},ae.replaceAll=function(i){return y(i).replaceWith(this),this};function Cb(i,e,t,n,s){if(!Pt(i)){for(const r in i)this.on(r,e,t,i[r],s);return this}return Pt(e)||(Ht(e)||cr(e)?e="":Ht(t)?(t=e,e=""):(n=t,t=e,e="")),zs(n)||(n=t,t=void 0),n?(Ct(Po(i),(r,o)=>{const[a,l]=Mc(o),c=Ic(a),h=a in Uf,d=a in Dc;c&&this.each((f,m)=>{if(!mt(m)&&!Rs(m)&&!mi(m))return;const v=function(b){if(b.target[`___i${b.type}`])return b.stopImmediatePropagation();if(b.namespace&&!Wf(l,b.namespace.split($c))||!e&&(d&&(b.target!==m||b.___ot===c)||h&&b.relatedTarget&&m.contains(b.relatedTarget)))return;let w=m;if(e){let T=b.target;for(;!Ef(T,e);)if(T===m||(T=T.parentNode,!T))return;w=T}Object.defineProperty(b,"currentTarget",{configurable:!0,get(){return w}}),Object.defineProperty(b,"delegateTarget",{configurable:!0,get(){return m}}),Object.defineProperty(b,"data",{configurable:!0,get(){return t}});const x=n.call(w,b,b.___td);s&&Ro(m,c,l,e,v),x===!1&&(b.preventDefault(),b.stopPropagation())};v.guid=n.guid=n.guid||y.guid++,wb(m,c,l,e,v)})}),this):this}ae.on=Cb;function xb(i,e,t,n){return this.on(i,e,t,n,!0)}ae.one=xb;const kb=/\r?\n/g;function Sb(i,e){return`&${encodeURIComponent(i)}=${encodeURIComponent(e.replace(kb,`\r `))}`}const Tb=/file|reset|submit|button|image/i,Kf=/radio|checkbox/i;ae.serialize=function(){let i="";return this.each((e,t)=>{Ct(t.elements||[t],(n,s)=>{if(s.disabled||!s.name||s.tagName==="FIELDSET"||Tb.test(s.type)||Kf.test(s.type)&&!s.checked)return;const r=Lf(s);if(!Ht(r)){const o=No(r)?r:[r];Ct(o,(a,l)=>{i+=Sb(s.name,l)})}})}),i.slice(1)},window.$=y;function qf(i,e){if(i==null)return[i,void 0];typeof e=="string"&&(e=e.split("."));const t=e.join(".");let n=i;const s=[n];for(;typeof n=="object"&&n!==null&&e.length;){let r=e.shift(),o;const a=r.indexOf("[");if(a>0&&a1?s[r-2]:i,e[e.length-1]),o===void 0?t:o}catch{return t}}function an(i,e,t,n){let s;const r=hr(i,e,void 0,o=>{s=o});return typeof r=="function"?r.apply(n??s,t):r}function gi(i){return typeof i=="string"&&i!==""}function $e(i,...e){if(e.length===0)return i;if(e.length===1&&typeof e[0]=="object"&&e[0]){const t=e[0];return Object.keys(t).forEach(n=>{const s=t[n]??"";i=i.replace(new RegExp(`\\{${n}\\}`,"g"),`${s}`)}),i}for(let t=0;t(i[i.B=1]="B",i[i.KB=1024]="KB",i[i.MB=1048576]="MB",i[i.GB=1073741824]="GB",i[i.TB=1099511627776]="TB",i))(Nc||{});function ut(i,e=2,t){return Number.isNaN(i)?"?KB":(t||(i<1024?t="B":i<1048576?t="KB":i<1073741824?t="MB":i<1099511627776?t="GB":t="TB"),(i/Nc[t]).toFixed(e)+t)}const xn=i=>{const e=/^[0-9]*(B|KB|MB|GB|TB)$/;i=i.toUpperCase(),i.endsWith("B")||(i+="B");const t=i.match(e);if(!t)return 0;const n=t[1];return i=i.replace(n,""),Number.parseInt(i,10)*Nc[n]},Hn=i=>i.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");let Ec=(document.documentElement.getAttribute("lang")||"zh_cn").toLowerCase().replace("-","_"),Un;function Gf(){return Ec}function $b(i){Ec=i.toLowerCase().replace("-","_")}function Zf(i,e){Un||(Un={}),typeof i=="string"&&(i={[i]:e??{}}),y.extend(!0,Un,i)}function Me(i,e,t,n,s,r){Array.isArray(i)?Un&&i.unshift(Un):i=Un?[Un,i]:[i],typeof t=="string"&&(r=s,s=n,n=t,t=void 0);const o=s||Ec;let a;for(const l of i){if(!l)continue;const c=l[o]||l.default;if(!c)continue;const h=r&&l===Un?`${r}.${e}`:e;if(a=hr(c,h),a!==void 0)break}return a===void 0?n:t?$e(a,...Array.isArray(t)?t:[t]):a}function Db(i,e,t,n){return Me(void 0,i,e,t,n)}Me.addLang=Zf,Me.getLang=Db,Me.getCode=Gf,Me.setCode=$b,Me.map=Un,Zf({zh_cn:{confirm:"确定",save:"保存",cancel:"取消",delete:"删除",reset:"重置",add:"添加",copy:"复制",close:"关闭",edit:"编辑",open:"打开"},zh_tw:{confirm:"確定",save:"儲存",cancel:"取消",delete:"刪除",reset:"重置",add:"添加",Copy:"複製",close:"關閉",edit:"編輯",open:"打開"},en:{confirm:"Confirm",save:"Save",cancel:"Cancel",delete:"Delete",reset:"Reset",add:"Add",copy:"Copy",close:"Close",edit:"Edit",open:"Open"}});function Fs(i,e,t){t!=null&&(Array.isArray(t)?t.forEach(n=>Fs(i,e,n)):!(t instanceof Blob)&&y.isPlainObject(t)?Object.entries(t).forEach(([n,s])=>{Fs(i,`${e}[${n}]`,s)}):i.append(e,t instanceof Blob?t:String(t)))}function dr(i,e){const t=e||new FormData;return i&&(typeof i=="string"&&(i=new URLSearchParams(i)),i instanceof URLSearchParams?i.forEach((n,s)=>{Fs(t,s,n)}):Array.isArray(i)?i.forEach(([n,s])=>{Fs(t,n,s)}):i instanceof FormData?i.forEach((n,s)=>{Fs(t,s,n)}):typeof i=="object"&&i&&Object.entries(i).forEach(([n,s])=>{Fs(t,n,s)})),t}function Ye(){return y.guid++}function ur(i,e){if(i===e)return!1;if(i&&e){const t=typeof i,n=typeof e;if(t!==n)return!0;if(t==="object"&&n==="object"){const s=Array.isArray(i),r=Array.isArray(e);if(s!==r)return!0;if(s&&r){if(i.length!==e.length)return!0;for(let l=0;ln instanceof Os?n.value!==t[s]:ur(n,t[s])))&&(this._value=this._compute(),this._lastDependencies=e.map(n=>n instanceof Os?n.cache:n)),this._value}}function Ac(...i){const e=[],t=new Map,n=(s,r)=>{if(Array.isArray(s)&&(r=s[1],s=s[0]),!s.length)return;const o=t.get(s);typeof o=="number"?e[o][1]=!!r:(t.set(s,e.length),e.push([s,!!r]))};return i.forEach(s=>{typeof s=="function"&&(s=s()),Array.isArray(s)?Ac(...s).forEach(n):s&&typeof s=="object"?Object.entries(s).forEach(n):typeof s=="string"&&s.split(" ").forEach(r=>n(r,!0))}),e.sort((s,r)=>(t.get(s[0])||0)-(t.get(r[0])||0))}const W=(...i)=>Ac(...i).reduce((e,[t,n])=>(n&&e.push(t),e),[]).join(" ");y.classes=W,y.fn.setClass=function(i,...e){return this.each((t,n)=>{const s=y(n);i===!0?s.attr("class",W(s.attr("class"),...e)):s.addClass(W(i,...e))})};const yi=new WeakMap;function zo(i,e,t){const n=yi.has(i),s=n?yi.get(i):{};typeof e=="string"?s[e]=t:e===null?Object.keys(s).forEach(r=>{delete s[r]}):Object.assign(s,e),Object.keys(s).forEach(r=>{s[r]===void 0&&delete s[r]}),Object.keys(s).length?(!n&&i instanceof Element&&Object.assign(s,y(i).dataset(),s),yi.set(i,s)):yi.delete(i)}function fr(i,e,t){let n=yi.get(i)||{};return t&&i instanceof Element&&(n=Object.assign({},y(i).dataset(),n)),e===void 0?n:n[e]}function Ib(i){yi.delete(i)}y.fn.dataset=y.fn.data,y.fn.data=function(...i){const[e,t]=i;return!i.length||i.length===1&&typeof e=="string"?this.length?fr(this[0],e,!0):void 0:this.each((n,s)=>zo(s,e,t))},y.fn.removeData=function(i=null){return this.each((e,t)=>zo(t,i))};function rs(i,...e){return i.includes("RAWJS")&&(i=i.split('"RAWJS<').join("").split('>RAWJS"').join("").split("").join('"').split("").join(` `)),new Function(`return ${i}`)(...e)}function Fo(i,...e){return i.includes("RAWJS")?rs(i,...e):JSON.parse(i)}function Mb(i){return JSON.stringify(i,(e,t)=>typeof t=="function"?`RAWJS<${t.toString().split('"').join("").split(` -`).join("")}>RAWJS`:t)}function vi(i,e){const t=y(i)[0];if(!t)return;const{prefix:n,getter:s,evalValue:r,json:o=!0,evalArgs:a=[]}={prefix:"z-",...typeof e=="string"?{prefix:e}:e},l=Array.isArray(r)?new Set(r):void 0;return Array.from(t.attributes).reduce((c,h)=>{let{name:d}=h;const{value:f}=h;let m=f;if(d.startsWith(n)){if(d=d.slice(n.length).replace(/-([a-z])/g,v=>v[1].toUpperCase()),s)m=s(d,f);else try{r&&(!l||l.has(d))||r===void 0&&f.includes("RAWJS")?m=rs(f,...a):o&&(m=JSON.parse(f))}catch{}c[d]=m}return c},{})}function Pc(i,e,t="z-"){const n=y(i);Object.keys(e).forEach(s=>{let r=e[s];typeof r=="function"&&(r=`RAWJS<${r}>RAWJS`),typeof r!="string"&&(r=JSON.stringify(r)),s=s.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`),n.attr(`${t}${s}`,r)})}function Nb(...i){var t;const e=i.length;if(!e)return vi(this);if(e===1){const[n]=i;return typeof n=="string"?(t=vi(this))==null?void 0:t[n]:(y.isPlainObject(n)&&Pc(this,n),this)}return Pc(this,{[i[0]]:i[1]}),this}y.fn.z=Nb,y.fn._attr=y.fn.attr,y.fn.extend({attr(...i){const[e,t]=i;return!i.length||i.length===1&&typeof e=="string"?this._attr.apply(this,i):typeof e=="object"?(e&&Object.keys(e).forEach(n=>{const s=e[n];s===null?this.removeAttr(n):this._attr(n,s)}),this):t===null?this.removeAttr(e):this._attr(e,t)}}),y.Event||(y.Event=(i,e)=>{const[t,...n]=i.split("."),s=new Event(t,{bubbles:!0,cancelable:!0});return s.namespace=n.join("."),s.___ot=t,s.___td=e,s});const kn=(i,e)=>new Promise(t=>{const n=window.setTimeout(t,i);e&&e(n)}),Yf={};y.share=Yf;var Oo,Qe,Jf;M.isValidElement=void 0;var js,Xf,Qf,ep,tp,Lc,Rc,zc,pr={},np=[],Eb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mr=Array.isArray;function Vn(i,e){for(var t in e)i[t]=e[t];return i}function Fc(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function g(i,e,t){var n,s,r,o={};for(r in e)r=="key"?n=e[r]:r=="ref"?s=e[r]:o[r]=e[r];if(arguments.length>2&&(o.children=arguments.length>3?Oo.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(r in i.defaultProps)o[r]===void 0&&(o[r]=i.defaultProps[r]);return jo(i,o,n,s,null)}function jo(i,e,t,n,s){var r={type:i,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Jf,__i:-1,__u:0};return s==null&&Qe.vnode!=null&&Qe.vnode(r),r}function me(){return{current:null}}function os(i){return i.children}function le(i,e){this.props=i,this.context=e}function _i(i,e){if(e==null)return i.__?_i(i.__,i.__i+1):null;for(var t;ea&&js.sort(ep),i=js.shift(),a=js.length,i.__d&&(t=void 0,n=void 0,s=(n=(e=i).__v).__e,r=[],o=[],e.__P&&((t=Vn({},n)).__v=n.__v+1,Qe.vnode&&Qe.vnode(t),Oc(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[s]:null,r,s??_i(n),!!(32&n.__u),o),t.__v=n.__v,t.__.__k[t.__i]=t,cp(r,t,o),n.__e=n.__=null,t.__e!=s&&sp(t)));Bo.__r=0}function rp(i,e,t,n,s,r,o,a,l,c,h){var d,f,m,v,b,w,x,T=n&&n.__k||np,I=e.length;for(l=Ab(t,e,T,l,I),d=0;d0?o=i.__k[r]=jo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):i.__k[r]=o,l=r+f,o.__=i,o.__b=i.__b+1,(c=o.__i=Pb(o,t,l,d))!=-1&&(d--,(a=t[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(s>h?f--:sl?f--:f++,o.__u|=4))):i.__k[r]=null;if(d)for(r=0;r(h?1:0)){for(s=t-1,r=t+1;s>=0||r=0?s--:r++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return o}return-1}function ap(i,e,t){e[0]=="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||Eb.test(e)?t:t+"px"}function Uo(i,e,t,n,s){var r,o;e:if(e=="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof n=="string"&&(i.style.cssText=n=""),n)for(e in n)t&&e in t||ap(i.style,e,"");if(t)for(e in t)n&&t[e]==n[e]||ap(i.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(tp,"$1")),o=e.toLowerCase(),e=o in i||e=="onFocusOut"||e=="onFocusIn"?o.slice(2):e.slice(2),i.l||(i.l={}),i.l[e+r]=t,t?n?t.u=n.u:(t.u=Lc,i.addEventListener(e,r?zc:Rc,r)):i.removeEventListener(e,r?zc:Rc,r);else{if(s=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?i.removeAttribute(e):i.setAttribute(e,e=="popover"&&t==1?"":t))}}function lp(i){return function(e){if(this.l){var t=this.l[e.type+i];if(e.t==null)e.t=Lc++;else if(e.t0?i:mr(i)?i.map(hp):Vn({},i)}function Lb(i,e,t,n,s,r,o,a,l){var c,h,d,f,m,v,b,w=t.props||pr,x=e.props,T=e.type;if(T=="svg"?s="http://www.w3.org/2000/svg":T=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),r!=null){for(c=0;c{!t||typeof t!="object"||Object.keys(t).forEach(n=>{let s=t[n];const r=i[n];s!==r&&(r!==void 0&&(n==="className"||n.endsWith("Class")?s=[r,s]:n==="children"?s=[...Ho(r),...Ho(s)]:typeof r=="object"&&(n==="style"||n.endsWith("Style")||n==="attrs"||n.endsWith("Attrs")||n==="props")&&(s=y.extend(r,s))),i[n]=s)})}),i}function Hc(i){return Object.keys(i).forEach(e=>{i[e]===void 0&&delete i[e]}),i}function Vo(i,e=!0){const t=y(i),n=t[0],s="zui-disable-scroll";if(e){if(t.data(s))return;if((t.css("scrollbar-gutter")||"").includes("stable")){t.data(s,{overflow:t.css("overflow")}).css("overflow","hidden");return}const r=n===document.body||t.is("html")?window.innerWidth-document.body.clientWidth:n.offsetWidth-n.clientWidth;if(!r)return;const o=t.css("paddingRight")||"0";t.data(s,{paddingRight:o,overflow:t.css("overflow")}).css({paddingRight:`${r+Number.parseInt(o,10)}px`,overflow:"hidden"})}else{const r=t.data(s);if(!r)return;t.css(r).removeData(s)}}y.fn.disableScroll=function(i=!0){return this.each((e,t)=>{Vo(t,i)})},y.fn.enableScroll=function(i=!0){return this.disableScroll(!i)};function Uc(i,e,t){if(!(t.on||"click").split(" ").includes(e.type))return;const n=t.selector?y(e.target).closest(t.selector):i;if(!n.length)return;const s=c=>c===""?!0:c,r=c=>{if(typeof c=="string")try{c=JSON.parse(c)}catch{}return c};if(s(t.once)){if(t.onceCalled)return;i.dataset("once-called",!0)}if(s(t.prevent)&&e.preventDefault(),s(t.stop)&&e.stopPropagation(),s(t.self)&&e.currentTarget!==e.target)return;const o=[["$element",i],["event",e],["options",t],["$target",n]],a=c=>typeof c=="function"?c(...o):y.runJS(c,...o);if(t.if!==void 0&&!a(t.if))return;const l=t.call;if(l){let c;if(typeof l=="string"?c=/^[$A-Z_][0-9A-Z_$.]*$/i.test(l)?hr(window,l):a(l):c=l,typeof c=="function"){const h=[],d=t.params;t.params=h,typeof d=="string"&&d.length?d[0]==="["?h.push(...r(d)):h.push(...d.split(", ").map(f=>(f=f.trim(),f==="$element"?i:f==="event"?e:f==="options"?t:f.startsWith("$element.")||f.startsWith("event.")||f.startsWith("options.")?a(f):r(f)))):Array.isArray(d)?h.push(...d):h.push(d),c(...h)}}t.do&&a(t.do)}function zb(i){const e=y(this),t=i.type,n=e.attr("zui-on");if(n){const[o,a]=n.split("~").map(l=>l.trim());o&&o.split(" ").includes(t)&&Uc(e,i,y.extend({on:o},a?a.startsWith("{")?rs(a):{do:a}:vi(e,{prefix:"data-",evalValue:["call","if","do"]})))}const s=e.attr(`zui-on-${t}`);s&&Uc(e,i,y.extend({on:t},s.startsWith("{")?rs(s):{do:s}));const r=e.attr("data-on");r&&r.split(" ").includes(t)&&Uc(e,i,vi(e,{prefix:"data-",evalValue:["call","if","do"]}))}function up(i){y(document).off(".zui.global").on(i.map(e=>`${e}.zui.global`).join(" "),`[zui-on],${i.map(e=>`[zui-on-${e}]`)},[data-on]`,zb)}y(()=>{up(["click","change","inited"])});function ls(i,e){if(typeof i=="function")return ls(i(...e||[]));if(typeof i=="number")return[i];let t=i.match(/(\d+)(%|px)?/);return t?[parseInt(t[1]),t[2]]:(t=i.match(/(\d+)\/(\d+)/),t?[100*parseInt(t[1])/parseInt(t[2]),"%"]:[NaN])}function Oe(i,e){if(i==null)return null;const[t,n="px"]=ls(i,e);return Number.isNaN(t)?typeof i=="string"?i:null:`${t}${n}`}async function Wn(i,e){var n,s,r;if(i instanceof Blob){const o=document.createElement("a");return o.href=window.URL.createObjectURL(i),e&&(o.download=decodeURIComponent(e)),o.click(),o.remove(),i}if(i instanceof Response){const o=await i.blob();return e=e||((r=(s=(n=i.headers.get("Content-Disposition"))==null?void 0:n.split(";")[1])==null?void 0:s.split("=")[1])==null?void 0:r.replace(/"/g,"")),Wn(o,e)}const t=await fetch(i);return Wn(t)}class fp{constructor(e){this._$target=y(e)}on(...e){return this._$target.on(...e),this}one(...e){return this._$target.one(...e),this}off(...e){return this._$target.off(...e),this}trigger(...e){return this._$target.trigger(...e),this}}const Sn=new fp(document);y.bus=Sn,y.on=Sn.on.bind(Sn),y.one=Sn.one.bind(Sn),y.off=Sn.off.bind(Sn),y.trigger=Sn.trigger.bind(Sn);var Fb=["Shift","Meta","Alt","Control"],pp=typeof navigator=="object"?navigator.platform:"",mp=/Mac|iPod|iPhone|iPad/.test(pp),Ob=mp?"Meta":"Control",jb=pp==="Win32"?["Control","Alt"]:mp?["Alt"]:[];function Vc(i,e){return typeof i.getModifierState=="function"&&(i.getModifierState(e)||jb.includes(e)&&i.getModifierState("AltGraph"))}function Bb(i){return i.trim().split(" ").map(function(e){var t=e.split(/\b\+/),n=t.pop();return[t=t.map(function(s){return s==="$mod"?Ob:s}),n]})}function gp(i,e){var t;e===void 0&&(e={});var n=(t=e.timeout)!=null?t:1e3,s=Object.keys(i).map(function(a){return[Bb(a),i[a]]}),r=new Map,o=null;return function(a){a instanceof KeyboardEvent&&(s.forEach(function(l){var c=l[0],h=l[1],d=r.get(c)||c;(function(f,m){return!(m[1].toUpperCase()!==f.key.toUpperCase()&&m[1]!==f.code||m[0].find(function(v){return!Vc(f,v)})||Fb.find(function(v){return!m[0].includes(v)&&m[1]!==v&&Vc(f,v)}))})(a,d[0])?d.length>1?r.set(c,d.slice(1)):(r.delete(c),h(a)):Vc(a,a.key)||r.delete(c)}),o&&clearTimeout(o),o=setTimeout(r.clear.bind(r),n))}}function Hb(i,e,t){var n;t===void 0&&(t={});var s=(n=t.event)!=null?n:"keydown",r=gp(e,t);return i.addEventListener(s,r),function(){i.removeEventListener(s,r)}}function Wc(i,e={}){if(!i)return;const t=Object.keys(e).reduce((n,s)=>(e[s].optional||(n[s]={...e[s]}),n),{});return Object.keys(i).forEach(n=>{const s=i[n];s?s===!0?e[n]&&(t[n]={...e[n]}):t[n]=s:delete t[n]}),Object.keys(t).reduce((n,s)=>{const{keys:r,handler:o}=t[s];return typeof r=="string"?n[r]=o:r.forEach(a=>{n[a]=o}),n},{})}function Kc(i,e,t){const{timeout:n,event:s="keydown",scope:r,when:o}=t||{},a=gp(e,{timeout:n}),l=`.zui.hotkeys${r?`.${r}`:""}`,c="zui-hotkeys-composing";return y(i).on(`${s}${l}`,function(h){o&&o(h)===!1||y(h.target).data(c)||a(h)}).on(`compositionstart${l}`,h=>{y(h.target).data(c,!0)}).on(`compositionend${l}`,h=>{y(h.target).removeData(c)})}function qc(i,e){return y(i).off(`.zui.hotkeys${e?`.${e}`:""}`)}const Ub=Hb;y.fn.hotkeys=function(i,e){return Kc(this,i,e)},y.fn.unbindHotkeys=function(i){return qc(this,i)},y.hotkeys=function(i,e){Kc(window,i,e)},y.unbindHotkeys=function(i){qc(window,i)};function Wo(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement}async function yp(i){(typeof i=="string"||i instanceof Element||i instanceof y)&&(i={target:i});const{target:e,onError:t,onSuccess:n,afterExit:s,afterEnter:r}=i,o=y(e),a=o[0];if(!a)return;const l=a.requestFullscreen||a.webkitRequestFullscreen||a.mozRequestFullScreen;if(!l){t==null||t.call(a,new Error("[ZUI] The browser does not support full screen feature."));return}try{await l.call(a),n==null||n.call(a),y(a).off(".zui.fullscreen"),s&&o.on("exitFullscreen.zui.fullscreen",s),r&&o.on("enterFullscreen.zui.fullscreen",r)}catch(c){t==null||t.call(a,c)}document.zuiBindFullscreenChange||(document.zuiBindFullscreenChange=!0,y(document).on("fullscreenchange.zui webkitfullscreenchange.zui mozfullscreenchange.zui",c=>{const h=Wo();let d=h;h?y(h).addClass("is-in-fullscreen"):(d=y(document).find(".is-in-fullscreen")[0]||document,y(d).removeClass("is-in-fullscreen")),y("body").toggleClass("has-in-fullscreen",!!h);const f={event:c,target:d,fullscreenElement:h};y(d).trigger(h?"enterFullscreen":"exitFullscreen",f).trigger("toggleFullscreen",f)}))}async function Ko(i){const e=Wo();return i===!1&&!!e===i?i:e?(document.exitFullscreen(),!1):(await yp(i),!0)}y.fn.fullscreen=function(i){return Ko({target:this,...i})},y.getFullscreenElement=Wo,y.toggleFullscreen=Ko;function Tn(i){return!i||i.parentNode===document?!1:i.parentNode?Tn(i.parentNode):!0}y.isDetached=Tn,y.fn.isDetached=function(){const i=this[0];return!i||Tn(i)};const Bs=class k_{constructor(e,t){var v,b;this._inited=!1,this._autoDestory=0,this._destroyed=!1;const{KEY:n,DATA_KEY:s,MULTI_INSTANCE:r,NAME:o,ATTR_KEY:a,ALL:l,TYPED_ALL:c}=this.constructor;if(!o)throw new Error('[ZUI] The component must have a "NAME" static property.');const h=y(e);if(h.data(n)&&!r)throw new Error(`[ZUI] The component "${o}" has been initialized on element.`);const d=h[0];if(!d)throw new Error(`[ZUI] Invalid selector "${e}" for component "${o}", can not find the element matched.`);const f=Ye();this._gid=f,this._element=d,this.resetOptions(t),this._key=this.options.key??`__${f}`;let m=l.get(d);if(m?m.add(this):(m=new Set([this]),l.set(d,m)),c.has(o)?(v=c.get(o))==null||v.add(this):c.set(o,new Set([this])),h.data(n,this).attr(a,"").attr(s,`${f}`).attr("z-use",[...new Set([...m||[]].map(w=>w.constructor.NAME))].join(",")),r){const w=`${n}:ALL`;let x=h.data(w);x||(x=new Map,h.data(w,x)),x.set(this._key,this)}this.init(),(b=this.options.$onCreate)==null||b.call(this),requestAnimationFrame(async()=>{var x;const{$fetcher:w}=this.options;if(w){const T=await Ee(w,[],{dataType:"js"});if(this.destroyed)return;T&&this.setOptions(T)}this._inited=!0,await this.afterInit(),this.emit("inited",this.options),(x=this.options.$onInited)==null||x.call(this)})}static get ZUI(){return this.NAME.replace(/(^[A-Z]+)/,e=>e.toLowerCase())}static get KEY(){return`zui.${this.NAME}`}static get NAMESPACE(){return`.zui.${this.ZUI}`}static get DATA_KEY(){return`data-zui-${this.NAME}`}static get ATTR_KEY(){return`z-use-${this.NAME}`}static get SELECTOR(){return`[${this.DATA_KEY}]`}get inited(){return this._inited}get destroyed(){return this._destroyed}get element(){if(!this._element)throw new Error("[ZUI] Component element is not available.");return this._element}get key(){return this._key}get options(){if(!this._options)throw new Error("[ZUI] Component options are not available.");return this._options}get gid(){return this._gid}get $element(){return y(this.element)}get $emitter(){return this.$element}get i18nData(){return[this.options.i18n,this.constructor.i18n]}init(){}afterInit(){}render(e,t){this._options=this.setOptions(e,t);const{$class:n,$style:s}=this.options;n&&this.$element.setClass(n),s&&this.$element.css(s)}destroy(){var m;const{KEY:e,DATA_KEY:t,ALL:n,TYPED_ALL:s,NAME:r,MULTI_INSTANCE:o,ATTR_KEY:a}=this.constructor,{$element:l,element:c}=this;if(this.emit("destroyed"),this._destroyed=!0,l.off(this.namespace).removeData(e).removeAttr(a).removeAttr(t),o){const v=this.$element.data(`${e}:ALL`);if(v)if(v.delete(this._key),v.size===0)this.$element.removeData(`${e}:ALL`);else{const b=v.values().next().value;l.data(e,b).attr(t,String(b==null?void 0:b.gid))}}const h=n.get(c);h&&(h.delete(this),h.size===0&&n.delete(c));const d=s.get(r);d&&(d.delete(this),d.size===0&&s.delete(r));const f=n.get(c);f!=null&&f.size?l.attr("z-use",[...new Set([...f].map(v=>v.constructor.NAME))].join(",")):l.removeAttr("z-use"),(m=this.options.$onDestroy)==null||m.call(this)}autoDestroy(e=100){this._autoDestory&&clearTimeout(this._autoDestory),this._autoDestory=window.setTimeout(()=>{this._autoDestory=0,Tn(this.element)&&this.destroy()},e)}setOptions(e,t){if(t){const n={...this.constructor.DEFAULT,...(e==null?void 0:e.$optionsFromDataset)!==!1?this.$element.dataset():{},...e},{$options:s}=n;if(s){const r=typeof s=="function"?s.call(this,this.element,n):s;r&&y.extend(n,r),delete n.$options}this._options=n}else e&&y.extend(this._options,e);if(!this._options)throw new Error("[ZUI] Component options are not available.");return this._options}resetOptions(e){return this.setOptions(e,!0)}emit(e,...t){const n=y.Event(e);return n.__src=this,this.$emitter.trigger(n,[this,...t]),n}on(e,t,n){const s=this;this.$element[n!=null&&n.once?"one":"on"](this._wrapEvent(e),function(r,o){(!r.__src||r.__src===s)&&t.call(this,r,o)})}one(e,t){this.on(e,t,{once:!0})}off(e){this.$element.off(this._wrapEvent(e))}i18n(e,t,n){const{i18nData:s}=this;return Me(s,e,t,n,this.options.lang,this.constructor.NAME)??Me(s,e,t,n,this.options.lang)??`{i18n:${e}}`}get namespace(){return`${this.constructor.NAMESPACE}.${this._key}`}_wrapEvent(e){return e.split(" ").map(t=>t.includes(".")?t:`${t}${this.namespace}`).join(" ")}static get(e,t){const n=y(e);if(this.MULTI_INSTANCE&&t!==void 0){const s=n.data(`${this.KEY}:ALL`);return s?s.get(t):void 0}return n.data(this.KEY)}static isValid(e){return!0}static ensure(e,t){const n=this.get(e,t==null?void 0:t.key);if(n){if(this.isValid(n))return t&&n.setOptions(t),n;n.destroy()}return new this(e,t)}static getAll(e,t){var l;const{SELECTOR:n,ALL:s,TYPED_ALL:r}=this,o=[],a=c=>{c instanceof this&&(!t||t(c)!==!1)&&o.push(c)};return e?y(e).find(n).each((c,h)=>{var d;(d=s.get(h))==null||d.forEach(a)}):this!==k_?(l=r.get(this.NAME))==null||l.forEach(a):s.forEach(c=>{c.forEach(a)}),o.sort((c,h)=>c.gid-h.gid)}static query(e,t,n){return e===void 0?this.getAll(void 0,n).pop():this.get(y(e).closest(this.SELECTOR),t)}static defineFn(e){let t=e||this.ZUI;y.fn[t]&&(t=`zui${this.NAME}`);const n=this;y.fn.extend({[t](s,...r){const o=typeof s=="object"?s:void 0,a=typeof s=="string"?s:void 0;let l;return this.each((c,h)=>{let d=n.get(h);if(d)o&&d.render(o);else{if(a)return;d=new n(h,o)}if(a){let f=d[a],m=d;f===void 0&&(m=d.$,f=m[a]),typeof f=="function"?l=f.call(m,...r):l=f}}),l!==void 0?l:this}})}static register(e,t){var s,r;e=e||this,t=(t??e.NAME).toLowerCase(),this.map.set(t,e);const n=(r=(s=e.toggle)==null?void 0:s.name)==null?void 0:r.toLowerCase();n&&n!==t&&this.toggleMap.set(n,e)}};Bs.DEFAULT={},Bs.MULTI_INSTANCE=!1,Bs.ALL=new Map,Bs.TYPED_ALL=new Map,Bs.map=new Map,Bs.toggleMap=new Map;let Ge=Bs;function gr(i){return Ge.map.get(i.toLowerCase())}function qo(i,e,t={}){let n=typeof i=="function"?i:gr(i);if(n||(n=Gc(i)),!n)return null;const{$update:s,...r}=t;if(!n.MULTI_INSTANCE){const o=n.get(e);if(o)return s&&o.render(r,s==="reset"),o}return new n(e,r)}function vp(i,e,t={}){requestAnimationFrame(()=>qo(i,e,t))}function _p(i,e){Ge.register(i,e)}function Gc(i){const{zui:e}=window;if(e){i=i==null?void 0:i.toLowerCase();for(const t in e){const n=t.toLowerCase()===i;if(i&&!n)continue;const s=e[t];if(!(typeof s!="function"||!s.NAME||!s.ZUI)&&(Ge.map.has(t.toLowerCase())||_p(s),n))return s}}}function Vb(i){var e;i?(e=gr(i))==null||e.defineFn():window._zuiDefined||(Gc(),Ge.map.forEach(t=>{t.defineFn()}),Object.assign(window,{_zuiDefined:!0}))}function Wb(i,e={}){const t=y(i);let n=t.attr("zui-create");const{update:s,onCreate:r}=e,o=(a,l)=>{if(l={$update:s,$optionsFromDataset:!1,...l},r){const h=r(a,l);if(h===!1)return;h&&(l=h)}const c=l.$lib;if(c){delete l.$lib,y.getLib(c).then(()=>vp(a,i,l));return}vp(a,i,l)};if(typeof n=="string"){n=n.trim();const a=n.length?n.split(",").map(h=>h.trim()):[],l=vi(i,{prefix:"zui-create-",evalValue:!0})||{},c=Object.keys(l);if(!c.length&&a.length===1)o(a[0],t.dataset());else{const h=new Set;[...a,...c].forEach(d=>{if(h.has(d))return;const f=l[d];o(d,f),delete l[d],h.add(d)})}}else{const a=t.dataset(),l=a==null?void 0:a.zui;if(!l)return;console.warn("[ZUI] create component instance with [data-zui] is deprecated, use [zui-create] instead.",{element:i,options:e}),a==null||delete a.zui,o(l,a)}}function Kb(){y(document).on("click.zui.toggle mouseenter.zui.toggle","[data-toggle],[zui-toggle]",function(i){const e=y(this),t=e.dataset("toggle")||e.attr("zui-toggle");if(!t)return;const n=Ge.toggleMap.get(t)||gr(t),s=n==null?void 0:n.toggle;if(!s)return;const{trigger:r="click",skip:o="[disabled],.disabled",check:a}=s,l=i.type==="mouseover"?"hover":"click";if(!r.includes(l)||a&&!a.call(n,this,l,i)||o&&e.is(o))return;const{onGet:c,onCreate:h,setOptions:d=!0,getOptions:f,prevent:m=!0,handler:v,onToggle:b,convertHref:w}=s;let x=e.dataset();const T=e.attr(`zui-toggle-${t}`);if(T&&(x=y.extend(x,rs(T))),w&&e.is("a")){const N=e.attr("href");if(N){const P=w===!0?{selector:"target",url:"url"}:w;"#.".includes(N[0])?P.selector&&x[P.selector]===void 0&&(x[P.selector]=N):P.url&&x[P.url]===void 0&&(x[P.url]=N)}}if(f&&(x=f.call(n,this,x,i)),v){v.call(n,this,x,l,i),m&&i.preventDefault();return}let I=c?c.call(n,this):n.get(this);if(I)d&&I.setOptions(x);else{const N=h?h.call(n,this,i,x):new n(this,x);if(!N)return;I=N}if(b){if(b.call(n,I,this,i)===!1)return}else{const{shown:N,show:P,hide:z,toggle:V}=I;let J;if(V?J=V:P&&z?N?J=z:J=P:P&&(J=P),J)J.call(I);else return}m&&i.preventDefault()})}function qb(i,e){const t=fr(i),n=[];return Object.keys(t).forEach(s=>{if(!s.startsWith("zui."))return;const r=t[s];(e==null?void 0:e(r,s))!==!1&&n.push(t[s])}),n}let Go=0;function bp(i=100){if(Go&&clearTimeout(Go),i){Go=window.setTimeout(()=>bp(0),i);return}Go=0,Ge.ALL.forEach(e=>{e.forEach(t=>!t.options.$notDestroyOnDetach&&t.autoDestroy())})}function Gb(){if(!document.body||fr(document.body,"_autoDestoryMob"))return;const i=new MutationObserver(e=>{let t=!1;for(const n of e)if(n.removedNodes.length){t=!0;break}t&&bp()});i.observe(document.body,{childList:!0,subtree:!0}),zo(document.body,"_autoDestoryMob",i)}function Zc(i,e){const t=y(i);t.find("[zui-create],[data-zui]").each(function(){var n;((n=e==null?void 0:e.beforeCreate)==null?void 0:n.call(e,this))!==!1&&Wb(this,e)}),t.find("[zui-init]").each(function(){if(this.hasAttribute("z-zui-inited"))return;this.setAttribute("z-zui-inited","");const n=this.getAttribute("zui-init");n&&y.runJS(n,["$element",y(this)])}),t.find(".hide-before-init").removeClass("invisible hidden opacity-0"),t.find(".scroll-into-view").scrollIntoView(),t.find('[data-on="inited"],[zui-on-inited]').each((n,s)=>{const r=y(s);r.zui()||r.trigger("inited")}),e!=null&&e.runJS&&t.runJS()}y.fn.zuiInit=function(i){return Zc(this,i),this},y.fn.zui=function(i,e){const t=this[0];if(!t)return;if(typeof i!="string"){const s={};let r;return qb(t,(o,a)=>{s[a]=o,(!r||r.gid1?t[0]:void 0,s=t[t.length>1?1:0],r=y(this).zui(n),o=r==null?void 0:r[s];typeof o=="function"&&o.apply(r,e)}),this},y(()=>{y("body").zuiInit({update:!0}),Kb(),Gb()});class Zo extends Ge{get $targets(){const{$element:e}=this,{targets:t}=this.options;return t?e.find(t):e}_handleScroll(e,t,n){const{offset:s=1}=this.options,r=this.$targets,o=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:l}=e;r.each((c,h)=>{const d=h.getBoundingClientRect(),f=t==="top"&&a>0&&d.top<=o.top+s||t==="bottom"&&d.bottom>=o.bottom-s||t==="left"&&l>0&&d.left<=o.left+s||t==="right"&&l{this._raf&&cancelAnimationFrame(this._raf),this._raf=requestAnimationFrame(()=>{this._raf=0,this._handleScroll(l,t,s)})};this._scrollListener=c,l.addEventListener("scroll",c)}this._container=l,requestAnimationFrame(()=>{this._handleScroll(l,t,s)})}else this._ob=new IntersectionObserver(l=>{l.forEach(c=>{c.target.classList.toggle(s,c.intersectionRatiothis._ob.observe(c))}destroy(){var e;(e=this._ob)==null||e.disconnect(),this._container&&(this._container.removeEventListener("scroll",this._scrollListener),this._raf&&cancelAnimationFrame(this._raf))}}Zo.NAME="Sticky";const bi=24*60*60*1e3,et=i=>i===void 0?new Date:(i instanceof Date||(typeof i=="string"&&(i=i.trim(),/^\d+$/.test(i)&&(i=Number.parseInt(i,10))),typeof i=="number"&&i<1e10&&(i*=1e3),i=new Date(i)),i),wp=(i,e,t="day")=>{if(typeof e=="string"){const n=Number.parseInt(e,10);t=e.replace(n.toString(),""),e=n}return i=new Date(et(i).getTime()),t==="month"?i.setMonth(i.getMonth()+e):t==="year"?i.setFullYear(i.getFullYear()+e):t==="week"?i.setDate(i.getDate()+e*7):t==="hour"?i.setHours(i.getHours()+e):t==="minute"?i.setMinutes(i.getMinutes()+e):t==="second"?i.setSeconds(i.getSeconds()+e):i.setDate(i.getDate()+e),i},cs=(i,e=new Date)=>et(i).toDateString()===et(e).toDateString(),yr=(i,e=new Date)=>et(i).getFullYear()===et(e).getFullYear(),Yo=(i,e=new Date)=>(i=et(i),e=et(e),i.getFullYear()===e.getFullYear()&&i.getMonth()===e.getMonth()),Zb=(i,e=new Date)=>{i=et(i),e=et(e);const t=1e3*60*60*24,n=Math.floor(i.getTime()/t),s=Math.floor(e.getTime()/t);return Math.floor((n+4)/7)===Math.floor((s+4)/7)},Cp=(i,e)=>cs(et(e),i),xp=(i,e)=>cs(et(e).getTime()-bi,i),Yb=(i,e)=>cs(et(e).getTime()+bi,i),Yc=i=>i!=null&&!isNaN(et(i).getTime()),st=(i,e="yyyy-MM-dd hh:mm",t="")=>{if(i=et(i),!Yc(i))return t;if(typeof e=="function")return e(i);const n={"M+":i.getMonth()+1,"d+":i.getDate(),"h+":i.getHours(),"H+":i.getHours()%12,"m+":i.getMinutes(),"s+":i.getSeconds(),"S+":i.getMilliseconds()};return/(y+)/i.test(e)&&(e.includes("[yyyy-]")&&(e=e.replace("[yyyy-]",yr(i)?"":"yyyy-")),e=e.replace(RegExp.$1,`${i.getFullYear()}`.substring(4-RegExp.$1.length))),Object.keys(n).forEach(s=>{if(new RegExp(`(${s})`).test(e)){const r=`${n[s]}`;e=e.replace(RegExp.$1,RegExp.$1.length===1?r:`00${r}`.substring(r.length))}}),e},Jb=(i,e,t)=>{const n={full:"yyyy-M-d",month:"M-d",day:"d",str:"{0} ~ {1}",...t},s=st(i,yr(i)?n.month:n.full);if(cs(i,e))return s;const r=st(e,yr(i,e)?Yo(i,e)?n.day:n.month:n.full);return n.str.replace("{0}",s).replace("{1}",r)};function Jc(i){let e=0;if(typeof i!="string"&&(i=String(i)),i&&i.length)for(let t=0;t{try{a.includes("%")&&(a=decodeURIComponent(a)),a=JSON.parse(a)}catch{}return[o,a]})),params:n.map(o=>{if(o!=="undefined"){if(o==="null")return null;try{return o.includes("%")&&(o=decodeURIComponent(o)),JSON.parse(o)}catch{return o}}})}}function kp(i){if(Array.isArray(i))return{commands:i.map(Jo).filter(Boolean)};if(typeof i=="object")return i;i=i.replace(/^#!?/,"");const e=i.includes(">"),t=i.split(e?">":"|").map(Jo);return{async:e,commands:t.filter(Boolean)}}function Xc(i,e,t){if(typeof i=="string"&&(i=Jo(i)),!i)return;const{execute:n,event:s,scope:r}=e;if(!(r&&i.scope&&i.scope!==r))return n({name:i.name,options:{...e.options,...i.options},event:s,scope:i.scope,prevResult:t},i.params)}async function Qc(i,e){const{async:t,commands:n}=kp(i);if(!n.length)return[];const{signal:s}=e;if(t){const o=[];let a;for(const l of n){if(!(s!=null&&s.aborted))break;a=await Xc(l,e,a),s!=null&&s.aborted&&(a=void 0),o.push(a)}return o}return await Promise.all(n.map(o=>{if(!(s!=null&&s.aborted))return Xc(o,e)}))}const wi="zui.commands",Ci="z-commands",eh="zui-commands-proxy",Sp="zui-command",Xo={};function Tp(i,e){typeof i=="string"&&e?Xo[i]=e:typeof i=="object"&&Object.assign(Xo,i)}function xi(i,e){typeof e=="string"?e={scope:e}:typeof e=="function"&&(e={onCommand:e});const{scope:t="",events:n="click"}=e??{},s=y(i),r=(s.attr(Ci)||"").split(",");t&&!r.includes(t)&&r.push(t),s.attr(Ci,r.join(",")).data(wi,{[t]:{...e,scope:t,events:n,gid:Ye()},...s.data(wi)})}function vr(i,e=!0){const t=y(i);if(e===!0)t.removeAttr(Ci),t.removeData(wi);else if(e.length){const n=t.data(wi)||{};e.split(",").forEach(r=>{delete n[r]});const s=Object.keys(n);s.length?t.attr(Ci,s.join(",")).data(wi,xi):vr(t,!0)}}function $p(i,e){let t=i.closest(`[${Ci}],[${eh}]`).first();if(t.attr(eh)!==void 0&&(t=y(t.data("zui.commandProxy")||t.attr(eh)).closest(`[${Ci}]`)),!t.length)return;const n=t.data(wi)||{},s=Object.values(n).sort((o,a)=>a.gid-o.gid);let r;return e!=null&&e.length?(r=s.find(o=>o.scope===e),r||(r=s.find(o=>{var a;return!((a=o.scope)!=null&&a.length)&&!o.scoped})),r):(r=s.find(o=>{var a;return!((a=o.scope)!=null&&a.length)&&!o.scoped}),r||(r=s.find(o=>!o.scoped)),r?r.element=t[0]:r=$p(i.parent(),e),r)}function Xb(i){if(!i.currentTarget)return;const e=y(i.currentTarget);if(e.closest(".disabled,[disabled]").length)return;const t=e.attr(Sp)||(e.is('a[href^="#!"]')?e.attr("href"):"");if(!t)return;const n=new AbortController,s=()=>n.abort();Qc(t,{signal:n.signal,execute:(r,o)=>{const{scope:a,name:l}=r,c={...r,abort:s};let h;const d=$p(e,a);if(d){c.element=d.element;const m=(d.commands?d.commands[`${a}~${l}`]||d.commands[l]:null)||d.onCommand;if(m&&(h=m(c,o),i.commandHandled))return h}const f=[c,o];if(e.trigger("command",f).trigger(`command:${a?`${l}.${a}`:l}`,f),a&&e.trigger(`command:.${a}`,f),i.commandHandled)return h;if(a==="event"){l==="stop"?i.stopPropagation():l==="prevent"?i.preventDefault():an(i,l,o);return}if(a!=null&&a.startsWith(".")){let m;if(a===".")m=e.closest("[z-use]").zui();else{const v=a.substring(1);m=e.closest(`[z-use-${v}]`).zui(v)}if(m)return an(m,l,o);console.warn(`[ZUI] Command "${l}" not found in scope "${a}".`);return}return a==="window"?an(window,l,o):a==="zui"?an(window.zui,l,o):a==="target"?an(e[0],l,o):a==="$target"?an(e,l,o):a==="$"?an(y,l,o):a===""&&Xo[l]!==void 0?Xo[l](c,o):h},event:i})}y.fn.command=function(i,e){return this.on(`command:${i}`,e)},y.fn.offCommand=function(i,e){return this.off(`command:${i}`,e)},y.fn.commands=function(i){return this.each((e,t)=>xi(t,i)),this},y.fn.unbindCommands=function(i){return this.each((e,t)=>vr(t,i)),this},y(()=>{y(document).on("click.zui.command",`[${Sp}],a[href^="#!"]`,Xb)});function _r(i,e,t=!1){var s;const n=y(i);if(e!==void 0){if(typeof e=="string"&&e.length){const r=`zui-runjs-${Ye()}`;n.append(`