<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class FirstWatchSession extends Model
{
    public $timestamps = false;

    protected $fillable = ['episode_id', 'user_id', 'session_id', 'is_first_time', 'last_seen'];

    protected $casts = ['is_first_time' => 'boolean', 'last_seen' => 'datetime'];

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