<?php

namespace App\Models;

use CodeIgniter\Model;

class PenugasanDosenModel extends Model
{
    protected $table            = 'penugasan_dosen';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'id_registrasi_dosen', 'id_dosen', 'id_prodi', 'id_tahun_ajaran',
        'nama_tahun_ajaran', 'nama_program_studi', 'no_surat_tugas', 
        'tanggal_surat_tugas', 'is_homebase'
    ];

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