<?php

namespace Modules\CRMCore\Database\Seeders;

use Illuminate\Database\Seeder;

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

        // Only run demo seeders in local/demo/testing environment
        if (app()->environment(['local', 'demo', 'testing'])) {
            $this->call([
                CompanySeeder::class,
                LeadSeeder::class,
                DealSeeder::class,
            ]);
        }
    }
}
