Generating unique tracking numbers

前端 未结 5 1287
囚心锁ツ
囚心锁ツ 2021-01-01 06:43

I am building a small rails app and I need a way to generate tracking numbers to give to customers to check up on their status. I want something similar to what the major s

5条回答
  •  梦谈多话
    2021-01-01 07:11

    Isn't the id generated for every table enough? It is unique by "default". But most of the time it's simply not shown,

    Of course one could wrap it in a timestamp or the like.

提交回复
热议问题