schema

package
v0.0.0-...-7472f5c Latest Latest
Warning

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

Go to latest
Published: Jul 25, 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

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

func FilterFields

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

Types

type BillProduct

type BillProduct struct {
	ent.Schema
}

BillProduct holds the schema definition for the BillProduct entity.

func (BillProduct) Annotations

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

Annotations returns BillProduct annotations.

func (BillProduct) Fields

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

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

type Friendship struct {
	ent.Schema
}

Friendship holds the edge schema definition of the Friendship relationship.

func (Friendship) Annotations

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

Annotations of the Friendship.

func (Friendship) Edges

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

Edges of the Friendship.

func (Friendship) Fields

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

Fields of the Friendship.

type Group

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity.

func (Group) Annotations

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

Annotations returns Group annotations.

func (Group) Edges

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

Edges of the Group.

func (Group) Fields

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

Fields of the Group.

type OneToMany

type OneToMany struct {
	ent.Schema
}

OneToMany holds the schema definition for the OneToMany entity.

func (OneToMany) Annotations

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

func (OneToMany) Edges

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

Edges of the OneToMany.

func (OneToMany) Fields

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

Fields of the OneToMany.

type Project

type Project struct {
	ent.Schema
}

Project holds the schema definition for the GroupTodo entity.

func (Project) Edges

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

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

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

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

Annotations returns User 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.

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.

type Workspace

type Workspace struct {
	ent.Schema
}

Workspace defines the workspace type schema.

func (Workspace) Annotations

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

func (Workspace) Fields

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

Fields returns workspace 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