<?php

namespace App\Models;

use CodeIgniter\Model;

class PetaniModel extends Model
{
    protected $table            = 'petani'; // Tanpa 's'
    protected $primaryKey       = 'id_petani';
    protected $useAutoIncrement = true;

    // Field yang boleh diisi melalui form
    protected $allowedFields    = [
        'nik',
        'nama_petani',
        'alamat',
        'luas_lahan',
        'kelompok_blok',
        'status_aktif'
    ];
}
