<?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::create('cts_sync_log', function (Blueprint $table) {
            $table->id();
            $table->timestamp('synced_at')->index();
            $table->unsignedInteger('events_count');
            $table->unsignedInteger('songs_count');
            $table->string('status');
            $table->text('error')->nullable();
            $table->timestamps();
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('cts_sync_log');
    }
};
