schema

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Package schema contains the ent schema

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidTokenSize is returned when session token size is invalid
	ErrInvalidTokenSize = errors.New("invalid token size")

	// ErrContainsSpaces is returned when field contains spaces
	ErrContainsSpaces = errors.New("field should not contain spaces")

	// ErrUnexpectedMutationType is returned when an unexpected mutation type is encountered
	ErrUnexpectedMutationType = errors.New("unexpected mutation type")
)

Functions

This section is empty.

Types

type APIToken

type APIToken struct {
	ent.Schema
}

APIToken holds the schema definition for the APIToken entity.

func (APIToken) Annotations

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

Annotations of the APIToken

func (APIToken) Edges

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

Edges of the APIToken

func (APIToken) Fields

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

Fields of the APIToken

func (APIToken) Hooks

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

Hooks of the APIToken

func (APIToken) Indexes

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

Indexes of the APIToken

func (APIToken) Interceptors

func (APIToken) Interceptors() []ent.Interceptor

Interceptors of the APIToken

func (APIToken) Mixin

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

Mixin of the APIToken

func (APIToken) Policy

func (APIToken) Policy() ent.Policy

Policy of the APIToken

type ActionPlan added in v0.3.3

type ActionPlan struct {
	ent.Schema
}

ActionPlan defines the actionplan schema.

func (ActionPlan) Annotations added in v0.3.3

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

Annotations of the ActionPlan

func (ActionPlan) Edges added in v0.3.3

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

Edges of the ActionPlan

func (ActionPlan) Fields added in v0.3.3

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

Fields returns actionplan fields.

func (ActionPlan) Mixin added in v0.3.3

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

Mixin of the ActionPlan

type ActionPlanHistory added in v0.3.3

type ActionPlanHistory struct {
	ent.Schema
}

ActionPlanHistory holds the schema definition for the ActionPlanHistory entity.

func (ActionPlanHistory) Annotations added in v0.3.3

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

Annotations of the ActionPlanHistory.

func (ActionPlanHistory) Fields added in v0.3.3

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

Fields of the ActionPlanHistory.

func (ActionPlanHistory) Indexes added in v0.3.3

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

Indexes of the ActionPlanHistory

type Contact

type Contact struct {
	ent.Schema
}

Contact holds the schema definition for the Contact entity

func (Contact) Annotations

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

Annotations of the Contact

func (Contact) Edges

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

Edges of the Contact

func (Contact) Fields

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

Fields of the Contact

func (Contact) Hooks

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

Hooks of the Contact

func (Contact) Indexes

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

Indexes of the Contact

func (Contact) Interceptors

func (Contact) Interceptors() []ent.Interceptor

Interceptors of the Contact

func (Contact) Mixin

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

Mixin of the Contact

func (Contact) Policy

func (Contact) Policy() ent.Policy

Policy of the Contact

type ContactHistory

type ContactHistory struct {
	ent.Schema
}

ContactHistory holds the schema definition for the ContactHistory entity.

func (ContactHistory) Annotations

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

Annotations of the ContactHistory.

func (ContactHistory) Fields

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

Fields of the ContactHistory.

func (ContactHistory) Indexes

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

Indexes of the ContactHistory

func (ContactHistory) Interceptors

func (ContactHistory) Interceptors() []ent.Interceptor

Interceptors of the ContactHistory

func (ContactHistory) Policy

func (ContactHistory) Policy() ent.Policy

Policy of the ContactHistory

type Control added in v0.3.3

type Control struct {
	ent.Schema
}

Control defines the control schema.

func (Control) Annotations added in v0.3.3

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

Annotations of the Control

func (Control) Edges added in v0.3.3

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

Edges of the Control

func (Control) Fields added in v0.3.3

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

Fields returns control fields.

func (Control) Mixin added in v0.3.3

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

Mixin of the Control

type ControlHistory added in v0.3.3

type ControlHistory struct {
	ent.Schema
}

ControlHistory holds the schema definition for the ControlHistory entity.

func (ControlHistory) Annotations added in v0.3.3

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

Annotations of the ControlHistory.

func (ControlHistory) Fields added in v0.3.3

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

Fields of the ControlHistory.

func (ControlHistory) Indexes added in v0.3.3

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

Indexes of the ControlHistory

type ControlObjective added in v0.3.3

type ControlObjective struct {
	ent.Schema
}

ControlObjective defines the controlobjective schema.

func (ControlObjective) Annotations added in v0.3.3

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

Annotations of the ControlObjective

func (ControlObjective) Edges added in v0.3.3

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

Edges of the ControlObjective

func (ControlObjective) Fields added in v0.3.3

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

Fields returns controlobjective fields.

func (ControlObjective) Mixin added in v0.3.3

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

Mixin of the ControlObjective

type ControlObjectiveHistory added in v0.3.3

type ControlObjectiveHistory struct {
	ent.Schema
}

ControlObjectiveHistory holds the schema definition for the ControlObjectiveHistory entity.

func (ControlObjectiveHistory) Annotations added in v0.3.3

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

Annotations of the ControlObjectiveHistory.

func (ControlObjectiveHistory) Fields added in v0.3.3

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

Fields of the ControlObjectiveHistory.

func (ControlObjectiveHistory) Indexes added in v0.3.3

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

Indexes of the ControlObjectiveHistory

type DocumentData

type DocumentData struct {
	ent.Schema
}

DocumentData holds the schema definition for the DocumentData entity

func (DocumentData) Annotations

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

Annotations of the DocumentData

func (DocumentData) Edges

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

Edges of the DocumentData

func (DocumentData) Fields

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

Fields of the DocumentData

func (DocumentData) Mixin

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

Mixin of the DocumentData

func (DocumentData) Policy

func (DocumentData) Policy() ent.Policy

Policy of the DocumentData

type DocumentDataHistory

type DocumentDataHistory struct {
	ent.Schema
}

DocumentDataHistory holds the schema definition for the DocumentDataHistory entity.

func (DocumentDataHistory) Annotations

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

Annotations of the DocumentDataHistory.

func (DocumentDataHistory) Fields

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

Fields of the DocumentDataHistory.

func (DocumentDataHistory) Indexes

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

Indexes of the DocumentDataHistory

func (DocumentDataHistory) Interceptors

func (DocumentDataHistory) Interceptors() []ent.Interceptor

Interceptors of the DocumentDataHistory

func (DocumentDataHistory) Policy

func (DocumentDataHistory) Policy() ent.Policy

Policy of the DocumentDataHistory

type EmailVerificationToken

type EmailVerificationToken struct {
	ent.Schema
}

EmailVerificationToken holds the schema definition for the EmailVerificationToken entity

func (EmailVerificationToken) Annotations

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

Annotations of the EmailVerificationToken

func (EmailVerificationToken) Edges

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

