🐛 Bug fix auto migration

This commit is contained in:
LittleSheep 2025-01-26 20:42:30 +08:00
parent 84e0e7406a
commit 2cd65fd830

View File

@ -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 {