<?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('shop_garments', function (Blueprint $table) {
            $table->decimal('price_adult', 10, 2)->default(0)->after('is_active');
            $table->decimal('price_5_to_16', 10, 2)->default(0)->after('price_adult');
            $table->decimal('price_below_5', 10, 2)->default(0)->after('price_5_to_16');
        });
    }

    public function down(): void
    {
        Schema::table('shop_garments', function (Blueprint $table) {
            $table->dropColumn(['price_adult', 'price_5_to_16', 'price_below_5']);
        });
    }
};
