Description
Right now, we have a models.py document that models our MongoDB document schema. Since MongoDB schemas are arbitrary (ie. all documents in a database don't need the same fields), we need to have some way of creating our own ORM (Object-Relational Mapping) such that new documents are upserted with the same fields.
At the moment, we have a Document superclass from which these other models inherit a few basic fields. Let's finalize all the fields that we need for Study Spots and Reviews. Discuss with the team about what we should include, and how Spots / Reviews are related. Also implement __str__ / __repr__ for these classes for debugging purposes.
Description
Right now, we have a
models.pydocument that models our MongoDB document schema. Since MongoDB schemas are arbitrary (ie. all documents in a database don't need the same fields), we need to have some way of creating our own ORM (Object-Relational Mapping) such that new documents are upserted with the same fields.At the moment, we have a
Documentsuperclass from which these other models inherit a few basic fields. Let's finalize all the fields that we need for Study Spots and Reviews. Discuss with the team about what we should include, and how Spots / Reviews are related. Also implement__str__/__repr__for these classes for debugging purposes.