added spray patterns

This commit is contained in:
2021-10-31 08:40:02 +01:00
parent 268793f0e5
commit 978232dd0a
66 changed files with 16805 additions and 11903 deletions

View File

@@ -31,13 +31,16 @@ func (Player) Fields() []ent.Field {
field.String("auth_code").Optional().Sensitive(),
field.Time("profile_created").Optional(),
field.String("oldest_sharecode_seen").Optional(),
field.Int("wins").Optional(),
field.Int("looses").Optional(),
field.Int("ties").Optional(),
}
}
// Edges of the Player.
func (Player) Edges() []ent.Edge {
return []ent.Edge{
edge.To("stats", Stats.Type),
edge.To("stats", MatchPlayer.Type),
edge.To("matches", Match.Type),
}
}