populate both tables in loop

This commit is contained in:
Ravi Prasad
2025-04-30 22:49:38 -05:00
parent 80e4823b35
commit e3c8c76f35
15 changed files with 506 additions and 32 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ func InitDB() *gorm.DB {
log.Fatal("Failed to connect database")
}
db.AutoMigrate(&models.PlayerStat{})
db.AutoMigrate(&models.PlayerAdvancedStat{})
db.AutoMigrate(&models.PlayerTotalStat{})
return db
}