
DROP TABLE IF EXISTS `__PREFIX__build_local`;
CREATE TABLE `__PREFIX__build_local` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL DEFAULT '' COMMENT '用户',
  `type` varchar(30) NOT NULL DEFAULT '' COMMENT '类型',
  `note` varchar(200) NOT NULL DEFAULT '' COMMENT '说明',
  `ip` varchar(50) NOT NULL DEFAULT '' COMMENT 'IP',
  `logtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:0失败,1成功',
  PRIMARY KEY (`id`),
  KEY `username` (`username`),
  KEY `type` (`type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='简捷构建日志';

DROP TABLE IF EXISTS `__PREFIX__build_veitool`;
CREATE TABLE `__PREFIX__build_veitool` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL DEFAULT '' COMMENT '构建标识名称',
  `username` varchar(30) NOT NULL DEFAULT '' COMMENT '用户',
  `type` varchar(30) NOT NULL DEFAULT '' COMMENT '类型',
  `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
  `db_table` varchar(30) NOT NULL DEFAULT '' COMMENT '数据表名',
  `app_dir` varchar(30) NOT NULL DEFAULT '' COMMENT '应用目录',
  `sub_dir` varchar(30) NOT NULL DEFAULT '' COMMENT '子级目录',
  `ip` varchar(50) NOT NULL DEFAULT '' COMMENT 'IP',
  `logtime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:0失败,1成功',
  PRIMARY KEY (`id`),
  KEY `username` (`username`),
  KEY `type` (`type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微库构建日志';