<?php

namespace App\Modules\Pilkades\Models;

use App\Core\Concerns\HasUuid;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class CandidateVideo extends Model
{
    use HasUuid, SoftDeletes;

    protected $table = 'candidate_videos';

    protected $fillable = [
        'candidate_id',
        'judul',
        'url_video',
        'thumbnail',
        'urutan',
    ];

    public function candidate(): BelongsTo
    {
        return $this->belongsTo(Candidate::class);
    }
}
