schema

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterEdges added in v0.3.0

func FilterEdges(s ent.Interface, filters ...string) ent.Interface

func FilterFields added in v0.3.0

func FilterFields(s ent.Interface, filters ...string) ent.Interface

Types

type BillProduct added in v0.3.4

type BillProduct struct {
	ent.Schema
}

BillProduct holds the schema definition for the BillProduct entity.

func (BillProduct) Annotations added in v0.3.4

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

Annotations returns BillProduct annotations.

func (BillProduct) Fields added in v0.3.4

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

Fields of the BillProduct.

type Category

type Category struct {
	ent.Schema
}

Category holds the schema definition for the Category entity.

func (Category) Annotations added in v0.3.3

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

Annotations returns Todo annotations.

func (Category) Edges

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

Edges of the Category.

func (Category) Fields

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

Fields of the Category.

type Friendship added in v0.3.0

type Friendship struct {
	ent.Schema
}

Friendship holds the edge schema definition of the Friendship relationship.

func (Friendship) Annotations added in v0.3.4

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

Annotations of the Friendship.

func (Friendship) Edges added in v0.3.0

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

Edges of the Friendship.

func (Friendship) Fields added in v0.3.0

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

Fields of the Friendship.

type Group added in v0.3.0

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity.

func (Group) Annotations added in v0.3.0

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

Annotations returns Group annotations.

func (Group) Edges added in v0.3.0

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

Edges of the Group.

func (Group) Fields added in v0.3.0

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

Fields of the Group.

type OneToMany added in v0.4.2

type OneToMany struct {
	ent.Schema
}

OneToMany holds the schema definition for the OneToMany entity.

func (OneToMany) Annotations added in v0.4.2

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

func (OneToMany) Edges added in v0.4.2

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

Edges of the OneToMany.

func (OneToMany) Fields added in v0.4.2

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

Fields of the OneToMany.

type Project added in v0.4.1

type Project struct {
	ent.Schema
}

Project holds the schema definition for the GroupTodo entity.

func (Project) Edges added in v0.4.1

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

Edges of the Project.

type Todo

type Todo struct {
	ent.Schema
}

Todo defines the todo type schema.

func (Todo) Annotations added in v0.3.0

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

Annotations returns Todo annotations.

func (Todo) Edges

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

Edges returns todo edges.

func (Todo) Fields

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

Fields returns todo fields.

type User added in v0.3.0

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations added in v0.3.0

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

Annotations returns User annotations.

func (User) Edges added in v0.3.0

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

Edges of the User.

func (User) Fields added in v0.3.0

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

Fields of the User.

type VerySecret

type VerySecret struct {
	ent.Schema
}

VerySecret defines the very secret type schema.

func (VerySecret) Annotations

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

func (VerySecret) Fields

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

Fields returns private fields.

Directories

Path Synopsis
Package schematype provides custom types for ent/schema.
Package schematype provides custom types for ent/schema.

Jump to

Keyboard shortcuts

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