<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CustomerLedger extends Model
{
    use HasFactory;

    protected $fillable = [
        'customer_id',
        'transaction_date',
        'type',
        'amount',
        'balance',
        'description',
    ];

    public function customer()
    {
        return $this->belongsTo(Customer::class);
    }
}
