<?php

namespace App\Models;

use CodeIgniter\Model;

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

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

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