<?php

namespace App\Models;

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

class EntertainmentMining extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id',
        'current_points',
        'daily_points',
        'mining_speed',
        'last_mining',
    ];

    protected $casts = [
        'last_mining' => 'datetime',
    ];

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