hack4impact-mcgill / mu-crm-tool

1 stars 3 forks source link

Add and change pictures for a given project #13

Open celinehuang opened 3 years ago

celinehuang commented 3 years ago

Related to #10

Allow users to add or change pictures for a specific project. Must figure out how to store photos in the database (probably best to have a file path to DB)

CurtisMIT commented 3 years ago

Hey @celinehuang ,

Thanks!

celinehuang commented 3 years ago

@CurtisMIT

Does that mean that every project has a list of pictures? (Could have multiple pics, could have 0 pics as well)

Yes, I believe so

Would we want to create a 'Photo' model and have a 1 to n relationship (1 Project to n Photos)

Yes I think this is a really good idea!

When you say store photos in the database, are you referring to actually storing them in the table? (Encode img to base64) Or are you saying that we'll have a folder specifically to store the imgs.

Hm what I had in mind was more like storing them in Amazon S3 or Firebase or Cloudflare - I guess neither in an actual table nor in a folder

CurtisMIT commented 3 years ago

Thanks @celinehuang !