init
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace app\model;
|
||||
|
||||
use support\Model;
|
||||
|
||||
/**
|
||||
* WaRules 模型
|
||||
* 表说明:权限规则
|
||||
* 对应数据表:wa_rules
|
||||
* @property string $id id 主键(非空,主键)
|
||||
* @property string $title title 标题(非空)
|
||||
* @property string $icon icon 图标
|
||||
* @property string $key key 标识(非空)
|
||||
* @property string $pid pid 上级菜单(默认值:0)
|
||||
* @property string $created_at created_at 创建时间(非空)
|
||||
* @property string $updated_at updated_at 更新时间(非空)
|
||||
* @property string $href href url
|
||||
* @property int $type type 类型(非空,默认值:1)
|
||||
* @property int $weight weight 排序(默认值:0)
|
||||
*/
|
||||
class WaRules extends Model
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'wa_rules';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
* @var string
|
||||
*/
|
||||
protected $pk = 'id';
|
||||
|
||||
/**
|
||||
* 关闭自动时间戳(如需开启请改为 true,需确保表有 create_time/update_time 字段)
|
||||
* @var bool
|
||||
*/
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
/**
|
||||
* 字段严格检查(false=允许操作未定义字段)
|
||||
* @var bool
|
||||
*/
|
||||
protected $strict = false;
|
||||
}
|
||||
Reference in New Issue
Block a user