How do i do a aucion app that evertime someone bid it updated the bid amount and it also take the bit out of his account or can someone give me a better idea
You could have a bid collection, and then display a list of bids ordered by highest amount first, limited to one result. Then it would display the highest bid.
So each time a user bids, it creates a new ‘bid’ on the database.
Your bid would have a relationship to the auction/item (an auction can have many bids, a bid can only have one auction), and a relationship to which user bidded (a bid can have one user, a user can have many bids).
1 Like
how should the bid collection look and property should it have?
Should at least have an item relationship, user relationship, and an amount.
1 Like
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.