Mixin allows you to create reusable pieces of
ent.Schema code that can be injected into other schemas using composition.
ent.Mixin interface is as follows:
A common use case for
Mixin is to mix-in a list of common fields to your schema.
mixin provides a few builtin mixins that can be used for adding the
update_time fields to the schema.
In order to use them, add the
mixin.Time mixin to your schema as follows: