Enforce uniqueness on Json fields
How can I enforce uniqueness on the post model based on the values in the json fields.
here is the schema:
the
I don't want two records with same values to exist, like if there is record with these in the json field
here is the schema:
the
extraData fields json will look like:I don't want two records with same values to exist, like if there is record with these in the json field
surah: "24", verse: 30, I don't want another to be created with same values