<?php
/**
 * Permission Seeder Class
 *
 * @version     1.0.$Revision:$
 * @version     SVN: $Id:$
 * @version     STUB: 1.0.0
 * @generated   2026-06-08 00:52:03
 * @package     bplan-base/globals
 * @subpackage  Seeders
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @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\Permissions;


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


/**
 *
 * @version     1.0.0 / 2026-06-08
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class CountryPermissionSeeder extends Seeder
{


/* +++ TRAITS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS CONSTANTS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT MEMBERS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS MEMBERS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT METHODS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


    /**
     * @return      void
     *
     * @version     1.0.0 / 2026-06-08
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function run(): void
    {
        $date      = date('Y-m-d H:i:s');
        $package   = 'bplan-base/globals';
        $guardName = 'web';

        foreach (['read', 'update'] as $action) {
            Permission::create([
                'uuid'       => Str::uuid(),
                'created_at' => $date,
                'updated_at' => $date,
                'guard_name' => $guardName,
                'name'       => 'countries.'.$action,
                'package'    => $package,
            ]);
        }

    } // run()


/* +++ CLASS METHODS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


} // class CountryPermissionSeeder extends Seeder {}