Edges of the EmailVerificationToken

func (EmailVerificationToken) Fields

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

Fields of the EmailVerificationToken

func (EmailVerificationToken) Hooks

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

Hooks of the EmailVerificationToken

func (EmailVerificationToken) Indexes

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

Indexes of the EmailVerificationToken

func (EmailVerificationToken) Mixin

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

Mixin of the EmailVerificationToken

func (EmailVerificationToken) Policy

Policy of the EmailVerificationToken

type Entitlement

type Entitlement struct {
	ent.Schema
}

Entitlement holds the schema definition for the Entitlement entity.

func (Entitlement) Annotations

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

Annotations of the Entitlement

func (Entitlement) Edges

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

Edges of the Entitlement

func (Entitlement) Fields

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

Fields of the Entitlement.

func (Entitlement) Hooks

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

Hooks of the Entitlement

func (Entitlement) Indexes

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

Indexes of the Entitlement

func (Entitlement) Mixin

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

Mixin of the Entitlement

func (Entitlement) Policy

func (Entitlement) Policy() ent.Policy

Policy of the Entitlement

type EntitlementHistory

type EntitlementHistory struct {
	ent.Schema
}

EntitlementHistory holds the schema definition for the EntitlementHistory entity.

func (EntitlementHistory) Annotations

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

Annotations of the EntitlementHistory.

func (EntitlementHistory) Fields

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

Fields of the EntitlementHistory.

func (EntitlementHistory) Indexes

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

Indexes of the EntitlementHistory

func (EntitlementHistory) Interceptors

func (EntitlementHistory) Interceptors() []ent.Interceptor

Interceptors of the EntitlementHistory

func (EntitlementHistory) Policy

func (EntitlementHistory) Policy() ent.Policy

Policy of the EntitlementHistory

type EntitlementPlan

type EntitlementPlan struct {
	ent.Schema
}

EntitlementPlan holds the schema definition for the EntitlementPlan entity

func (EntitlementPlan) Annotations

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

Annotations of the EntitlementPlan

func (EntitlementPlan) Edges

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

Edges of the EntitlementPlan

func (EntitlementPlan) Fields

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

Fields of the EntitlementPlan

func (EntitlementPlan) Hooks

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

Hooks of the EntitlementPlan

func (EntitlementPlan) Indexes

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

Indexes of the EntitlementPlan

func (EntitlementPlan) Interceptors

func (EntitlementPlan) Interceptors() []ent.Interceptor

Interceptors of the EntitlementPlan

func (EntitlementPlan) Mixin

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

Mixin of the EntitlementPlan

func (EntitlementPlan) Policy

func (EntitlementPlan) Policy() ent.Policy

Policy of the EntitlementPlan

type EntitlementPlanFeature

type EntitlementPlanFeature struct {
	ent.Schema
}

EntitlementPlanFeature holds the schema definition for the EntitlementPlanFeature entity

func (EntitlementPlanFeature) Annotations

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

Annotations of the EntitlementPlanFeature

func (EntitlementPlanFeature) Edges

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

Edges of the EntitlementPlanFeature

func (EntitlementPlanFeature) Fields

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

Fields of the EntitlementPlanFeature

func (EntitlementPlanFeature) Hooks

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

Hooks of the EntitlementPlanFeature

func (EntitlementPlanFeature) Indexes

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

Indexes of the EntitlementPlanFeature

func (EntitlementPlanFeature) Interceptors

func (EntitlementPlanFeature) Interceptors() []ent.Interceptor

Interceptors of the EntitlementPlanFeature

func (EntitlementPlanFeature) Mixin

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

Mixin of the EntitlementPlanFeature

func (EntitlementPlanFeature) Policy

Policy of the EntitlementPlan

type EntitlementPlanFeatureHistory

type EntitlementPlanFeatureHistory struct {
	ent.Schema
}

EntitlementPlanFeatureHistory holds the schema definition for the EntitlementPlanFeatureHistory entity.

func (EntitlementPlanFeatureHistory) Annotations

Annotations of the EntitlementPlanFeatureHistory.

func (EntitlementPlanFeatureHistory) Fields

Fields of the EntitlementPlanFeatureHistory.

func (EntitlementPlanFeatureHistory) Indexes

Indexes of the EntitlementPlanFeatureHistory

func (EntitlementPlanFeatureHistory) Interceptors

Interceptors of the EntitlementPlanFeatureHistory

func (EntitlementPlanFeatureHistory) Policy

Policy of the EntitlementPlanFeatureHistory

type EntitlementPlanHistory

type EntitlementPlanHistory struct {
	ent.Schema
}

EntitlementPlanHistory holds the schema definition for the EntitlementPlanHistory entity.

func (EntitlementPlanHistory) Annotations

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

Annotations of the EntitlementPlanHistory.

func (EntitlementPlanHistory) Fields

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

Fields of the EntitlementPlanHistory.

func (EntitlementPlanHistory) Indexes

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

Indexes of the EntitlementPlanHistory

func (EntitlementPlanHistory) Interceptors

func (EntitlementPlanHistory) Interceptors() []ent.Interceptor

Interceptors of the EntitlementPlanHistory

func (EntitlementPlanHistory) Policy

Policy of the EntitlementPlanHistory

type Entity

type Entity struct {
	ent.Schema
}

Entity holds the schema definition for the Entity entity

func (Entity) Annotations

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

Annotations of 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) Hooks

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

Hooks of the Entity

func (Entity) Indexes

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

Indexes of the Entity

func (Entity) Interceptors

func (Entity) Interceptors() []ent.Interceptor

Interceptors of the Entity

func (Entity) Mixin

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

Mixin of the Entity

func (Entity) Policy

func (Entity) Policy() ent.Policy

Policy of the Entity

type EntityHistory

type EntityHistory struct {
	ent.Schema
}

EntityHistory holds the schema definition for the EntityHistory entity.

func (EntityHistory) Annotations

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

Annotations of the EntityHistory.

func (EntityHistory) Fields

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

Fields of the EntityHistory.

func (EntityHistory) Indexes

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

Indexes of the EntityHistory

func (EntityHistory) Interceptors

func (EntityHistory) Interceptors() []ent.Interceptor

Interceptors of the EntityHistory

func (EntityHistory) Policy

func (EntityHistory) Policy() ent.Policy

Policy of the EntityHistory

type EntityType

type EntityType struct {
	ent.Schema
}

EntityType holds the schema definition for the EntityType entity

func (EntityType) Annotations

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

Annotations of the EntityType

func (EntityType) Edges

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

Edges of the EntityType

func (EntityType) Fields

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

Fields of the EntityType

func (EntityType) Hooks

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

Hooks of the EntityType

func (EntityType) Indexes

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

Indexes of the EntityType

func (EntityType) Interceptors

