<?php

namespace Modules\SystemCore\Database\Seeders;

use Illuminate\Database\Seeder;

class SystemCoreDatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // Essential seeders - always run
        $this->call([
            SystemCoreSettingsSeeder::class,
        ]);

        // Only run demo seeders in local/demo/testing environment
        if (app()->environment(['local', 'demo', 'testing'])) {
            $this->call([
                PaymentTermSeeder::class,
                TaxConfigurationSeeder::class,
                ProductCategorySeeder::class,
                CustomerSeeder::class,
                SupplierSeeder::class,
                ProductSeeder::class,
                SalesOrderSeeder::class,
                PurchaseOrderSeeder::class,
            ]);
        }
    }
}
