<?php
require 'vendor/autoload.php';

$app = require_once 'bootstrap/app.php';
$kernel = $app->make(\Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

$admin_role = \App\Models\Role::where('name', 'admin')->first();
$admin = \App\Models\User::create([
    'full_name' => 'Administrator',
    'name' => 'Administrator',
    'email' => 'admin@geology.edu',
    'password' => 'Admin@12345',
    'phone' => '0000000000',
    'role_id' => $admin_role->id,
    'status' => 'active'
]);

echo "✓ Admin account created successfully!\n";
echo "Email: " . $admin->email . "\n";
echo "Password: Admin@12345\n";
