<?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::table('synapse_transcripts', function (Blueprint $table) {
            $table->text('ai_summary')->nullable()->after('formatted_transcript');
            $table->json('sentiment_data')->nullable()->after('ai_summary');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('synapse_transcripts', function (Blueprint $table) {
            $table->dropColumn(['ai_summary', 'sentiment_data']);
        });
    }
};
