<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    use WithoutModelEvents;

    /**
     * Seed the application's database.
     *
     * PricingTierSeeder runs in all environments (prod нуждается в 7-tier
     * config bootstrap'е). DemoSeeder — только local+testing: создаёт demo
     * tenant + admin@demo.local + 3 проекта + ~14 demo сделок для UI smoke.
     */
    public function run(): void
    {
        $this->call(PricingTierSeeder::class);

        if (app()->environment('local', 'testing')) {
            $this->call(DemoSeeder::class);
        }
    }
}
