id(); $table->foreignId('vending_machine_id')->constrained()->onDelete('cascade'); $table->string('slot_number'); // z.B. "10", "12", "14" $table->string('position')->nullable(); // Position im Automaten (z.B. "A1", "B2") $table->integer('capacity')->default(10); // Maximale Anzahl Produkte $table->boolean('is_active')->default(true); $table->timestamps(); $table->unique(['vending_machine_id', 'slot_number']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('slots'); } };