Skip to content

Finalize Models for Spots, Reviews #2

@SirajChokshi

Description

@SirajChokshi

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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions