<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VideoSource extends Model
{
    protected $fillable = [
        'episode_id', 'label', 'url', 'type', 'quality',
        'translator_id', 'sort_order', 'is_default', 'source',
        'is_hevc', 'hevc_checked_at',
    ];

    protected $casts = [
        'is_default'      => 'boolean',
        'is_hevc'         => 'boolean',
        'hevc_checked_at' => 'datetime',
    ];

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