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

Firestore database #43

Closed
thierry-tct opened this issue Jun 1, 2020 · 2 comments
Closed

Firestore database #43

thierry-tct opened this issue Jun 1, 2020 · 2 comments

Comments

@thierry-tct
Copy link

Is there a way to easily get the database model for the Firestore branch?

I saw the Collection names in the file lib/helper/constant.dart. However, It is not clear which Collection corresponds to which model.

@TheAlphamerc
Copy link
Owner

Store List of User Model in db

const String USERS_COLLECTION = "profile";

Store List of FeedModel Model in db

const String TWEET_COLLECTION = "tweet";

Store List of ChatMessage Model in db

const String MESSAGES_COLLECTION = "messages";

Store List of ChatMessage Model in db
chatUsers are stored in ChatMessage on purpose

const String CHAT_USER_LIST_COLLECTION = "chatUsers";

Store NotificationModel Model in db

const String NOTIFICATION_COLLECTION = "notification";

@thierry-tct
Copy link
Author

Many Thanks!

Great work

TheGithubMafia added a commit to TheGithubMafia/twitter_clone_flutter that referenced this issue Jul 9, 2021
TheGithubMafia pushed a commit to TheGithubMafia/chandni2428_79256f12-cfde-47fe-871b-0869f63ed81b that referenced this issue Jan 12, 2022
TheGithubMafia pushed a commit to TheGithubMafia/chandni2428_23c103d5-7f1d-4b18-838c-833c313f54d1 that referenced this issue Jan 12, 2022
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

2 participants