<?php
declare (strict_types = 1);

namespace app\common\model;

/**
 * 角色模型
 * @mixin \think\Model
 */
class SysRoleBaseModel extends BaseModel
{
    // 数据表名
    protected $name = 'sys_role';

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

    // 字段信息
    protected $schema = [
        'id'         => 'int',
        'pid'        => 'int',
        'name'       => 'string',
        'desc'       => 'string',
        'is_system'  => 'int',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
        'deleted_at' => 'datetime',
    ];
}
