<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AbsensiSession extends Model
{
    protected $fillable = ['jadwal_kuliah_id', 'pertemuan', 'token', 'expired_at', 'is_closed'];

    protected $casts = [
        'expired_at' => 'datetime',
        'is_closed' => 'boolean',
    ];

    public function jadwalKuliah()
    {
        return $this->belongsTo(JadwalKuliah::class);
    }
}
