<?php

namespace App\Models;

use CodeIgniter\Model;

class SekolahModel extends Model
{
    protected $table            = 'sekolah';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'nama_sekolah',
        'alamat_lengkap',
        'kabupaten',
        'logo',
        'kepala_sekolah',
        'nip_kepsek'
    ];

    protected $useTimestamps = false;
}