<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class JadwalSholatKoreksi extends Model
{
    protected $fillable = [
        'masjid_id',
        'imsak',
        'subuh',
        'syuruq',
        'dzuhur',
        'ashar',
        'maghrib',
        'isya',
    ];

    protected $casts = [
        'imsak' => 'integer',
        'subuh' => 'integer',
        'syuruq' => 'integer',
        'dzuhur' => 'integer',
        'ashar' => 'integer',
        'maghrib' => 'integer',
        'isya' => 'integer',
    ];

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