<?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('barobill_members', function (Blueprint $table) {
            $table->timestamp('last_sales_fetch_at')->nullable()->comment('마지막 매출 조회 시간');
            $table->timestamp('last_purchases_fetch_at')->nullable()->comment('마지막 매입 조회 시간');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('barobill_members', function (Blueprint $table) {
            $table->dropColumn(['last_sales_fetch_at', 'last_purchases_fetch_at']);
        });
    }
};
