Skip to content

Commit

Permalink
fix: multiple media
Browse files Browse the repository at this point in the history
  • Loading branch information
Aderfish committed Jun 6, 2024
1 parent 85a572c commit 7177b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/9-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The distinction between the display name and the username is important. The disp

**Posts :** This collection manages the location-based posts. The posts are stored in a root collection where for each post the following data is stored:

Title (String), Description (String), Publication time (Timestamp), Owner Id (String), Post location (GeoPoint), Post location geohash (String), Number of comments (int), Voting score (int), Media Link (URL).
Title (String), Description (String), Publication time (Timestamp), Owner Id (String), Post location (GeoPoint), Post location geohash (String), Number of comments (int), Voting score (int), Media Links (URL List).

The owner id is a string corresponding to the document id of the user who posted the post. The post location geohash is used to perform efficient geo-queries that minimize the number of reads and thus the cost.
The media link is a URL referencing the media displayed in the post, stored in Firebase Storage. It can be null if the post is only textual.
Expand Down

0 comments on commit 7177b89

Please sign in to comment.