<?php

namespace App\Models;

use CodeIgniter\Model;

class ExamModel extends Model
{
    protected $table            = 'exams';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;

    protected $allowedFields = [
        'student_id',
        'student_school_id',
        'class_section_id',
        'exam_name',
        'school_year',
        'created_at'
    ];

    // Timestamps
    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = ''; // Set this if you later add an `updated_at` column

    protected $returnType    = 'array'; // You can change this to 'object' if preferred
}
