我怀疑Firebase中2个表之间的映射关系。我目前在iOS上使用Firebase,并且遇到以下情况:
我有一个用户表,其中管理着用户的基本信息,如电子邮件,姓名和所有信息。现在,我还有另一个名为User-Images的表。现在,一个用户有很多图像,我要分别管理“图像”表,但是我想与特定用户映射每个图像。因此,如何为用户映射图像。如果您要求数据库结构看起来与下面类似。
c.execute('delete from Database where isnull(Value1,"")=? and isnull(Value2,"")=? and isnull(Value3,"")=? and isnull(Value4,"")=? and isnull(Value5,"")=? and isnull(Value6,"")=?',
(itemValueList[0], itemValueList[1], itemValueList[2], itemValueList[3], itemValueList[4], itemValueList[5]))
这是我的数据库结构,我想在“图像”节点和“用户”中的图像之间建立关系。