MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / OnModelCreate

Method OnModelCreate

core/app.go:773–773  ·  view source on GitHub ↗

--------------------------------------------------------------- OnModelCreate is triggered every time when a new model is being created (e.g. triggered by App.Save()). Operations BEFORE the e.Next() execute before the model validation and the INSERT DB statement. Operations AFTER the e.Next() exec

(tags ...string)

Source from the content-addressed store, hash-verified

771 // then all event handlers registered via the created hook will be
772 // triggered and called only if their event data origin matches the tags.
773 OnModelCreate(tags ...string) *hook.TaggedHook[*ModelEvent]
774
775 // OnModelCreateExecute is triggered after successful Model validation
776 // and right before the model INSERT DB statement execution.

Calls

no outgoing calls