0
How can I structure in the database the paths to the images and videos of my product?
Below the SQL of product table creation:
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:
- Pictures of the product
- Thumbnail (small descriptive photo of the product)
- Videos of the product
And how I differentiate each path (in case the user wants a certain photo or all photos)?
Now there’s a good question...
– Jorge B.
this answer may be useful: http://answall.com/questions/73194/qual-maneira-correct-de-salvar-imagens-em-um-servidor/73201#73201
– Daniel Omine