<?php
/**
 *
 * @version     1.0.$Revision:$
 * @version     SVN: $Id:$
 * @package     bplan-base/globals
 * @subpackage  Seeders
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 * @copyright   Copyright (C) 2025, 2026 bplan-solutions GmbH & Co. KG <https://www.bplan-solutions.de/>
 * /Δ\
 */

namespace BplanBase\Globals\Database\Seeders;


use BplanBase\Globals\Models\Module;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;


/**
 *
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class RegisterModuleSeeder extends Seeder
{

    /**
     * Run the database seeds.
     *
     * @return      void
     *
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function run()
    {
        $date = date('Y-m-d H:i:s');

        Module::insert([
            [
                'uuid' => Str::uuid(),
                'active' => 1,
                'created_at' => $date,
                'updated_at' => $date,
                'base_namespace' => 'BplanBase\\Globals',
                'identifier' => 'Core',
                'internal' => 1,
                'label' => 'Core',
                'package_name' => 'globals',
                'route_prefix' => 'core',
                'vendor_name' => 'bplan-base',
                'vendor_package' => 'bplan-base/globals',
            ],
            // [
            //     'uuid' => Str::uuid(),
            //     'active' => 1,
            //     'created_at' => $date,
            //     'updated_at' => $date,
            //     'base_namespace' => 'BplanBase\\Globals',
            //     'identifier' => 'Admin',
            //     'internal' => 1,
            //     'label' => 'Administration',
            //     'package_name' => 'globals',
            //     'route_prefix' => 'admin',
            //     'vendor_name' => 'bplan-base',
            //     'vendor_package' => 'bplan-base/globals',
            // ],

        ]);

    } // run()

} // class RegisterModuleSeeder extends Seeder {}
