<?php
namespace App\Models;

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

class WithdrawRequest extends Model
{
    protected $fillable = [
        'vendor_id', 'amount', 'method', 'payment_details', 'status', 'admin_notes', 'processed_at',
    ];
    protected $casts = ['payment_details' => 'array', 'processed_at' => 'datetime', 'amount' => 'decimal:2'];
    public function vendor(): BelongsTo { return $this->belongsTo(Vendor::class); }
}
