bigIncrements('id'); $table->unsignedBigInteger('product_id'); $table->unsignedBigInteger('vendor_id'); // Foreign key to be added later $table->enum('commission_type', ['percentage', 'fixed']); $table->decimal('commission_value', 10, 2); $table->timestamps(); $table->foreign('product_id')->references('id')->on('products')->onDelete('cascade'); // $table->foreign('vendor_id')->references('id')->on('vendors')->onDelete('cascade'); $table->index(['product_id', 'vendor_id']); }); } public function down(): void { Schema::dropIfExists('product_vendor_commissions'); } }