mixin

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldCreateAt

func FieldCreateAt() ent.Field

func IdField

func IdField() ent.Field

func IdField1

func IdField1(prefix string) ent.Field

func IndexCreateAt

func IndexCreateAt() ent.Index

Types

type ActiveMixin

type ActiveMixin struct {
	mixin.Schema
}

func (ActiveMixin) Fields

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

func (ActiveMixin) Indexes

func (a ActiveMixin) Indexes() []ent.Index

type IDMixin

type IDMixin struct {
	mixin.Schema
}

/////////////////////// 使用ulid 作为主键 ///////////////////////

func (IDMixin) Fields

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

func (IDMixin) Indexes

func (i IDMixin) Indexes() []ent.Index

type MemoMixin

type MemoMixin struct {
	mixin.Schema
}

func (MemoMixin) Fields

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

type SortMixin

type SortMixin struct {
	mixin.Schema
}

func (SortMixin) Fields

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

func (SortMixin) Indexes

func (m SortMixin) Indexes() []ent.Index

type StatusMixin

type StatusMixin struct {
	mixin.Schema
}

func (StatusMixin) Fields

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

func (StatusMixin) Indexes

func (s StatusMixin) Indexes() []ent.Index

type TimeMixin

type TimeMixin struct {
	mixin.Schema
}

func (TimeMixin) Fields

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

func (TimeMixin) Indexes

func (TimeMixin) Indexes() []ent.Index

Jump to

Keyboard shortcuts

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