File: /var/www/vaspayment.com/database/migrations/2023_09_26_322191_create_data_plans_table.php
<?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::create('data_plans', function (Blueprint $table) {
$table->id();
$table->string('network');
$table->string('planId');
$table->string('name');
$table->string('price');
$table->decimal('reseller_price', 10, 2);
$table->string('validity');
$table->string('data_size');
$table->enum('status', [0, 1])->default(0)->comment('0 is Active, 1 is Inactive');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('data_plans');
}
};