Dawid
August 6, 2021, 9:06pm
1
Hey guys,
I’m building social media app. My database looks like:
USER can upload VIDEO on any SPOT. I need to display list of USERS who uploaded VIDEO on the same SPOT. How to make it work?
I can only display list of SPOTS and set filter to ALL SPOTS.
Please help me.
Dawid
August 14, 2021, 10:54am
2
Anyone can help me? Still didn’t figure it out.
bhanu
August 14, 2021, 12:35pm
3
Create a many to many relationship between users and spots. Because a user can upload to many spots and each spot has many users uploading the videos.
Create a one to many relationship between spot and videos. A spot can have many videos, but each video belongs to only one spot.
Now when you filter by a spot, you’ll only see list of videos in that spot, uploaded by all the users.
Dawid
August 15, 2021, 10:44am
4
Thank you.
I realized that I need to display ranking of videos on spot. Is it the same way? How should I sort these videos by sum of vote up and vote down?
ᐧ
bhanu
August 15, 2021, 11:02am
5
Yup, count the number of votes and sort is accordingly
Dawid
August 15, 2021, 12:45pm
6
Thanks. Also, why when I duplicate screen some buttons change places in preview? How to fix that?
niedz., 15 sie 2021, 13:13 użytkownik Bhanu Vadlakonda via Adalo <adalo@discoursemail.com > napisał:
bhanu
August 15, 2021, 1:28pm
7
My suggestion would be not to duplicate the screens, I don’t have a right answer to this issue.
bhanu
August 16, 2021, 8:43am
9
I’d say, it’s more a limitation than a bug. Copied components do have some alignment issues.
Dawid
August 16, 2021, 10:40am
10
I’ve tried to replicate that and after click on buttons they change positions.
ᐧ
Dawid
August 16, 2021, 2:11pm
11
Hey man,
I’d love to ask one question. I’ve got up/down vote system. User who votes is adding to column “upvode” or “downvote”. I’ve created separate column “Score” in Videos collection to be able to sort my list of videos by Score - from high to low.
When I vote UP the nickname goes to “Upvote” column but if video is voted down and user votes up, it should be score +1 but I can only make 0 because I’m able to add or delete 1 when user clicks in “Score” table. How to make it work?
ᐧ
bhanu
August 16, 2021, 2:29pm
12
Hey @Dawid
Apologies, I don’t really understand your request, can you please rephrase it?
Maybe in a new post so that it wouldn’t confuse other forum members please?
Thanks!
Dawid
August 16, 2021, 3:58pm
13
system
Closed
August 26, 2021, 3:58pm
14
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.