Added Imported Flights Table

This commit is contained in:
2026-04-03 18:34:07 +10:00
parent 063a393168
commit 6a88d0cdfb
@@ -0,0 +1,44 @@
<?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('imported_flights', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->string('date')->nullable();
$table->string('flight_number')->nullable();
$table->string('from')->nullable();
$table->string('to')->nullable();
$table->string('dep_time')->nullable();
$table->string('arr_time')->nullable();
$table->string('duration')->nullable();
$table->string('airline')->nullable();
$table->string('aircraft')->nullable();
$table->string('registration')->nullable();
$table->string('seat_number')->nullable();
$table->string('seat_type')->nullable();
$table->string('flight_class')->nullable();
$table->string('flight_reason')->nullable();
$table->text('note')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('imported_flights');
}
};