60 lines
1.1 KiB
PHP
60 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
use support\Model;
|
|
|
|
/**
|
|
* user_token_log 用户token登录日志
|
|
* @property integer $id (主键)
|
|
* @property integer $user_id
|
|
* @property string $token
|
|
* @property string $login_ip
|
|
* @property string $user_agent
|
|
* @property integer $login_time
|
|
* @property integer $expired_at
|
|
* @property integer $is_valid 1有效 0已拉黑
|
|
*/
|
|
class UserTokenLog extends Model
|
|
{
|
|
/**
|
|
* The connection name for the model.
|
|
*
|
|
* @var string|null
|
|
*/
|
|
protected $connection = 'mysql';
|
|
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'user_token_log';
|
|
|
|
/**
|
|
* The primary key associated with the table.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'id';
|
|
|
|
/**
|
|
* Indicates if the model should be timestamped.
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $timestamps = false;
|
|
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'token',
|
|
'login_ip',
|
|
'user_agent',
|
|
'login_time',
|
|
'expired_at',
|
|
'is_valid',
|
|
'system_code'
|
|
];
|
|
}
|