Rank 2: Process
I am not sure but as I am working more on my project with AppWrite, I face many new things which I think not possible with AppWrite.
After getting overcooked with AppWrite Messaging, I thought to handle Notifications with my own logic. And to do this I need to store each session FCM token in database.
So, let's get started with the database structure I want to use:
At First, I have a Single Database named as "Database"
Inside that I have two collections named as "Users" and "Tokens".
As the name suggest Users collection just stores the authenticated user basic details. No problem with this collection.
In the Tokens collections, I want to document like this "User1", "User2", "User3"....
Inside each user I want to create something like key value pair. Like
"Session1" : "token1",
"Session2" : "token2",
"Session3" : "token3",
"Session4" : "token4",
Is it possible to create such scenario in AppWrite? I think No. What's your thought?