added spray patterns
This commit is contained in:
29
ent/schema/weapon.go
Normal file
29
ent/schema/weapon.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// Weapon holds the schema definition for the Weapon entity.
|
||||
type Weapon struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
// Fields of the Weapon.
|
||||
func (Weapon) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.Uint64("victim"),
|
||||
field.Uint("dmg"),
|
||||
field.Int("eq_type"),
|
||||
field.Int("hit_group"),
|
||||
}
|
||||
}
|
||||
|
||||
// Edges of the Weapon.
|
||||
func (Weapon) Edges() []ent.Edge {
|
||||
return []ent.Edge{
|
||||
edge.From("stat", MatchPlayer.Type).Ref("weapon_stats").Unique(),
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user