-
Notifications
You must be signed in to change notification settings - Fork 26
App Data Model
The main data model of the application includes the following elements:
-
Questions: The main collection in the database that stores questions for developers. Each question contains the following fields:
-
question: The text of the question.
-
answerOptions: An array of answers, where each answer contains the text and information about whether it is correct.
-
codeExamples: Optional code examples that may be useful to explain the question.
-
categories: The category of the question (e.g., JavaScript, Node.js).
-
explanation: Explanation of the correct answer for better understanding.
-
status: The status of the question, which can be "approved" or "pending".
-
Subscribers: Collection to store information about users subscribed to the question newsletter. Fields:
-
email: The subscriber's email address.
-
status: The status of the subscription (e.g., "subscribed" or "unsubscribed").