<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Visit extends Model
{
    use HasFactory;

    protected $fillable = [
        'session_id',
        'path',
        'route_name',
        'referer',
        'referrer_host',
        'ip_hash',
        'device_type',
        'user_agent',
        'country_code',
        'country_name',
        'traffic_source',
        'traffic_medium',
        'traffic_campaign',
        'visited_at',
    ];

    protected $casts = [
        'visited_at' => 'datetime',
    ];
}
