How to reference/store a joined primary key?
I have a program that imports data from a CSV file into the database using Prisma. In the Excel the rows have something similar to an ID, a category and other non-important stuff. Since the ID is not unique in this CSV, I created a joined primary key in my schema file (
Is there any way I can reference this joined primary key in a relation?
E.g.:
@@id([category, id])).Is there any way I can reference this joined primary key in a relation?
E.g.: