<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class EpisodeVote extends Model
{
    public $timestamps = false;

    protected $fillable = ['user_id', 'episode_id', 'vote', 'created_at'];

    protected $casts = ['created_at' => 'datetime', 'vote' => 'integer'];

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