<?php

namespace App\Models;

use CodeIgniter\Model;

class ProductModel extends Model
{
    protected $table            = 'products';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'category_id', 'name', 'slug', 'short_description', 'specifications', 
        'featured_image', 'is_featured', 'meta_title', 'meta_description', 
        'status', 'created_at', 'updated_at'
    ];

    // Dates
    protected $useTimestamps = false;
}
