diff --git a/internal/service/database/db_service.go b/internal/service/database/db_service.go index dc8327b..11c3272 100644 --- a/internal/service/database/db_service.go +++ b/internal/service/database/db_service.go @@ -50,7 +50,7 @@ func NewDatabaseService(conf config.Database) (Service, error) { if err == nil { db.DB() - db.AutoMigrate(&orm.User{}) + db.AutoMigrate(&orm.User{}, &orm.Payout{}) } result := &dbService{ ctx: context.Background(), diff --git a/internal/service/database/orm/payout.go b/internal/service/database/orm/payout.go index 9ff38ef..1a0d359 100644 --- a/internal/service/database/orm/payout.go +++ b/internal/service/database/orm/payout.go @@ -5,7 +5,8 @@ import "gorm.io/gorm" type Payout struct { gorm.Model - User User + UserID uint + User User Description string PayoutID string