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
@@ -31,11 +31,8 @@ var (
OrdersColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt64, Increment: true},
{Name: "consumer_id", Type: field.TypeInt64},
{Name: "consumer_name", Type: field.TypeString, Size: 100},
{Name: "player_id", Type: field.TypeInt64},
{Name: "player_name", Type: field.TypeString, Size: 100},
{Name: "shop_id", Type: field.TypeInt64, Nullable: true},
{Name: "shop_name", Type: field.TypeString, Nullable: true, Size: 200},
{Name: "service_snapshot", Type: field.TypeJSON, SchemaType: map[string]string{"postgres": "jsonb"}},
{Name: "status", Type: field.TypeString, Size: 30, Default: "pending_payment"},
{Name: "total_price", Type: field.TypeOther, SchemaType: map[string]string{"postgres": "decimal(10,2)"}},