<?php
declare (strict_types = 1);

namespace app\common\model;

/**
 * 用户模型
 * @mixin \think\Model
 */
class SysUserBaseModel extends BaseModel
{
    // 表名
    protected $name = 'sys_user';

    // 主键
    protected $pk = 'id';
    
    // 字段信息
    protected $schema = [
        'id'             => 'int',
        'username'       => 'string',
        'password'       => 'string',
        'salt'           => 'string',
        'role_id'        => 'int',
        'nickname'       => 'string',
        'avatar'         => 'string',
        'mobile'         => 'string',
        'email'          => 'string',
        'delete_disable' => 'int',
        'status'         => 'int',
        'created_at'     => 'datetime',
        'updated_at'     => 'datetime',
        'deleted_at'     => 'datetime',
    ];
}
