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 CreatedAtMixin ¶
func (CreatedAtMixin) Fields ¶
func (CreatedAtMixin) Fields() []ent.Field
type DeletedAtMixin ¶
func (DeletedAtMixin) Fields ¶
func (DeletedAtMixin) Fields() []ent.Field
type PULIDMixin ¶
func PULIDMixinWithPrefix ¶
func PULIDMixinWithPrefix(prefix string) *PULIDMixin
MixinWithPrefix creates a Mixin that encodes the provided prefix.
func (PULIDMixin) Annotations ¶
func (m PULIDMixin) Annotations() []schema.Annotation
Annotations returns the annotations for a Mixin instance.
func (PULIDMixin) Fields ¶
func (m PULIDMixin) Fields() []ent.Field
type UpdatedAtMixin ¶
func (UpdatedAtMixin) Fields ¶
func (UpdatedAtMixin) Fields() []ent.Field
Click to show internal directories.
Click to hide internal directories.