mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
8 lines
240 B
SQL
8 lines
240 B
SQL
CREATE TABLE IF NOT EXISTS catalog_favorites (
|
|
user_id INT NOT NULL,
|
|
type ENUM('offer', 'page') NOT NULL,
|
|
target_id INT NOT NULL,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
PRIMARY KEY (user_id, type, target_id)
|
|
);
|