35 lines
701 B
PHP
35 lines
701 B
PHP
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\common\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class UserBaseModel extends Model
|
|
{
|
|
// 表名
|
|
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',
|
|
'status' => 'int',
|
|
'created_at' => 'datetime',
|
|
'updated_at' => 'datetime',
|
|
];
|
|
}
|