<?php

namespace App\Models;

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

class Episode extends Model
{
    use HasFactory;
    protected $fillable = ['title', 'description', 'season', 'link', 'status', 'home'];

    public function numberSeason(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(Season::class,'id','season');
    }
}
