feat: Add rider substitution system
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"nearle/models"
|
||||
"nearle/utils"
|
||||
|
||||
"os"
|
||||
@@ -88,6 +89,9 @@ func setupDB(database *gorm.DB) {
|
||||
return
|
||||
}
|
||||
|
||||
// Auto-migrate the rider_substitutions table
|
||||
database.AutoMigrate(&models.RiderSubstitution{})
|
||||
|
||||
// 🔥 K8s SAFE CONFIG
|
||||
sqlDB.SetMaxOpenConns(30) // total open connections
|
||||
sqlDB.SetMaxIdleConns(5) // idle connections
|
||||
|
||||
Reference in New Issue
Block a user