Prisma generates database tables with uppercase in MySQL. Is there any way to generate tables only in lower case?
Asked
Active
Viewed 3,037 times
1 Answers
4
At the moment you have to do that manually with @map and @@map.
You can read more about this here.
Here an example:
model PostInCategories {
category Category @map(name: "category_id")
post Post @map(name: "post_id")
@@unique([post, category], name: "post_id_category_id_unique")
@@map(name: "post_in_categories")
}

roeland
- 6,058
- 7
- 50
- 67