idk even know anymore

i think i added games
This commit is contained in:
2026-02-15 21:48:01 +03:00
parent 7ced62517a
commit c357e78003
18 changed files with 568 additions and 14 deletions

10
model/game.go Normal file
View File

@@ -0,0 +1,10 @@
package model
type Game struct {
Model
Name string `json:"name"`
SteamAppID int `json:"steamAppId"`
Image string `json:"image"`
ReleaseDate string `json:"releaseDate"`
}

View File

@@ -5,4 +5,5 @@ type User struct {
Login string `json:"login" gorm:"unique"`
Password string `json:"-"`
Games []Game `json:"games" gorm:"many2many:user_games"`
}