Out of curiosity: How does this deal with referential actions? (See https://www.prisma.io/docs/orm/prisma-schema/data-model/rela...)
It was more difficult than I expected to structure this simple article and I enjoyed the process. It forced me to read my sources and fact-check myself and even realize a few improvements I could make to the code as I was writing it.