twmodel

package
v0.0.0-...-f4cb4c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 12 Imported by: 53

Documentation

Index

Constants

View Source
const CoordsSeparator = "|"

Variables

This section is empty.

Functions

This section is empty.

Types

type Building

type Building struct {
	Text            string  `xml:",chardata" json:"-" gqlgen:"text"`
	MaxLevel        int     `xml:"max_level" json:"max_level" gqlgen:"maxLevel"`
	MinLevel        int     `xml:"min_level" json:"min_level" gqlgen:"minLevel"`
	Wood            int     `xml:"wood" json:"wood" gqlgen:"wood"`
	Stone           int     `xml:"stone" json:"stone" gqlgen:"stone"`
	Iron            int     `xml:"iron" json:"iron" gqlgen:"iron"`
	Pop             int     `xml:"pop" json:"pop" gqlgen:"pop"`
	WoodFactor      float64 `xml:"wood_factor" json:"wood_factor" gqlgen:"woodFactor"`
	StoneFactor     float64 `xml:"stone_factor" json:"stone_factor" gqlgen:"stoneFactor"`
	IronFactor      float64 `xml:"iron_factor" json:"iron_factor" gqlgen:"ironFactor"`
	PopFactor       float64 `xml:"pop_factor" json:"pop_factor" gqlgen:"popFactor"`
	BuildTime       float64 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
	BuildTimeFactor float64 `xml:"build_time_factor" json:"build_time_factor" gqlgen:"buildTimeFactor"`
}

type BuildingConfig

type BuildingConfig struct {
	XMLName    xml.Name `xml:"config" json:"-" gqlgen:"xmlName"`
	Text       string   `xml:",chardata" json:"-" gqlgen:"text"`
	Main       Building `xml:"main" json:"main" gqlgen:"main"`
	Barracks   Building `xml:"barracks" json:"barracks" gqlgen:"barracks"`
	Stable     Building `xml:"stable" json:"stable" gqlgen:"stable"`
	Garage     Building `xml:"garage" json:"garage" gqlgen:"garage"`
	Watchtower Building `xml:"watchtower" json:"watchtower" gqlgen:"watchtower"`
	Snob       Building `xml:"snob" json:"snob" gqlgen:"snob"`
	Smith      Building `xml:"smith" json:"smith" gqlgen:"smith"`
	Place      Building `xml:"place" json:"place" gqlgen:"place"`
	Statue     Building `xml:"statue" json:"statue" gqlgen:"statue"`
	Market     Building `xml:"market" json:"market" gqlgen:"market"`
	Wood       Building `xml:"wood" json:"wood" gqlgen:"wood"`
	Stone      Building `xml:"stone" json:"stone" gqlgen:"stone"`
	Iron       Building `xml:"iron" json:"iron" gqlgen:"iron"`
	Farm       Building `xml:"farm" json:"farm" gqlgen:"farm"`
	Storage    Building `xml:"storage" json:"storage" gqlgen:"storage"`
	Hide       Building `xml:"hide" json:"hide" gqlgen:"hide"`
	Wall       Building `xml:"wall" json:"wall" gqlgen:"wall"`
}

type Coords

type Coords struct {
	X int
	Y int
}

func ParseCoords

func ParseCoords(coords string) (*Coords, error)

type DailyPlayerStats

type DailyPlayerStats struct {
	ID         int       `json:"id" gqlgen:"id" xml:"id"`
	PlayerID   int       `pg:",unique:group_1" json:"playerID" gqlgen:"playerID" xml:"playerID"`
	Player     *Player   `json:"player" gqlgen:"-" xml:"player" pg:"rel:has-one"`
	Villages   int       `json:"villages" pg:",use_zero" gqlgen:"villages" xml:"villages"`
	Points     int       `json:"points" pg:",use_zero" gqlgen:"points" xml:"points"`
	Rank       int       `json:"rank" pg:",use_zero" gqlgen:"rank" xml:"rank"`
	CreateDate time.Time `pg:"default:CURRENT_DATE,type:DATE,use_zero,unique:group_1" json:"createDate" gqlgen:"createDate" xml:"createDate"`

	OpponentsDefeated
	// contains filtered or unexported fields
}

type DailyPlayerStatsFilter

type DailyPlayerStatsFilter struct {
	PlayerID     []int         `json:"playerID" gqlgen:"playerID" xml:"playerID"`
	PlayerIDNEQ  []int         `json:"playerIDNEQ" gqlgen:"playerIDNEQ" xml:"playerIDNEQ"`
	PlayerFilter *PlayerFilter `json:"playerFilter" gqlgen:"playerFilter" xml:"playerFilter"`

	CreateDate    time.Time `json:"createDate" gqlgen:"createDate" xml:"createDate"`
	CreateDateGT  time.Time `json:"createDateGT" gqlgen:"createDateGT" xml:"createDateGT"`
	CreateDateGTE time.Time `json:"createDateGTE" gqlgen:"createDateGTE" xml:"createDateGTE"`
	CreateDateLT  time.Time `json:"createDateLT" gqlgen:"createDateLT" xml:"createDateLT"`
	CreateDateLTE time.Time `json:"createDateLTE" gqlgen:"createDateLTE" xml:"createDateLTE"`
}

func (*DailyPlayerStatsFilter) Where

func (f *DailyPlayerStatsFilter) Where(q *orm.Query) (*orm.Query, error)

func (*DailyPlayerStatsFilter) WhereWithAlias

func (f *DailyPlayerStatsFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*DailyPlayerStatsFilter) WhereWithRelations

