<?php

declare(strict_types=1);

namespace App\Models;

use CodeIgniter\Model;

class PresensiModel extends Model
{
    protected $table            = 'presensi';
    protected $primaryKey       = 'id_presensi';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $protectFields    = true;
    /** @var list<string> */
    protected $allowedFields = [
        'pegawai',
        'tanggal',
        'jadwal',
        'jam_masuk',
        'ket_masuk',
        'photo_masuk',
        'jam_pulang',
        'ket_pulang',
        'photo_pulang',
        'mulai_istirahat',
        'beres_istirahat',
        'is_istirahat',
        'lat_masuk',
        'lng_masuk',
        'lat_pulang',
        'lng_pulang',
        'jarak_masuk',
        'jarak_pulang',
    ];
}
