<?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('jobseeker_payments', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('jobseeker_subscription_id');
            $table->bigInteger('rate_id');
            $table->string('invoice_no', 150)->unique();
            $table->string('customer_id', 255);
            $table->string('charge_id', 255);
            $table->float('amount_paid');
            $table->date('duration');
            $table->timestamps();
        });
    }

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