Khalid Faiz
user
id
: Automatically generated.name
: Unique string field.email
: Unique valid email address (not necessairly working, but with a valid format).password
: Hashed then stored.book
google_id
: to retrive book's data from google, and acting as an id since its unique.category
id
.name
: Unique string field.comment
id
.content
.timestamp
.is_deleted
: to indicate the comment has been deleted..is_edited
: to indicate the comment has been edited by the user.user_book
: many-to-manyid
.user.id
.book.google_id
.status
: 0,1,2 indicating to-read, reading and read.notes
: user notes on this book.user_category
: many-to-manyid
.user.id
.category.id
.book_category
: many-to-manyid
.book.google_id
.category.id
.book_user_comment
: many-to-manyid
.comment.id
.book.google_id
but the book in question should have is_public
with a value of 1
.user.id
.book_user_comment.id
, for creating nested comments, if it's null, then will be a top-tree comment.book_user_rating
: many-to-manyid
.rating
: a string from 1-5.book.google_id
but the book in question should have is_public
with a value of 1
.user.id
./
: /user
: pip install -r requirements.txt
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
python manage.py run