-
Notifications
You must be signed in to change notification settings - Fork 1
[API] Create database model #3
Comments
Initial DB models
Select final databaseWe should select the final database (Is MongoDB necessary?) i think the two major DBs to consider are MariaDB(Quite familiar) and MongoDB. I propose MariaDB because it is enough to create the proposed DB models (If it isnt broken dont fix it!) and im also taking into consideration the fact that we are familiar with SQL. |
Final databaseAfter a discussion with the team we`ve decided to use MariaDB as our main database, the main reasons for this choice are that we are not familiar enough with MongoDB and that using a NoSQL database would be overkill (The amount of data we plan on handling is nowhere near big enough to justify MongoDB usage) for the objectives of this application (+ we werent planning to use it in a cluster configuration, leaving one of the main selling points of MongoDB forgotten). Also we support consistency in the data over speed and MariaDB is the database that best suits our goal. ORMWe are planning to use an Object Relational Mapper with MariaDB to obtain a simple and efficient workflow, the choosen ORM is Sequelize because it is a welll known ORM for NodeJS (So there are more tutorials). Pros of using an ORM is that speficic databases are abstract to the programmer and that the model desing is as easy as defining a JS class. Main cons are the general performance overhead associated with ORMs and that the choosen ORM is mainly focused on TypeScript. |
|
Modelos iniciales:
Question - Información de cada pregunta
AuthUser - Información de registro de usuario
User - Estadísticas del jugador
Play - Registro de partidas jugadas por el usuario
Setting - Ajustes de la aplicación, tiempo para responder las preguntas, cantidad de preguntas, scope (ej. Ciudades de Europa, España…)
Follow - Poder agregar a otros usuarios
Group - Los usuarios se agregan a grupos
The text was updated successfully, but these errors were encountered: