mixin

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() []ent.Mixin

Types

type CreateTime

type CreateTime struct{ ent.Schema }

CreateTime adds created at time field.

func (CreateTime) Fields

func (CreateTime) Fields() []ent.Field

Fields of the create time mixin.

type DeletedTime

type DeletedTime struct{ ent.Schema }

DeletedTime adds deleted at time field

func (DeletedTime) Fields

func (DeletedTime) Fields() []ent.Field

Fields of the update time mixin.

type ID

type ID struct {
	ent.Schema
}

func (ID) Fields

func (ID) Fields() []ent.Field

type Time

type Time struct{ ent.Schema }

Time composes create/update time mixin.

func (Time) Fields

func (Time) Fields() []ent.Field

Fields of the time mixin.

type UpdateTime

type UpdateTime struct{ ent.Schema }

UpdateTime adds updated at time field.

func (UpdateTime) Fields

func (UpdateTime) Fields() []ent.Field

Fields of the update time mixin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL