modified 修改数据模型,完善sql文件

This commit is contained in:
zhaoxiang 2016-11-30 00:48:05 +08:00
parent 81d0ff6739
commit 2fc263fab7
2 changed files with 3 additions and 2 deletions

View File

@ -11,4 +11,5 @@ namespace app\admin\model;
class Keys extends Base {
protected $autoWriteTimestamp = true;
protected $createTime = 'addTime';
protected $updateTime = false;
}

View File

@ -181,8 +181,8 @@ CREATE TABLE `keys` (
`description` varchar(50) NOT NULL DEFAULT '' COMMENT '当前Key的备注',
`accessKey` varchar(64) NOT NULL DEFAULT '' COMMENT '公钥',
`secretKey` varchar(64) NOT NULL DEFAULT '' COMMENT '私钥',
`appId` int(11) NOT NULL COMMENT '适配App的ID',
`filterId` int(11) NOT NULL COMMENT '适配过滤组的ID',
`appId` int(11) NOT NULL DEFAULT '0' COMMENT '适配App的ID',
`filterId` int(11) NOT NULL DEFAULT '0' COMMENT '适配过滤组的ID',
`addTime` int(10) NOT NULL DEFAULT '0' COMMENT '创建时间戳',
`status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '秘钥状态',
PRIMARY KEY (`id`)