<?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.
     */
    public function run(): void
    {
        if (app()->isLocal()) {
            $this->call([
                ShieldSeeder::class,
                UserSeeder::class,
                UnitSeeder::class,
                WarehouseSeeder::class,
                FeedSeeder::class,
                FeedPurchaseSeeder::class,
                EggCollectionSeeder::class,
                CustomerSeeder::class,
                OrderSeeder::class,
                DelayedGoodSeeder::class,
                ExpenseSeeder::class,
            ]);
        } else {
            $this->call([
                ShieldSeeder::class,
                UserSeeder::class,
                UnitSeeder::class,
                WarehouseSeeder::class,
            ]);
        }
    }
}
