<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SecurityLog extends Model
{
    protected $fillable = ['user_id', 'ip_address', 'device', 'location', 'login_time', 'status'];

    protected function casts(): array
    {
        return ['login_time' => 'datetime'];
    }

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
