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

9
models/metric_setting.go Normal file
View File

@@ -0,0 +1,9 @@
package models
type MetricSetting struct {
ID uint `json:"id" gorm:"primary_key"`
Name string `json:"name" binding:"required"`
WeaponCategory string `json:"weapon_category" binding:"required"`
Value float64 `json:"value" binding:"required"`
Game string `json:"game" binding:"required"`
}