<?php

namespace App\Models;
use CodeIgniter\Model;

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

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

?>
