Help defining Prisma schema
Hi guys I need some help defining my prisma schema.
I have this template schema in which I would like to add tags:
So I added the tags field and created a relation to this TemplateTag model:
But since the same tag can be used in a different Template, this does not make much sense I think, it would cause redundant data.
How do I create a proper pivot table or should I do this differently?
I have this template schema in which I would like to add tags:
So I added the tags field and created a relation to this TemplateTag model:
But since the same tag can be used in a different Template, this does not make much sense I think, it would cause redundant data.
How do I create a proper pivot table or should I do this differently?
