<?php

namespace App\Models;

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

class CopyTrader extends Model
{
    use HasFactory;
    protected $table = 'copy_traders';

   protected $fillable = [
        'user_id',
        'trader_id',
        'trader_name',
        'status',
    ];

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