schema

package
v0.0.0-...-c6aefec Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu struct {
	ent.Schema
}

Menu holds the schema definition for the Menu entity.

func (Menu) Annotations() []schema.Annotation
func (Menu) Edges() []ent.Edge

Edges of the Menu.

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

Fields of the Permission.

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

type Role

type Role struct {
	ent.Schema
}

Role holds the schema definition for the Role entity.

func (Role) Annotations

func (Role) Annotations() []schema.Annotation

func (Role) Edges

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

Edges of the Role.

func (Role) Fields

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

Fields of the Role.

func (Role) Mixin

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

type TimeMixin

type TimeMixin struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

func (TimeMixin) Fields

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

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

func (User) Annotations() []schema.Annotation

Annotations 用户实体的注解

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

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

Mixin 混入

Jump to

Keyboard shortcuts

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