schema

package
v4.0.0-...-5b82330 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipSoftDelete

func SkipSoftDelete(parent context.Context) context.Context

SkipSoftDelete returns a new context that skips the soft-delete interceptor/mutators.

Types

type CommonMixin

type CommonMixin struct {
	mixin.Schema
}

CommonMixin implements the soft delete pattern for schemas and common audit features.

func (CommonMixin) Fields

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

Fields of the CommonMixin.

func (CommonMixin) Hooks

func (d CommonMixin) Hooks() []ent.Hook

Hooks of the CommonMixin.

func (CommonMixin) Indexes

func (CommonMixin) Indexes() []ent.Index

Indexes of the CommonMixin.

func (CommonMixin) Interceptors

func (d CommonMixin) Interceptors() []ent.Interceptor

Interceptors of the CommonMixin.

func (CommonMixin) P

func (d CommonMixin) P(w interface{ WhereP(...func(*sql.Selector)) })

P adds a storage-level predicate to the queries and mutations.

type DavAccount

type DavAccount struct {
	ent.Schema
}

DavAccount holds the schema definition for the DavAccount entity.

func (DavAccount) Edges

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

Edges of the DavAccount.

func (DavAccount) Fields

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

Fields of the DavAccount.

func (DavAccount) Indexes

func (DavAccount) Indexes() []ent.Index

Indexes of the DavAccount.

func (DavAccount) Mixin

func (DavAccount) Mixin() []ent.Mixin
type DirectLink struct {
	ent.Schema
}

DirectLink holds the schema definition for the DirectLink entity.

func (DirectLink) Edges

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

Edges of the DirectLink.

func (DirectLink) Fields

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

Fields of the DirectLink.

func (DirectLink) Mixin

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

type Entity

type Entity struct {
	ent.Schema
}

Entity holds the schema definition for the Entity.

func (Entity) Edges

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

Edges of the Entity.

func (Entity) Fields

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

Fields of the Entity.

func (Entity) Mixin

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

type File

type File struct {
	ent.Schema
}

File holds the schema definition for the File entity.

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 (f File) Hooks() []ent.Hook

func (File) Indexes

func (File) Indexes() []ent.Index

Indexes of the File.

type FsEvent

type FsEvent struct {
	ent.Schema
}

FsEvent holds the schema definition for the FsEvent entity.

func (FsEvent) Edges

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

Edges of the Task.

func (FsEvent) Fields

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

Fields of the FsEvent.

func (FsEvent) Mixin

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

type Group

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity.

func (Group) Edges

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

func (Group) Fields

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

func (Group) Mixin

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

type Metadata

type Metadata struct {
	ent.Schema
}

Metadata holds the schema definition for the Metadata entity.

func (Metadata) Edges

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

Edges of the Metadata.

func (Metadata) Fields

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

Fields of the Metadata.

func (Metadata) Indexes

func (Metadata) Indexes() []ent.Index

func (Metadata) Mixin

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

type Node

type Node struct {
	ent.Schema
}

Node holds the schema definition for the Node entity.

func (Node) Edges

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

Edges of the Node.

func (Node) Fields

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

Fields of the Node.

func (Node) Mixin

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

type OAuthClient

type OAuthClient struct {
	ent.Schema
}

OAuthClient holds the schema definition for the OAuthClient entity.

func (OAuthClient) Edges

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

Edges of the OAuthClient.

func (OAuthClient) Fields

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

Fields of the OAuthClient.

func (OAuthClient) Mixin

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

type OAuthGrant

type OAuthGrant struct {
	ent.Schema
}

OAuthGrant holds the schema definition for the OAuthGrant entity.

func (OAuthGrant) Edges

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

Edges of the OAuthGrant.

func (OAuthGrant) Fields

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

Fields of the OAuthGrant.

func (OAuthGrant) Indexes

func (OAuthGrant) Indexes() []ent.Index

Indexes of the OAuthGrant.

func (OAuthGrant) Mixin

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

type Passkey

type Passkey struct {
	ent.Schema
}

Passkey holds the schema definition for the Passkey entity.

func (Passkey) Edges

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

Edges of the Passkey.

func (Passkey) Fields

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

Fields of the Passkey.

func (Passkey) Indexes

func (Passkey) Indexes() []ent.Index

func (Passkey) Mixin

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

type Setting

type Setting struct {
	ent.Schema
}

Setting holds the schema definition for key-value setting entity.

func (Setting) Edges

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

func (Setting) Fields

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

func (Setting) Mixin

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

type Share

type Share struct {
	ent.Schema
}

Share holds the schema definition for the Share entity.

func (Share) Edges

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

Edges of the Share.

func (Share) Fields

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

Fields of the Share.

func (Share) Mixin

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

type StoragePolicy

type StoragePolicy struct {
	ent.Schema
}

StoragePolicy holds the schema definition for the storage policy entity.

func (StoragePolicy) Edges

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

func (StoragePolicy) Fields

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

func (StoragePolicy) Mixin

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

type Task

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity.

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

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

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

func (User) Fields

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

func (User) Mixin

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

Jump to

Keyboard shortcuts

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