<?php

namespace Database\Seeders;

use App\Models\Tier;
use Illuminate\Database\Seeder;

class TierSeeder extends Seeder
{
    public function run(): void
    {
        $tiers = [
            [
                'name' => 'Bronze',
                'min_points' => 0,
                'max_points' => 49,
            ],
            [
                'name' => 'Silver',
                'min_points' => 50,
                'max_points' => 99,
            ],
            [
                'name' => 'Gold',
                'min_points' => 100,
                'max_points' => 499,
            ],
            [
                'name' => 'Platinum',
                'min_points' => 500,
                'max_points' => 1999,
            ],
            [
                'name' => 'Diamond',
                'min_points' => 2000,
                'max_points' => null,
            ],
        ];

        foreach ($tiers as $tier) {
            Tier::create($tier);
        }
    }
}
