mengstack-api/internal/modules/settings/infrastructure/migrate.go
MengStack Dev 0eb6a96057 feat(settings): M5 配置管理模块
DB-backed runtime settings with global/tenant scope, key-value store,
type support (string/number/bool/json), tenant-level overrides with
global fallback.
2026-10-03 01:02:53 +08:00

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{})
}