Files

36 lines
943 B
PHP
Raw Permalink Normal View History

<?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('experiences', function (Blueprint $table) {
$table->id();
$table->string('company');
$table->string('role');
$table->string('location')->nullable();
$table->date('start_date')->nullable();
$table->date('end_date')->nullable();
$table->boolean('is_current')->default(false);
$table->text('description')->nullable();
$table->unsignedInteger('sort_order')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('experiences');
}
};