重新整理代码teach、phinx

This commit is contained in:
巴掌 committed 2020-03-20 21:07:18 +08:00
1 parent dd1644a3c4
commit c033a24084
80 files changed
+2666 -1248

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace app;
// 引用模型类
use think\Model;
// 引用软删除类
use think\model\concern\SoftDelete;
class BaseModel extends Model
{
// 开启全局自动时间戳
protected $autoWriteTimestamp = true;
// 开启软删除
use SoftDelete;
protected $deleteTime = 'delete_time';
}