Files
RecruIT/database/migrations/2026_03_19_091303_create_candidates_table.php
jeremy bayse a55a33ae2a Initial commit
2026-03-20 08:25:58 +01:00

32 lines
818 B
PHP

<?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('candidates', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained()->onDelete('cascade');
$table->string('phone')->nullable();
$table->string('linkedin_url')->nullable();
$table->enum('status', ['en_attente', 'en_cours', 'termine'])->default('en_attente');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('candidates');
}
};