<?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('operator_dialogues', function (Blueprint $table) {
            $table->id();
            $table->string('cdr_unique_id');
            $table->dateTime('date');
            $table->foreignId('supervisor_id')->constrained('users');
            $table->boolean('is_listen')->default(false);
            $table->boolean('is_good');
            $table->string('description')->nullable();
            $table->timestamps();
        });
    }

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