<?php

namespace App\Models;

use CodeIgniter\Model;

class StrukturModel extends Model
{
    protected $table      = 'struktur';
    protected $primaryKey = 'id_struktur';
    // Tambahkan parent_id di sini
    protected $allowedFields = ['nama', 'jabatan', 'foto', 'urutan', 'level', 'parent_id'];
}