Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
1 reply
teweu

Prisma question @default string

yo is there a @default for "user{id}" to set as the username?
for example user with id 4234 -> username: user4234

model User {
  id    Int     @default(autoincrement()) @id
  username  String @unique @db.VarChar(30)
Was this page helpful?