This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-26 18:30:25 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
type Group struct {
|
|
|
|
ID int `pg:",pk" json:"id" gqlgen:"id"`
|
|
|
|
ConqueredVillagesChannelID string `pg:",use_zero" json:"conqueredVillagesChannelID" gqlgen:"conqueredVillagesChannelID"`
|
|
|
|
LostVillagesChannelID string `pg:",use_zero" json:"lostVillagesChannelID" gqlgen:"lostVillagesChannelID"`
|
|
|
|
ServerID string `pg:"on_delete:CASCADE,use_zero" json:"serverID" gqlgen:"serverID"`
|
2020-07-15 09:51:49 +00:00
|
|
|
ShowEnnobledBarbarians bool `pg:",use_zero"`
|
2020-06-26 18:30:25 +00:00
|
|
|
Server *Server `json:"server,omitempty" gqlgen:"server"`
|
|
|
|
Observations Observations `json:"observation,omitempty" gqlgen:"observation"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GroupFilter struct {
|
|
|
|
ID []int
|
|
|
|
ServerID []string
|
|
|
|
Limit int `urlstruct:",nowhere"`
|
|
|
|
Offset int `urlstruct:",nowhere"`
|
|
|
|
Order []string `urlstruct:",nowhere"`
|
|
|
|
}
|