Some tables don't have auto-increment fields, for example, when you have a table with UUID binary. In this case, you need to provide a function to calculate the unique ID.