<?php

namespace App\Modules\Discipline\Models;

use CodeIgniter\Model;

class StudentViolationModel extends Model
{
    protected $table            = 'student_violations';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'student_id',
        'class_id',
        'violation_id',
        'reported_by_user_id',
        'occurred_at',
        'notes',
    ];

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

