schema

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	ent.Schema
}

Book 定义书籍,BooID不应该重复,根据文件路径生成

func (Book) Edges

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

Edges of the Book.

func (Book) Fields

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

Fields 每次添加或修改 fields 和 edges后, 都需要在项目的根目录执行 go generate ./ent 命令重新生成文件 Fields of the Book.

type SinglePageInfo

type SinglePageInfo struct {
	ent.Schema
}

SinglePageInfo holds the schema definition for the SinglePageInfo entity.

func (SinglePageInfo) Edges

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

Edges of the SinglePageInfo.

func (SinglePageInfo) Fields

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

Fields of the SinglePageInfo.

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.

Jump to

Keyboard shortcuts

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