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

namespace App\Models;
use CodeIgniter\Model;

class PageMediaModel extends Model
{
    protected $table = 'page_media';  // your table name
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'menu_id', 
        'submenu_id', 
        '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';
}
