schema

package
v0.0.0-...-397b8aa Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Categories = []string{
	"Action",
	"Adventure",
	"Fiction",
	"Science",
}

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	mixin.Schema
}

func (BaseModel) Fields

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

type Book

type Book struct {
	ent.Schema
}

Book holds the schema definition for the Book entity.

func (Book) Edges

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

Edges of the Book.

func (Book) Fields

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

Fields of the Book.

func (Book) Mixin

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

type BookLoan

type BookLoan struct {
	ent.Schema
}

BookLoan holds the schema definition for the BookLoan entity.

func (BookLoan) Edges

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

Edges of the BookLoan.

func (BookLoan) Fields

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

Fields of the BookLoan.

func (BookLoan) Mixin

func (BookLoan) Mixin() []ent.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) Mixin

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

Jump to

Keyboard shortcuts

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