<?php
declare (strict_types = 1);

namespace app\common\model;

/**
 * 菜单模型
 * @mixin \think\Model
 */
class SysMenuBaseModel extends BaseModel
{
    // 表名
    protected $name = 'sys_menu';

    // 主键
    protected $pk = 'id';

    // 字段信息
    protected $schema = [
        'id'         => 'int',
        'pid'        => 'int',
        'title'      => 'string',
        'name'       => 'string',
        'path'       => 'string',
        'icon'       => 'string',
        'redirect'   => 'string',
        'component'  => 'string',
        'hidden'     => 'int',
        'actived'    => 'int',
        'keep_alive' => 'int',
        'sort'       => 'int',
        'status'     => 'int',
        'created_at' => 'int',
        'updated_at' => 'int',
        'deleted_at' => 'int',
    ];
}
