35 lines
833 B
Go
35 lines
833 B
Go
package entity
|
|
|
|
import (
|
|
"entgo.io/ent"
|
|
"entgo.io/ent/dialect/entsql"
|
|
"entgo.io/ent/schema"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
type EpicHeroUserBuild struct {
|
|
ent.Schema
|
|
}
|
|
|
|
func (EpicHeroUserBuild) Annotations() []schema.Annotation {
|
|
return []schema.Annotation{
|
|
entsql.Annotation{Table: "epic_hero_user_build"},
|
|
}
|
|
}
|
|
|
|
func (EpicHeroUserBuild) Fields() []ent.Field {
|
|
return []ent.Field{
|
|
field.Int64("id").Immutable().Unique(),
|
|
field.String("artifact_code").MaxLen(255),
|
|
field.String("hero_code").MaxLen(255),
|
|
field.Float("hero_heath_build"),
|
|
field.Float("hero_attack_build"),
|
|
field.Float("hero_def_build"),
|
|
field.String("creator").MaxLen(255),
|
|
field.Time("create_time").Optional().Nillable(),
|
|
field.String("updater").MaxLen(255),
|
|
field.Time("update_time").Optional().Nillable(),
|
|
field.Bool("deleted"),
|
|
}
|
|
}
|