<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

/**
 * Everything a fresh install needs to be usable: one super admin, the POS
 * product, its plans, and the accounts money is collected into.
 *
 * Safe to re-run — every seeder here is idempotent.
 */
class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        $this->call([
            AdminUserSeeder::class,
            SaasProductSeeder::class,
            PlanSeeder::class,
            PaymentAccountSeeder::class,
            CentralSettingSeeder::class,
        ]);

        $this->command->newLine();
        $this->command->info('Thinkrax Central is seeded.');
        $this->command->warn('Sign in with admin@thinkrax.com / password — change it immediately.');
    }
}
