hennessymemories
hennessymemories
TTCTheo's Typesafe Cult
Created by hennessymemories on 9/20/2023 in #questions
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)
model User {
id Int @default(autoincrement()) @id
username String @unique @db.VarChar(30)
2 replies