refactor: remove redundant name fields from order service

This commit is contained in:
zetaloop
2026-04-22 22:28:41 +08:00
parent b3db04c9cc
commit 2d45d7e3cb
21 changed files with 179 additions and 1062 deletions
@@ -34,11 +34,8 @@ func (Orders) Fields() []ent.Field {
return []ent.Field{
field.Int64("id").Immutable().Unique(),
field.Int64("consumer_id"),
field.String("consumer_name").MaxLen(100),
field.Int64("player_id"),
field.String("player_name").MaxLen(100),
field.Int64("shop_id").Optional().Nillable(),
field.String("shop_name").Optional().Nillable().MaxLen(200),
field.JSON("service_snapshot", map[string]any{}).
SchemaType(map[string]string{dialect.Postgres: "jsonb"}),
field.String("status").Default("pending_payment").MaxLen(30),