38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
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('educations', function (Blueprint $table) {
|
|
$table->uuid('id')->primary();
|
|
$table->foreignUuid('resume_id')->constrained('resumes')->cascadeOnDelete();
|
|
$table->string('institution');
|
|
$table->string('url')->nullable();
|
|
$table->string('area');
|
|
$table->string('study_type');
|
|
$table->date('start_date');
|
|
$table->date('end_date')->nullable();
|
|
$table->decimal('score')->nullable();
|
|
$table->json('courses')->default('[]');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('educations');
|
|
}
|
|
};
|