<?php

namespace App\Models;

use CodeIgniter\Model;

class KelulusanModel extends Model
{
    protected $table      = 'kelulusan';
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'tahun',
        'nisn',
        'nama',
        'kelas',
        'status',
        'tgl_lahir',   // ✅ wajib ada
        'keterangan',
        'skl_file',
        'is_active',
    ];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
