<?php
// app/Models/PagesModel.php

namespace App\Models;
use CodeIgniter\Model;

class PageContentsModel extends Model
{
    protected $table = 'page_contents';  // your table name
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'menu_id', 
        'subamenu_id', 
        'section1', 
        'section2', 
        'section3', 
        'section4', 
        'section5', 
        'banner_image',
        'created_at', 
        'created_by', 
        'updated_at', 
        'updated_by', 
        'row_status'
    ];

    // Optional: enable automatic timestamps handling
    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
