30 lines
541 B
PHP
30 lines
541 B
PHP
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\admin\model\v1;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class UserLoginLogModel extends Model
|
|
{
|
|
// 表名
|
|
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',
|
|
];
|
|
}
|