package entity import ( "time" "git.gocasts.ir/ebhomengo/niki/pkg/types" "github.com/shopspring/decimal" ) type Wallet struct { ID uint64 UserID uint64 // user unique ID Balance decimal.Decimal Currency types.Currency Status WalletStatus // "active", "frozen", "closed" UpdatedAt time.Time CreatedAt time.Time } func (w Wallet) UnimplementedAllowUseDBGenericFunc() {} type WalletStatus string const ( Frozen WalletStatus = "frozen" // when need to check , approve ,validate , solve sth (but deposit is possible) Active WalletStatus = "active" // when everything is ok )