DB-backed runtime settings with global/tenant scope, key-value store, type support (string/number/bool/json), tenant-level overrides with global fallback.
12 lines
177 B
Go
12 lines
177 B
Go
package infrastructure
|
|
|
|
import (
|
|
"mengstack/internal/modules/settings/domain"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func Migrate(db *gorm.DB) error {
|
|
return db.AutoMigrate(&domain.Setting{})
|
|
}
|