<?php

namespace App\Models;

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

class SellerTransactionWallet extends Model
{
    use HasFactory;
    protected $fillable= [
        'name',
        'symbol',
        'wallet',
        'description',
        'status',
        ];
    public function IRT_rate()
    {
        return $this->hasOne(SymbolRate::class,'symbol','symbol')->firstOrCreate(['symbol'=>$this->symbol],['IRT_rate'=>0])->IRT_rate;
    }
}
