partial repository layer added

This commit is contained in:
Fran Jurmanović
2022-09-27 00:33:44 +02:00
parent 13ce0735d0
commit 82e97fc97f
73 changed files with 2686 additions and 1216 deletions

View File

@@ -3,7 +3,7 @@ package migrate
import (
"fmt"
"log"
"wallet-api/pkg/models"
"wallet-api/pkg/model"
"github.com/go-pg/pg/v10"
@@ -14,14 +14,15 @@ import (
CreateTableUsers
Creates users table if it does not exist.
Args:
*pg.DB: Postgres database client
Returns:
error: Returns if there is an error with table creation
Args:
*pg.DB: Postgres database client
Returns:
error: Returns if there is an error with table creation
*/
func CreateTableUsers(db pg.DB) error {
models := []interface{}{
(*models.User)(nil),
(*model.User)(nil),
}
for _, model := range models {