且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Swift在Firebase中创建具有多个属性的用户?

更新时间:2023-01-15 12:39:16

传统上,您将在Firebase中创建一个/users节点,其中包含您要存储的有关该用户的任何其他信息.

Traditionally, you would create a /users node in Firebase that contains any other info you want to store about that user.

使用uid(user_id)作为每个用户的节点名.

Use the uid (user_id) as the node name for each user.

users
  uid_0
   name: "Bill"
   food: "Pizza"
  uid_1
   name: "Ted"
   food: "Tacos"

此问题已被询问过,因此请在询问之前尝试搜索与您类似的问题.

This question has been asked before so please try searching for questions similar to yours before asking.

此处有更多信息 Firebase用户节点