Database Structure - pmvdbijl7/matching-app GitHub Wiki
We store different types of data in our database.
- Genres
- Users
Genres
The genres collection is quite simple, it's just a string called name. The value of this string is the genre.
Users
The user collection has a little bit more data. It's basically the user's profile.
Here's a nice overview of how the user collection is build:
NAME | TYPE | VALUE |
---|---|---|
_id | ObjectId | jf308fdhg0ghg3 |
name | String | John |
gender | String | Male |
birthdate | Date | 2000-03-05 |
residence | String | London |
interested*in | String | _Women* |
biography | String | Hello, my name is John :) |
String | [email protected] | |
password | String | j90f3hag;/2hfeag43gasdg3 |
genres | Array | ["Horror", "Thriller"] |
movies | Array | ["Scarface", "Titanic"] |
series | Array | ["Casa Del Papel", "Rick and Morty"] |
createdAt | Date | 2021-03-02T10:12:48.899+00:00 |
updatedAt | Date | 2021-03-05T13:11:47.730+00:00 |