Skip to content

App Data Model

Andrii Sharmar edited this page Nov 23, 2024 · 2 revisions

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").

Clone this wiki locally