update SpecialServer.Version pg tag | update PlayerNameChange.Version pg tag
This commit is contained in:
parent
6c4f27f3d2
commit
7c5891c020
|
@ -4,7 +4,7 @@ import "time"
|
|||
|
||||
type PlayerNameChange struct {
|
||||
VersionCode VersionCode `pg:",unique:group_1" json:"versionCode" gqlgen:"versionCode" xml:"versionCode"`
|
||||
Version *Version `pg:"fk:lang_version_tag,rel:has-one" json:"version" gqlgen:"version" xml:"version"`
|
||||
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"`
|
||||
|
|
|
@ -4,7 +4,7 @@ type SpecialServer struct {
|
|||
tableName struct{} `pg:"special_servers,alias:special_server"`
|
||||
|
||||
VersionCode VersionCode `pg:",unique:group_1" json:"versionCode" gqlgen:"versionCode" xml:"versionCode"`
|
||||
Version *Version `pg:"fk:lang_version_tag,rel:has-one" json:"omitempty,version" gqlgen:"-" xml:"version"`
|
||||
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"`
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue