<?php

namespace App\Models\Game\Highscore;

use App\Models\Enums\CharacterClassEnum;
use App\Models\Enums\EmpireEnum;
use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property string $name
 * @property CharacterClassEnum $job
 * @property EmpireEnum $empire
 * @property int $level
 * @property int $exp
 * @property \Illuminate\Support\Carbon $date
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache query()
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereDate($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereEmpire($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereExp($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereJob($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereLevel($value)
 * @method static \Illuminate\Database\Eloquent\Builder<static>|HighscoreCache whereName($value)
 * @mixin \Eloquent
 */
class HighscoreCache extends Model
{
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'highscore_cache';

    /**
     * The primary key for the model.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [

    ];

    /**
     * The attributes that should be hidden for serialization.
     *
     * @var array<int, string>
     */
    protected $hidden = [

    ];

    /**
     * The attributes that should be cast.
     *
     * @var array<string, string>
     */
    protected $casts = [
        'job' => CharacterClassEnum::class,
        'empire' => EmpireEnum::class,
        'date' => 'datetime',
    ];
}
