agile-learning-institute / mentorHub-mongodb

Mongo Database for Institute system
2 stars 3 forks source link

Refactor Curriculum #100

Closed FlatBallFlyer closed 7 months ago

FlatBallFlyer commented 8 months ago

The current schema defines a document in a one-to-one relationship with a resource from the topics Domain. We need to refactor that to be 1:1 with person, with an array of resources.

A curriculum ID should match a person ID, so we can remove the person ID property

Add topic ID to the resource object.

Here are the files that you'll need to change