🐛 Bug fix auto migration
This commit is contained in:
parent
84e0e7406a
commit
2cd65fd830
@ -9,10 +9,9 @@ import (
|
|||||||
type Wallet struct {
|
type Wallet struct {
|
||||||
cruda.BaseModel
|
cruda.BaseModel
|
||||||
|
|
||||||
Transactions []Transaction `json:"transactions"`
|
Balance decimal.Decimal `json:"amount" sql:"type:decimal(30,2);"`
|
||||||
Balance decimal.Decimal `json:"amount" sql:"type:decimal(30,2);"`
|
Password string `json:"password"`
|
||||||
Password string `json:"password"`
|
AccountID uint `json:"account_id"`
|
||||||
AccountID uint `json:"account_id"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Wallet) ToWalletInfo() *proto.WalletInfo {
|
func (v *Wallet) ToWalletInfo() *proto.WalletInfo {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user