schema

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HookDeriveFileInfo

func HookDeriveFileInfo() ent.Hook

HookDeriveFileInfo will update file info (e.g. size, hash) whenever it is mutated.

func HookDeriveTomeInfo

func HookDeriveTomeInfo() ent.Hook

HookDeriveTomeInfo will update tome info (e.g. hash) whenever it is mutated.

Types

type Beacon

type Beacon struct {
	ent.Schema
}

Beacon holds the schema definition for the Beacon entity.

func (Beacon) Annotations

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

Annotations describes additional information for the ent.

func (Beacon) Edges

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

Edges of the Beacon.

func (Beacon) Fields

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

Fields of the Beacon.

type File

type File struct {
	ent.Schema
}

File holds the schema definition for the File entity.

func (File) Annotations

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

Annotations describes additional information for the ent.

func (File) Edges

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

Edges of the File.

func (File) Fields

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

Fields of the File.

func (File) Hooks

func (File) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (File) Mixin

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

Mixin defines common shared properties for the ent.

type Host

type Host struct {
	ent.Schema
}

Host holds the schema definition for the Host entity.

func (Host) Annotations

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

Annotations describes additional information for the ent.

func (Host) Edges

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

Edges of the Host.

func (Host) Fields

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

Fields of the Host.

type MixinHistory

type MixinHistory struct {
	mixin.Schema
}

MixinHistory defines common fields and edges for use in ents that require tracking of creation and modification details.

func (MixinHistory) Fields

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

type Quest

type Quest struct {
	ent.Schema
}

Quest holds the schema definition for the Quest entity.

func (Quest) Annotations

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

Annotations describes additional information for the ent.

func (Quest) Edges

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

Edges of the Quest.

func (Quest) Fields

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

Fields of the Quest.

func (Quest) Mixin

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

Mixin defines common shared properties for the ent.

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Tag) Annotations

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

Annotations describes additional information for the ent.

func (Tag) Edges

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

Edges of the Tag.

func (Tag) Fields

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

Fields of the Tag.

type Task

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity.

func (Task) Annotations

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

Annotations to configure code generation

func (Task) Edges

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

Edges of the Task.

func (Task) Fields

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

Fields of the Task.

func (Task) Mixin

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

Mixin defines common shared properties for the ent.

type Tome

type Tome struct {
	ent.Schema
}

Tome holds the schema definition for the Tome entity.

func (Tome) Annotations

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

Annotations describes additional information for the ent.

func (Tome) Edges

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

Edges of the Tome.

func (Tome) Fields

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

Fields of the Tome.

func (Tome) Hooks

func (Tome) Hooks() []ent.Hook

Hooks defines middleware for mutations for the ent.

func (Tome) Mixin

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

Mixin defines common shared properties for the ent.

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 describes additional information for the ent.

func (User) Edges

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

Edges of the User.

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