-
Notifications
You must be signed in to change notification settings - Fork 1
Models
Neuco edited this page Feb 15, 2018
·
9 revisions
The APP itself consists on 3 main models.
{
email: String, Required
password: String, Hashed
name: String, Required
surname: String, Required
dateOfBirth: String, Required
gender: Enum: [M, F]
library: Array of Book
}
{
name: String, Required
surname: String, Required
dateOfBirth: String, Required
dateOfDeath: String
gender: Enum: [M, F]
nationality: String
language: String
ocupation: String
photo: File
books: Array of Book
quotes: [
{
quote: String
user: String
}
],
reviews: [
{
stars: Number
comment: String
user: String
}
]
}
{
isbn: String, Required
title: String, Required
author: {
name: String, Required
surname: String, Required
}
description: String
image: File
genre: Enum: ['No ficción', 'Novela', 'Poesía', 'Ensayo', 'Terror', 'Filosofía', 'Policial', 'Fantástico', 'Biografía', 'Autobiografía', 'Diario de viajes'], Required
likes: Number
quotes: [
{
quote: String
user: String
}
]
reviews: [
{
stars: Number
comment: String
user: String
}
]
}