File: /var/www/console.fixgini.com/database/migrations/2024_05_03_110954_create_seller_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('seller_plans', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('description');
$table->string('payment_link');
$table->decimal('fee', 8, 2);
$table->string('expiry');
$table->enum('status', ['active', 'inactive'])->default('active');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('seller_plans');
}
};