<?php

namespace App\Models;

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

class PtcHistory extends Model
{
    use HasFactory;

    protected $table = 'ptc_history';
    protected $primaryKey = 'id';
    public $timestamps = true;

    protected $fillable = [
        'user_id', 'owner', 'ptc_id', 'name', 'reward', 'ip', 'country'
    ];
    
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
