Shaked Fried
09/12/2022, 2:00 PMnikolasburk
@@map
attribute on your Prisma models. That way, you can have the same table name in two different schemas but can use different names in your Prisma models. For example a table called User
in two schemas called schema1
and `schema2`:
model User1 {
id Int @id
...
@@map("User")
@@schema("schema1")
}
model User2 {
id Int @id
...
@@map("User")
@@schema("schema2")
}
nikolasburk
nikolasburk
nikolasburk
Shaked Fried
09/13/2022, 5:12 AM