add .gitignore, delete model (LiveEnnoblement)

This commit is contained in:
Dawid Wysokiński 2021-03-21 11:53:45 +01:00
parent cf1560a753
commit 7a8582fd0b
2 changed files with 14 additions and 13 deletions

14
.gitignore vendored Normal file
View File

@ -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

View File

@ -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"`
}