mixins

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDMixin added in v1.0.11

type IDMixin struct {
	mixin.Schema
}

IDMixin is the mixin with uint64 type ID field and the created_at, updated_at fields.

func (IDMixin) Fields added in v1.0.11

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

type SortMixin

type SortMixin struct {
	mixin.Schema
}

SortMixin is the mixin with sort field which is used to sort the data.

func (SortMixin) Fields

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

type StateMixin added in v1.1.1

type StateMixin struct {
	mixin.Schema
}

StateMixin is the mixin with state field which is bool type.

func (StateMixin) Fields added in v1.1.1

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

type StatusMixin

type StatusMixin struct {
	mixin.Schema
}

StatusMixin is the mixin with status field which is uint8 type. It is used for multiple status more than 2. You can set more numbers as status.

func (StatusMixin) Fields

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

type UUIDMixin

type UUIDMixin struct {
	mixin.Schema
}

UUIDMixin is the mixin with uuid v7 field which is used for universal unique.

func (UUIDMixin) Fields

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

Jump to

Keyboard shortcuts

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