Data Model
DB Schema
The schema serves as a blueprint for creating and maintaining the database that supports the ML survey services data storage and retrieval operations.
![](https://ed.sunbird.org/~gitbook/image?url=https%3A%2F%2Fml-services-uploads.s3.ap-south-1.amazonaws.com%2FDBSchema%2FML-Survey.png&width=768&dpr=4&quality=100&sign=d5b82ffe&sv=1)
Here are examples of sample data for each collection
Programs collection is tasked with housing high-level program information, encompassing program specifics, resource listings, and program categorizations.
The solutions collection will serve as a repository for various types of resources, encompassing observations, improvement projects, and surveys, among others.
The programUsers Collection holds user data of those who have become part of the program and have provided their consent status.
The observations collection is utilized to store observations generated by users.
The observationSubmissions collection will be responsible for storing data related to observations when users submit their observations.
The observations collection is utilized to store survey generated by users.
The surveySubmissions collection will be responsible for storing data related to observations when users submit their survey.
The criteria collection will contain all the criteria necessary to fulfill observations and surveys.
The criteriaQuestions collection will house all the questions associated with criteria for both observations and surveys.
The frameworks collection will be used to store templates designed for observation-based solutions.
The questions collection will hold all the questions intended for use in both observations and surveys.
Click here for DB schema and corresponding examples in a PDF format.