<?php

namespace App\Models;

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

class BankWithdrawal extends Model
{
    use HasFactory;

    protected $fillable = [
        'withdrawal_date',
        'amount',
        'currency_id',
        'bank_account',
        'reference',
        'notes',
    ];

    protected $casts = [
        'withdrawal_date' => 'date',
    ];

    public function currency()
    {
        return $this->belongsTo(Currency::class);
    }
}
