I'm coding a app that receive data about the current user from a Web service and store the information in a local sqlite storage to make this data avaiable when the internet connection is'nt available.
When a user logout and another one login I replace all information of the old user with the new user informationm, ie, the information in the local storage always will be of the current user, so i dont have to worry about table relationships, for instance:
The table "messages" dont have to be a field "user_id" because all the messages always will be from the current user loged in.
I'm new on mobile dev and I need to know if this aproach is a good point, and if not, what is the best practice to handle cases like that.