<?php

use App\Models\Airport;
use App\Models\Country;
use App\Models\Region;
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
    {
        Airport::create([
            'name' => 'Horizontal Falls Pontoon',
            'region_id' => Region::whereCode('AU-WA')->first()->id,
            'municipality' => 'Horizontal Falls',
            'latitude_deg' => -16.373295,
            'longitude_deg' => 123.964757,
            'elevation_ft' => 0,
            'type' => 'seaplane_base',
            'timezone' => 'Australia/Perth',
        ]);
    }

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