-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
52 lines (44 loc) · 1.7 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Structure of Firestore DB:
userContent[Collection] -> CurrentUser's EmailID [Document] ->
posts [Field Array] ->
[0] - String - Image's Appwrite storage bucket URL
[1] - timestamp - Timestamp of image upload
[2] - number - Number of likes
[3] - String - Caption of the post
globalPosts (Collection)
└── postID (Document)
├── mediaUrl: String
├── createdAt: Timestamp
├── likeCount: Number
├── caption: String
├── userId: String
├── likedBy: Array
userPosts (Collection)
└── userEmail (Document)
└── posts (Subcollection)
└── postID (Document)
├── mediaURL: String
├── createdAt: Timestamp
├── likeCount: Number
├── caption: String
├── userId: String
├── likedBy: Array
users (Collection)
└── userId (Document)
├── username: String
├── bio: String
├── profileImgUrl: String
├── bannerImgUrl: String
likes (Collection)
└── post1 id (Document)
├── username1: String
├── username2: String
├── username3: String
└── post2 id (Document)
├── username1: String
├── username2: String
├── username3: String
└── post3 id (Document)
├── username1: String
├── username2: String
├── username3: String