inheritance with prisma
I had a question similar to https://discord.com/channels/966627436387266600/966786610362474576/1017109977036492930 , except mine is at the model level and not table. that is, if I want to retrieve a list of items from the Apple table and Orange table which has shared properties like "id" and "type" although type would be unique to each respective table like granny smith and red delicious for apple and navel and tangerine for orange, I was wondering if there's model-level support for this. I can just add a union type to the front-end but just wanted to confirm here just in case there were a more elegant solution.
0 Replies