first commit

This commit is contained in:
Aurélie Delhaie
2022-05-08 14:08:27 +02:00
commit b20a53cc48
19 changed files with 611 additions and 0 deletions

20
database/model.go Normal file
View File

@@ -0,0 +1,20 @@
package database
import "time"
type User struct {
ID int `json:"id"`
Username string `json:"username"`
Password []byte `json:"-"`
}
type Game struct {
ID int `json:"id"`
Name string `json:"name"`
Revision int `json:"rev"`
PathStorage string `json:"-"`
Hash string `json:"hash"`
LastUpdate time.Time `json:"last_update"`
UserId int `json:"-"`
Available bool `json:"available"`
}