schema

package
v0.0.0-...-29cb976 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTimeMixin

type CreateTimeMixin struct{ mixin.Schema }

CreateTimeMixin adds created at time field.

func (CreateTimeMixin) Fields

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

Fields of the creation time mixin.

type Group

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity.

func (Group) Edges

func (Group) Edges() []ent.Edge

Edges of the Group.

func (Group) Fields

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

Fields of the Group.

func (Group) Indexes

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

Indexes of the Group

func (Group) Mixin

func (Group) Mixin() []ent.Mixin

Mixin of the Group.

type Setting

type Setting struct {
	ent.Schema
}

Setting holds the schema definition for the Setting entity.

func (Setting) Edges

func (Setting) Edges() []ent.Edge

Edges of the Setting.

func (Setting) Fields

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

Fields of the Setting.

func (Setting) Mixin

func (Setting) Mixin() []ent.Mixin

Mixin of the Setting.

type TimeMixin

type TimeMixin struct{ mixin.Schema }

TimeMixin composes create/update time mixin.

func (TimeMixin) Fields

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

Fields of the time mixin.

type UpdateTimeMixin

type UpdateTimeMixin struct{ mixin.Schema }

UpdateTimeMixin adds updated at time field.

func (UpdateTimeMixin) Fields

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

Fields of the update time mixin.

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User.

func (User) Fields

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

Fields of the User.

func (User) Indexes

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

Indexes of the User

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixin of the User.

Jump to

Keyboard shortcuts

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