<?php

namespace App\Models;

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

class MatchPrediction extends Model
{
    use HasFactory;

    protected $fillable = [
        'vip_package_id',
        'league',
        'team1',
        'team2',
        'team1_logo',
        'team2_logo',
        'selection',
        'status',
        'prediction_date',
    ];

    protected $casts = [
        'prediction_date' => 'date',
    ];

    public function vipPackage(): BelongsTo
    {
        return $this->belongsTo(VipPackage::class);
    }
}
