File: /var/www/api.vaspayment.com/database/migrations/2024_10_13_135544_create_data_lists_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('data_lists', function (Blueprint $table) {
$table->id();
$table->decimal('reseller_price', 8, 2);
$table->string('network');
$table->string('name');
$table->decimal('price', 8, 2);
$table->string('allowance');
$table->string('code');
$table->string('validity');
$table->string('biller');
$table->enum('status', ['active', 'inactive']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('data_lists');
}
};