func (EntityType) Interceptors() []ent.Interceptor

Interceptors of the EntityType

func (EntityType) Mixin

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

Mixin of the EntityType

func (EntityType) Policy

func (EntityType) Policy() ent.Policy

Policy of the EntityType

type EntityTypeHistory

type EntityTypeHistory struct {
	ent.Schema
}

EntityTypeHistory holds the schema definition for the EntityTypeHistory entity.

func (EntityTypeHistory) Annotations

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

Annotations of the EntityTypeHistory.

func (EntityTypeHistory) Fields

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

Fields of the EntityTypeHistory.

func (EntityTypeHistory) Indexes

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

Indexes of the EntityTypeHistory

func (EntityTypeHistory) Interceptors

func (EntityTypeHistory) Interceptors() []ent.Interceptor

Interceptors of the EntityTypeHistory

func (EntityTypeHistory) Policy

func (EntityTypeHistory) Policy() ent.Policy

Policy of the EntityTypeHistory

type Event

type Event struct {
	ent.Schema
}

func (Event) Annotations

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

Annotations of the Event

func (Event) Edges

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

Edges of the Event

func (Event) Fields

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

Fields of the TicketEvent.

func (Event) Mixin

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

Mixin of the Event

type EventHistory

type EventHistory struct {
	ent.Schema
}

EventHistory holds the schema definition for the EventHistory entity.

func (EventHistory) Annotations

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

Annotations of the EventHistory.

func (EventHistory) Fields

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

Fields of the EventHistory.

func (EventHistory) Indexes

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

Indexes of the EventHistory

type Feature

type Feature struct {
	ent.Schema
}

Feature defines the feature schema

func (Feature) Annotations

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

Annotations of the Feature

func (Feature) Edges

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

Edges returns feature edges

func (Feature) Fields

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

Fields returns feature fields

func (Feature) Hooks

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

Hooks of the Feature

func (Feature) Indexes

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

func (Feature) Interceptors

func (Feature) Interceptors() []ent.Interceptor

Interceptors of the Feature

func (Feature) Mixin

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

Mixin of the Feature

func (Feature) Policy

func (Feature) Policy() ent.Policy

Policy of the Feature

type FeatureHistory

type FeatureHistory struct {
	ent.Schema
}

FeatureHistory holds the schema definition for the FeatureHistory entity.

func (FeatureHistory) Annotations

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

Annotations of the FeatureHistory.

func (FeatureHistory) Fields

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

Fields of the FeatureHistory.

func (FeatureHistory) Indexes

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

Indexes of the FeatureHistory

func (FeatureHistory) Interceptors

func (FeatureHistory) Interceptors() []ent.Interceptor

Interceptors of the FeatureHistory

func (FeatureHistory) Policy

func (FeatureHistory) Policy() ent.Policy

Policy of the FeatureHistory

type File

type File struct {
	ent.Schema
}

File defines the file schema.

func (File) Annotations

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

Annotations of the File

func (File) Edges

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

Edges of the File

func (File) Fields

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

Fields returns file fields.

func (File) Mixin

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

Mixin of the File

func (File) Policy added in v0.3.1

func (File) Policy() ent.Policy

Policy of the File

type FileHistory

type FileHistory struct {
	ent.Schema
}

FileHistory holds the schema definition for the FileHistory entity.

func (FileHistory) Annotations

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

Annotations of the FileHistory.

func (FileHistory) Fields

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

Fields of the FileHistory.

func (FileHistory) Indexes

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

Indexes of the FileHistory

func (FileHistory) Interceptors added in v0.3.1

func (FileHistory) Interceptors() []ent.Interceptor

Interceptors of the FileHistory

func (FileHistory) Policy added in v0.3.1

func (FileHistory) Policy() ent.Policy

Policy of the FileHistory

type Group

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity

func (Group) Annotations

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

Annotations of the Group

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) Hooks

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

Hooks of the Group

func (Group) Indexes

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

Indexes of the Group

func (Group) Interceptors

func (Group) Interceptors() []ent.Interceptor

Interceptors of the Group

func (Group) Mixin

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

Mixin of the Group

func (Group) Policy

func (Group) Policy() ent.Policy

Policy of the group

type GroupHistory

type GroupHistory struct {
	ent.Schema
}

GroupHistory holds the schema definition for the GroupHistory entity.

func (GroupHistory) Annotations

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

Annotations of the GroupHistory.

func (GroupHistory) Fields

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

Fields of the GroupHistory.

func (GroupHistory) Indexes

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

Indexes of the GroupHistory

func (GroupHistory) Interceptors

func (GroupHistory) Interceptors() []ent.Interceptor

Interceptors of the GroupHistory

func (GroupHistory) Policy

func (GroupHistory) Policy() ent.Policy

Policy of the GroupHistory

type GroupMembership

type GroupMembership struct {
	ent.Schema
}

GroupMembership holds the schema definition for the GroupMembership entity

func (GroupMembership) Annotations

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

Annotations of the GroupMembership

func (GroupMembership) Edges

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

Edges of the GroupMembership

func (GroupMembership) Fields

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

Fields of the GroupMembership

func (GroupMembership) Hooks

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

Hooks of the GroupMembership

func (GroupMembership) Indexes

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

Indexes of the GroupMembership

func (GroupMembership) Mixin

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

Mixin of the GroupMembership

func (GroupMembership) Policy

func (GroupMembership) Policy() ent.Policy

Policy of the GroupMembership

type GroupMembershipHistory

type GroupMembershipHistory struct {
	ent.Schema
}

GroupMembershipHistory holds the schema definition for the GroupMembershipHistory entity.

func (GroupMembershipHistory) Annotations

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

Annotations of the GroupMembershipHistory.

func (GroupMembershipHistory) Fields

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

Fields of the GroupMembershipHistory.

func (GroupMembershipHistory) Indexes

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

Indexes of the GroupMembershipHistory

func (GroupMembershipHistory) Interceptors

func (GroupMembershipHistory) Interceptors() []ent.Interceptor

Interceptors of the GroupMembershipHistory

func (GroupMembershipHistory) Policy

Policy of the GroupMembershipHistory

type GroupSetting

type GroupSetting struct {
	ent.Schema
}

GroupSetting holds the schema definition for the GroupSetting entity

func (GroupSetting) Annotations

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

Annotations of the GroupSetting

func (GroupSetting) Edges

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

Edges of the GroupSetting

func (GroupSetting) Fields

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

Fields of the GroupSetting.

func (GroupSetting) Mixin

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

Mixin of the GroupSetting

func (GroupSetting) Policy

func (GroupSetting) Policy() ent.Policy

Policy defines the privacy policy of the GroupSetting

type GroupSettingHistory

type GroupSettingHistory struct {
	ent.Schema
}

GroupSettingHistory holds the schema definition for the GroupSettingHistory entity.

