id(); $table->foreignId('supplier_id')->constrained('suppliers')->onDelete('cascade'); $table->string('kode')->unique(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('konsumen'); } };