catchAdmin/extend/catcher/base/CatchModel.php
2020-06-21 10:50:05 +08:00

37 lines
719 B
PHP

<?php
namespace catcher\base;
use catcher\CatchQuery;
use catcher\traits\db\BaseOptionsTrait;
use catcher\traits\db\TransTrait;
use think\model\concern\SoftDelete;
use catcher\traits\db\ScopeTrait;
/**
*
* @mixin CatchQuery
* Class CatchModel
* @package catcher\base
*/
abstract class CatchModel extends \think\Model
{
use SoftDelete, TransTrait, BaseOptionsTrait, ScopeTrait;
protected $createTime = 'created_at';
protected $updateTime = 'updated_at';
protected $deleteTime = 'deleted_at';
protected $defaultSoftDelete = 0;
protected $autoWriteTimestamp = true;
public const LIMIT = 10;
// 开启
public const ENABLE = 1;
// 禁用
public const DISABLE = 2;
}