<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('trading_plans', function (Blueprint $table) {
            $table->id();
            $table->decimal('min_amount', 20, 2);
            $table->decimal('max_amount', 20, 4);
            $table->decimal('min_range', 20, 4);
            $table->decimal('max_range', 20, 4);
            $table->string('final_result');
            $table->string('duration');
            $table->decimal('percentage_profit', 20, 4);
            $table->timestamps();
        });

       
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('trading_plans');
    }
};
