schema

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	ent.Schema
}

func (Attachment) Annotations

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

func (Attachment) Edges

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

func (Attachment) Fields

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

type BigInt

type BigInt struct {
	*big.Int
}

func NewBigInt

func NewBigInt(i int64) BigInt

func (*BigInt) Scan

func (b *BigInt) Scan(src interface{}) error

func (BigInt) Value

func (b BigInt) Value() (driver.Value, error)

type Group

type Group struct {
	ent.Schema
}

func (Group) Annotations

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

func (Group) Edges

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

func (Group) Fields

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

type MultiWordSchema added in v0.2.0

type MultiWordSchema struct {
	ent.Schema
}

MultiWordSchema holds the schema definition for the MultiWordSchema entity.

func (MultiWordSchema) Annotations added in v0.2.0

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

func (MultiWordSchema) Edges added in v0.2.0

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

Edges of the MultiWordSchema.

func (MultiWordSchema) Fields added in v0.2.0

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

Fields of the MultiWordSchema.

type NilExample added in v0.2.0

type NilExample struct {
	ent.Schema
}

func (NilExample) Annotations added in v0.2.0

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

func (NilExample) Fields added in v0.2.0

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

type Pet added in v0.3.0

type Pet struct {
	ent.Schema
}

func (Pet) Annotations added in v0.3.0

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

func (Pet) Edges added in v0.3.0

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

Edges of the Pet.

func (Pet) Fields added in v0.3.0

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

Fields of the Pet.

type Pony added in v0.3.0

type Pony struct {
	ent.Schema
}

Pony is the schema of the Pony entity. It is used to verify the pluralization of the entity name in the generated protos and service code, expecting Ponies and not Ponys.

func (Pony) Annotations added in v0.3.0

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

func (Pony) Fields added in v0.3.0

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

Fields of the Pet.

type SkipEdgeExample added in v0.3.0

type SkipEdgeExample struct {
	ent.Schema
}

func (SkipEdgeExample) Edges added in v0.3.0

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

func (SkipEdgeExample) Fields added in v0.3.0

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

type Todo

type Todo struct {
	ent.Schema
}

Todo holds the schema definition for the Todo entity.

func (Todo) Annotations

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

func (Todo) Edges

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

Edges of the Todo.

func (Todo) Fields

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

Fields of the Todo.

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.

Jump to

Keyboard shortcuts

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