package entity import ( "entgo.io/ent" "entgo.io/ent/schema/field" ) type EpicHeroUserBuild struct { ent.Schema } func (EpicHeroUserBuild) Table() string { return "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"), } }