<?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('file_tls', function (Blueprint $table) {
            $table->foreignId('tl_rapat_id')->nullable()->constrained()->nullOnDelete();
            $table->text('deskripsi')->nullable();
            $table->text('file')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('file_tls', function (Blueprint $table) {
            $table->dropForeign('tl_rapat_id');
            $table->dropColumn('tl_rapat_id');
            $table->dropColumn('deskripsi');
            $table->dropColumn('file');
        });
    }
};
