catchAdmin/extend/catcher/base/CatchModel.php
2019-12-11 20:59:59 +08:00

29 lines
546 B
PHP

<?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 = 'created_at';
protected $updateTime = 'updated_at';
protected $deleteTime = 'deleted_at';
protected $autoWriteTimestamp = true;
protected $limit = 10;
// 开启
public const ENABLE = 1;
// 禁用
public const DISABLE = 2;
}