<?php

namespace App\Interfaces;

use App\Models\Prediction;
use Illuminate\Database\Eloquent\Collection;

interface PredictionRepositoryInterface
{
    public function findByUserAndMatch(int $userId, int $matchId): ?Prediction;
    public function createOrUpdate(int $userId, int $matchId, string $prediction): Prediction;
    public function getUserPredictions(int $userId): Collection;
    public function getMatchPredictions(int $matchId): Collection;
    public function lockMatchPredictions(int $matchId): int;
    public function resolveMatchPredictions(int $matchId, string $result): int;
}
