<?php

namespace App\Models;

use CodeIgniter\Model;

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

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

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