paneln8n/database/migrations/2025_09_11_000003_create_executions_table.php
2025-09-11 23:01:21 +02:00

25 lines
648 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class () extends Migration {
public function up(): void
{
Schema::create('executions', function (Blueprint $table) {
$table->id();
$table->foreignId('project_id')->constrained()->onDelete('cascade');
$table->longText('input');
$table->longText('output');
$table->longText('cost');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('executions');
}
};