Users Collection
Profile Memory
Stores each user’s identity, preferences, hobbies, music, learning goals, and recent questions.
- userId
- name
- preferredLanguage
- favoriteFoods[]
- hobbies[]
- favoriteMusic[]
- learningGoals[]
- recentQuestions[]
Data Model Design
The prototype uses the database Memory_System_AI with two collections: users and memories.
Users Collection
Stores each user’s identity, preferences, hobbies, music, learning goals, and recent questions.
Memories Collection
Stores question records connected to userId, making it easy to retrieve past interactions.
Sample User Document
{
"userId": 1,
"name": "Shahariar",
"preferredLanguage": "English",
"favoriteFoods": ["Biryani", "Pizza", "Kacchi Biryani"],
"hobbies": ["Coding", "Gym"],
"favoriteMusic": ["Pop", "Nasheed"],
"learningGoals": ["Java", "MongoDB"],
"recentQuestions": ["How do I learn Java?", "How does MongoDB work?"]
}