add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
30
internal/domain/entity/epic_hero_user_build.go
Normal file
30
internal/domain/entity/epic_hero_user_build.go
Normal file
@@ -0,0 +1,30 @@
|
||||
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"),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user