schema

package
v0.0.0-...-34fc03e Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditHook

func AuditHook(next ent.Mutator) ent.Mutator

func IDField

func IDField() ent.Field

func IDHook

func IDHook() ent.Hook

Types

type Actor

type Actor struct {
	ent.Schema
}

func (Actor) Edges

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

func (Actor) Fields

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

func (Actor) Hooks

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

func (Actor) Indexes

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

func (Actor) Mixin

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

func (Actor) Policy

func (Actor) Policy() ent.Policy

TODO: enforce policy

type AuditMixin

type AuditMixin struct {
	mixin.Schema
}

AuditMixin provides auditing for all records where enabled. The created_at, created_by, updated_at, and updated_by records are automatically populated when this mixin is enabled.

func (AuditMixin) Fields

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

func (AuditMixin) Hooks

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

type Event

type Event struct {
	ent.Schema
}

func (Event) Edges

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

func (Event) Fields

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

func (Event) Hooks

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

func (Event) Indexes

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

func (Event) Mixin

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

func (Event) Policy

func (Event) Policy() ent.Policy

TODO: enforce policy

type Group

type Group struct {
	ent.Schema
}

Groups are logical groups, distinct from Group-type Actors.

func (Group) Edges

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

func (Group) Fields

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

func (Group) Mixin

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

func (Group) Policy

func (Group) Policy() ent.Policy

TODO: enforce policy

type Reaction

type Reaction struct {
	ent.Schema
}

func (Reaction) Annotations

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

func (Reaction) Edges

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

func (Reaction) Fields

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

func (Reaction) Mixin

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

func (Reaction) Policy

func (Reaction) Policy() ent.Policy

TODO: enforce policy

type Server

type Server struct {
	ent.Schema
}

func (Server) Edges

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

func (Server) Fields

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

func (Server) Hooks

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

func (Server) Indexes

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

func (Server) Mixin

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

func (Server) Policy

func (Server) Policy() ent.Policy

TODO: enforce policy

type Session

type Session struct {
	ent.Schema
}

Sessions are authentication sessions. They can either be first-party web auth sessions or OAuth sessions. Sessions should persist in the database for 1yr after expiry, but with the "disabled" boolean set to true.

func (Session) Edges

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

func (Session) Fields

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

func (Session) Hooks

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

func (Session) Indexes

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

func (Session) Mixin

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

func (Session) Policy

func (Session) Policy() ent.Policy

TODO: enforce policy

type Status

type Status struct {
	ent.Schema
}

func (Status) Edges

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

func (Status) Fields

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

func (Status) Hooks

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

func (Status) Indexes

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

func (Status) Mixin

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

func (Status) Policy

func (Status) Policy() ent.Policy

TODO: enforce policy

Jump to

Keyboard shortcuts

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