J Giri
07/02/2021, 12:58 AM@@map in schema.prisma like this
model User {
id String @id @default(cuid())
firstName String
lastName String
email String @unique
password String
@@map("user")
}
Will there be any issue when introspecting later? I want my database table names to be in lowercase but the model names in schema to be in uppercase.
Is it safe to use @@map like this?
Or is there any better and safer way?Pierre Ortega
07/02/2021, 1:09 AMmap property.Pierre Ortega
07/02/2021, 1:10 AMJ Giri
07/02/2021, 1:17 AMPierre Ortega
07/02/2021, 1:20 AMPierre Ortega
07/02/2021, 1:20 AMJ Giri
07/02/2021, 2:08 AMRyan
07/02/2021, 5:28 AM@@map and will keep it the same, so you just need to edit it once.J Giri
07/02/2021, 7:02 AM