<?php

namespace Modules\PMCore\Database\Seeders;

use Illuminate\Database\Seeder;

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

        // Only run demo seeders in local/demo/testing environment
        if (app()->environment(['local', 'demo', 'testing'])) {
            $this->call([
                ProjectSeeder::class,
                ProjectTaskSeeder::class,
                TimesheetSeeder::class,
                ResourceAllocationSeeder::class,
            ]);
        }
    }
}
