File: /var/www/api.vaspayment.com/database/migrations/2024_10_14_231649_create_cables_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('cables', function (Blueprint $table) {
$table->id();
$table->string('reseller_price');
$table->string('name');
$table->string('code');
$table->string('month');
$table->string('price');
$table->string('period');
$table->string('type')->nullable();
$table->enum('status', ['0', '1'])->default('0')->comment('0=active, 1=inactive');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('cables');
}
};