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

namespace BplanBase\Globals\Database\Seeders;


use Illuminate\Database\Seeder;
use Laravel\Sanctum\PersonalAccessToken as SanctumPersonalAccessToken;


/**
 *
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class PersonalAccessTokenSeeder 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');

        SanctumPersonalAccessToken::insert([
            [
                //  1|5W37sIOYcobtd6bdKd4vvamiqZYgrYn8yCihEXGRfdace048
                "id" => 1,
                "created_at" => "2024-08-25 08:19:49",
                "updated_at" => "2024-08-25 08:19:49",
                "abilities" => "[\"*\"]",
                "expires_at" => NULL,
                "last_used_at" => NULL,
                "name" => "System-User",
                "token" => "f8741aeb8f4c0cdfb4c1825c1dd52b5fbe9ad9094cafdcc5d2ff57ad74784c09",
                "tokenable_type" => "App\\Models\\User",
                "tokenable_id" => 1,
            ],

        ]);

    } // run()

} // class PersonalAccessTokenSeeder extends Seeder {}
