<?php

namespace App\Models;

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

class WithdrawOption extends Model
{
    use HasFactory;

    protected $table = 'withdraw_option';

    protected $fillable = [
        'name',
        'wallet',
        'api_key',
        'currency_id',
        'currency_name',
        'currency_code',
        'instant',
        'minimum_withdraw',
        'fee_type',
        'fee'
    ];

    public $timestamps = true;

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