Keith#1141
PPrisma
•Created by Keith#1141 on 9/3/2024 in #help-and-questions
Clarification on Prisma and DB Congruence
Sorry sir @Nurul if my responses seem redundant it has been a huge point of contestation in my class and would severely affect my ability to move forward with my education. I genuinely appreciate your response and assistance!
7 replies
PPrisma
•Created by Keith#1141 on 9/3/2024 in #help-and-questions
Clarification on Prisma and DB Congruence
Thank you very much for the response sir @Nurul! It is deeply appreciated! One of the arguments made against the Prisma models and the database being in sync is that Prisma is an ORM and, in the term ORM, M stands for Mapper. I was told that this suggests that Prisma models should not be similar to the database it should just MAP to it, hence, this example:
DB Table 1 has a username field
DB Table 2 has a password field
The backend retrieves both and reconstructs them together to match the Prisma object - User.
^I was informed that this is proper mapping and this is what should be applied. Which given my understanding and your response is wrong.
May I ask for clarification on this mapper term too sir?
Thank you again for the response!
Sincerely,
Keith
Software Engineering Student
7 replies