<?php

namespace App\Models;

use CodeIgniter\Model;

class BeritaModel extends Model
{
    protected $table = 'berita'; // Nama tabel di database
    protected $primaryKey = 'id_berita'; // Primary key tabel
    protected $returnType     = 'object';
    protected $allowedFields = ['id_admin', 'judul', 'kategori', 'isi', 'tanggal', 'gambar']; // Kolom yang dapat diisi


}