We should update the db model. Currently, a submission has many attachments and reviews. Instead, I propose that a submission has many attachments, and attachments have many reviews.
The ideal use case here is that people will make a post, and then others can add other images in the thread that is created. That way we can add more images.
All of the approved files will be posted. All of the disapproved files will be ignored.
Edge Cases:
If someone submits an attachment for an image that already has been posted, then they should receive an error message.
If someone posts several attachments in one message, all attachments should be approved/denied at the same time.
We should update the db model. Currently, a submission has many attachments and reviews. Instead, I propose that a submission has many attachments, and attachments have many reviews.
The ideal use case here is that people will make a post, and then others can add other images in the thread that is created. That way we can add more images.
All of the approved files will be posted. All of the disapproved files will be ignored.
Edge Cases: