<?php

namespace App\Models;

use CodeIgniter\Model;

class ProductModel extends Model
{
    protected $table            = 'products';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $allowedFields    = [
        'koperasi_id', 'kategori_id', 'nama_produk', 'harga', 'stok', 
        'deskripsi', 'foto', 'rating', 'tags', 'status', 'created_at'
    ];
    protected $useTimestamps    = false;
}
