EduRAIN / App-API

Laravel PHP back-end for user-facing webapp
0 stars 0 forks source link

Scholarships - Report scholarship #2

Open wbvtler opened 4 years ago

wbvtler commented 4 years ago

We need a method to collect user feedback regarding scholarship quality, and quantify that reporting.

To do this, we would like a new reported attribute added to each scholarship which counts the number of times it is reported by users, with the default being 0.

We will then need an endpoint for the client to hit which causes the value of reported to increment by 1.

b4bhadresh2020 commented 4 years ago

@wbvtler I think we need a new schema for handling Scholarship reported. Right now We just store the counter for each Scholarship but not store user_id who reported this. The problem is that the same user can report the Scholarship multiple time.

wbvtler commented 4 years ago

@b4bhadresh2020 this is a good point. Could you, instead of making it an incrementing number, make it an array of the IDs of users who reported it?