<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class GameAnswer extends Model
{
    use HasFactory;

    /**
     * ✅✅✅ هذا هو "التصريح" الذي كان ناقصاً ✅✅✅
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'game_session_id',
        'question_id',
        'user_id',
        'answer',
        'is_correct',
        'points_earned',
    ];
}


