I’m working on an e-commerce store that is multi-lang and I’m using Node.js and PostgreSQL.
I’m confused if I should store the product images in a separate table or in a JSONB column in database?
The same thing for the translation, the product may have different titles for every language so which one is better ? to store them in a separate table too, or in JSONB column?
Edit 1: By saving images in the database I mean the path of the image in Amazon S3 or something like this not the image itself
Edit 2: Let's say I have a logo, thumbnail, and banner for the product also the product has multiple images for the carousel, which one is better, store them in JSONB column or multiple varchar columns or a separate table?