Postgresql – The unique index of an ArrayField regardless of the position of elements in it
class Marriage(BaseModel): users = ArrayField(BigIntegerField) chat_id = BigIntegerField() class Meta: indexes = ( (('users', "chat_id"), True), ) I would like to make a unique index for both user values and chat_id for example: there is already such a row in…