File: /var/www/api.ayokah.co.uk/database/migrations/2024_02_22_052329_create_seller_payments_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_payments', function (Blueprint $table) {
$table->id();
$table->foreignId('seller_plans_id')->constrained('seller_plans')->onDelete('cascade');
$table->foreignId('seller_id')->constrained('sellers')->onDelete('cascade');
$table->string('due_date')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('seller_payments');
}
};