<?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 CandidateProgram extends Model
{
    use HasUuid, SoftDeletes;

    protected $table = 'candidate_programs';

    protected $fillable = [
        'candidate_id',
        'judul_program',
        'deskripsi',
        'urutan',
    ];

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