issues
search
agile-learning-institute
/
mentorHub-mongodb
Mongo Database for Institute system
2
stars
3
forks
source link
Refactor curriculum schema to version 2.0.0
#101
Closed
fazzy12
closed
7 months ago
fazzy12
commented
7 months ago
Updated curriculum schema to version 2.0.0, modifying the structure to establish a 1:1 relationship with persons and an array of resources.
Removed the "personId" property from the curriculum schema.
Added "resources" array within the curriculum schema to hold resource objects with "resourceId" and "topicId" properties.
Updated the configuration file to version 2.0.0 and removed the index on "personId" accordingly.
Updated the test data in curriculum.json to reflect the new schema structure, ensuring each curriculum object contains an array of resources.
fazzy12
commented
7 months ago
Removed 'personId' field from the curriculum-2.0.0.json schema as '_id' will serve as the personId.
Adjusted required properties, considering auto-save features.
Introduced 'type' attribute for resource objects, distinguishing between 'topic' and 'adhoc'.
Defined attributes based on resource type: 'resourceId' and 'topicId' for 'topic' type, and 'name' and 'link' for 'adhoc' type.
Ensured all resource objects include 'review' and 'roadmap' properties.
Enumerated roadmap values as 'completed', 'now', 'next', and 'later'.
Researched and implemented the 'oneOf' construct for complex data structures in the JSON schema.
Generated additional test data aligning with Topics and People datasets.