Skip to content

Commit

Permalink
remove nullzero from fee columns
Browse files Browse the repository at this point in the history
we want those to be 0 by default
  • Loading branch information
bumi committed Jan 9, 2024
1 parent 9ffd589 commit c049d75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/models/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ type Invoice struct {
UserID int64 `json:"user_id" validate:"required"`
User *User `json:"-" bun:"rel:belongs-to,join:user_id=id"`
Amount int64 `json:"amount" validate:"gte=0"`
Fee int64 `json:"fee" bun:",nullzero"`
ServiceFee int64 `json:"service_fee" bun:",nullzero"`
RoutingFee int64 `json:"routing_fee" bun:",nullzero"`
Fee int64 `json:"fee"`
ServiceFee int64 `json:"service_fee"`
RoutingFee int64 `json:"routing_fee"`
Memo string `json:"memo" bun:",nullzero"`
DescriptionHash string `json:"description_hash,omitempty" bun:",nullzero"`
PaymentRequest string `json:"payment_request" bun:",nullzero"`
Expand Down

0 comments on commit c049d75

Please sign in to comment.