idk even know anymore
i think i added games
This commit is contained in:
10
model/game.go
Normal file
10
model/game.go
Normal 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"`
|
||||
}
|
||||
@@ -5,4 +5,5 @@ type User struct {
|
||||
|
||||
Login string `json:"login" gorm:"unique"`
|
||||
Password string `json:"-"`
|
||||
Games []Game `json:"games" gorm:"many2many:user_games"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user