Skip to content
rkolla1 edited this page Sep 4, 2019 · 1 revision

Welcome to the Class01 wiki!

This is our data design in the database:

  1. Login : for login we used Email/password authentication in firebase.

After the user logs in we have separate database for users,chats.

  1. Users database: we are storing users as separate database to quickly access user data so that it is easy to retrieve profile.

users Attributes: city,gender,id,imageurl,status,username.

imageurl is the url of the image that is stored in firebase storage.we can't store image in database so we store the url that links to the image id - is just the authentication user id. rest of the attributes are common user attributes

  1. Groups Database: Inside Groups Database we have Members and Messages. Members attributes - name Messages database will have each message that user has posted Each message will have these attributes - timestamp,likes,message info, user name who kept the message userid of the user who kept the message and user image.
Clone this wiki locally