Add models for game, cache and settings.
This commit is contained in:
11
models/cache.go
Normal file
11
models/cache.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user