<?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('factory_products', function (Blueprint $table) {
            $table->decimal('default_pack_weight', 12, 3)->nullable()->after('quantity_per_dough');
        });
    }

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