id(); $table->string('lot_number')->unique(); $table->foreignId('product_id')->constrained('products')->cascadeOnDelete(); $table->foreignId('recipe_id')->constrained('recipes')->cascadeOnDelete(); $table->date('produced_at')->nullable(); $table->date('expires_at')->nullable(); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('batches'); } };