func (GroupSettingHistory) Annotations

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

Annotations of the GroupSettingHistory.

func (GroupSettingHistory) Fields

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

Fields of the GroupSettingHistory.

func (GroupSettingHistory) Indexes

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

Indexes of the GroupSettingHistory

func (GroupSettingHistory) Interceptors

func (GroupSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the GroupSettingHistory

func (GroupSettingHistory) Policy

func (GroupSettingHistory) Policy() ent.Policy

Policy of the GroupSettingHistory

type HookFunc added in v0.3.1

type HookFunc func(o ObjectOwnedMixin) ent.Hook

type Hush

type Hush struct {
	ent.Schema
}

Hush maps configured integrations (github, slack, etc.) to organizations

func (Hush) Annotations

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

Annotations of the Hushhh

func (Hush) Edges

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

Edges of the Hush

func (Hush) Fields

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

Fields of the Hush

func (Hush) Hooks

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

Hooks of the Hush

func (Hush) Interceptors

func (Hush) Interceptors() []ent.Interceptor

Interceptors of the Hush

func (Hush) Mixin

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

Mixin of the Hush shhhh

type HushHistory

type HushHistory struct {
	ent.Schema
}

HushHistory holds the schema definition for the HushHistory entity.

func (HushHistory) Annotations

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

Annotations of the HushHistory.

func (HushHistory) Fields

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

Fields of the HushHistory.

func (HushHistory) Indexes

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

Indexes of the HushHistory

type Integration

type Integration struct {
	ent.Schema
}

Integration maps configured integrations (github, slack, etc.) to organizations

func (Integration) Annotations

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

Annotations of the Integration

func (Integration) Edges

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

Edges of the Integration

func (Integration) Fields

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

Fields of the Integration

func (Integration) Mixin

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

Mixin of the Integration

func (Integration) Policy

func (Integration) Policy() ent.Policy

Policy of the Integration

type IntegrationHistory

type IntegrationHistory struct {
	ent.Schema
}

IntegrationHistory holds the schema definition for the IntegrationHistory entity.

func (IntegrationHistory) Annotations

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

Annotations of the IntegrationHistory.

func (IntegrationHistory) Fields

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

Fields of the IntegrationHistory.

func (IntegrationHistory) Indexes

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

Indexes of the IntegrationHistory

func (IntegrationHistory) Interceptors

func (IntegrationHistory) Interceptors() []ent.Interceptor

Interceptors of the IntegrationHistory

func (IntegrationHistory) Policy

func (IntegrationHistory) Policy() ent.Policy

Policy of the IntegrationHistory

type InterceptorFunc added in v0.3.1

type InterceptorFunc func(o ObjectOwnedMixin) ent.Interceptor

type InternalPolicy added in v0.3.3

type InternalPolicy struct {
	ent.Schema
}

InternalPolicy defines the policy schema.

func (InternalPolicy) Annotations added in v0.3.3

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

Annotations of the InternalPolicy

func (InternalPolicy) Edges added in v0.3.3

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

Edges of the InternalPolicy

func (InternalPolicy) Fields added in v0.3.3

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

Fields returns policy fields.

func (InternalPolicy) Hooks added in v0.4.2

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

Hooks of the InternalPolicy

func (InternalPolicy) Interceptors added in v0.4.2

func (InternalPolicy) Interceptors() []ent.Interceptor

Interceptors of the InternalPolicy

func (InternalPolicy) Mixin added in v0.3.3

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

Mixin of the InternalPolicy

func (InternalPolicy) Policy added in v0.4.2

func (InternalPolicy) Policy() ent.Policy

Policy of the InternalPolicy

type InternalPolicyHistory added in v0.3.3

type InternalPolicyHistory struct {
	ent.Schema
}

InternalPolicyHistory holds the schema definition for the InternalPolicyHistory entity.

func (InternalPolicyHistory) Annotations added in v0.3.3

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

Annotations of the InternalPolicyHistory.

func (InternalPolicyHistory) Fields added in v0.3.3

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

Fields of the InternalPolicyHistory.

func (InternalPolicyHistory) Indexes added in v0.3.3

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

Indexes of the InternalPolicyHistory

func (InternalPolicyHistory) Interceptors added in v0.4.2

func (InternalPolicyHistory) Interceptors() []ent.Interceptor

Interceptors of the InternalPolicyHistory

func (InternalPolicyHistory) Policy added in v0.4.2

func (InternalPolicyHistory) Policy() ent.Policy

Policy of the InternalPolicyHistory

type Invite

type Invite struct {
	ent.Schema
}

Invite holds the schema definition for the Invite entity

func (Invite) Annotations

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

Annotations of the Invite

func (Invite) Edges

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

Edges of the Invite

func (Invite) Fields

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

Fields of the Invite

func (Invite) Hooks

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

Hooks of the Invite

func (Invite) Indexes

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

Indexes of the Invite

func (Invite) Mixin

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

Mixin of the Invite

func (Invite) Policy

func (Invite) Policy() ent.Policy

Policy of the Invite

type Narrative added in v0.3.3

type Narrative struct {
	ent.Schema
}

Narrative defines the narrative schema

func (Narrative) Annotations added in v0.3.3

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

Annotations of the Narrative

func (Narrative) Edges added in v0.3.3

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

Edges of the Narrative

func (Narrative) Fields added in v0.3.3

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

Fields returns narrative fields

func (Narrative) Mixin added in v0.3.3

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

Mixin of the Narrative

type NarrativeHistory added in v0.3.3

type NarrativeHistory struct {
	ent.Schema
}

NarrativeHistory holds the schema definition for the NarrativeHistory entity.

func (NarrativeHistory) Annotations added in v0.3.3

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

Annotations of the NarrativeHistory.

func (NarrativeHistory) Fields added in v0.3.3

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

Fields of the NarrativeHistory.

func (NarrativeHistory) Indexes added in v0.3.3

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

Indexes of the NarrativeHistory

type Note

type Note struct {
	ent.Schema
}

Note holds the schema definition for the Note entity

func (Note) Annotations

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

Annotations of the Note

func (Note) Edges

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

Edges of the Note

func (Note) Fields

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

Fields of the Note

func (Note) Hooks

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

Hooks of the Note

func (Note) Indexes

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

Indexes of the Note

func (Note) Interceptors

func (Note) Interceptors() []ent.Interceptor

Interceptors of the Note

func (Note) Mixin

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

Mixin of the Note

func (Note) Policy

func (Note) Policy() ent.Policy

Policy of the Note

type NoteHistory

type NoteHistory struct {
	ent.Schema
}

NoteHistory holds the schema definition for the NoteHistory entity.

func (NoteHistory) Annotations

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

Annotations of the NoteHistory.

func (NoteHistory) Fields

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

Fields of the NoteHistory.

func (NoteHistory) Indexes

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

Indexes of the NoteHistory

func (NoteHistory) Interceptors

func (NoteHistory) Interceptors() []ent.Interceptor

Interceptors of the NoteHistory

func (NoteHistory) Policy

func (NoteHistory) Policy() ent.Policy

Policy of the NoteHistory

type OauthProvider

type OauthProvider struct {
	ent.Schema
}

OauthProvider holds the schema definition for the OauthProvider entity

func (OauthProvider) Annotations

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

Annotations of the OauthProvider

func (OauthProvider) Edges

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

Edges of the OauthProvider

func (OauthProvider) Fields

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

Fields of the OauthProvider

func (OauthProvider) Mixin

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

Mixin of the OauthProvider

func (OauthProvider) Policy

func (OauthProvider) Policy() ent.Policy

Policy of the OauthProvider

type OauthProviderHistory

type OauthProviderHistory struct {
	ent.Schema
}

OauthProviderHistory holds the schema definition for the OauthProviderHistory entity.

func (OauthProviderHistory) Annotations

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

Annotations of the OauthProviderHistory.

func (OauthProviderHistory) Fields

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

Fields of the OauthProviderHistory.

func (OauthProviderHistory) Indexes

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

Indexes of the OauthProviderHistory

func (OauthProviderHistory) Interceptors

func (OauthProviderHistory) Interceptors() []ent.Interceptor

Interceptors of the OauthProviderHistory

func (OauthProviderHistory) Policy

func (OauthProviderHistory) Policy() ent.Policy

Policy of the OauthProviderHistory

type ObjectOwnedMixin added in v0.3.1

type ObjectOwnedMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// Kind of the object
	Kind any
	// FieldNames are the name of the field in the schema that can own / controls permissions of the object, e.g. "owner_id" or "program_id"
	FieldNames []string
	// SkipUserTuple skips the user tuple creation for the object owned mixin
	SkipUserTuple bool
	// Required makes the owner id field required as input
	Required bool
	// AllowEmpty allows the owner id field to be empty
	AllowEmpty bool
	// SkipOASGeneration skips open api spec generation for the field
	SkipOASGeneration bool
	// SkipInterceptor skips the interceptor for that schema for all queries, or specific types,
	// this is useful for tokens, etc
	SkipInterceptor interceptors.SkipMode
	// SkipTokenType skips the traverser or hook if the token type is found in the context
	SkipTokenType []token.PrivacyToken
	// HookFuncs is the hook functions for the object owned mixin
	// that will be called on all mutations
	HookFuncs []HookFunc
	// InterceptorFunc is the interceptor function for the object owned mixin
	// that will be called on all queries
	InterceptorFunc InterceptorFunc
}

