Postgres auto increase field

Hi, I am using Postgres in the back-end. I have a column in a table and I want the number in this table to auto increase.

For example, when the first record is inserted, the value in this column for this row is 1. Then, for the next record, the value should be 2. Could I do this?

If so, could I use curl -X POST to create this table?

Thanks

It’s not a feature that Parse Server has implemented by default but I believe it can work. I’d try to first create the class and field using the API or dashboard (so parse schema will be generated), and then connect to Postgres and manually re-create the field with the correct type (SERIAL)…

@davimacedo Yes, this can be a solution. Thanks