Files
sm-seo-plugin/models/registry.go

18 lines
429 B
Go

// Package models holds the SEO plugin's GORM models: the per-record SEO
// entries, their history, the settings, the per-type settings and the URL
// rules.
package models
var all []any
// Register appends GORM models so later files add models without editing
// plugin.go.
func Register(models ...any) {
all = append(all, models...)
}
// All returns every model registered by this package.
func All() []any {
return all
}