<?php

namespace App\Models;

use CodeIgniter\Model;

class UpsellsProcessedModel extends Model
{
    protected $table            = 'upsells_processed';
    protected $primaryKey       = 'id';
    protected $returnType       = 'array';
    protected $useTimestamps    = false;  // or true if you have created_at/updated_at columns
    protected $allowedFields    = [
        'upsell_tracking_id',
        'deal_id',
        'kit_id',
        'retail',
        'cost',
        'gross_profit',
        'createdat',
        'salesman',
        'is_paid',
        'paid_date'
    ];

    // If you do have created_at/updated_at columns with automatic timestamps:
    // protected $useTimestamps = true;
    // protected $createdField  = 'created_at';
    // protected $updatedField  = 'updated_at';
}
