add tableName to TribeChange model
This commit is contained in:
parent
df8e201d51
commit
4b7c12cbdd
|
@ -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"`
|
||||
|
|
|
@ -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"`
|
||||
|
||||
|
|
Reference in New Issue