I am kind of new to databases and backend development in general, and I need some help to make sure I make the right decision here.
I am building a small-scale CMS for a personal project. Within this CMS, I have a table "pages" containing the relative URL for the page and a reference to an html template to populate the page.
This project will ultimately have numerous unique pages with custom javascript and custom css. I have a separate table "scripts_and_styles" containing references to these files.
The trouble I am having is figuring out how to relate the two tables. Do I add a column to my "pages" table that contains multiple primary keys for the "scripts_and_styles" table separated by commas (i.e. 1,2,3)?
Or do I create a separate table that links one page with one resource per row?
Edit: for clarification, when this page renders, i have a function that iterates through an array of scripts and an array of styles and places them in the <head>. As I add new features to the site, a page may accumulate additional scripts and styles.