<?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('conx_outbound_payments', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('invoice_no', 150)->unique();
            $table->bigInteger('outbound_billing_request_id')->index();
            $table->double('amount', 10, 2)->comment = 'amount';
            $table->timestamps();
        });
    }

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