Add models for game, cache and settings.

This commit is contained in:
MaxJa4
2024-01-17 18:38:35 +01:00
parent 7e3c02e37e
commit 5af0f437b0
6 changed files with 245 additions and 3 deletions

11
models/cache.go Normal file
View File

@@ -0,0 +1,11 @@
package models
import "time"
type PlayerCache struct {
CacheID uint `json:"cache_id" gorm:"primary_key"`
PlayerID uint `json:"player_id"`
CacheDate time.Time `json:"date"`
Score float32 `json:"score" gorm:"default:-1.0"`
Game string `json:"game"`
}