func (f *DailyPlayerStatsFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type DailyTribeStats

type DailyTribeStats struct {
	ID         int       `json:"id" gqlgen:"id" xml:"id"`
	TribeID    int       `pg:",unique:group_1" json:"tribeID" gqlgen:"tribeID" xml:"tribeID"`
	Tribe      *Tribe    `json:"tribe" gqlgen:"-" xml:"tribe" pg:"rel:has-one"`
	Members    int       `json:"members" gqlgen:"members" pg:",use_zero" xml:"members"`
	Villages   int       `json:"villages" gqlgen:"villages" pg:",use_zero" xml:"villages"`
	Points     int       `json:"points" gqlgen:"points" pg:",use_zero" xml:"points"`
	AllPoints  int       `json:"allPoints" gqlgen:"allPoints" pg:",use_zero" xml:"allPoints"`
	Rank       int       `json:"rank" gqlgen:"rank" pg:",use_zero" xml:"rank"`
	Dominance  float64   `json:"dominance" gqlgen:"dominance" pg:",use_zero" xml:"dominance"`
	CreateDate time.Time `pg:"default:CURRENT_DATE,type:DATE,use_zero,unique:group_1" json:"createDate" gqlgen:"createDate" xml:"createDate"`

	OpponentsDefeated
	// contains filtered or unexported fields
}

type DailyTribeStatsFilter

type DailyTribeStatsFilter struct {
	TribeID     []int        `json:"tribeID" gqlgen:"tribeID" xml:"tribeID"`
	TribeIDNEQ  []int        `json:"tribeIDNEQ" gqlgen:"tribeIDNEQ" xml:"tribeIDNEQ"`
	TribeFilter *TribeFilter `json:"tribeFilter" gqlgen:"tribeFilter" xml:"tribeFilter"`

	CreateDate    time.Time `json:"createDate" gqlgen:"createDate" xml:"createDate"`
	CreateDateGT  time.Time `json:"createDateGT" gqlgen:"createDateGT" xml:"createDateGT"`
	CreateDateGTE time.Time `json:"createDateGTE" gqlgen:"createDateGTE" xml:"createDateGTE"`
	CreateDateLT  time.Time `json:"createDateLT" gqlgen:"createDateLT" xml:"createDateLT"`
	CreateDateLTE time.Time `json:"createDateLTE" gqlgen:"createDateLTE" xml:"createDateLTE"`
}

func (*DailyTribeStatsFilter) Where

func (f *DailyTribeStatsFilter) Where(q *orm.Query) (*orm.Query, error)

func (*DailyTribeStatsFilter) WhereWithAlias

func (f *DailyTribeStatsFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*DailyTribeStatsFilter) WhereWithRelations

func (f *DailyTribeStatsFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type Ennoblement

type Ennoblement struct {
	ID              int       `json:"id" gqlgen:"id" xml:"id"`
	VillageID       int       `pg:",use_zero" gqlgen:"-" json:"villageID" xml:"villageID"`
	Village         *Village  `gqlgen:"-" json:"village,omitempty" xml:"village" pg:"rel:has-one"`
	NewOwnerID      int       `pg:",use_zero" gqlgen:"-" json:"newOwnerID" xml:"newOwnerID"`
	NewOwner        *Player   `gqlgen:"-" json:"newOwner,omitempty" xml:"newOwner" pg:"rel:has-one"`
	NewOwnerTribeID int       `pg:",use_zero" json:"newOwnerTribeID" gqlgen:"newOwnerTribeID" xml:"newOwnerTribeID"`
	NewOwnerTribe   *Tribe    `json:"newOwnerTribe,omitempty" gqlgen:"-" xml:"newOwnerTribe" pg:"rel:has-one"`
	OldOwnerID      int       `pg:",use_zero" gqlgen:"-" json:"oldOwnerID" xml:"oldOwnerID"`
	OldOwner        *Player   `gqlgen:"-" json:"oldOwner,omitempty" xml:"oldOwner" pg:"rel:has-one"`
	OldOwnerTribeID int       `pg:",use_zero" json:"oldOwnerTribeID" gqlgen:"oldOwnerTribeID" xml:"oldOwnerTribeID"`
	OldOwnerTribe   *Tribe    `json:"oldOwnerTribe,omitempty" gqlgen:"-" xml:"oldOwnerTribe" pg:"rel:has-one"`
	EnnobledAt      time.Time `pg:"default:now(),use_zero" json:"ennobledAt" gqlgen:"ennobledAt" xml:"ennobledAt"`
	// contains filtered or unexported fields
}

type EnnoblementFilter

type EnnoblementFilter struct {
	VillageID     []int          `json:"villageID" gqlgen:"villageID" xml:"villageID"`
	VillageIDNEQ  []int          `json:"villageIDNEQ" gqlgen:"villageIDNEQ" xml:"villageIDNEQ"`
	VillageFilter *VillageFilter `json:"villageFilter" xml:"villageFilter" gqlgen:"villageFilter"`

	NewOwnerID          []int         `json:"newOwnerID" gqlgen:"newOwnerID" xml:"newOwnerID"`
	NewOwnerIDNEQ       []int         `json:"newOwnerIDNEQ" gqlgen:"newOwnerIDNEQ" xml:"newOwnerIDNEQ"`
	NewOwnerFilter      *PlayerFilter `json:"newOwnerFilter" xml:"newOwnerFilter" gqlgen:"newOwnerFilter"`
	NewOwnerTribeID     []int         `json:"newOwnerTribeID" gqlgen:"newOwnerTribeID" xml:"newOwnerTribeID"`
	NewOwnerTribeIDNEQ  []int         `json:"newOwnerTribeIDNEQ" gqlgen:"newOwnerTribeIDNEQ" xml:"newOwnerTribeIDNEQ"`
	NewOwnerTribeFilter *TribeFilter  `json:"newOwnerTribeFilter" xml:"newOwnerTribeFilter" gqlgen:"newOwnerTribeFilter"`

	OldOwnerID          []int         `json:"oldOwnerID" gqlgen:"oldOwnerID" xml:"oldOwnerID"`
	OldOwnerIDNEQ       []int         `json:"oldOwnerIDNEQ" gqlgen:"oldOwnerIDNEQ" xml:"oldOwnerIDNEQ"`
	OldOwnerFilter      *PlayerFilter `json:"oldOwnerFilter" xml:"oldOwnerFilter" gqlgen:"oldOwnerFilter"`
	OldOwnerTribeID     []int         `json:"oldOwnerTribeID" gqlgen:"oldOwnerTribeID" xml:"oldOwnerTribeID"`
	OldOwnerTribeIDNEQ  []int         `json:"oldOwnerTribeIDNEQ" gqlgen:"oldOwnerTribeIDNEQ" xml:"oldOwnerTribeIDNEQ"`
	OldOwnerTribeFilter *TribeFilter  `json:"oldOwnerTribeFilter" xml:"oldOwnerTribeFilter" gqlgen:"oldOwnerTribeFilter"`

	EnnobledAt    time.Time `json:"ennobledAt" gqlgen:"ennobledAt" xml:"ennobledAt"`
	EnnobledAtGT  time.Time `json:"ennobledAtGT" gqlgen:"ennobledAtGT" xml:"ennobledAtGT"`
	EnnobledAtGTE time.Time `json:"ennobledAtGTE" gqlgen:"ennobledAtGTE" xml:"ennobledAtGTE"`
	EnnobledAtLT  time.Time `json:"ennobledAtLT" gqlgen:"ennobledAtLT" xml:"ennobledAtLT"`
	EnnobledAtLTE time.Time `json:"ennobledAtLTE" gqlgen:"ennobledAtLTE" xml:"ennobledAtLTE"`

	Or *EnnoblementFilterOr `json:"or" gqlgen:"or" xml:"or"`
}

func (*EnnoblementFilter) Where

func (f *EnnoblementFilter) Where(q *orm.Query) (*orm.Query, error)

func (*EnnoblementFilter) WhereWithAlias

func (f *EnnoblementFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*EnnoblementFilter) WhereWithRelations

func (f *EnnoblementFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type EnnoblementFilterOr

type EnnoblementFilterOr struct {
	NewOwnerID      []int `json:"newOwnerID" gqlgen:"newOwnerID" xml:"newOwnerID"`
	NewOwnerTribeID []int `json:"newOwnerTribeID" gqlgen:"newOwnerTribeID" xml:"newOwnerTribeID"`
	OldOwnerID      []int `json:"oldOwnerID" gqlgen:"oldOwnerID" xml:"oldOwnerID"`
	OldOwnerTribeID []int `json:"oldOwnerTribeID" gqlgen:"oldOwnerTribeID" xml:"oldOwnerTribeID"`
}

func (*EnnoblementFilterOr) WhereWithAlias

func (f *EnnoblementFilterOr) WhereWithAlias(q *orm.Query, alias string) *orm.Query

type FoundPlayer

type FoundPlayer struct {
	Server       string `json:"server" xml:"server" gqlgen:"server"`
	ID           int    `json:"id" gqlgen:"id" xml:"id"`
	Name         string `json:"name" gqlgen:"name" xml:"name"`
	BestRank     int    `json:"bestRank" pg:",use_zero" gqlgen:"bestRank" xml:"bestRank"`
	MostPoints   int    `json:"mostPoints" pg:",use_zero" gqlgen:"mostPoints" xml:"mostPoints"`
	MostVillages int    `json:"mostVillages" pg:",use_zero" gqlgen:"mostVillages" xml:"mostVillages"`
	TribeID      int    `json:"tribeID" xml:"tribeID" gqlgen:"tribeID"`
	TribeTag     string `json:"tribeTag" xml:"tribeTag" gqlgen:"tribeTag"`
}

type FoundTribe

type FoundTribe struct {
	Server       string `json:"server" xml:"server" gqlgen:"server"`
	ID           int    `json:"id" gqlgen:"id" xml:"id"`
	Tag          string `json:"tag" xml:"tag" gqlgen:"tag"`
	Name         string `json:"name" gqlgen:"name" xml:"name"`
	BestRank     int    `json:"bestRank" pg:",use_zero" gqlgen:"bestRank" xml:"bestRank"`
	MostPoints   int    `json:"mostPoints" pg:",use_zero" gqlgen:"mostPoints" xml:"mostPoints"`
	MostVillages int    `json:"mostVillages" pg:",use_zero" gqlgen:"mostVillages" xml:"mostVillages"`
}

type OpponentsDefeated

type OpponentsDefeated struct {
	RankAtt    int `json:"rankAtt" pg:",use_zero" gqlgen:"rankAtt"`
	ScoreAtt   int `pg:",use_zero" json:"scoreAtt" gqlgen:"scoreAtt"`
	RankDef    int `pg:",use_zero" json:"rankDef" gqlgen:"rankDef"`
	ScoreDef   int `pg:",use_zero" json:"scoreDef" gqlgen:"scoreDef"`
	RankSup    int `pg:",use_zero" json:"rankSup,omitempty" gqlgen:"rankSup"`
	ScoreSup   int `pg:",use_zero" json:"scoreSup,omitempty" gqlgen:"scoreSup"`
	RankTotal  int `pg:",use_zero" json:"rankTotal" gqlgen:"rankTotal"`
	ScoreTotal int `pg:",use_zero" json:"scoreTotal" gqlgen:"scoreTotal"`
}

type OpponentsDefeatedFilter

type OpponentsDefeatedFilter struct {
	RankAtt     int `json:"rankAtt" gqlgen:"rankAtt"`
	RankAttGT   int `json:"rankAttGT" gqlgen:"rankAttGT"`
	RankAttGTE  int `json:"rankAttGTE" gqlgen:"rankAttGTE"`
	RankAttLT   int `json:"rankAttLT" gqlgen:"rankAttLT"`
	RankAttLTE  int `json:"rankAttLTE" gqlgen:"rankAttLTE"`
	ScoreAtt    int `json:"scoreAtt" gqlgen:"scoreAtt"`
	ScoreAttGT  int `json:"scoreAttGT" gqlgen:"scoreAttGT"`
	ScoreAttGTE int `json:"scoreAttGTE" gqlgen:"scoreAttGTE"`
	ScoreAttLT  int `json:"scoreAttLT" gqlgen:"scoreAttLT"`
	ScoreAttLTE int `json:"scoreAttLTE" gqlgen:"scoreAttLTE"`

	RankDef     int `json:"rankDef" gqlgen:"rankDef"`
	RankDefGT   int `json:"rankDefGT" gqlgen:"rankDefGT"`
	RankDefGTE  int `json:"rankDefGTE" gqlgen:"rankDefGTE"`
	RankDefLT   int `json:"rankDefLT" gqlgen:"rankDefLT"`
	RankDefLTE  int `json:"rankDefLTE" gqlgen:"rankDefLTE"`
	ScoreDef    int `json:"scoreDef" gqlgen:"scoreDef"`
	ScoreDefGT  int `json:"scoreDefGT" gqlgen:"scoreDefGT"`
	ScoreDefGTE int `json:"scoreDefGTE" gqlgen:"scoreDefGTE"`
	ScoreDefLT  int `json:"scoreDefLT" gqlgen:"scoreDefLT"`
	ScoreDefLTE int `json:"scoreDefLTE" gqlgen:"scoreDefLTE"`

	RankSup     int `json:"rankSup,omitempty" gqlgen:"rankSup"`
	RankSupGT   int `json:"rankSupGT,omitempty" gqlgen:"rankSupGT"`
	RankSupGTE  int `json:"rankSupGTE,omitempty" gqlgen:"rankSupGTE"`
	RankSupLT   int `json:"rankSupLT,omitempty" gqlgen:"rankSupLT"`
	RankSupLTE  int `json:"rankSupLTE,omitempty" gqlgen:"rankSupLTE"`
	ScoreSup    int `json:"scoreSup,omitempty" gqlgen:"scoreSup"`
	ScoreSupGT  int `json:"scoreSupGT,omitempty" gqlgen:"scoreSupGT"`
	ScoreSupGTE int `json:"scoreSupGTE,omitempty" gqlgen:"scoreSupGTE"`
	ScoreSupLT  int `json:"scoreSupLT,omitempty" gqlgen:"scoreSupLT"`
	ScoreSupLTE int `json:"scoreSupLTE,omitempty" gqlgen:"scoreSupLTE"`

	RankTotal     int `json:"rankTotal" gqlgen:"rankTotal"`
	RankTotalGT   int `json:"rankTotalGT" gqlgen:"rankTotalGT"`
	RankTotalGTE  int `json:"rankTotalGTE" gqlgen:"rankTotalGTE"`
	RankTotalLT   int `json:"rankTotalLT" gqlgen:"rankTotalLT"`
	RankTotalLTE  int `json:"rankTotalLTE" gqlgen:"rankTotalLTE"`
	ScoreTotal    int `json:"scoreTotal" gqlgen:"scoreTotal"`
	ScoreTotalGT  int `json:"scoreTotalGT" gqlgen:"scoreTotalGT"`
	ScoreTotalGTE int `json:"scoreTotalGTE" gqlgen:"scoreTotalGTE"`
	ScoreTotalLT  int `json:"scoreTotalLT" gqlgen:"scoreTotalLT"`
	ScoreTotalLTE int `json:"scoreTotalLTE" gqlgen:"scoreTotalLTE"`
}

func (*OpponentsDefeatedFilter) WhereWithAlias

func (f *OpponentsDefeatedFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

type Player

type Player struct {
	ID             int       `json:"id" pg:"type:bigint,pk" gqlgen:"id" xml:"id"`
	Name           string    `json:"name" gqlgen:"name" xml:"name"`
	Exists         *bool     `json:"exists" pg:",use_zero" gqlgen:"exists" xml:"exists"`
	TotalVillages  int       `json:"totalVillages" pg:",use_zero" gqlgen:"totalVillages" xml:"totalVillages"`
	Points         int       `json:"points" pg:",use_zero" gqlgen:"points" xml:"points"`
	Rank           int       `json:"rank" pg:",use_zero" gqlgen:"rank" xml:"rank"`
	TribeID        int       `json:"-" pg:",use_zero" gqlgen:"tribeID" xml:"tribeID"`
	Tribe          *Tribe    `json:"tribe,omitempty" gqlgen:"-" pg:"rel:has-one" xml:"tribe"`
	DailyGrowth    int       `json:"dailyGrowth" pg:",use_zero" gqlgen:"dailyGrowth" xml:"dailyGrowth"`
	BestRank       int       `json:"bestRank" pg:",use_zero" gqlgen:"bestRank" xml:"bestRank"`
	BestRankAt     time.Time `json:"bestRankAt" pg:"default:now(),use_zero" gqlgen:"bestRankAt" xml:"bestRankAt"`
	MostPoints     int       `json:"mostPoints" pg:",use_zero" gqlgen:"mostPoints" xml:"mostPoints"`
	MostPointsAt   time.Time `json:"mostPointsAt" pg:"default:now(),use_zero" gqlgen:"mostPointsAt" xml:"mostPointsAt"`
	MostVillages   int       `json:"mostVillages" pg:",use_zero" gqlgen:"mostVillages" xml:"mostVillages"`
	MostVillagesAt time.Time `json:"mostVillagesAt" pg:"default:now(),use_zero" gqlgen:"mostVillagesAt" xml:"mostVillagesAt"`
	JoinedAt       time.Time `json:"joinedAt" pg:"default:now(),use_zero" gqlgen:"joinedAt" xml:"joinedAt"`
	LastActivityAt time.Time `pg:"default:now(),use_zero" json:"lastActivityAt" xml:"lastActivityAt" gqlgen:"lastActivityAt"`
	DeletedAt      time.Time `json:"deletedAt" gqlgen:"deletedAt" xml:"deletedAt"`

	OpponentsDefeated
	// contains filtered or unexported fields
}

type PlayerFilter

type PlayerFilter struct {
	ID    []int `json:"id" gqlgen:"id" xml:"id"`
	IDNEQ []int `json:"idNEQ" gqlgen:"idNEQ" xml:"idNEQ"`

	Exists *bool ` json:"exists" gqlgen:"exists" xml:"exists"`

	Name      []string `json:"name" gqlgen:"name" xml:"name"`
	NameNEQ   []string `json:"nameNEQ" gqlgen:"nameNEQ" xml:"nameNEQ"`
	NameMATCH string   `json:"nameMATCH" gqlgen:"nameMATCH" xml:"nameMATCH"`
	NameIEQ   string   `json:"nameIEQ" gqlgen:"nameIEQ" xml:"nameIEQ"`

	TotalVillages    int `json:"totalVillages" gqlgen:"totalVillages" xml:"totalVillages"`
	TotalVillagesGT  int `json:"totalVillagesGT" gqlgen:"totalVillagesGT" xml:"totalVillagesGT"`
	TotalVillagesGTE int `json:"totalVillagesGTE" gqlgen:"totalVillagesGTE" xml:"totalVillagesGTE"`
	TotalVillagesLT  int `json:"totalVillagesLT" gqlgen:"totalVillagesLT" xml:"totalVillagesLT"`
	TotalVillagesLTE int `json:"totalVillagesLTE" gqlgen:"totalVillagesLTE" xml:"totalVillagesLTE"`

	Points    int `json:"points" gqlgen:"points" xml:"points"`
	PointsGT  int `json:"pointsGT" gqlgen:"pointsGT" xml:"pointsGT"`
	PointsGTE int `json:"pointsGTE" gqlgen:"pointsGTE" xml:"pointsGTE"`
	PointsLT  int `json:"pointsLT" gqlgen:"pointsLT" xml:"pointsLT"`
	PointsLTE int `json:"pointsLTE" gqlgen:"pointsLTE" xml:"pointsLTE"`

	Rank    int `json:"rank" gqlgen:"rank" xml:"rank"`
	RankGT  int `json:"rankGT" gqlgen:"rankGT" xml:"rankGT"`
	RankGTE int `json:"rankGTE" gqlgen:"rankGTE" xml:"rankGTE"`
	RankLT  int `json:"rankLT" gqlgen:"rankLT" xml:"rankLT"`
	RankLTE int `json:"rankLTE" gqlgen:"rankLTE" xml:"rankLTE"`

	DailyGrowth    int `json:"dailyGrowth" gqlgen:"dailyGrowth" xml:"dailyGrowth"`
	DailyGrowthGT  int `json:"dailyGrowthGT" gqlgen:"dailyGrowthGT" xml:"dailyGrowthGT"`
	DailyGrowthGTE int `json:"dailyGrowthGTE" gqlgen:"dailyGrowthGTE" xml:"dailyGrowthGTE"`
	DailyGrowthLT  int `json:"dailyGrowthLT" gqlgen:"dailyGrowthLT" xml:"dailyGrowthLT"`
	DailyGrowthLTE int `json:"dailyGrowthLTE" gqlgen:"dailyGrowthLTE" xml:"dailyGrowthLTE"`

	JoinedAt    time.Time `json:"joinedAt" gqlgen:"joinedAt" xml:"joinedAt"`
	JoinedAtGT  time.Time `json:"joinedAtGT" gqlgen:"joinedAtGT" xml:"joinedAtGT"`
	JoinedAtGTE time.Time `json:"joinedAtGTE" gqlgen:"joinedAtGTE" xml:"joinedAtGTE"`
	JoinedAtLT  time.Time `json:"joinedAtLT" gqlgen:"joinedAtLT" xml:"joinedAtLT"`
	JoinedAtLTE time.Time `json:"joinedAtLTE" gqlgen:"joinedAtLTE" xml:"joinedAtLTE"`

	LastActivityAt    time.Time `json:"lastActivityAt" gqlgen:"lastActivityAt" xml:"lastActivityAt"`
	LastActivityAtGT  time.Time `json:"lastActivityAtGT" gqlgen:"lastActivityAtGT" xml:"lastActivityAtGT"`
	LastActivityAtGTE time.Time `json:"lastActivityAtGTE" gqlgen:"lastActivityAtGTE" xml:"lastActivityAtGTE"`
	LastActivityAtLT  time.Time `json:"lastActivityAtLT" gqlgen:"lastActivityAtLT" xml:"lastActivityAtLT"`
	LastActivityAtLTE time.Time `json:"lastActivityAtLTE" gqlgen:"lastActivityAtLTE" xml:"lastActivityAtLTE"`

	DeletedAt    time.Time `json:"deletedAt" gqlgen:"deletedAt" xml:"deletedAt"`
	DeletedAtGT  time.Time `json:"deletedAtGT" gqlgen:"deletedAtGT" xml:"deletedAtGT"`
	DeletedAtGTE time.Time `json:"deletedAtGTE" gqlgen:"deletedAtGTE" xml:"deletedAtGTE"`
	DeletedAtLT  time.Time `json:"deletedAtLT" gqlgen:"deletedAtLT" xml:"deletedAtLT"`
	DeletedAtLTE time.Time `json:"deletedAtLTE" gqlgen:"deletedAtLTE" xml:"deletedAtLTE"`

	TribeID     []int        `json:"tribeID" gqlgen:"tribeID" xml:"tribeID"`
	TribeIDNEQ  []int        `json:"tribeIDNEQ" gqlgen:"tribeIDNEQ" xml:"tribeIDNEQ"`
	TribeFilter *TribeFilter `json:"tribeFilter" gqlgen:"tribeFilter" xml:"tribeFilter"`

	OpponentsDefeatedFilter
}

func (*PlayerFilter) Where

func (f *PlayerFilter) Where(q *orm.Query) (*orm.Query, error)

func (*PlayerFilter) WhereWithAlias

func (f *PlayerFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*PlayerFilter) WhereWithRelations

func (f *PlayerFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type PlayerHistory

type PlayerHistory struct {
	OpponentsDefeated

	ID            int       `json:"id" gqlgen:"id" xml:"id"`
	PlayerID      int       `pg:",unique:group_1" json:"playerID" gqlgen:"playerID" xml:"playerID"`
	Player        *Player   `json:"player" gqlgen:"-" xml:"player" pg:"rel:has-one"`
	TotalVillages int       `json:"totalVillages" pg:",use_zero" gqlgen:"totalVillages" xml:"totalVillages"`
	Points        int       `json:"points" pg:",use_zero" gqlgen:"points" xml:"points"`
	Rank          int       `json:"rank" pg:",use_zero" gqlgen:"rank" xml:"rank"`
	TribeID       int       `json:"-" pg:",use_zero" gqlgen:"tribeID" xml:"tribeID"`
	Tribe         *Tribe    `json:"tribe,omitempty" gqlgen:"-" xml:"tribe" pg:"rel:has-one"`
	CreateDate    time.Time `pg:"default:CURRENT_DATE,type:DATE,unique:group_1,use_zero" json:"createDate" gqlgen:"createDate" xml:"createDate"`
	// contains filtered or unexported fields
}

type PlayerHistoryFilter

type PlayerHistoryFilter struct {
	PlayerID     []int         `json:"playerID" gqlgen:"playerID" xml:"playerID"`
	PlayerIDNEQ  []int         `json:"playerIDNEQ" gqlgen:"playerIDNEQ" xml:"playerIDNEQ"`
	PlayerFilter *PlayerFilter `json:"playerFilter" xml:"playerFilter" gqlgen:"playerFilter"`

	CreateDate    time.Time `json:"createDate" gqlgen:"createDate" xml:"createDate"`
	CreateDateGT  time.Time `json:"createDateGT" gqlgen:"createDateGT" xml:"createDateGT"`
	CreateDateGTE time.Time `json:"createDateGTE" gqlgen:"createDateGTE" xml:"createDateGTE"`
	CreateDateLT  time.Time `json:"createDateLT" gqlgen:"createDateLT" xml:"createDateLT"`
	CreateDateLTE time.Time `json:"createDateLTE" gqlgen:"createDateLTE" xml:"createDateLTE"`
}

func (*PlayerHistoryFilter) Where

func (f *PlayerHistoryFilter) Where(q *orm.Query) (*orm.Query, error)

func (*PlayerHistoryFilter) WhereWithAlias

func (f *PlayerHistoryFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*PlayerHistoryFilter) WhereWithRelations

func (f *PlayerHistoryFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type PlayerNameChange

type PlayerNameChange struct {
	ID          int         `json:"id" gqlgen:"id" xml:"id"`
	VersionCode VersionCode `pg:",unique:group_1" json:"versionCode" gqlgen:"versionCode" xml:"versionCode"`
	Version     *Version    `pg:"fk:version_code,rel:has-one" json:"version" gqlgen:"version" xml:"version"`
	PlayerID    int         `pg:",unique:group_1" json:"playerID" gqlgen:"playerID" xml:"playerID"`
	OldName     string      `pg:",unique:group_1" json:"oldName" gqlgen:"oldName" xml:"oldName"`
	NewName     string      `pg:",unique:group_1" json:"newName" gqlgen:"newName" xml:"newName"`
	ChangeDate  time.Time   `pg:"default:CURRENT_DATE,type:DATE,use_zero,unique:group_1" json:"changeDate" gqlgen:"changeDate" xml:"changeDate"`
}

type PlayerToServer

type PlayerToServer struct {
	ID        int     `json:"id" gqlgen:"id" xml:"id"`
	ServerKey string  `pg:",unique:group_1" json:"serverKey" gqlgen:"serverKey" xml:"serverKey"`
	Server    *Server `pg:"fk:server_key,rel:has-one" json:"server" gqlgen:"server" xml:"server"`
	PlayerID  int     `pg:",unique:group_1" json:"playerID" gqlgen:"playerID" xml:"playerID"`
}

type Server

type Server struct {
	Key              string       `json:"key" gqlgen:"key" pg:",pk,unique" xml:"key"`
	Status           ServerStatus `json:"status" gqlgen:"status" xml:"status"`
	NumberOfPlayers  int          `pg:",use_zero" json:"numberOfPlayers" gqlgen:"numberOfPlayers" xml:"numberOfPlayers"`
	NumberOfTribes   int          `pg:",use_zero" json:"numberOfTribes" gqlgen:"numberOfTribes" xml:"numberOfTribes"`
	NumberOfVillages int          `pg:",use_zero" json:"numberOfVillages" gqlgen:"numberOfVillages" xml:"numberOfVillages"`

	Config         ServerConfig   `json:"config" gqlgen:"config" xml:"config"`
	BuildingConfig BuildingConfig `json:"buildingConfig" gqlgen:"buildingConfig" xml:"buildingConfig"`
	UnitConfig     UnitConfig     `json:"unitConfig" gqlgen:"unitConfig" xml:"unitConfig"`

	VersionCode VersionCode `json:"versionCode" gqlgen:"versionCode" xml:"versionCode"`
	Version     *Version    `json:"version,omitempty" gqlgen:"-" xml:"version" pg:"rel:has-one"`

	DataUpdatedAt    time.Time `pg:"default:now(),use_zero" json:"dataUpdatedAt" gqlgen:"dataUpdatedAt" xml:"dataUpdatedAt"`
	HistoryUpdatedAt time.Time `pg:"default:now(),use_zero" json:"historyUpdatedAt" gqlgen:"historyUpdatedAt" xml:"historyUpdatedAt"`
	StatsUpdatedAt   time.Time `pg:"default:now(),use_zero" json:"statsUpdatedAt" gqlgen:"statsUpdatedAt" xml:"statsUpdatedAt"`
	// contains filtered or unexported fields
}

type ServerConfig

type ServerConfig struct {
	XMLName   xml.Name              `xml:"config" json:"-" gqlgen:"xmlName"`
	Text      string                `xml:",chardata" json:"-" gqlgen:"text"`
	Speed     float64               `xml:"speed" json:"speed" gqlgen:"speed"`
	UnitSpeed float64               `xml:"unit_speed" json:"unit_speed" gqlgen:"unitSpeed"`
	Moral     int                   `xml:"moral" json:"moral" gqlgen:"moral"`
	Build     ServerConfigBuild     `xml:"build" json:"build" gqlgen:"build"`
	Misc      ServerConfigMisc      `xml:"misc" json:"misc" gqlgen:"misc"`
	Commands  ServerConfigCommands  `xml:"commands" json:"commands" gqlgen:"commands"`
	Newbie    ServerConfigNewbie    `xml:"newbie" json:"newbie" gqlgen:"newbie"`
	Game      ServerConfigGame      `xml:"game" json:"game" gqlgen:"game"`
	Buildings ServerConfigBuildings `xml:"buildings" json:"buildings" gqlgen:"buildings"`
	Snob      ServerConfigSnob      `xml:"snob" json:"snob" gqlgen:"snob"`
	Ally      ServerConfigAlly      `xml:"ally" json:"ally" gqlgen:"ally"`
	Coord     ServerConfigCoord     `xml:"coord" json:"coord" gqlgen:"coord"`
	Sitter    ServerConfigSitter    `xml:"sitter" json:"sitter" gqlgen:"sitter"`
	Sleep     ServerConfigSleep     `xml:"sleep" json:"sleep" gqlgen:"sleep"`
	Night     ServerConfigNight     `xml:"night" json:"night" gqlgen:"night"`
	Win       ServerConfigWin       `xml:"win" json:"win" gqlgen:"win"`
}

type ServerConfigAlly

type ServerConfigAlly struct {
	Text                  string `xml:",chardata" json:"-" gqlgen:"text"`
	NoHarm                int    `xml:"no_harm" json:"no_harm" gqlgen:"noHarm"`
	NoOtherSupport        int    `xml:"no_other_support" json:"no_other_support" gqlgen:"noOtherSupport"`
	AllytimeSupport       int    `xml:"allytime_support" json:"allytime_support" gqlgen:"allytimeSupport"`
	NoLeave               int    `xml:"no_leave" json:"no_leave" gqlgen:"noLeave"`
	NoJoin                int    `xml:"no_join" json:"no_join" gqlgen:"noJoin"`
	Limit                 int    `xml:"limit" json:"limit" gqlgen:"limit"`
	FixedAllies           int    `xml:"fixed_allies" json:"fixed_allies" gqlgen:"fixedAllies"`
	PointsMemberCount     int    `xml:"points_member_count" json:"points_member_count" gqlgen:"pointsMemberCount"`
	WarsMemberRequirement int    `xml:"wars_member_requirement" json:"wars_member_requirement" gqlgen:"warsMemberRequirement"`
	WarsPointsRequirement int    `xml:"wars_points_requirement" json:"wars_points_requirement" gqlgen:"warsPointsRequirement"`
	WarsAutoacceptDays    int    `xml:"wars_autoaccept_days" json:"wars_autoaccept_days" gqlgen:"warsAutoacceptDays"`
	Levels                int    `xml:"levels" json:"levels" gqlgen:"levels"`
	XpRequirements        string `xml:"xp_requirements" json:"xp_requirements" gqlgen:"xpRequirements"`
}

type ServerConfigBuild

type ServerConfigBuild struct {
	Text    string `xml:",chardata" json:"-" gqlgen:"text"`
	Destroy int    `xml:"destroy" json:"destroy" gqlgen:"destroy"`
}

type ServerConfigBuildings

type ServerConfigBuildings struct {
	Text             string `xml:",chardata" json:"-" gqlgen:"text"`
	CustomMain       int    `xml:"custom_main" json:"custom_main" gqlgen:"customMain"`
	CustomFarm       int    `xml:"custom_farm" json:"custom_farm" gqlgen:"customFarm"`
	CustomStorage    int    `xml:"custom_storage" json:"custom_storage" gqlgen:"customStorage"`
	CustomPlace      int    `xml:"custom_place" json:"custom_place" gqlgen:"customPlace"`
	CustomBarracks   int    `xml:"custom_barracks" json:"custom_barracks" gqlgen:"customBarracks"`
	CustomChurch     int    `xml:"custom_church" json:"custom_church" gqlgen:"customChurch"`
	CustomSmith      int    `xml:"custom_smith" json:"custom_smith" gqlgen:"customSmith"`
	CustomWood       int    `xml:"custom_wood" json:"custom_wood" gqlgen:"customWood"`
	CustomStone      int    `xml:"custom_stone" json:"custom_stone" gqlgen:"customStone"`
	CustomIron       int    `xml:"custom_iron" json:"custom_iron" gqlgen:"customIron"`
	CustomMarket     int    `xml:"custom_market" json:"custom_market" gqlgen:"customMarket"`
	CustomStable     int    `xml:"custom_stable" json:"custom_stable" gqlgen:"customStable"`
	CustomWall       int    `xml:"custom_wall" json:"custom_wall" gqlgen:"customWall"`
	CustomGarage     int    `xml:"custom_garage" json:"custom_garage" gqlgen:"customGarage"`
	CustomHide       int    `xml:"custom_hide" json:"custom_hide" gqlgen:"customHide"`
	CustomSnob       int    `xml:"custom_snob" json:"custom_snob" gqlgen:"customSnob"`
	CustomStatue     int    `xml:"custom_statue" json:"custom_statue" gqlgen:"customStatue"`
	CustomWatchtower int    `xml:"custom_watchtower" json:"custom_watchtower" gqlgen:"customWatchtower"`
}

type ServerConfigCommands

type ServerConfigCommands struct {
	Text              string `xml:",chardata" json:"-" gqlgen:"text"`
	MillisArrival     int    `xml:"millis_arrival" json:"millis_arrival" gqlgen:"millisArrival"`
	CommandCancelTime int    `xml:"command_cancel_time" json:"command_cancel_time" gqlgen:"commandCancelTime"`
}

type ServerConfigCoord

type ServerConfigCoord struct {
	Text            string `xml:",chardata" json:"-" gqlgen:"text"`
	MapSize         int    `xml:"map_size" json:"map_size" gqlgen:"mapSize"`
	Func            int    `xml:"func" json:"func" gqlgen:"func"`
	EmptyVillages   int    `xml:"empty_villages" json:"empty_villages" gqlgen:"emptyVillages"`
	BonusVillages   int    `xml:"bonus_villages" json:"bonus_villages" gqlgen:"bonusVillages"`
	BonusNew        int    `xml:"bonus_new" json:"bonus_new" gqlgen:"bonusNew"`
	Inner           int    `xml:"inner" json:"inner" gqlgen:"inner"`
	SelectStart     int    `xml:"select_start" json:"select_start" gqlgen:"selectStart"`
	VillageMoveWait int    `xml:"village_move_wait" json:"village_move_wait" gqlgen:"villageMoveWait"`
	NobleRestart    int    `xml:"noble_restart" json:"noble_restart" gqlgen:"nobleRestart"`
	StartVillages   int    `xml:"start_villages" json:"start_villages" gqlgen:"startVillages"`
}

type ServerConfigGame

type ServerConfigGame struct {
	Text               string  `xml:",chardata" json:"-" gqlgen:"text"`
	BuildtimeFormula   int     `xml:"buildtime_formula" json:"buildtime_formula" gqlgen:"buildtimeFormula"`
	Knight             int     `xml:"knight" json:"knight" gqlgen:"knight"`
	KnightNewItems     bool    `xml:"knight_new_items" json:"knight_new_items" gqlgen:"knightNewItems"`
	Archer             int     `xml:"archer" json:"archer" gqlgen:"archer"`
	Tech               int     `xml:"tech" json:"tech" gqlgen:"tech"`
	FarmLimit          int     `xml:"farm_limit" json:"farm_limit" gqlgen:"farmLimit"`
	Church             int     `xml:"church" json:"church" gqlgen:"church"`
	Watchtower         int     `xml:"watchtower" json:"watchtower" gqlgen:"watchtower"`
	Stronghold         int     `xml:"stronghold" json:"stronghold" gqlgen:"stronghold"`
	FakeLimit          float64 `xml:"fake_limit" json:"fake_limit" gqlgen:"fakeLimit"`
	BarbarianRise      float64 `xml:"barbarian_rise" json:"barbarian_rise" gqlgen:"barbarianRise"`
	BarbarianShrink    int     `xml:"barbarian_shrink" json:"barbarian_shrink" gqlgen:"barbarianShrink"`
	BarbarianMaxPoints int     `xml:"barbarian_max_points" json:"barbarian_max_points" gqlgen:"barbarianMaxPoints"`
	Hauls              int     `xml:"hauls" json:"hauls" gqlgen:"hauls"`
	HaulsBase          int     `xml:"hauls_base" json:"hauls_base" gqlgen:"haulsBase"`
	HaulsMax           int     `xml:"hauls_max" json:"hauls_max" gqlgen:"haulsMax"`
	BaseProduction     int     `xml:"base_production" json:"base_production" gqlgen:"baseProduction"`
	Event              int     `xml:"event" json:"event" gqlgen:"event"`
	SuppressEvents     int     `xml:"suppress_events" json:"suppress_events" gqlgen:"suppressEvents"`
}

type ServerConfigMisc

type ServerConfigMisc struct {
	Text            string `xml:",chardata" json:"-" gqlgen:"text"`
	KillRanking     int    `xml:"kill_ranking" json:"kill_ranking" gqlgen:"killRanking"`
	Tutorial        int    `xml:"tutorial" json:"tutorial" gqlgen:"tutorial"`
	TradeCancelTime int    `xml:"trade_cancel_time" json:"trade_cancel_time" gqlgen:"tradeCancelTime"`
}

type ServerConfigNewbie

type ServerConfigNewbie struct {
	Text                 string `xml:",chardata" json:"-" gqlgen:"text"`
	Days                 int    `xml:"days" json:"days" gqlgen:"days"`
	RatioDays            int    `xml:"ratio_days" json:"ratio_days" gqlgen:"ratioDays"`
	Ratio                int    `xml:"ratio" json:"ratio" gqlgen:"ratio"`
	RemoveNewbieVillages int    `xml:"removeNewbieVillages" json:"remove_newbie_villages" gqlgen:"removeNewbieVillages"`
}

type ServerConfigNight

type ServerConfigNight struct {
	Text      string  `xml:",chardata" json:"-" gqlgen:"text"`
	Active    int     `xml:"active" json:"active" gqlgen:"active"`
	StartHour int     `xml:"start_hour" json:"start_hour" gqlgen:"startHour"`
	EndHour   int     `xml:"end_hour" json:"end_hour" gqlgen:"endHour"`
	DefFactor float64 `xml:"def_factor" json:"def_factor" gqlgen:"defFactor"`
}

type ServerConfigSitter

type ServerConfigSitter struct {
	Text  string `xml:",chardata" json:"-" gqlgen:"text"`
	Allow int    `xml:"allow" json:"allow" gqlgen:"allow"`
}

type ServerConfigSleep

type ServerConfigSleep struct {
	Text     string `xml:",chardata" json:"-" gqlgen:"text"`
	Active   int    `xml:"active" json:"active" gqlgen:"active"`
	Delay    int    `xml:"delay" json:"delay" gqlgen:"delay"`
	Min      int    `xml:"min" json:"min" gqlgen:"min"`
	Max      int    `xml:"max" json:"max" gqlgen:"max"`
	MinAwake int    `xml:"min_awake" json:"min_awake" gqlgen:"minAwake"`
	MaxAwake int    `xml:"max_awake" json:"max_awake" gqlgen:"maxAwake"`
	WarnTime int    `xml:"warn_time" json:"warn_time" gqlgen:"warnTime"`
}

type ServerConfigSnob

type ServerConfigSnob struct {
	Text          string  `xml:",chardata" json:"-" gqlgen:"text"`
	Gold          int     `xml:"gold" json:"gold" gqlgen:"gold"`
	CheapRebuild  int     `xml:"cheap_rebuild" json:"cheap_rebuild" gqlgen:"cheapRebuild"`
	Rise          int     `xml:"rise" json:"rise" gqlgen:"rise"`
	MaxDist       int     `xml:"max_dist" json:"max_dist" gqlgen:"maxDist"`
	Factor        float64 `xml:"factor" json:"factor" gqlgen:"factor"`
	CoinWood      int     `xml:"coin_wood" json:"coin_wood" gqlgen:"coinWood"`
	CoinStone     int     `xml:"coin_stone" json:"coin_stone" gqlgen:"coinStone"`
	CoinIron      int     `xml:"coin_iron" json:"coin_iron" gqlgen:"coinIron"`
	NoBarbConquer bool    `xml:"no_barb_conquer" json:"no_barb_conquer" gqlgen:"noBarbConquer"`
}

type ServerConfigWin

type ServerConfigWin struct {
	Text  string `xml:",chardata" json:"-" gqlgen:"text"`
	Check int    `xml:"check" json:"check" gqlgen:"check"`
}

type ServerFilter

type ServerFilter struct {
	Key      []string `json:"key" gqlgen:"key"`
	KeyNEQ   []string `json:"keyNEQ" gqlgen:"keyNEQ"`
	KeyMATCH string   `json:"keyMATCH" gqlgen:"keyMATCH"`
	KeyIEQ   string   `json:"keyIEQ" gqlgen:"keyIEQ"`

	Status    []ServerStatus `json:"status" gqlgen:"status"`
	StatusNEQ []ServerStatus `json:"statusNEQ" gqlgen:"statusNEQ"`

	VersionCode    []VersionCode `json:"versionCode" gqlgen:"versionCode"`
	VersionCodeNEQ []VersionCode `json:"versionCodeNEQ" gqlgen:"versionCodeNEQ"`
}

func (*ServerFilter) Where

func (f *ServerFilter) Where(q *orm.Query) (*orm.Query, error)

func (*ServerFilter) WhereWithAlias

func (f *ServerFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

type ServerStats

type ServerStats struct {
	ID                int       `json:"id" gqlgen:"id" xml:"id"`
	ActivePlayers     int       `pg:",use_zero" json:"activePlayers" gqlgen:"activePlayers" xml:"activePlayers"`
	InactivePlayers   int       `pg:",use_zero" json:"inactivePlayers" gqlgen:"inactivePlayers" xml:"inactivePlayers"`
	Players           int       `pg:",use_zero" json:"players" gqlgen:"players" xml:"players"`
	ActiveTribes      int       `pg:",use_zero" json:"activeTribes" gqlgen:"activeTribes" xml:"activeTribes"`
	InactiveTribes    int       `pg:",use_zero" json:"inactiveTribes" gqlgen:"inactiveTribes" xml:"inactiveTribes"`
	Tribes            int       `pg:",use_zero" json:"tribes" gqlgen:"tribes" xml:"tribes"`
	Villages          int       `pg:",use_zero" json:"villages" gqlgen:"villages" xml:"villages"`
	BonusVillages     int       `pg:",use_zero" json:"bonusVillages" gqlgen:"bonusVillages" xml:"bonusVillages"`
	BarbarianVillages int       `pg:",use_zero" json:"barbarianVillages" gqlgen:"barbarianVillages" xml:"barbarianVillages"`
	PlayerVillages    int       `pg:",use_zero" json:"playerVillages" gqlgen:"playerVillages" xml:"playerVillages"`
	CreateDate        time.Time `pg:"default:now(),type:DATE,unique:group_1,use_zero" json:"createDate" gqlgen:"createDate" xml:"createDate"`
	// contains filtered or unexported fields
}

func (*ServerStats) BeforeInsert

func (s *ServerStats) BeforeInsert(ctx context.Context) (context.Context, error)

type ServerStatsFilter

type ServerStatsFilter struct {
	CreateDate    time.Time `json:"createDate" gqlgen:"createDate" xml:"createDate"`
	CreateDateGT  time.Time `json:"createDateGT" gqlgen:"createDateGT" xml:"createDateGT"`
	CreateDateGTE time.Time `json:"createDateGTE" gqlgen:"createDateGTE" xml:"createDateGTE"`
	CreateDateLT  time.Time `json:"createDateLT" gqlgen:"createDateLT" xml:"createDateLT"`
	CreateDateLTE time.Time `json:"createDateLTE" gqlgen:"createDateLTE" xml:"createDateLTE"`
}

func (*ServerStatsFilter) Where

func (f *ServerStatsFilter) Where(q *orm.Query) (*orm.Query, error)

func (*ServerStatsFilter) WhereWithAlias

func (f *ServerStatsFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

type ServerStatus

type ServerStatus string
const (
	ServerStatusOpen   ServerStatus = "open"
	ServerStatusClosed ServerStatus = "closed"
)

func (ServerStatus) IsValid

func (ss ServerStatus) IsValid() bool

func (ServerStatus) MarshalGQL

func (ss ServerStatus) MarshalGQL(w io.Writer)

func (ServerStatus) String

func (ss ServerStatus) String() string

func (*ServerStatus) UnmarshalGQL

func (ss *ServerStatus) UnmarshalGQL(v interface{}) error

type SpecialServer

type SpecialServer struct {
	ID          int         `json:"id" gqlgen:"id" xml:"id"`
	VersionCode VersionCode `pg:",unique:group_1" json:"versionCode" gqlgen:"versionCode" xml:"versionCode"`
	Version     *Version    `pg:"fk:version_code,rel:has-one" json:"omitempty,version" gqlgen:"-" xml:"version"`
	Key         string      `pg:",unique:group_1" json:"key" gqlgen:"key" xml:"key"`
	// contains filtered or unexported fields
}

type SpecialServers

type SpecialServers []*SpecialServer

func (SpecialServers) Contains

func (servers SpecialServers) Contains(key string) bool

type Tribe

type Tribe struct {
	ID             int       `json:"id" pg:"type:bigint,pk" gqlgen:"id"`
	Name           string    `json:"name" gqlgen:"name"`
	Tag            string    `json:"tag" gqlgen:"tag"`
	Exists         *bool     `json:"exists" gqlgen:"exists" pg:",use_zero"`
	TotalMembers   int       `json:"totalMembers" gqlgen:"totalMembers" pg:",use_zero"`
	TotalVillages  int       `json:"totalVillages" gqlgen:"totalVillages" pg:",use_zero"`
	Points         int       `json:"points" gqlgen:"points" pg:",use_zero"`
	AllPoints      int       `json:"allPoints" gqlgen:"allPoints" pg:",use_zero"`
	Rank           int       `json:"rank" gqlgen:"rank" pg:",use_zero"`
	Dominance      float64   `json:"dominance" gqlgen:"dominance" pg:",use_zero"`
	BestRank       int       `json:"bestRank" pg:",use_zero" gqlgen:"bestRank"`
	BestRankAt     time.Time `json:"bestRankAt" pg:"default:now(),use_zero" gqlgen:"bestRankAt"`
	MostPoints     int       `json:"mostPoints" pg:",use_zero" gqlgen:"mostPoints"`
	MostPointsAt   time.Time `json:"mostPointsAt" pg:"default:now(),use_zero" gqlgen:"mostPointsAt"`
	MostVillages   int       `json:"mostVillages" pg:",use_zero" gqlgen:"mostVillages"`
	MostVillagesAt time.Time `json:"mostVillagesAt" pg:"default:now(),use_zero" gqlgen:"mostVillagesAt"`
	CreatedAt      time.Time `json:"createdAt" pg:"default:now(),use_zero" gqlgen:"createdAt"`
	DeletedAt      time.Time `json:"deletedAt" gqlgen:"deletedAt"`

	OpponentsDefeated
	// contains filtered or unexported fields
}

type TribeChange

type TribeChange struct {
	ID         int       `json:"id" gqlgen:"id" xml:"id"`
	PlayerID   int       `pg:",use_zero" json:"playerID" gqlgen:"playerID" xml:"playerID"`
	Player     *Player   `json:"player,omitempty" gqlgen:"-" xml:"player" pg:"rel:has-one"`
	OldTribeID int       `pg:",use_zero" json:"oldTribeID" gqlgen:"oldTribeID" xml:"oldTribeID"`
	OldTribe   *Tribe    `json:"oldTribe,omitempty" gqlgen:"-" xml:"oldTribe" pg:"rel:has-one"`
	NewTribeID int       `pg:",use_zero" json:"newTribeID" gqlgen:"newTribeID" xml:"newTribeID"`
	NewTribe   *Tribe    `json:"newTribe,omitempty" gqlgen:"-" xml:"newTribe" pg:"rel:has-one"`
	CreatedAt  time.Time `pg:"default:now(),use_zero" json:"createdAt" gqlgen:"createdAt" xml:"createdAt"`
	// contains filtered or unexported fields
}

type TribeChangeFilter

type TribeChangeFilter struct {
	PlayerID     []int         `json:"id" gqlgen:"id" xml:"id"`
	PlayerIDNEQ  []int         `json:"idNEQ" gqlgen:"idNEQ" xml:"idNEQ"`
	PlayerFilter *PlayerFilter `json:"playerFilter" xml:"playerFilter" gqlgen:"playerFilter"`

	OldTribeID     []int        `json:"oldTribeID" gqlgen:"oldTribeID" xml:"oldTribeID"`
	OldTribeIDNEQ  []int        `json:"oldTribeIDNEQ" gqlgen:"oldTribeIDNEQ" xml:"oldTribeIDNEQ"`
	OldTribeFilter *TribeFilter `json:"oldTribeFilter" xml:"oldTribeFilter" gqlgen:"oldTribeFilter"`

	NewTribeID     []int        `json:"newTribeID" gqlgen:"newTribeID" xml:"newTribeID"`
	NewTribeIDNEQ  []int        `json:"newTribeIDNEQ" gqlgen:"newTribeIDNEQ" xml:"newTribeIDNEQ"`
	NewTribeFilter *TribeFilter `json:"newTribeFilter" xml:"newTribeFilter" gqlgen:"newTribeFilter"`

	CreatedAt    time.Time `json:"createdAt" gqlgen:"createdAt" xml:"createdAt"`
	CreatedAtGT  time.Time `json:"createdAtGT" gqlgen:"createdAtGT" xml:"createdAtGT"`
	CreatedAtGTE time.Time `json:"createdAtGTE" gqlgen:"createdAtGTE" xml:"createdAtGTE"`
	CreatedAtLT  time.Time `json:"createdAtLT" gqlgen:"createdAtLT" xml:"createdAtLT"`
	CreatedAtLTE time.Time `json:"createdAtLTE" gqlgen:"createdAtLTE" xml:"createdAtLTE"`

	Or *TribeChangeFilterOr `json:"or" gqlgen:"or" xml:"or"`
}

func (*TribeChangeFilter) Where

func (f *TribeChangeFilter) Where(q *orm.Query) (*orm.Query, error)

func (*TribeChangeFilter) WhereWithAlias

func (f *TribeChangeFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*TribeChangeFilter) WhereWithRelations

func (f *TribeChangeFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type TribeChangeFilterOr

type TribeChangeFilterOr struct {
	OldTribeID []int `json:"oldTribeID" gqlgen:"oldTribeID" xml:"oldTribeID"`
	NewTribeID []int `json:"newTribeID" gqlgen:"newTribeID" xml:"newTribeID"`
}

func (*TribeChangeFilterOr) WhereWithAlias

func (f *TribeChangeFilterOr) WhereWithAlias(q *orm.Query, alias string) *orm.Query

type TribeFilter

type TribeFilter struct {
	ID    []int `json:"id" gqlgen:"id" xml:"id"`
	IDNEQ []int `json:"idNEQ" gqlgen:"idNEQ" xml:"idneq"`

	Exists *bool `json:"exists" gqlgen:"exists" xml:"exists"`

	Tag      []string `json:"tag" gqlgen:"tag" xml:"tag"`
	TagNEQ   []string `json:"tagNEQ" gqlgen:"tagNEQ" xml:"tagNEQ"`
	TagMATCH string   `json:"tagMATCH" gqlgen:"tagMATCH" xml:"tagMATCH"`
	TagIEQ   string   `json:"tagIEQ" gqlgen:"tagIEQ" xml:"tagIEQ"`

	Name      []string `json:"name" gqlgen:"name" xml:"name"`
	NameNEQ   []string `json:"nameNEQ" gqlgen:"nameNEQ" xml:"nameNEQ"`
	NameMATCH string   `json:"nameMATCH" gqlgen:"nameMATCH" xml:"nameMATCH"`
	NameIEQ   string   `json:"nameIEQ" gqlgen:"nameIEQ" xml:"nameIEQ"`

	TotalMembers    int `json:"totalMembers" gqlgen:"totalMembers" xml:"totalMembers"`
	TotalMembersGT  int `json:"totalMembersGT" gqlgen:"totalMembersGT" xml:"totalMembersGT"`
	TotalMembersGTE int `json:"totalMembersGTE" gqlgen:"totalMembersGTE" xml:"totalMembersGTE"`
	TotalMembersLT  int `json:"totalMembersLT" gqlgen:"totalMembersLT" xml:"totalMembersLT"`
	TotalMembersLTE int `json:"totalMembersLTE" gqlgen:"totalMembersLTE" xml:"totalMembersLTE"`

	TotalVillages    int `json:"totalVillages" gqlgen:"totalVillages" xml:"totalVillages"`
	TotalVillagesGT  int `json:"totalVillagesGT" gqlgen:"totalVillagesGT" xml:"totalVillagesGT"`
	TotalVillagesGTE int `json:"totalVillagesGTE" gqlgen:"totalVillagesGTE" xml:"totalVillagesGTE"`
	TotalVillagesLT  int `json:"totalVillagesLT" gqlgen:"totalVillagesLT" xml:"totalVillagesLT"`
	TotalVillagesLTE int `json:"totalVillagesLTE" gqlgen:"totalVillagesLTE" xml:"totalVillagesLTE"`

	Points    int `json:"points" gqlgen:"points" xml:"points"`
	PointsGT  int `json:"pointsGT" gqlgen:"pointsGT" xml:"pointsGT"`
	PointsGTE int `json:"pointsGTE" gqlgen:"pointsGTE" xml:"pointsGTE"`
	PointsLT  int `json:"pointsLT" gqlgen:"pointsLT" xml:"pointsLT"`
	PointsLTE int `json:"pointsLTE" gqlgen:"pointsLTE" xml:"pointsLTE"`

	AllPoints    int `json:"allPoints" gqlgen:"allPoints" xml:"allPoints"`
	AllPointsGT  int `json:"allPointsGT" gqlgen:"allPointsGT" xml:"allPointsGT"`
	AllPointsGTE int `json:"allPointsGTE" gqlgen:"allPointsGTE" xml:"allPointsGTE"`
	AllPointsLT  int `json:"allPointsLT" gqlgen:"allPointsLT" xml:"allPointsLT"`
	AllPointsLTE int `json:"allPointsLTE" gqlgen:"allPointsLTE" xml:"allPointsLTE"`

	Rank    int `json:"rank" gqlgen:"rank" xml:"rank"`
	RankGT  int `json:"rankGT" gqlgen:"rankGT" xml:"rankGT"`
	RankGTE int `json:"rankGTE" gqlgen:"rankGTE" xml:"rankGTE"`
	RankLT  int `json:"rankLT" gqlgen:"rankLT" xml:"rankLT"`
	RankLTE int `json:"rankLTE" gqlgen:"rankLTE" xml:"rankLTE"`

	Dominance    int `json:"dominance" gqlgen:"dominance" xml:"dominance"`
	DominanceGT  int `json:"dominanceGT" gqlgen:"dominanceGT" xml:"dominanceGT"`
	DominanceGTE int `json:"dominanceGTE" gqlgen:"dominanceGTE" xml:"dominanceGTE"`
	DominanceLT  int `json:"dominanceLT" gqlgen:"dominanceLT" xml:"dominanceLT"`
	DominanceLTE int `json:"dominanceLTE" gqlgen:"dominanceLTE" xml:"dominanceLTE"`

	CreatedAt    time.Time `json:"createdAt" gqlgen:"createdAt" xml:"createdAt"`
	CreatedAtGT  time.Time `json:"createdAtGT" gqlgen:"createdAtGT" xml:"createdAtGT"`
	CreatedAtGTE time.Time `json:"createdAtGTE" gqlgen:"createdAtGTE" xml:"createdAtGTE"`
	CreatedAtLT  time.Time `json:"createdAtLT" gqlgen:"createdAtLT" xml:"createdAtLT"`
	CreatedAtLTE time.Time `json:"createdAtLTE" gqlgen:"createdAtLTE" xml:"createdAtLTE"`

	DeletedAt    time.Time `json:"deletedAt" gqlgen:"deletedAt" xml:"deletedAt"`
	DeletedAtGT  time.Time `json:"deletedAtGT" gqlgen:"deletedAtGT" xml:"deletedAtGT"`
	DeletedAtGTE time.Time `json:"deletedAtGTE" gqlgen:"deletedAtGTE" xml:"deletedAtGTE"`
	DeletedAtLT  time.Time `json:"deletedAtLT" gqlgen:"deletedAtLT" xml:"deletedAtLT"`
	DeletedAtLTE time.Time `json:"deletedAtLTE" gqlgen:"deletedAtLTE" xml:"deletedAtLTE"`

	OpponentsDefeatedFilter
	Or *TribeFilterOr `json:"or" xml:"or" gqlgen:"or"`
}

func (*TribeFilter) Where

func (f *TribeFilter) Where(q *orm.Query) (*orm.Query, error)

func (*TribeFilter) WhereWithAlias

func (f *TribeFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

type TribeFilterOr

type TribeFilterOr struct {
	ID      []int    `json:"id" xml:"id" gqlgen:"id"`
	Tag     []string `json:"tag" xml:"tag" gqlgen:"tag"`
	TagIEQ  string   `json:"tagIEQ" xml:"tagIEQ" gqlgen:"tagIEQ"`
	Name    []string `json:"name" xml:"name" gqlgen:"name"`
	NameIEQ string   `json:"nameIEQ" xml:"nameIEQ" gqlgen:"nameIEQ"`
}

func (*TribeFilterOr) WhereWithAlias

func (f *TribeFilterOr) WhereWithAlias(q *orm.Query, alias string) *orm.Query

type TribeHistory

type TribeHistory struct {
	OpponentsDefeated

	ID            int       `json:"id" gqlgen:"id" xml:"id"`
	TribeID       int       `pg:",unique:group_1" json:"-" pg:",use_zero" gqlgen:"tribeID" xml:"tribeID"`
	Tribe         *Tribe    `json:"tribe,omitempty" gqlgen:"-" xml:"tribe" pg:"rel:has-one"`
	TotalMembers  int       `json:"totalMembers" gqlgen:"totalMembers" pg:",use_zero"`
	TotalVillages int       `json:"totalVillages" gqlgen:"totalVillages" pg:",use_zero"`
	Points        int       `json:"points" gqlgen:"points" pg:",use_zero"`
	AllPoints     int       `json:"allPoints" gqlgen:"allPoints" pg:",use_zero"`
	Rank          int       `json:"rank" gqlgen:"rank" pg:",use_zero"`
	Dominance     float64   `json:"dominance" gqlgen:"dominance" pg:",use_zero"`
	CreateDate    time.Time `pg:"default:now(),type:DATE,unique:group_1,use_zero" json:"createDate" gqlgen:"createDate" xml:"createDate"`
	// contains filtered or unexported fields
}

type TribeHistoryFilter

type TribeHistoryFilter struct {
	TribeID     []int        `json:"tribeID" gqlgen:"tribeID" xml:"tribeID"`
	TribeIDNEQ  []int        `json:"tribeIDNEQ" gqlgen:"tribeIDNEQ" xml:"tribeIDNEQ"`
	TribeFilter *TribeFilter `json:"tribeFilter" xml:"tribeFilter" gqlgen:"tribeFilter"`

	CreateDate    time.Time `json:"createDate" gqlgen:"createDate" xml:"createDate"`
	CreateDateGT  time.Time `json:"createDateGT" gqlgen:"createDateGT" xml:"createDateGT"`
	CreateDateGTE time.Time `json:"createDateGTE" gqlgen:"createDateGTE" xml:"createDateGTE"`
	CreateDateLT  time.Time `json:"createDateLT" gqlgen:"createDateLT" xml:"createDateLT"`
	CreateDateLTE time.Time `json:"createDateLTE" gqlgen:"createDateLTE" xml:"createDateLTE"`
}

func (*TribeHistoryFilter) Where

func (f *TribeHistoryFilter) Where(q *orm.Query) (*orm.Query, error)

func (*TribeHistoryFilter) WhereWithAlias

func (f *TribeHistoryFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*TribeHistoryFilter) WhereWithRelations

func (f *TribeHistoryFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

type Unit

type Unit struct {
	Text           string  `xml:",chardata" json:"-" gqlgen:"text"`
	BuildTime      float64 `xml:"build_time" json:"build_time" gqlgen:"buildTime"`
	Pop            int     `xml:"pop" json:"pop" gqlgen:"pop"`
	Speed          float64 `xml:"speed" json:"speed" gqlgen:"speed"`
	Attack         int     `xml:"attack" json:"attack" gqlgen:"attack"`
	Defense        int     `xml:"defense" json:"defense" gqlgen:"defense"`
	DefenseCavalry int     `xml:"defense_cavalry" json:"defense_cavalry" gqlgen:"defenseCavalry"`
	DefenseArcher  int     `xml:"defense_archer" json:"defense_archer" gqlgen:"defenseArcher"`
	Carry          int     `xml:"carry" json:"carry" gqlgen:"carry"`
}

type UnitConfig

type UnitConfig struct {
	XMLName  xml.Name `xml:"config" json:"-" gqlgen:"xmlName"`
	Text     string   `xml:",chardata" json:"-" gqlgen:"text"`
	Spear    Unit     `xml:"spear" json:"spear" gqlgen:"spear"`
	Sword    Unit     `xml:"sword" json:"sword" gqlgen:"sword"`
	Axe      Unit     `xml:"axe" json:"axe" gqlgen:"axe"`
	Archer   Unit     `xml:"archer" json:"archer" gqlgen:"archer"`
	Spy      Unit     `xml:"spy" json:"spy" gqlgen:"spy"`
	Light    Unit     `xml:"light" json:"light" gqlgen:"light"`
	Marcher  Unit     `xml:"marcher" json:"marcher" gqlgen:"marcher"`
	Heavy    Unit     `xml:"heavy" json:"heavy" gqlgen:"heavy"`
	Ram      Unit     `xml:"ram" json:"ram" gqlgen:"ram"`
	Catapult Unit     `xml:"catapult" json:"catapult" gqlgen:"catapult"`
	Knight   Unit     `xml:"knight" json:"knight" gqlgen:"knight"`
	Snob     Unit     `xml:"snob" json:"snob" gqlgen:"snob"`
	Militia  Unit     `xml:"militia" json:"militia" gqlgen:"militia"`
}

type Version

type Version struct {
	Code           VersionCode    `pg:",pk" json:"code" gqlgen:"code"`
	Name           string         `json:"name" gqlgen:"name" pg:",unique"`
	Host           string         `json:"host" gqlgen:"host"`
	Timezone       string         `json:"timezone" gqlgen:"timezone"`
	SpecialServers SpecialServers `json:"specialServers" gqlgen:"specialServers" pg:"rel:has-many"`
	// contains filtered or unexported fields
}

type VersionCode

type VersionCode string
const (
	VersionCodePL  VersionCode = "pl"
	VersionCodeInt VersionCode = "en"
	VersionCodeDE  VersionCode = "de"
	VersionCodeUK  VersionCode = "uk"
	VersionCodeIT  VersionCode = "it"
	VersionCodeFR  VersionCode = "fr"
	VersionCodeUS  VersionCode = "us"
	VersionCodeNL  VersionCode = "nl"
	VersionCodeES  VersionCode = "es"
	VersionCodeRO  VersionCode = "ro"
	VersionCodeRU  VersionCode = "ru"
	VersionCodeGR  VersionCode = "gr"
	VersionCodeTR  VersionCode = "tr"
	VersionCodeCS  VersionCode = "cs"
	VersionCodeCH  VersionCode = "ch"
	VersionCodePT  VersionCode = "pt"
	VersionCodeBR  VersionCode = "br"
	VersionCodeHU  VersionCode = "hu"
	VersionCodeSK  VersionCode = "sk"
)

func VersionCodeFromServerKey

func VersionCodeFromServerKey(key string) VersionCode

func (VersionCode) IsValid

func (vc VersionCode) IsValid() bool

func (VersionCode) MarshalGQL

func (vc VersionCode) MarshalGQL(w io.Writer)

func (VersionCode) String

func (vc VersionCode) String() string

func (*VersionCode) UnmarshalGQL

func (vc *VersionCode) UnmarshalGQL(v interface{}) error

type VersionFilter

type VersionFilter struct {
	Code    []VersionCode `json:"code" gqlgen:"code"`
	CodeNEQ []VersionCode `json:"codeNEQ" gqlgen:"codeNEQ"`

	Host      []string `json:"host" gqlgen:"host"`
	HostNEQ   []string `json:"hostNEQ" gqlgen:"hostNEQ"`
	HostMATCH string   `json:"hostMATCH" gqlgen:"hostMATCH"`
	HostIEQ   string   `json:"hostIEQ" gqlgen:"hostIEQ"`
}

func (*VersionFilter) Where

func (f *VersionFilter) Where(q *orm.Query) (*orm.Query, error)

func (*VersionFilter) WhereWithAlias

func (f *VersionFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

type Village

type Village struct {
	ID     int    `json:"id" pg:"type:bigint,pk" gqlgen:"id"`
	Name   string `json:"name" gqlgen:"name"`
	Points int    `json:"points" pg:",use_zero" gqlgen:"points"`
	X      int    `json:"x" pg:",use_zero" gqlgen:"x"`
	Y      int    `json:"y" pg:",use_zero" gqlgen:"y"`
	Bonus  int    `json:"bonus" pg:",use_zero" gqlgen:"bonus"`

	PlayerID int     `json:"-" pg:",use_zero" gqlgen:"playerID"`
	Player   *Player `json:"player,omitempty" gqlgen:"-" pg:"rel:has-one"`
	// contains filtered or unexported fields
}

func (*Village) Continent

func (v *Village) Continent() string

func (*Village) FullName

func (v *Village) FullName() string

type VillageFilter

type VillageFilter struct {
	ID    []int `json:"id" gqlgen:"id"`
	IDNEQ []int `json:"idNEQ" gqlgen:"idNEQ"`

	Name      []string `json:"name" gqlgen:"name"`
	NameNEQ   []string `json:"nameNEQ" gqlgen:"nameNEQ"`
	NameMATCH string   `json:"nameMATCH" gqlgen:"nameMATCH"`
	NameIEQ   string   `json:"nameIEQ" gqlgen:"nameIEQ"`

	XGT  int      `json:"xGT" gqlgen:"xGT"`
	XGTE int      `json:"xGTE" gqlgen:"xGTE"`
	XLT  int      `json:"xLT" gqlgen:"xLT"`
	XLTE int      `json:"xLTE" gqlgen:"xLTE"`
	YGT  int      `json:"yGT" gqlgen:"yGT"`
	YGTE int      `json:"yGTE" gqlgen:"yGTE"`
	YLT  int      `json:"yLT" gqlgen:"yLT"`
	YLTE int      `json:"yLTE" gqlgen:"yLTE"`
	XY   []string `json:"xy" gqlgen:"xy"`

	Points    int `json:"points" gqlgen:"points"`
	PointsGT  int `json:"pointsGT" gqlgen:"pointsGT"`
	PointsGTE int `json:"pointsGTE" gqlgen:"pointsGTE"`
	PointsLT  int `json:"pointsLT" gqlgen:"pointsLT"`
	PointsLTE int `json:"pointsLTE" gqlgen:"pointsLTE"`

	Bonus    int `json:"bonus" gqlgen:"bonus"`
	BonusGT  int `json:"bonusGT" gqlgen:"bonusGT"`
	BonusGTE int `json:"bonusGTE" gqlgen:"bonusGTE"`
	BonusLT  int `json:"bonusLT" gqlgen:"bonusLT"`
	BonusLTE int `json:"bonusLTE" gqlgen:"bonusLTE"`

	PlayerID     []int         `json:"playerID" gqlgen:"playerID"`
	PlayerIDNEQ  []int         `json:"playerIDNEQ" gqlgen:"playerIDNEQ"`
	PlayerFilter *PlayerFilter `json:"playerFilter" gqlgen:"playerFilter"`
}

func (*VillageFilter) Where

func (f *VillageFilter) Where(q *orm.Query) (*orm.Query, error)

func (*VillageFilter) WhereWithAlias

func (f *VillageFilter) WhereWithAlias(q *orm.Query, alias string) (*orm.Query, error)

func (*VillageFilter) WhereWithRelations

func (f *VillageFilter) WhereWithRelations(q *orm.Query) (*orm.Query, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL