skip to Main Content

Prisma problem inserting into autogenerated int ID field: integer out of range for type int4 – Postgresql

model Comment { id Int @id @default(autoincrement()) cid String bid String author AppProfile @relation(fields: [bid], references: [bid]) comment String created DateTime @default(now()) } const results = await prisma.comment.create({ data: { cid: req.body.cid, comment: req.body.comment, bid: appProfile.bid, }, }); prisma:query INSERT…

VIEW QUESTION
Back To Top
Search