| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace App\Http\Models;
- use Eloquent;
- use Illuminate\Database\Eloquent\Builder;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Support\Carbon;
- /**
- * 用户登录日志
- *
- * @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|null $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)
- * @mixin Eloquent
- */
- class UserLoginLog extends Model {
- protected $table = 'user_login_log';
- protected $primaryKey = 'id';
- function user() {
- return $this->hasOne(User::class, 'id', 'user_id');
- }
- }
|