added spray patterns
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user