mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 05:55:13 +00:00
api key auth added
This commit is contained in:
@@ -21,6 +21,8 @@ func InitDB() *gorm.DB {
|
||||
// Auto migrate models
|
||||
db.AutoMigrate(&models.PlayerAdvancedStat{})
|
||||
db.AutoMigrate(&models.PlayerTotalStat{})
|
||||
|
||||
db.AutoMigrate(&models.APIKey{})
|
||||
|
||||
metrics.DBOperationsTotal.WithLabelValues("migrate", "database").Inc()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user