Added game last played, and total play time stats
* Added game last played, and total play time stats
This commit is contained in:
13
gaseous-server/Support/Database/MySQL/gaseous-1020.sql
Normal file
13
gaseous-server/Support/Database/MySQL/gaseous-1020.sql
Normal 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);
|
Reference in New Issue
Block a user