mixins

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDMixin

type IDMixin struct {
	mixin.Schema
}

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

func (IDMixin) Fields

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

type StateMixin struct {
	mixin.Schema
}

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

func (StateMixin) Fields

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