ObjectOwnedMixin is a mixin for object owned entities

func NewObjectOwnMixinWithRef added in v0.3.1

func NewObjectOwnMixinWithRef(ref string) ObjectOwnedMixin

NewObjectOwnMixinWithRef creates a new ObjectOwnedMixin with the given ref and sets the defaults

func NewObjectOwnedMixin added in v0.3.1

func NewObjectOwnedMixin(o ObjectOwnedMixin) ObjectOwnedMixin

NewObjectOwnedMixin creates a new ObjectOwnedMixin with the given ObjectOwnedMixin and sets the HookFunc to defaultOrgHookFunc

func NewOrgOwnMixinWithRef added in v0.3.1

func NewOrgOwnMixinWithRef(ref string) ObjectOwnedMixin

NewOrgOwnMixinWithRef creates a new OrgOwnedMixin with the given ref and sets the defaults

func NewOrgOwnedMixin added in v0.3.1

func NewOrgOwnedMixin(o ObjectOwnedMixin) ObjectOwnedMixin

NewOrgOwnedMixin creates a new OrgOwnedMixin with the given ObjectOwnedMixin and sets the Kind to ownerFieldName and the HookFunc to defaultOrgHookFunc

func (ObjectOwnedMixin) Edges added in v0.3.1

func (o ObjectOwnedMixin) Edges() []ent.Edge

Edges of the ObjectOwnedMixin

func (ObjectOwnedMixin) Fields added in v0.3.1

func (o ObjectOwnedMixin) Fields() []ent.Field

Fields of the ObjectOwnedMixin

func (ObjectOwnedMixin) Hooks added in v0.3.1

func (o ObjectOwnedMixin) Hooks() []ent.Hook

Hooks of the ObjectOwnedMixin

func (ObjectOwnedMixin) Interceptors added in v0.3.1

func (o ObjectOwnedMixin) Interceptors() []ent.Interceptor

Interceptors of the ObjectOwnedMixin

func (ObjectOwnedMixin) P added in v0.3.1

func (o ObjectOwnedMixin) P(w interface{ WhereP(...func(*sql.Selector)) }, objectIDs []string)

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

type OhAuthTooToken

type OhAuthTooToken struct {
	ent.Schema
}

OhAuthTooToken holds the schema definition for the OhAuthTooToken entity

func (OhAuthTooToken) Annotations

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

Annotations of the OhAuthTooToken

func (OhAuthTooToken) Edges

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

Edges of the OhAuthTooToken

func (OhAuthTooToken) Fields

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

Fields of the OhAuthTooToken

func (OhAuthTooToken) Mixin

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

Mixin of the OhAuthTooToken

type OrgMembership

type OrgMembership struct {
	ent.Schema
}

OrgMembership holds the schema definition for the OrgMembership entity

func (OrgMembership) Annotations

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

Annotations of the OrgMembership

func (OrgMembership) Edges

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

Edges of the OrgMembership

func (OrgMembership) Fields

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

Fields of the OrgMembership

func (OrgMembership) Hooks

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

Hooks of the OrgMembership

func (OrgMembership) Indexes

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

func (OrgMembership) Interceptors

func (OrgMembership) Interceptors() []ent.Interceptor

Interceptors of the OrgMembership

func (OrgMembership) Mixin

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

Mixin of the OrgMembership

func (OrgMembership) Policy

func (OrgMembership) Policy() ent.Policy

Policy of the OrgMembership

type OrgMembershipHistory

type OrgMembershipHistory struct {
	ent.Schema
}

OrgMembershipHistory holds the schema definition for the OrgMembershipHistory entity.

func (OrgMembershipHistory) Annotations

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

Annotations of the OrgMembershipHistory.

func (OrgMembershipHistory) Fields

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

Fields of the OrgMembershipHistory.

func (OrgMembershipHistory) Indexes

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

Indexes of the OrgMembershipHistory

func (OrgMembershipHistory) Interceptors

func (OrgMembershipHistory) Interceptors() []ent.Interceptor

Interceptors of the OrgMembershipHistory

func (OrgMembershipHistory) Policy

