schema

package
v0.0.0-...-259ba49 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalUUID

func MarshalUUID(u uuid.UUID) graphql.Marshaler

func UnmarshalUUID

func UnmarshalUUID(v interface{}) (u uuid.UUID, err error)

Types

type Group

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity.

func (Group) Annotations

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

func (Group) Edges

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

Edges of the Group.

func (Group) Fields

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

Fields of the Group.

func (Group) Mixin

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

Mixin of the Group.

type Message

type Message struct {
	ent.Schema
}

Message holds the schema definition for the Message entity.

func (Message) Annotations

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

func (Message) Edges

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

Edges of the Message.

func (Message) Fields

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

Fields of the Message.

func (Message) Mixin

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

Mixin of the Message.

type Node

type Node struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

Node implements the ent.Mixin for sharing time fields with package schemas.

func (Node) Fields

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

type Notification

type Notification struct {
	ent.Schema
}

Notification holds the schema definition for the Notification entity.

func (Notification) Annotations

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

func (Notification) Edges

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

Edges of the Notification.

func (Notification) Fields

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

Fields of the Notification.

func (Notification) Mixin

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

Mixin of the Notification.

type Post

type Post struct {
	ent.Schema
}

Post holds the schema definition for the Post entity.

func (Post) Annotations

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

func (Post) Edges

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

Edges of the Post.

func (Post) Fields

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

Fields of the Post.

func (Post) Mixin

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

Mixin of the Post.

type Setting

type Setting struct {
	ent.Schema
}

Setting holds the schema definition for the Setting entity.

func (Setting) Annotations

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

func (Setting) Edges

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

Edges of the Setting.

func (Setting) Fields

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

Fields of the Setting.

func (Setting) Mixin

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

Mixin of the Setting.

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

Edges of the User.

func (User) Fields

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

Fields of the User.

func (User) Mixin

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

Mixin of the User.

Jump to

Keyboard shortcuts

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