mixins

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDInt32Mixin

type IDInt32Mixin struct {
	mixin.Schema
}

IDInt32Mixin is the mixin with int32 type ID field and the created_at, updated_at fields.

func (IDInt32Mixin) Fields

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

type IDInt64Mixin

type IDInt64Mixin struct {
	mixin.Schema
}

IDInt64Mixin is the mixin with int64 type ID field and the created_at, updated_at fields.

func (IDInt64Mixin) Fields

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

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 IDUint32Mixin

type IDUint32Mixin struct {
	mixin.Schema
}

IDUint32Mixin is the mixin with Uint32 type ID field and the created_at, updated_at fields.

func (IDUint32Mixin) Fields

func (IDUint32Mixin) 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