<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class MonthlyLeaderboard extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = ['year', 'month', 'user_id', 'total_points', 'performance_score', 'rank_position', 'employee_of_month'];

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