initial structure

This commit is contained in:
arnaucube
2019-06-13 18:54:12 +02:00
parent f823601eed
commit f7a5bbb91e
14 changed files with 456 additions and 0 deletions

10
models/galaxy.go Normal file
View File

@@ -0,0 +1,10 @@
package models
type Galaxy struct {
SolarSystem []string
}
type SolarSystem struct {
Id string
Planets []string // array with ids of the planets
}

8
models/planet.go Normal file
View File

@@ -0,0 +1,8 @@
package models
type Planet struct {
Id string
Size int64 // fields
Name string
OwnerId string
}

18
models/user.go Normal file
View File

@@ -0,0 +1,18 @@
package models
type Resource struct {
Value int64
Max int64
}
type User struct {
Id string
Name string
Email string
Resources struct {
Metal Resource
Crystal Resource
Deuterium Resource
Energy Resource
}
}