How can I structure the paths to my product images and videos in the database?
Below is the SQL for creating the product table:
CREATE TABLE products (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
quantity INT NOT NULL,
description VARCHAR(1000),
price DECIMAL(7,2) NOT NULL,
status INT NOT NULL,
created DATETIME,
modified DATETIME
);
The paths to:
- Product photos
- Thumbnail (small product description photo)
- Product videos
And how do I differentiate each path (if the user wants a particular photo or all the photos)?