schema

package
v0.0.0-...-5bc32a5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	ent.Schema
}

Info holds the schema definition for the Info entity.

func (Info) Annotations

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

定义表相关信息

func (Info) Edges

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

Edges of the Info.

func (Info) Fields

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

Fields of the Info.

func (Info) Mixin

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

加载公共参数

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

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

定义表相关信息

func (User) Edges

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

定义关联关系 这个可以参考

func (User) Fields

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

Fields of the User.

func (User) Mixin

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

加载公共参数

Jump to

Keyboard shortcuts

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