<?php

namespace Database\Seeders;

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

class TierSeeder extends Seeder
{
    public function run(): void
    {
        $tiers = [
            [
                'name' => 'Bronze',
                'min_spending' => 0,
                'max_spending' => 499999,
            ],
            [
                'name' => 'Silver',
                'min_spending' => 500000,
                'max_spending' => 1499999,
            ],
            [
                'name' => 'Gold',
                'min_spending' => 1500000,
                'max_spending' => 4999999,
            ],
            [
                'name' => 'Platinum',
                'min_spending' => 5000000,
                'max_spending' => 9999999,
            ],
            [
                'name' => 'Diamond',
                'min_spending' => 10000000,
                'max_spending' => null,
            ],
        ];

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