<?php

namespace App\Models;
use CodeIgniter\Model;

class LibraryInfoModel extends Model
{
    protected $table = 'library_info';  // Make sure this matches your actual DB table name exactly
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'heading', 'description', 'head_name', 'designation', 'image', 'vision',
        'featured_databases', 'special_notes', 'contact_information',
        'created_at', 'updated_at', 'row_status'
    ];

    // Enable automatic timestamps for created_at and updated_at
    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}

?>
