code: def create(cls, community_id, user_id, **data):
          
          with db.session.begin_nested():
              obj = cls(id=community_id, id_user=user_id, **data)
              db.session.add(obj)
          return obj
docs: Get a community.