<?php
declare(strict_types=1);

namespace App\Modules\SportsActivity\Models;

use App\Core\Model;

class Waitlist extends Model
{
    protected static string $table = 'sa_waitlist';
    protected static string $primaryKey = 'id';
    protected static bool $timestamps = true;
    protected static bool $softDelete = false;
    protected static bool $dispatchEvents = true;

    protected static array $fillable = [
        'player_id', 'group_id', 'position',
        'status', 'offered_at', 'expires_at', 'notes',
    ];

    public static function getStatusOptions(): array
    {
        return [
            'waiting' => 'في الانتظار',
            'offered' => 'تم العرض',
            'accepted' => 'مقبول',
            'expired' => 'منتهي',
            'cancelled' => 'ملغي',
        ];
    }
}
