<?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('calls', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('ticket_id')->nullable();
            $table->string('topic')->nullable();
            $table->string('contact_name')->nullable();
            $table->string('direction')->nullable();
            $table->string('call_status')->nullable();
            $table->string('start_time')->nullable();
            $table->string('duration')->nullable();
            $table->string('priority')->nullable();
            $table->string('call_owner')->nullable();
            $table->text('description')->nullable();
            $table->string('reminder_status')->nullable();
            $table->timestamps();
        });
    }

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