I want to design a feature where the user can see the most recent books he has browsed, I want to build the feature which can support logged in or logged out cases.
I am thinking to have the following model to store in the user table.
{
id: 'increment id'
user_id : 'user id',<<for logged out users,it will be some unique browser uuid>>
book_id : 'book uuid'
time: 'view time'
}
Please give your suggestions?
Aucun commentaire:
Enregistrer un commentaire