extendModels
This object's entries are a key-value pair. When the schema is being generated, all non-id and non-relation fields from the value model will be added to the key model. To extend models, add the following line to your exported configuration object:
prisma-util.config.mjs
In this example, Model1
will take on all non-id and non-relation fields from Model2
.
Last updated