BE: Add user data to Firestore DB on registration
Currently on registration the user is only added to FireBase Authentication
-
Need to add user info to Firestore DB (First name, Last name, email, username, uid) on registration
-
add empty/null fields for favourites and study room preferences
then also: under
DBStorage.kt, under thestoreBookingsfunction, uncomment theval userRefand ensure the userID added to the bookings collection is a reference to the userID in the users collection (like howstudyRoomRefis a reference to thestudyRoomscollection in the same function)
UID in authentication DB should be the unique ID in the users collections in Firestore
Edited by Iman Ahsan