File: /var/www/html/laravel/database/migrations/2024_08_13_132151_notams_processed.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('notams', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->text('input');
$table->text('output');
$table->text('chatgpt_response');
$table->boolean('is_valid')->default(0);
$table->integer('prompt_tokens')->nullable();
$table->integer('completion_tokens')->nullable();
$table->integer('total_tokens')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};