orm-examples
orm-examples copied to clipboard
2nd insert into orders fails in the nodejs sequelize app
follow the instructions here (that are common to spring and sequelize) https://docs.yugabyte.com/latest/develop/build-apps/java/ysql-spring-data/#send-requests-to-the-app
the very last command (2nd insert into orders table) fails. is auto-increment of the primary key not being used here?
Unhandled rejection SequelizeUniqueConstraintError: duplicate key value violates unique constraint "orders_pkey"
at Query.formatError (/Users/schoudhury/dev/yugabyte/orm-examples/node/sequelize/node_modules/sequelize/lib/dialects/postgres/query.js:315:16)