<?php

namespace Modules\MedOrganization\Database\Seeders;

use Illuminate\Database\Seeder;

/**
 * Top-level MedOrganization seeder (run by `module:seed MedOrganization`
 * from the InstallController). Permissions are registered by migration
 * 2026_07_02_000007; this seeds the predefined roles + example ABAC rules
 * (additive/idempotent) and, outside production, the Shifa One demo data.
 * Mirrors VrcDatabaseSeeder.
 */
class MedOrganizationDatabaseSeeder extends Seeder
{
    public function run(): void
    {
        $this->call(OrgRolesSeeder::class);

        if (! app()->environment('production')) {
            $this->call(OrgDemoSeeder::class);
        }
    }
}
