<?php

namespace App\Models;

use CodeIgniter\Model;

class OrderModel extends Model
{
    protected $table            = 'orders';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $allowedFields    = [
        'invoice', 'customer_id', 'koperasi_id', 'total', 'status', 
        'ongkir', 'kurir', 'alamat', 'payment_method', 'created_at'
    ];
    protected $useTimestamps    = false;
}
