id(); $table->foreignId('created_by_id')->constrained('users')->cascadeOnDelete(); $table->unsignedBigInteger('total'); $table->string('notes', 100)->nullable(); $table->enum('stock_type', ProductStockQuality::values())->default(ProductStockQuality::GOOD->value); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate(); $table->softDeletes(); }); } public function down(): void { Schema::dropIfExists('restocks'); } };