<?php

namespace App\Models;

use CodeIgniter\Model;

class PesertaKelasModel extends Model
{
    protected $table            = 'peserta_kelas';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'id_kelas_kuliah_pddikti',
        'krs_id',
        'id_mahasiswa_pddikti',
        'nim',
        'nama_mahasiswa',
    ];

    // Dates
    protected $useTimestamps = true;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';
}
