fitur fitur darkmode dan foto foto
This commit is contained in:
@@ -56,3 +56,14 @@ ON DUPLICATE KEY UPDATE
|
||||
image = VALUES(image),
|
||||
description = VALUES(description),
|
||||
status = VALUES(status);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS product_images (
|
||||
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
product_id INT UNSIGNED NOT NULL,
|
||||
image VARCHAR(255) NOT NULL,
|
||||
sort_order INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
CONSTRAINT fk_product_images_product
|
||||
FOREIGN KEY (product_id) REFERENCES products(id)
|
||||
ON DELETE CASCADE
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user