refactor: remove redundant name fields from order service
This commit is contained in:
@@ -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)"}},
|
||||
|
||||
Reference in New Issue
Block a user