<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('employee_profiles', function (Blueprint $table) {
            $table->id();
            $table->string('employee_id');
            $table->string('full_name');
            $table->string('email')->unique();
            $table->string('phone_number');
            $table->date('start_date');
            $table->string('department');
            $table->string('position');
            $table->text('technical_skills')->nullable();  // Stored as comma-separated or JSON string
            $table->text('professional_bio')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('employee_profiles');
    }
};
