<?php

namespace App\Models;

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

class Deposit extends Model
{
    use HasFactory;


    //user relationship
    public function user()
    {
        return $this->belongsTo(User::class);
    }

    // deposit coin relationship
    public function depositCoin()
    {
        return $this->belongsTo(DepositCoin::class);
    }

    protected $fillable = [
        'user_id',
        'amount',
        'fee',
        'currency',
        'type',
        'converted_amount',
        'ref',
        'payment_wallet',
        'status',
        'network',
        'valid_until',
        'payment_id',
        'payment_type',
    ];
}
