The current implementation of the mongoose models in the backend don't conform to mongoose's best practices, which may result in wrong typing and makes it harder to work with the models.
See https://mongoosejs.com/docs/typescript.html#using-extends-document