<?php

namespace Database\Seeders;

use App\Models\Teacher;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TeacherSeeder extends Seeder
{
    public function run(): void
    {
        $teacher = Teacher::create([
            'document_number' => '987654321',
            'names' => 'Maria',
            'paternal_surname' => 'Alvarado',
            'maternal_surname' => 'Perez',
            'gender' => 'female',
            'birth_date' => '1998-07-13',
            'email' => 'xv2r9@example.com',
            'phone_number' => '856789012',
            'password' => 'password',
            'active' => true,
        ]);

         $teacher->assignRole('teacher');
    }
}
