Join Slack
Powered by
if i delete record 3, the next time prisma create ...
# orm-help
t
tylim
12/07/2020, 12:54 AM
if i delete record 3, the next time prisma create new record, will the new id be 3 or 6?
r
Ryan
12/07/2020, 8:14 AM
@tylim
👋 This will be
6
as Prisma sets the
id
field to be auto incremented, the same behaviour that all databases follow for incrementing primary keys 🙂
t
tylim
12/07/2020, 9:42 PM
ok thank you Ryan
🙌 1
2
Views
Open in Slack
Previous
Next