add .gitignore, delete model (LiveEnnoblement)
This commit is contained in:
parent
cf1560a753
commit
7a8582fd0b
|
@ -0,0 +1,14 @@
|
||||||
|
# Binaries for programs and plugins
|
||||||
|
*.exe
|
||||||
|
*.exe~
|
||||||
|
*.dll
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
|
||||||
|
# Test binary, built with `go test -c`
|
||||||
|
*.test
|
||||||
|
|
||||||
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
|
*.out
|
||||||
|
|
||||||
|
.idea
|
|
@ -1,13 +0,0 @@
|
||||||
package models
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
type LiveEnnoblement struct {
|
|
||||||
VillageID int `gqlgen:"-" json:"villageID"`
|
|
||||||
Village *Village `gqlgen:"-" json:"village,omitempty"`
|
|
||||||
NewOwnerID int `gqlgen:"-" json:"newOwnerID"`
|
|
||||||
NewOwner *Player `gqlgen:"-" json:"newOwner,omitempty"`
|
|
||||||
OldOwnerID int `gqlgen:"-" json:"oldOwnerID"`
|
|
||||||
OldOwner *Player `gqlgen:"-" json:"oldOwner,omitempty"`
|
|
||||||
EnnobledAt time.Time `pg:"default:now(),use_zero" json:"ennobledAt" gqlgen:"ennobledAt"`
|
|
||||||
}
|
|
Reference in New Issue