所以我决定考虑如何继续使用我的应用程序中的结构,然后继续编码,因为我是NoSQL的新手。
Users:
ID
email: "john@doe.com"
name: "John Doe"
profile_pic_path: "https://...".
language: "en"
exp_points: 1284
Projects:
/$PROJECT_ID
title: "For whom the bell tolls"
image: "etc.png"
project_roles:
/$PROJECT_ID
$userId1: 5
$userId2: 6
roles:
5: "Editor"
6:" Writer"
现在我需要将orders
添加到projects
。每个order
都是items
的列表。
我的问题是:
答案 0 :(得分:0)
昨天我开始学习json数据库,在本例中是firebase实时数据库......并且对firebase的正确模式有疑问......当你想要创建firebase数据库时,你需要有3个概念: / p>
如果应用此概念,您可以构建一个好的JSON数据库。要详细了解此信息,请参阅此guide,其中包含示例和Google信息。我无法执行您的架构,因为您比我们了解您的应用程序所需的内容,阅读它,遵循示例并构建最佳架构。这篇youtuber讨论了firebase realdatabase及其规则的良好实践。问候!!