refactor: 修改model
This commit is contained in:
@@ -3,27 +3,12 @@ declare (strict_types = 1);
|
||||
|
||||
namespace app\admin\model\v1;
|
||||
|
||||
use think\Model;
|
||||
use app\common\model\UserLoginLogBaseModel;
|
||||
|
||||
/**
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class UserLoginLogModel extends Model
|
||||
class UserLoginLogModel extends UserLoginLogBaseModel
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'sys_user_login_log';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'user_id' => 'int',
|
||||
'ip' => 'string',
|
||||
'user_agent' => 'string',
|
||||
'message' => 'string',
|
||||
'status' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user