<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;

/**
 * App\Models\SteamApp.
 *
 * @property string $name Steam application name
 * @property int $appid Steam application id
 *
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp whereAppid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp whereName($value)
 *
 * @mixin \Eloquent
 *
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SteamApp query()
 */
class SteamApp extends Model
{
    use Searchable;

    /**
     * @var bool
     */
    public $incrementing = false;

    /**
     * @var bool
     */
    protected $dateFormat = false;

    /**
     * @var bool
     */
    public $timestamps = false;

    /**
     * @var array
     */
    protected $guarded = [];

    public function searchableAs(): string
    {
        return 'ix_name_ft';
    }

    public function toSearchableArray(): array
    {
        return [
            'name' => $this->name,
        ];
    }
}
