實作前台 APP 呈現、APP 詳細頁面
This commit is contained in:
@@ -353,6 +353,7 @@ CREATE TABLE `user_ratings` (
|
||||
`user_id` VARCHAR(36) NOT NULL,
|
||||
`app_id` VARCHAR(36) NOT NULL,
|
||||
`rating` DECIMAL(3,2) NOT NULL CHECK (`rating` >= 1.0 AND `rating` <= 5.0),
|
||||
`comment` TEXT NULL,
|
||||
`rated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE,
|
||||
FOREIGN KEY (`app_id`) REFERENCES `apps`(`id`) ON DELETE CASCADE,
|
||||
|
Reference in New Issue
Block a user