WA-9 - implemented wallet

This commit is contained in:
Fran Jurmanović
2021-05-16 17:43:45 +02:00
parent 32fd64716e
commit 55010c83d6
15 changed files with 64 additions and 68 deletions

View File

@@ -15,7 +15,7 @@ type UsersMigration struct {
func (am *UsersMigration) Create() {
models := []interface{}{
(*models.UserModel)(nil),
(*models.User)(nil),
}
for _, model := range models {

View File

@@ -15,8 +15,7 @@ type WalletsMigration struct {
func (am *WalletsMigration) Create() {
models := []interface{}{
(*models.WalletTypeModel)(nil),
(*models.WalletModel)(nil),
(*models.Wallet)(nil),
}
for _, model := range models {
@@ -31,10 +30,3 @@ func (am *WalletsMigration) Create() {
}
}
}
func (am *WalletsMigration) PopulateTypes() {
walletTypeModel := new(models.WalletTypeModel)
walletTypeModel.Init()
walletTypeModel.Name = "Test"
am.Db.Model(walletTypeModel).Insert()
}