<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

// PRC-810 — Dönem-ekseni adaptive fiyat (monthly gir → diğer dönemler ×ay).
// Mevcut currency-ekseni `adaptive_pricing`'ten AYRI eksen.
return new class extends Migration
{
    public function up(): void
    {
        Schema::table('products', function (Blueprint $table) {
            $table->boolean('adaptive_term_pricing')->default(false)->after('adaptive_pricing');
        });
    }

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