Generating sequential numbers in multi-user saas application

后端 未结 6 1799
野趣味
野趣味 2021-02-08 20:52

How do people generate auto_incrementing integers for a particular user in a typical saas application?

For example, the invoice numbers for all the invoices for a partic

6条回答
  •  失恋的感觉
    2021-02-08 21:21

    I've just uploaded a gem that should resolve your need (a few years late is better than never!) :)

    https://github.com/alisyed/sequenceid/

提交回复
热议问题