Added game last played, and total play time stats

* Added game last played, and total play time stats
This commit is contained in:
Michael Green
2024-02-07 16:19:30 +11:00
committed by GitHub
parent 3c451f5558
commit a2d863dc7a
10 changed files with 322 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE `UserTimeTracking` (
`GameId` BIGINT NULL,
`UserId` VARCHAR(45) NULL,
`SessionId` VARCHAR(45) NULL,
`SessionTime` DATETIME NULL,
`SessionLength` INT NULL,
INDEX `UserId_idx` (`UserId` ASC) VISIBLE,
INDEX `SessionId_idx` (`SessionId` ASC) VISIBLE,
CONSTRAINT `UserId`
FOREIGN KEY (`UserId`)
REFERENCES `Users` (`Id`)
ON DELETE CASCADE
ON UPDATE NO ACTION);