<?php

namespace App\Models;

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

class TransactionHistory extends Model
{
    use HasFactory;

    protected $table = 'transaction_history';
    protected $fillable = ['user_id', 'amount', 'reference_number', 'proof_image'];
    
    public function user_details()
    {
        return $this->belongsTo(\App\Models\User::class, 'user_id');
    }
    
}
