扩展功能
This commit is contained in:
20
extend/catcher/base/BaseModel.php
Normal file
20
extend/catcher/base/BaseModel.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace catcher\base;
|
||||
|
||||
use catcher\traits\db\BaseOptionsTrait;
|
||||
use catcher\traits\db\TransTrait;
|
||||
use think\model\concern\SoftDelete;
|
||||
|
||||
abstract class BaseModel extends \think\Model
|
||||
{
|
||||
use SoftDelete;
|
||||
use TransTrait;
|
||||
use BaseOptionsTrait;
|
||||
|
||||
protected $createTime = 'create_at';
|
||||
|
||||
protected $updateTime = 'update_at';
|
||||
|
||||
protected $deleteTime = 'delete_at';
|
||||
|
||||
}
|
Reference in New Issue
Block a user