<?php

namespace App\Models;

use CodeIgniter\Model;

class BeritaModel extends Model
{
    protected $table = 'berita';
    protected $primaryKey = 'id_berita';
    protected $allowedFields = [
        'judul', 
        'slug', 
        'ringkasan', 
        'isi_berita', 
        'gambar', 
        'tanggal_post', 
        'status',
        'caption_foto',
        'views', 
        'likes'
        
        ];
}