go generate ... --feature intercept,schema/snapshot ...
Embed mixin into your schema
import (
sent "github.com/go-saas/saas/ent"
)
...
// Post holds the schema definition for the Post entity.
type Post struct {
ent.Schema
}
func (Post) Mixin() []ent.Mixin {
return []ent.Mixin{
sent.HasTenant{},
}
}