<?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('streaks', function (Blueprint $table) {
            // Date du dernier rappel push envoyé (anti-doublon : 1 rappel/jour max).
            $table->date('last_reminded_on')->nullable()->after('freeze_last_granted_on');
        });
    }

    public function down(): void
    {
        Schema::table('streaks', function (Blueprint $table) {
            $table->dropColumn('last_reminded_on');
        });
    }
};
