Initial commit
This commit is contained in:
commit
48b34bca9d
102 changed files with 278172 additions and 0 deletions
7
model/game.go
Normal file
7
model/game.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package model
|
||||
|
||||
type Game struct {
|
||||
ID int
|
||||
UserID int
|
||||
Name string
|
||||
}
|
12
model/game_member.go
Normal file
12
model/game_member.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package model
|
||||
|
||||
const (
|
||||
RoleGameMaster = "role_game_master"
|
||||
RolePlayer = "role_player"
|
||||
)
|
||||
|
||||
type GameMember struct {
|
||||
GameID int
|
||||
UserID int
|
||||
Role string
|
||||
}
|
9
model/user.go
Normal file
9
model/user.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package model
|
||||
|
||||
type User struct {
|
||||
ID int
|
||||
Name string
|
||||
Mail string
|
||||
Username string
|
||||
Password string
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue