how to make onDelete: SetNull only work for one field
I have a relation which has 2 fields, one being optional and one is a required field, how do I make my schema so that when the referenced model is deleted it only sets the optional field to null?
0 Replies