12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace App\Http\Models;
- use Eloquent;
- use Illuminate\Database\Eloquent\Builder;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Support\Carbon;
- /**
- * 用户登录日志
- * Class UserLoginLog
- *
- * @package App\Http\Models
- * @mixin Eloquent
- * @property int $id
- * @property int $user_id
- * @property string $ip
- * @property string $country
- * @property string $province
- * @property string $city
- * @property string $county
- * @property string $isp
- * @property string $area
- * @property Carbon $created_at
- * @property Carbon $updated_at
- * @property-read User $user
- * @method static Builder|UserLoginLog newModelQuery()
- * @method static Builder|UserLoginLog newQuery()
- * @method static Builder|UserLoginLog query()
- * @method static Builder|UserLoginLog whereArea($value)
- * @method static Builder|UserLoginLog whereCity($value)
- * @method static Builder|UserLoginLog whereCountry($value)
- * @method static Builder|UserLoginLog whereCounty($value)
- * @method static Builder|UserLoginLog whereCreatedAt($value)
- * @method static Builder|UserLoginLog whereId($value)
- * @method static Builder|UserLoginLog whereIp($value)
- * @method static Builder|UserLoginLog whereIsp($value)
- * @method static Builder|UserLoginLog whereProvince($value)
- * @method static Builder|UserLoginLog whereUpdatedAt($value)
- * @method static Builder|UserLoginLog whereUserId($value)
- */
- class UserLoginLog extends Model
- {
- protected $table = 'user_login_log';
- protected $primaryKey = 'id';
- function user()
- {
- return $this->hasOne(User::class, 'id', 'user_id');
- }
- }
|