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-05-30 08:35:45 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
type Tribe struct {
|
|
|
|
ID int `json:"id" gqlgen:"id"`
|
|
|
|
World string `pg:"unique:group_1" json:"world" gqlgen:"world"`
|
|
|
|
TribeID int `pg:"unique:group_1" json:"TribeID" gqlgen:"TribeID"`
|
|
|
|
ServerID string `pg:"on_delete:CASCADE,unique:group_1" json:"serverID" gqlgen:"serverID"`
|
|
|
|
Server *Server `json:"server,omitempty" gqlgen:"server"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TribeFilter struct {
|
2020-05-30 08:54:28 +00:00
|
|
|
ID []int
|
|
|
|
ServerID []string
|
|
|
|
Limit int `urlstruct:",nowhere"`
|
|
|
|
Offset int `urlstruct:",nowhere"`
|
|
|
|
Order []string `urlstruct:",nowhere"`
|
2020-05-30 08:35:45 +00:00
|
|
|
}
|