  , membershipStudentId :: StudentId
  }
  deriving (Generic)

newtype MembershipId = MembershipId { unMembershipId :: Int }
  deriving newtype (Eq, Show, ToJSON, FromJSON)
  deriving stock (Generic)

#ifdef USE_DERIVING_VIA

deriving via (ApiOptions ('Just "membership") Membership) instance (ToJSON Membership)
deriving via (ApiOptions ('Just "membership") Membership) instance (FromJSON Membership)
