schema

package
v0.0.0-...-2c00ec0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 15 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 BaseFiledMixin

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

func (BaseFiledMixin) Fields

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

type Org

type Org struct {
	ent.Schema
}

func (Org) Annotations

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

func (Org) Edges

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

func (Org) Fields

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

func (Org) Mixin

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

type Role

type Role struct {
	ent.Schema
}

func (Role) Annotations

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

func (Role) Edges

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

func (Role) Fields

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

func (Role) Mixin

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

type RoleBinding

type RoleBinding struct {
	ent.Schema
}

func (RoleBinding) Annotations

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

func (RoleBinding) Edges

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

func (RoleBinding) Fields

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

func (RoleBinding) Mixin

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

type SoftDeleteMixin

type SoftDeleteMixin struct {
	mixin.Schema
}

SoftDeleteMixin implements the soft delete pattern for schemas.

func (SoftDeleteMixin) Fields

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

Fields of the SoftDeleteMixin.

func (SoftDeleteMixin) Hooks

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

Hooks of the SoftDeleteMixin.

func (SoftDeleteMixin) Interceptors

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

Interceptors of the SoftDeleteMixin.

func (SoftDeleteMixin) P

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

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

type User

type User struct {
	ent.Schema
}

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

func (User) Hooks

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

Hooks of the User.

func (User) Indexes

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

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