modified: serv_nginx/api_bb/internal/database/migrate.go

modified:   serv_nginx/bbvue/src/stores/user.js
add migration for trainingPlan struct
This commit is contained in:
2025-10-20 06:38:25 +05:00
parent b9f68b5dcb
commit 0087c94552
2 changed files with 5 additions and 1 deletions
@@ -25,6 +25,7 @@ func (d *Database) Migrate() error {
&models.Event{},
&models.EventRegistration{},
&models.PersonalBest{},
&models.TrainingPlan{},
// Добавьте другие модели здесь
}
@@ -93,6 +94,8 @@ func getModelName(model interface{}) string {
return "Администрирование события"
case *models.PersonalBest:
return "Персональные достижения"
case *models.TrainingPlan:
return "Тренировочный план"
default:
return "Unknown"
}