Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventMigrationsFor ¶
EventMigrationsFor returns a set of migrations to get the current event stream table schema. You should wrap this in WithPrefix to assign a unique prefix to these migrations for each event stream.
Types ¶
type EventMutation ¶
type EventStream ¶
EventStream is a mixin that provides the standard schema for the sixriver event sourcing data model. While it is possible to add extra fields to this schema, you should not do so. Every field in this mixin is declared as Immutable as events should never be modified after saving.
func (EventStream) Fields ¶
func (EventStream) Fields() []ent.Field
func (EventStream) Hooks ¶
func (EventStream) Hooks() []ent.Hook
func (EventStream) Indexes ¶
func (EventStream) Indexes() []ent.Index
Click to show internal directories.
Click to hide internal directories.