func (OrgMembershipHistory) Policy() ent.Policy

Policy of the OrgMembershipHistory

type Organization

type Organization struct {
	ent.Schema
}

Organization holds the schema definition for the Organization entity - organizations are the top level tenancy construct in the system

func (Organization) Annotations

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

Annotations of the Organization

func (Organization) Edges

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

Edges of the Organization

func (Organization) Fields

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

Fields of the Organization

func (Organization) Hooks

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

Hooks of the Organization

func (Organization) Indexes

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

func (Organization) Interceptors

func (Organization) Interceptors() []ent.Interceptor

Interceptors of the Organization

func (Organization) Mixin

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

Mixin of the Organization

func (Organization) Policy

func (Organization) Policy() ent.Policy

Policy defines the privacy policy of the Organization.

type OrganizationHistory

type OrganizationHistory struct {
	ent.Schema
}

OrganizationHistory holds the schema definition for the OrganizationHistory entity.

func (OrganizationHistory) Annotations

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

Annotations of the OrganizationHistory.

func (OrganizationHistory) Fields

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

Fields of the OrganizationHistory.

func (OrganizationHistory) Indexes

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

Indexes of the OrganizationHistory

func (OrganizationHistory) Interceptors

func (OrganizationHistory) Interceptors() []ent.Interceptor

Interceptors of the OrganizationHistory

func (OrganizationHistory) Policy

func (OrganizationHistory) Policy() ent.Policy

Policy of the OrganizationHistory

type OrganizationSetting

type OrganizationSetting struct {
	ent.Schema
}

OrganizationSetting holds the schema definition for the OrganizationSetting entity

func (OrganizationSetting) Annotations

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

Annotations of the OrganizationSetting

func (OrganizationSetting) Edges

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

Edges of the OrganizationSetting

func (OrganizationSetting) Fields

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

Fields of the OrganizationSetting

func (OrganizationSetting) Interceptors

func (OrganizationSetting) Interceptors() []ent.Interceptor

Interceptors of the OrganizationSetting

func (OrganizationSetting) Mixin

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

Mixin of the OrganizationSetting

func (OrganizationSetting) Policy

func (OrganizationSetting) Policy() ent.Policy

Policy defines the privacy policy of the OrganizationSetting

type OrganizationSettingHistory

type OrganizationSettingHistory struct {
	ent.Schema
}

OrganizationSettingHistory holds the schema definition for the OrganizationSettingHistory entity.

func (OrganizationSettingHistory) Annotations

Annotations of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Fields

Fields of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Indexes

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

Indexes of the OrganizationSettingHistory

func (OrganizationSettingHistory) Interceptors

