id(); $table->foreignId('warehouse_id')->constrained()->cascadeOnDelete(); $table->foreignId('outlet_id')->constrained()->cascadeOnDelete(); $table->date('restock_date'); $table->string('note', 100)->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('restocks'); } };