Pre-alpha. No tagged release and no upgrade path between versions. Use for evaluation and development only, not production.
DevelopersPre-alpha

SDK

sdk.Model tags, field markers, and generated registration.

Stable addon surface

sumeru/core/sdk re-exports model/field types and registration helpers so addons avoid tight coupling to ORM internals.

SymbolRole
ModelEmbed; sumeru:"model=…" tag
String, Text, Boolean, …Typed field markers
Many2One[T] / AnyRelations; comodel= when T is Any
MustRegisterCalled from generated zmodels.go
Model struct
go
type MyModule struct {	sdk.Model `sumeru:"model=my.module"` 	Name sdk.String `sumeru:"required,index,string=Name"`} // After adding a struct, run make generate so models/zmodels.go registers it.

Compile and run

Terminal
shell
make generatego run . -- -c sumeru.conf -i my_module --stop-after-initmake run

What not to do

  • Do not import sumeru/core/orm from addons unless you are extending the kernel.
  • Do not register anonymous modules. Always set Module.

Next step

Build a module in Creating an addon.