func (OrganizationSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the OrganizationSettingHistory

func (OrganizationSettingHistory) Policy

Policy of the OrganizationSettingHistory

type PasswordResetToken

type PasswordResetToken struct {
	ent.Schema
}

PasswordResetToken holds the schema definition for the PasswordResetToken entity

func (PasswordResetToken) Annotations

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

Annotations of the PasswordResetToken

func (PasswordResetToken) Edges

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

Edges of the PasswordResetToken

func (PasswordResetToken) Fields

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

Fields of the PasswordResetToken

func (PasswordResetToken) Hooks

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

Hooks of the PasswordResetToken

func (PasswordResetToken) Indexes

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

Indexes of the PasswordResetToken

func (PasswordResetToken) Mixin

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

Mixin of the PasswordResetToken

func (PasswordResetToken) Policy

func (PasswordResetToken) Policy() ent.Policy

Policy of the PasswordResetToken

type PersonalAccessToken

type PersonalAccessToken struct {
	ent.Schema
}

PersonalAccessToken holds the schema definition for the PersonalAccessToken entity.

func (PersonalAccessToken) Annotations

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

Annotations of the PersonalAccessToken

func (PersonalAccessToken) Edges

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

Edges of the PersonalAccessToken

func (PersonalAccessToken) Fields

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

Fields of the PersonalAccessToken

func (PersonalAccessToken) Hooks

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

Hooks of the PersonalAccessToken

func (PersonalAccessToken) Indexes

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

Indexes of the PersonalAccessToken

func (PersonalAccessToken) Interceptors

func (PersonalAccessToken) Interceptors() []ent.Interceptor

Interceptors of the PersonalAccessToken

func (PersonalAccessToken) Mixin

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

Mixin of the PersonalAccessToken

func (PersonalAccessToken) Policy

func (PersonalAccessToken) Policy() ent.Policy

Policy of the PersonalAccessToken

type Procedure added in v0.3.3

type Procedure struct {
	ent.Schema
}

Procedure defines the procedure schema.

func (Procedure) Annotations added in v0.3.3

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

Annotations of the Procedure

func (Procedure) Edges added in v0.3.3

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

Edges of the Procedure

func (Procedure) Fields added in v0.3.3

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

Fields returns procedure fields.

func (Procedure) Hooks added in v0.4.2

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

Hooks of the Procedure

func (Procedure) Interceptors added in v0.4.2

func (Procedure) Interceptors() []ent.Interceptor

Interceptors of the Procedure

func (Procedure) Mixin added in v0.3.3

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

Mixin of the Procedure

func (Procedure) Policy added in v0.4.2

func (Procedure) Policy() ent.Policy

Procedure of the Procedure

type ProcedureHistory added in v0.3.3

type ProcedureHistory struct {
	ent.Schema
}

ProcedureHistory holds the schema definition for the ProcedureHistory entity.

func (ProcedureHistory) Annotations added in v0.3.3

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

Annotations of the ProcedureHistory.

func (ProcedureHistory) Fields added in v0.3.3

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

Fields of the ProcedureHistory.

func (ProcedureHistory) Indexes added in v0.3.3

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

Indexes of the ProcedureHistory

func (ProcedureHistory) Interceptors added in v0.4.2

func (ProcedureHistory) Interceptors() []ent.Interceptor

Interceptors of the ProcedureHistory

func (ProcedureHistory) Policy added in v0.4.2

func (ProcedureHistory) Policy() ent.Policy

Policy of the ProcedureHistory

type Program added in v0.3.5

type Program struct {
	ent.Schema
}

Program holds the schema definition for the Program entity

func (Program) Annotations added in v0.3.5

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

Annotations of the Program

func (Program) Edges added in v0.3.5

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

Edges of the Program

func (Program) Fields added in v0.3.5

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

Fields of the Program

func (Program) Hooks added in v0.3.5

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

Hooks of the Program

func (Program) Indexes added in v0.3.5

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

Indexes of the Program

func (Program) Interceptors added in v0.3.5

func (Program) Interceptors() []ent.Interceptor

Interceptors of the Program

func (Program) Mixin added in v0.3.5

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

Mixin of the Program

func (Program) Policy added in v0.3.5

func (Program) Policy() ent.Policy

Policy of the program

type ProgramHistory added in v0.3.5

type ProgramHistory struct {
	ent.Schema
}

ProgramHistory holds the schema definition for the ProgramHistory entity.

func (ProgramHistory) Annotations added in v0.3.5

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

Annotations of the ProgramHistory.

func (ProgramHistory) Fields added in v0.3.5

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

Fields of the ProgramHistory.

func (ProgramHistory) Indexes added in v0.3.5

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

Indexes of the ProgramHistory

func (ProgramHistory) Interceptors added in v0.3.5

func (ProgramHistory) Interceptors() []ent.Interceptor

Interceptors of the ProgramHistory

func (ProgramHistory) Policy added in v0.3.5

func (ProgramHistory) Policy() ent.Policy

Policy of the ProgramHistory

type ProgramMembership added in v0.3.5

type ProgramMembership struct {
	ent.Schema
}

ProgramMembership holds the schema definition for the ProgramMembership entity

func (ProgramMembership) Annotations added in v0.3.5

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

Annotations of the ProgramMembership

func (ProgramMembership) Edges added in v0.3.5

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

Edges of the ProgramMembership

func (ProgramMembership) Fields added in v0.3.5

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

Fields of the ProgramMembership

func (ProgramMembership) Hooks added in v0.3.5

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

Hooks of the ProgramMembership

func (ProgramMembership) Indexes added in v0.3.5

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

Indexes of the ProgramMembership

func (ProgramMembership) Mixin added in v0.3.5

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

Mixin of the ProgramMembership

func (ProgramMembership) Policy added in v0.3.5

func (ProgramMembership) Policy() ent.Policy

// Policy of the ProgramMembership

type ProgramMembershipHistory added in v0.3.5

type ProgramMembershipHistory struct {
	ent.Schema
}

ProgramMembershipHistory holds the schema definition for the ProgramMembershipHistory entity.

func (ProgramMembershipHistory) Annotations added in v0.3.5

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

Annotations of the ProgramMembershipHistory.

func (ProgramMembershipHistory) Fields added in v0.3.5

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

Fields of the ProgramMembershipHistory.

func (ProgramMembershipHistory) Indexes added in v0.3.5

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

Indexes of the ProgramMembershipHistory

func (ProgramMembershipHistory) Interceptors added in v0.3.5

func (ProgramMembershipHistory) Interceptors() []ent.Interceptor

Interceptors of the ProgramMembershipHistory

func (ProgramMembershipHistory) Policy added in v0.3.5

Policy of the ProgramMembershipHistory

type Risk added in v0.3.3

type Risk struct {
	ent.Schema
}

Risk defines the risk schema.

func (Risk) Annotations added in v0.3.3

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

Annotations of the Risk

func (Risk) Edges added in v0.3.3

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

Edges of the Risk

func (Risk) Fields added in v0.3.3

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

Fields returns risk fields.

func (Risk) Mixin added in v0.3.3

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

Mixin of the Risk

type RiskHistory added in v0.3.3

type RiskHistory struct {
	ent.Schema
}

RiskHistory holds the schema definition for the RiskHistory entity.

func (RiskHistory) Annotations added in v0.3.3

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

Annotations of the RiskHistory.

func (RiskHistory) Fields added in v0.3.3

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

Fields of the RiskHistory.

func (RiskHistory) Indexes added in v0.3.3

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

Indexes of the RiskHistory

type Standard added in v0.3.3

type Standard struct {
	ent.Schema
}

Standard defines the standard schema.

func (Standard) Annotations added in v0.3.3

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

Annotations of the Standard

func (Standard) Edges added in v0.3.3

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

Edges of the Standard

func (Standard) Fields added in v0.3.3

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

Fields returns standard fields.

func (Standard) Mixin added in v0.3.3

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

Mixin of the Standard

type StandardHistory added in v0.3.3

type StandardHistory struct {
	ent.Schema
}

StandardHistory holds the schema definition for the StandardHistory entity.

func (StandardHistory) Annotations added in v0.3.3

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

Annotations of the StandardHistory.

func (StandardHistory) Fields added in v0.3.3

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

Fields of the StandardHistory.

func (StandardHistory) Indexes added in v0.3.3

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

Indexes of the StandardHistory

type Subcontrol added in v0.3.3

type Subcontrol struct {
	ent.Schema
}

Subcontrol defines the file schema.

func (Subcontrol) Annotations added in v0.3.3

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

Annotations of the Subcontrol

func (Subcontrol) Edges added in v0.3.3

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

Edges of the Subcontrol

func (Subcontrol) Fields added in v0.3.3

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

Fields returns file fields.

func (Subcontrol) Mixin added in v0.3.3

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

Mixin of the Subcontrol

type SubcontrolHistory added in v0.3.3

type SubcontrolHistory struct {
	ent.Schema
}

SubcontrolHistory holds the schema definition for the SubcontrolHistory entity.

func (SubcontrolHistory) Annotations added in v0.3.3

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

Annotations of the SubcontrolHistory.

func (SubcontrolHistory) Fields added in v0.3.3

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

Fields of the SubcontrolHistory.

func (SubcontrolHistory) Indexes added in v0.3.3

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

Indexes of the SubcontrolHistory

type Subscriber

type Subscriber struct {
	ent.Schema
}

Subscriber holds the schema definition for the Subscriber entity

func (Subscriber) Annotations

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

Annotations of the Subscriber

func (Subscriber) Edges

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

Edges of the Subscriber

func (Subscriber) Fields

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

Fields of the Subscriber

func (Subscriber) Hooks

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

func (Subscriber) Indexes

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

Indexes of the Subscriber

func (Subscriber) Mixin

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

Mixin of the Subscriber

func (Subscriber) Policy

func (Subscriber) Policy() ent.Policy

Policy of the Subscriber

type TFASetting

type TFASetting struct {
	ent.Schema
}

TFASetting holds the schema definition for the TFASetting entity

func (TFASetting) Annotations

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

Annotations of the TFASetting

func (TFASetting) Fields

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

Fields of the TFASetting

func (TFASetting) Hooks

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

Hooks of the TFASetting

func (TFASetting) Mixin

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

Mixin of the TFASetting

type Task added in v0.3.4

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity

func (Task) Annotations added in v0.3.4

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

Annotations of the Task

func (Task) Edges added in v0.3.4

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

Edges of the Task

func (Task) Fields added in v0.3.4

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

Fields of the Task

func (Task) Hooks added in v0.3.4

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

Hooks of the Task

func (Task) Indexes added in v0.3.4

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

Indexes of the Task

func (Task) Interceptors added in v0.3.4

func (Task) Interceptors() []ent.Interceptor

Interceptors of the Task

func (Task) Mixin added in v0.3.4

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

Mixin of the Task

func (Task) Policy added in v0.3.4

func (Task) Policy() ent.Policy

Policy of the Task

type TaskHistory added in v0.3.4

type TaskHistory struct {
	ent.Schema
}

TaskHistory holds the schema definition for the TaskHistory entity.

func (TaskHistory) Annotations added in v0.3.4

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

Annotations of the TaskHistory.

func (TaskHistory) Fields added in v0.3.4

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

Fields of the TaskHistory.

func (TaskHistory) Indexes added in v0.3.4

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

Indexes of the TaskHistory

func (TaskHistory) Interceptors added in v0.3.4

func (TaskHistory) Interceptors() []ent.Interceptor

Interceptors of the TaskHistory

func (TaskHistory) Policy added in v0.3.4

func (TaskHistory) Policy() ent.Policy

Policy of the TaskHistory

type Template

type Template struct {
	ent.Schema
}

Template holds the schema definition for the Template entity

func (Template) Annotations

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

Annotations of the Template

func (Template) Edges

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

Edges of the Template

func (Template) Fields

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

Fields of the Template

func (Template) Indexes

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

Indexes of the Template

func (Template) Mixin

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

Mixin of the Template

func (Template) Policy

func (Template) Policy() ent.Policy

Policy of the Template

type TemplateHistory

type TemplateHistory struct {
	ent.Schema
}

TemplateHistory holds the schema definition for the TemplateHistory entity.

func (TemplateHistory) Annotations

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

Annotations of the TemplateHistory.

func (TemplateHistory) Fields

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

Fields of the TemplateHistory.

func (TemplateHistory) Indexes

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

Indexes of the TemplateHistory

func (TemplateHistory) Interceptors

func (TemplateHistory) Interceptors() []ent.Interceptor

Interceptors of the TemplateHistory

func (TemplateHistory) Policy

func (TemplateHistory) Policy() ent.Policy

Policy of the TemplateHistory

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 of the User

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) Hooks

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

func (User) Indexes

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

Indexes of the User

func (User) Interceptors

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

Interceptors of the User.

func (User) Mixin

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

Mixin of the User

func (User) Policy

func (User) Policy() ent.Policy

Policy of the User

type UserHistory

type UserHistory struct {
	ent.Schema
}

UserHistory holds the schema definition for the UserHistory entity.

func (UserHistory) Annotations

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

Annotations of the UserHistory.

func (UserHistory) Fields

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

Fields of the UserHistory.

func (UserHistory) Indexes

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

Indexes of the UserHistory

func (UserHistory) Interceptors

func (UserHistory) Interceptors() []ent.Interceptor

Interceptors of the UserHistory

type UserOwnedMixin

type UserOwnedMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// Optional makes the owner id field not required
	Optional bool
	// AllowUpdate allows the owner id field to be updated
	AllowUpdate bool
	// SkipOASGeneration skips open api spec generation for the field
	SkipOASGeneration bool
	// SoftDeleteIndex creates a unique index on the owner id field where deleted_at is null
	SoftDeleteIndex bool
	// AllowWhere includes the owner_id field in gql generated fields
	AllowWhere bool
	// SkipInterceptor skips the interceptor for that schema for all queries, or specific types,
	// this is useful for tokens, etc
	SkipInterceptor interceptors.SkipMode
	// SkipTokenType skips the traverser or hook if the token type is found in the context
	SkipTokenType []token.PrivacyToken
}

func (UserOwnedMixin) Edges

func (userOwned UserOwnedMixin) Edges() []ent.Edge

Edges of the UserOwnedMixin

func (UserOwnedMixin) Fields

func (userOwned UserOwnedMixin) Fields() []ent.Field

Fields of the UserOwnedMixin

func (UserOwnedMixin) Hooks

func (userOwned UserOwnedMixin) Hooks() []ent.Hook

Hooks of the UserOwnedMixin

func (UserOwnedMixin) Indexes

func (userOwned UserOwnedMixin) Indexes() []ent.Index

Indexes of the UserOwnedMixin

func (UserOwnedMixin) Interceptors

func (userOwned UserOwnedMixin) Interceptors() []ent.Interceptor

func (UserOwnedMixin) P

func (userOwned UserOwnedMixin) P(w interface{ WhereP(...func(*sql.Selector)) }, userID string)

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

type UserSetting

type UserSetting struct {
	ent.Schema
}

UserSetting holds the schema definition for the User entity.

func (UserSetting) Annotations

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

Annotations of the UserSetting

func (UserSetting) Edges

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

Edges of the UserSetting

func (UserSetting) Fields

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

Fields of the UserSetting

func (UserSetting) Hooks

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

Hooks of the UserSetting.

func (UserSetting) Interceptors

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

Interceptors of the UserSetting.

func (UserSetting) Mixin

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

Mixin of the UserSetting

func (UserSetting) Policy

func (UserSetting) Policy() ent.Policy

type UserSettingHistory

type UserSettingHistory struct {
	ent.Schema
}

UserSettingHistory holds the schema definition for the UserSettingHistory entity.

func (UserSettingHistory) Annotations

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

Annotations of the UserSettingHistory.

func (UserSettingHistory) Fields

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

Fields of the UserSettingHistory.

func (UserSettingHistory) Indexes

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

Indexes of the UserSettingHistory

func (UserSettingHistory) Interceptors

func (UserSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the UserSettingHistory

type Webauthn

type Webauthn struct {
	ent.Schema
}

Webauthn holds the schema definition for the Webauthn entity

func (Webauthn) Annotations

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

Annotations of the Webauthn

func (Webauthn) Edges

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

Edges of the Webauthn

func (Webauthn) Fields

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

Fields of the Webauthn

func (Webauthn) Mixin

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

Mixin of the Webauthn

type Webhook

type Webhook struct {
	ent.Schema
}

Webhook holds the schema definition for the Webhook entity

func (Webhook) Annotations

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

Annotations of the Webhook

func (Webhook) Edges

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

Edges of the Webhook

func (Webhook) Fields

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

Fields of the Webhook

func (Webhook) Indexes

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

Indexes of the Webhook

func (Webhook) Mixin

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

Mixin of the Webhook

type WebhookHistory

type WebhookHistory struct {
	ent.Schema
}

WebhookHistory holds the schema definition for the WebhookHistory entity.

func (WebhookHistory) Annotations

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

Annotations of the WebhookHistory.

func (WebhookHistory) Fields

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

Fields of the WebhookHistory.

func (WebhookHistory) Indexes

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

Indexes of the WebhookHistory

func (WebhookHistory) Interceptors

func (WebhookHistory) Interceptors() []ent.Interceptor

Interceptors of the WebhookHistory

func (WebhookHistory) Policy

func (WebhookHistory) Policy() ent.Policy

Policy of the WebhookHistory

Source Files

Jump to

Keyboard shortcuts

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