<?php

namespace App\Models\Game\Highscore;

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

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

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'guild_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 = [
        'empire' => EmpireEnum::class,
        'date' => 'datetime',
    ];
}
