-
Notifications
You must be signed in to change notification settings - Fork 0
Firebase
Lee-Gahyun edited this page May 7, 2023
·
24 revisions
AIChat
Each user has an AI Chat document.
field | function |
---|---|
check (array) |
related to read processing (1 : read, 2 : not read) |
key (string) |
The name of the current document |
lastChat (string) |
last chat sent |
name (array) |
The names of the interlocutors |
time (timeStamp) |
The last time the chat was sent |
uid (array) |
the uid of the interlocutors |
Chats (collection) |
Conversations |
Chats
Map one chat to one document.
field | function |
---|---|
message (string) |
Chat content |
name (string) |
Sender name |
time (timeStamp) |
The last time the chat was sent |
uid (string) |
sender's uid |
In Board collection, there are categories which were set by us like AI친구
, 강아지
etc.
Example: Board > AI친구 > post
post
About posts in each categories.
field | function |
---|---|
content (string) |
post's content |
email (string) |
writer's email |
favName (string) |
name of the category |
name (string) |
user's name |
time (string) |
writing time |
title (string) |
post's title |
ChatRoomList
Chatting with Users
field | function |
---|---|
check (array) |
related to read processing (1 : read, 2 : not read) |
key (string) |
The name of the current document |
lastChat (string) |
last chat sent |
name (array) |
The names of the interlocutors |
time (timeStamp) |
The last time the chat was sent |
uid (array) |
the uid of the interlocutors |
Chats (collection) |
Conversations |
Chats
Map one chat to one document.
field | function |
---|---|
message (string) |
Chat content |
name (string) |
Sender name |
time (timeStamp) |
The last time the chat was sent |
uid (string) |
sender's uid |
About categories and the user who belong.
fav
field | function |
---|---|
favName (string) |
name of category |
users (array) |
list of users who belong the category |
User's information
user
field | function |
---|---|
notification (collection) |
notifications |
email (string) |
the user's email |
frineds (array) |
user's friends list |
request (array) |
requests of being friend |
notification
field | function |
---|---|
content (string) |
content of notification |
time (string) |
announce time |
type (string) |
notification's type, system or request |