<?php 

namespace App\Models;
use CodeIgniter\Model;

class BeritaModel extends Model {
    protected $table = 'berita';
    protected $primaryKey = 'id';
    
    // Kolom database yang diizinkan untuk diisi
    protected $allowedFields = [
        'id_user', 'judul', 'slug', 'isi', 'gambar', 'status'
    ];
}