From 2cd65fd830d120e621257209c2847f81467ff02d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 26 Jan 2025 20:42:30 +0800 Subject: [PATCH] :bug: Bug fix auto migration --- pkg/internal/models/wallet.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/internal/models/wallet.go b/pkg/internal/models/wallet.go index ece052a..eeca71e 100644 --- a/pkg/internal/models/wallet.go +++ b/pkg/internal/models/wallet.go @@ -9,10 +9,9 @@ import ( type Wallet struct { cruda.BaseModel - Transactions []Transaction `json:"transactions"` - Balance decimal.Decimal `json:"amount" sql:"type:decimal(30,2);"` - Password string `json:"password"` - AccountID uint `json:"account_id"` + Balance decimal.Decimal `json:"amount" sql:"type:decimal(30,2);"` + Password string `json:"password"` + AccountID uint `json:"account_id"` } func (v *Wallet) ToWalletInfo() *proto.WalletInfo {