Implement unique constraints for midgard_user