- 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>
14 lines
283 B
Go
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
|
|
}
|