<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class CreditPayment extends Model
{
    protected $fillable = [
        'client_id',
        'amount',
        'payment_method',
        'notes',
    ];

    /**
     * Get the client that made the payment.
     */
    public function client(): BelongsTo
    {
        return $this->belongsTo(Client::class);
    }
}
