Pg: Inserting new data with auto increment column
I am getting error while inserting data to postgres from nextjs api. Error: detail: 'Key (id)=(21) already exists.',
I have table with three columns and the API is submitting values as name and status. I am guessing postgres would take care of auto increment. what is the issue here ?
API
I have table with three columns and the API is submitting values as name and status. I am guessing postgres would take care of auto increment. what is the issue here ?
API