mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 05:55:13 +00:00
populate both tables in loop
This commit is contained in:
+2
-1
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user