<?php

namespace App\Models;

use CodeIgniter\Model;

class LoanModel extends Model
{
    protected $table            = 'loans';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $allowedFields    = [
        'member_id', 'amount', 'tenor', 'interest_rate', 
        'monthly_installment', 'status', 'approved_by', 'created_at'
    ];
    protected $useTimestamps    = false;
}
