<?php

namespace App\Modules\PLATFORM\Settings\Models;

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

class Bank extends Model
{
    use HasFactory;

    protected $table = 'banks';

    protected $fillable = [
        'code',
        'name',
        'country_id',
        'swift_code',
        'status',
    ];

    protected $casts = [
        'status' => 'boolean',
    ];

    /* ================= Relationships ================= */

    public function country()
    {
        return $this->belongsTo(Country::class);
    }
}
