<?php

namespace Modules\MedPortal\Database\Seeders;

use Illuminate\Database\Seeder;

/**
 * Top-level MedPortal seeder, run by `module:seed MedPortal` from the
 * InstallController. Registers permissions, the system PHQ-9/GAD-7
 * questionnaires, the MedNotify portal.message_received event (fail-soft) and
 * the demo data. All rows are idempotent so repair / re-runs are safe. Mirrors
 * MedBillingDatabaseSeeder.
 */
class MedportalDatabaseSeeder extends Seeder
{
    public function run(): void
    {
        $this->call(MedportalPermissionSeeder::class);
        $this->call(MedportalQuestionnaireSeeder::class);
        $this->call(MedportalNotifyEventSeeder::class);
        $this->call(MedportalDemoSeeder::class);
    }
}
