<?php
declare(strict_types=1);

namespace App\Modules\SportsActivity\Models;

use App\Core\Model;

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

    protected static array $fillable = [
        'group_id', 'player_id', 'enrolled_at',
        'left_at', 'status', 'notes',
    ];

    public static function getStatusOptions(): array
    {
        return [
            'active' => 'نشط',
            'paused' => 'متوقف',
            'transferred' => 'منقول',
            'withdrawn' => 'منسحب',
        ];
    }
}
