add tableName to TribeChange model

This commit is contained in:
Dawid Wysokiński 2020-06-20 16:22:58 +02:00
parent df8e201d51
commit 4b7c12cbdd
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
)
type Stats struct {
tableName struct{} `pg:"stats,alias:stats" json:"tableName" gqlgen:"tableName" xml:"tableName"`
tableName struct{} `pg:"stats,alias:stats"`
ActiveServers int `json:"activeServers" gqlgen:"activeServers" xml:"activeServers"`
InactiveServers int `json:"inactiveServers" gqlgen:"inactiveServers" xml:"inactiveServers"`

View File

@ -3,6 +3,8 @@ package models
import "time"
type TribeChange struct {
tableName struct{} `pg:"?SERVER.tribe_changes,alias:tribe_change"`
ID int `json:"id" gqlgen:"id" xml:"id"`
PlayerID int `json:"playerID" gqlgen:"playerID" xml:"playerID"`
Player *Player `json:"player,omitempty" gqlgen:"-" xml:"player"`
@ -14,6 +16,8 @@ type TribeChange struct {
}
type TribeChangeFilter struct {
tableName struct{} `pg:"tribe_change"`
ID []int `json:"id" gqlgen:"id" xml:"id"`
IdNEQ []int `json:"idNEQ" gqlgen:"idNEQ" xml:"idNEQ"`