associated Firebase data with Users
associated Firebase data with Users How to Connect Firebase Users to their Data - 3 Methods​
  • Keep data shallow in NoSQL vs SQL
  • use auth state to get current user id. And then can do queries based on that auth state, for items nested under that user id.
  • firebase security rules on firestorm
Other option
  • adding user id on the item
Multiple users
​

ADR around reasoning to design of schema and security

digital-paper-edit-firebase/2019-12-02-nosql-schema-security.md at master Β· bbc/digital-paper-edit-firebase
GitHub
ADR around the NoSQL Schema

Example of implementation

digital-paper-edit-firebase/firestore.rules at master Β· bbc/digital-paper-edit-firebase
GitHub
Security Rules
​