Files
sm-journal-plugin/models/registry.go
Jakub Zych 54322128fb feat(15-01): clone journal plugin with translatable Post tracer
- Register golem15.journal requiring exactly golem15.translate
- Squash golem15_journal_posts DDL with unique slug and JSONB columns
- Persist one en/pl Post through translate helpers on real Postgres

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 18:22:47 +02:00

14 lines
283 B
Go

package models
var all []any
// Register appends GORM models so later plans add files without editing plugin.go.
func Register(models ...any) {
all = append(all, models...)
}
// All returns every model registered by this plugin's models package.
func All() []any {
return all
}