Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any chance that we can have a look at the firestore schema (structure) #171

Closed
amoo12 opened this issue May 14, 2021 · 5 comments
Closed

Comments

@amoo12
Copy link

amoo12 commented May 14, 2021

Hi, amazing work here mate

  1. is there any chance that we can check the firestore schema (structure), I would like to have a look at the way you structure firestore collections.

  2. are you using cloud functions to propagate any data changes?

I am trying to find solutions for some scenarios for example:
where we need to update older tweets when the user changes their profile picture. I believe that this is still an active issue with Fwitter.

you might want to check this out, this project provides solid solutions to such scenarios.

https://medium.com/@garyalexanderpiong/building-a-working-instagram-clone-using-flutter-and-firebase-1c9f9bb960ef

@TheAlphamerc
Copy link
Owner

@amoo12 Sharing firestore database screenshots for your reference

Main Collections

Screenshot 2021-05-16 at 1 35 06 PM

Message Collection

Screenshot 2021-05-16 at 1 35 18 PM

Profile Collection

Screenshot 2021-05-16 at 1 35 47 PM

Chat Users Inside Profile Collection

Screenshot 2021-05-16 at 1 36 30 PM

Following User inside Profile collection

Screenshot 2021-05-16 at 1 36 41 PM

Notifications Inside Profile Collection

Screenshot 2021-05-16 at 1 36 58 PM

Tweet Collection

Screenshot 2021-05-16 at 1 37 11 PM

If you also want to have a look into realtime database scheme then have a look here #21 (comment)

@amoo12
Copy link
Author

amoo12 commented May 18, 2021

thank you @TheAlphamerc this will help a lot, I will go ahead and close this issue.

@ScottLee97
Copy link

Hi @TheAlphamerc, thank you so much for sharing this!

Do you mind sharing with me the reason for having both timestamp and createdAt in your message documents? Wouldn't one be enough?

Thanks in advance!

@TheAlphamerc
Copy link
Owner

Actually I added timestamp to replace createdAt parameter but didn't got time to implement it.

@vineetk1984
Copy link

Hi @TheAlphamerc , Thank you for sharing the schema of FireStore collection. I have created exactly the same schema on the Firebase. But it is still not saving the data in the firebase collection from app. However, the realtime database is working fine. Is there anything needs to be configured in the app to send data to the firebase firestore collections. Kindly share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants