fix: api descript

This commit is contained in:
wwweww
2026-02-28 05:33:16 +08:00
parent 5930fb0dde
commit d2f33b4b96
243 changed files with 37065 additions and 780 deletions
@@ -0,0 +1,32 @@
package schema
import (
"time"
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Games holds the schema definition for the Games entity.
type Games struct {
ent.Schema
}
// Fields of the Games.
func (Games) Fields() []ent.Field {
return []ent.Field{
field.Int64("id").Immutable().Unique(),
field.String("name").MaxLen(100).Unique(),
field.String("icon"),
field.String("category").MaxLen(50),
field.Int("sort_order").Default(0),
field.Bool("is_active").Optional().Default(true),
field.Time("created_at").Default(time.Now).Immutable(),
field.Time("updated_at").Default(time.Now).UpdateDefault(time.Now),
}
}
// Edges of the Games.
func (Games) Edges() []ent.Edge {
return nil
}