<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class EmployeeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $ceo = \App\Models\Employee::create([
            'name' => 'John Doe',
            'email' => 'john@example.com',
            'designation' => 'CEO',
            'base_salary' => 100000,
            'joined_date' => '2020-01-01'
        ]);

        $cto = \App\Models\Employee::create([
            'name' => 'Jane Smith',
            'email' => 'jane@example.com',
            'designation' => 'CTO',
            'manager_id' => $ceo->id,
            'base_salary' => 80000,
            'joined_date' => '2021-02-15'
        ]);

        $dev = \App\Models\Employee::create([
            'name' => 'Sibin Thomas',
            'email' => 'sibin@example.com',
            'designation' => 'Full Stack Developer',
            'manager_id' => $cto->id,
            'base_salary' => 60000,
            'joined_date' => '2023-01-10'
        ]);
    }
}
