Hey, is there any way to have an auto-incrementing...
# orm-help
s
Hey, is there any way to have an auto-incrementing number? Like for example, I have Projects, and each project can have Tickets. I need the Ticker number to automatically increment for that project. Like GitHub issues / repository.
r
Hey @Samrith Shankar 👋 Currently autoincrement is the only way possible like this:
Copy code
model User {
  id Int @id @default(autoincrement())
}
Are you looking for something to start at a specific number?
👍 1