How to make a a table with a field Serial Number so that each data entered will be automatically numbered
Hi,
Thanks for the questions!
You can do this by adding following code to the db model:
serialNumber: { type: Sequelize.INTEGER, autoIncrement: true, },
If you have any other questions, please let us know!
We use cookies to ensure the best experience on our website. To learn more about how we use cookies, please see our cookies policy.