Closed
Description
So far the member_uid
has a validation at model level that ensure both: its presence, and its uniqueness by organization. This however does not prevent violations. Since this is not ensured at DB level, race conditions can lead to duplicates.
We should add a unique index plus a not null constraint on that column.