<?php

namespace App\Models;

use CodeIgniter\Model;

class PembelianModel extends Model
{
    protected $table            = 'pembelian';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';

    protected $allowedFields = [
        'no_transaksi',
        'tanggal_pembelian',
        'suplier_id',
        'nomor_dokumen',
        'subtotal',
        'pajak_persen',
        'pajak_nominal',
        'total_pembelian',
        'user_id',
        'catatan',
        'status_pembayaran',
    ];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
