<?php

namespace App\Models;

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

class ManualPaymentMethod extends Model
{
    protected $fillable = [
        'name',
        'type',
        'instructions',
        'account_name',
        'account_identifier',
        'logo_path',
        'is_active',
        'sort_order',
    ];

    protected function casts(): array
    {
        return [
            'is_active' => 'boolean',
            'sort_order' => 'integer',
        ];
    }

    public function eventPaymentMethods(): HasMany
    {
        return $this->hasMany(EventPaymentMethod::class);
    }

    public function paymentProofs(): HasMany
    {
        return $this->hasMany(EventPaymentProof::class);
    }
}
