修改数据迁移、Base、和版本参数获取,增加index控制器初始化

This commit is contained in:
巴掌 committed 2018-10-12 15:07:31 +08:00
1 parent 7ab5bbdd8b
commit e70b4b120b
10 files changed
+136 -44

No files matched your search

+10 -2
View File
@@ -2,10 +2,18 @@
namespace app\common\model;
// 引用模型类
use think\Model;
// 引用软删除类
use think\model\concern\SoftDelete;
class Base extends Model
{
//开启自动时间戳
protected $autoWriteTimestamp = false;
// 开启全局自动时间戳
protected $autoWriteTimestamp = true;
// 开启软删除
use SoftDelete;
protected $deleteTime = 'delete_time';
}