My apologies if stackoverflow is not the best place for this question.
I'm relatively new to SQL still so I have a question about the best way to handle certain information. My job is to populate products on an ecommerce site with their relevant PDF files. This can range from product manuals, to CAD drawings, brochures, data sheets, so on and so on.
At first it seems like I'd want to give each category of downloadable file it's own column in the database. But that's going to get bloated as we sell a very large range of products, so the total number of downloadable file categories is going to be ridiculous.
My second thought was to load the data all into one column, but use something like JSON. When the data is pulled and read on the website I could read the JSON server-side to create the listing of filename titles and urls in a nice HTML list.
Is there a third option that I am overlooking? What's the best practice here?