fix(backend): add db tags to TopProduct struct for sqlx mapping
This commit is contained in:
parent
6df111abfa
commit
9fc9b211bf
1 changed files with 4 additions and 4 deletions
|
|
@ -332,10 +332,10 @@ type CompanyRating struct {
|
|||
|
||||
// TopProduct aggregates seller performance per SKU.
|
||||
type TopProduct struct {
|
||||
ProductID uuid.UUID `json:"product_id"`
|
||||
Name string `json:"name"`
|
||||
TotalQuantity int64 `json:"total_quantity"`
|
||||
RevenueCents int64 `json:"revenue_cents"`
|
||||
ProductID uuid.UUID `db:"product_id" json:"product_id"`
|
||||
Name string `db:"name" json:"name"`
|
||||
TotalQuantity int64 `db:"total_quantity" json:"total_quantity"`
|
||||
RevenueCents int64 `db:"revenue_cents" json:"revenue_cents"`
|
||||
}
|
||||
|
||||
// SellerDashboard summarizes commercial metrics for sellers.
|
||||
|
|
|
|||
Loading…
Reference in a new issue