Add ability to set games/roms as favouriteFixes #49

* Add ability to set games/roms as favourite
Fixes #49
This commit is contained in:
Michael Green
2024-02-08 12:47:22 +11:00
committed by GitHub
parent 73174a30f0
commit b5511a3c51
12 changed files with 287 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
CREATE TABLE `Favourites` (
`UserId` varchar(45) NOT NULL,
`GameId` bigint(20) NOT NULL,
PRIMARY KEY (`UserId`,`GameId`),
KEY `idx_GameId` (`GameId`),
KEY `idx_UserId` (`UserId`),
CONSTRAINT `ApplicationUser_Favourite` FOREIGN KEY (`UserId`) REFERENCES `Users` (`Id`) ON DELETE CASCADE ON UPDATE NO ACTION
);