8 lines
299 B
SQL
8 lines
299 B
SQL
DROP TABLE IF EXISTS `user_wishlist`;
|
|
|
|
CREATE TABLE `user_wishlist` (
|
|
`user_id` INT UNSIGNED NOT NULL,
|
|
`product_id` INT UNSIGNED NOT NULL,
|
|
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
PRIMARY KEY (`user_id`,`product_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; |