i have question please, there is an old code where they manually made a function to randomly generate an id, the id type is a number and not a string. since it not that safe they lately found a duplicate id. What's the best and safest solution to fix this, i thought of using UUID to generate an id but uuid only generate strings while it's a number? if i change the id type to string would it cause a problem with old records?
Ps: they used Express.js and mongoose