<?php

namespace Modules\MedNotify\Database\Seeders;

use Illuminate\Database\Seeder;

/**
 * Top-level MedNotify seeder, run by `module:seed MedNotify` from the
 * InstallController. Registers permissions, the 5 system events and their
 * system-default templates. All rows are idempotent (firstOrCreate /
 * updateOrCreate) so repair/re-runs are safe. Mirrors VrcDatabaseSeeder.
 */
class MedNotifyDatabaseSeeder extends Seeder
{
    public function run(): void
    {
        $this->call(MednotifyPermissionSeeder::class);
        $this->call(MednotifyEventsSeeder::class);
        $this->call(MednotifyTemplatesSeeder::class);
    }
}
