<?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::table('files', function (Blueprint $table) {
            $table->string('gcs_object_name', 500)->nullable()->after('file_type')->comment('GCS 객체 경로');
            $table->string('gcs_uri', 600)->nullable()->after('gcs_object_name')->comment('gs://bucket/object URI');
        });
    }

    public function down(): void
    {
        Schema::table('files', function (Blueprint $table) {
            $table->dropColumn(['gcs_object_name', 'gcs_uri']);
        });
    }
};
