<?php

namespace Database\Seeders;

use App\Models\OddsVersion;
use Illuminate\Database\Seeder;
use App\Support\OddsStandardScopes;

/**
 * 为历史 odds_versions 补全 §5.5 五档 prize_scope（幂等，可重复执行）。
 */
final class OddsPrizeScopesBackfillSeeder extends Seeder
{
    public function run(): void
    {
        foreach (OddsVersion::query()->orderBy('id')->cursor() as $version) {
            OddsStandardScopes::syncMissingForVersion($version);
        }
    }
}
