<?php

namespace App\Models;

use CodeIgniter\Model;

class ReceivableModel extends Model
{
    protected $table = 'receivables';

    protected $primaryKey = 'id_receivable';

    protected $returnType = 'array';

    protected $useTimestamps = true;

    protected $createdField = 'created_at';

    protected $updatedField = 'updated_at';

    protected $allowedFields = [

        'id_order',

        'invoice',

        'customer',

        'total_piutang',

        'dibayar',

        'sisa_piutang',

        'jatuh_tempo',

        'status'

    ];
}