<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RealityCheck extends Model
{
    protected $fillable = [
        'user_id', 'session_start', 'last_check_at',
        'session_bets', 'session_wins', 'check_interval_minutes',
    ];
    protected $casts = [
        'session_start' => 'datetime',
        'last_check_at' => 'datetime',
        'session_bets' => 'float',
        'session_wins' => 'float',
    ];

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