<?php

namespace App\Models;

use CodeIgniter\Model;

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

    protected $allowedFields = [
        'pembelian_id',
        'tanggal_pembayaran',
        'jumlah',
        'is_pembayaran_awal',
        'catatan',
        'user_id',
    ];

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