mixins

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDInt32Mixin added in v1.3.10

type IDInt32Mixin struct {
	mixin.Schema
}

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

func (IDInt32Mixin) Fields added in v1.3.10

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

type IDInt64Mixin added in v1.3.10

type IDInt64Mixin struct {
	mixin.Schema
}

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

func (IDInt64Mixin) Fields added in v1.3.10

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

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 IDUint32Mixin added in v1.3.10

type IDUint32Mixin struct {
	mixin.Schema
}

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

func (IDUint32Mixin) Fields added in v1.3.10

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 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