Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Prefix string
}
Annotation captures the id prefix for a type.
func (Annotation) Name ¶
func (a Annotation) Name() string
Name implements the ent Annotation interface.
type DatetimeMixin ¶
DatetimeMixin defines an ent Mixin.
func NewDatetime ¶
func NewDatetime() *DatetimeMixin
NewDatetime creates a Mixin that includes created_at and updated_at.
func (DatetimeMixin) Fields ¶
func (m DatetimeMixin) Fields() []ent.Field
Fields provides the created_at and updated_at field.
type UlidMixin ¶
UlidMixin defines an ent Mixin that captures the ULID prefix for a type.
func (UlidMixin) Annotations ¶
func (m UlidMixin) Annotations() []schema.Annotation
Annotations returns the annotations for a Mixin instance.
Click to show internal directories.
Click to hide internal directories.