<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\User;
use App\Models\AcademicRecord;
use Illuminate\Support\Facades\Hash;

class DatabaseSeeder extends Seeder {
    public function run(): void {
        User::create([
            'name' => 'Administrador',
            'email' => 'admin@ficha.com',
            'password' => Hash::make('admin123'),
            'role' => 'admin'
        ]);

        AcademicRecord::create([
            'first_names' => 'JUAN PABLO',
            'last_names' => 'PEREZ RODRIGUEZ',
            'dni' => '12345678',
            'cohort' => '2024-I',
            'specialty' => 'INGENIERÍA DE SISTEMAS',
            'birth_date' => '1995-05-15',
            'registration_date' => '2024-12-10',
            'book' => 'L-001',
            'folio' => 'F-45',
            'location' => 'ARCHIVERO CENTRAL PASILLO B'
        ]);
    }
}
