schema

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package schema contains the ent schema

Code generated by enthistory, DO NOT EDIT.

Code generated by enthistory, 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")

	// ErrPermissionDenied is returned when the user is not authorized to perform the requested query or mutation
	ErrPermissionDenied = errors.New("you are not authorized to perform this action")
)

Functions

This section is empty.

Types

type DocumentData added in v0.4.4

type DocumentData struct {
	ent.Schema
}

DocumentData holds the schema definition for the DocumentData entity

func (DocumentData) Annotations added in v0.4.4

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

Annotations of the DocumentData

func (DocumentData) Edges added in v0.4.4

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

Edges of the DocumentData

func (DocumentData) Fields added in v0.4.4

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

Fields of the DocumentData

func (DocumentData) Mixin added in v0.4.4

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

Mixin of the DocumentData

type EmailVerificationToken added in v0.2.2

type EmailVerificationToken struct {
	ent.Schema
}

EmailVerificationToken holds the schema definition for the EmailVerificationToken entity

func (EmailVerificationToken) Annotations added in v0.2.2

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

Annotations of the EmailVerificationToken

func (EmailVerificationToken) Edges added in v0.2.2

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

Edges of the EmailVerificationToken

func (EmailVerificationToken) Fields added in v0.2.2

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

Fields of the EmailVerificationToken

func (EmailVerificationToken) Hooks added in v0.2.2

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

Hooks of the EmailVerificationToken

func (EmailVerificationToken) Indexes added in v0.2.2

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

Indexes of the EmailVerificationToken

func (EmailVerificationToken) Mixin added in v0.2.2

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

Mixin of the EmailVerificationToken

func (EmailVerificationToken) Policy added in v0.2.4

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

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

Mixin of the Entitlement

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 GroupMembership added in v0.2.4

type GroupMembership struct {
	ent.Schema
}

GroupMembership holds the schema definition for the GroupMembership entity

func (GroupMembership) Annotations added in v0.2.4

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

Annotations of the GroupMembership

func (GroupMembership) Edges added in v0.2.4

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

Edges of the GroupMembership

func (GroupMembership) Fields added in v0.2.4

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

Fields of the GroupMembership

func (GroupMembership) Hooks added in v0.2.5

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

Hooks of the GroupMembership

func (GroupMembership) Indexes added in v0.2.5

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

Indexes of the GroupMembership

func (GroupMembership) Mixin added in v0.2.4

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

Mixin of the GroupMembership

func (GroupMembership) Policy added in v0.3.2

func (GroupMembership) Policy() ent.Policy

Policy of the GroupMembership

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 added in v0.3.5

func (GroupSetting) Policy() ent.Policy

Policy defines the privacy policy of the GroupSetting

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 added in v0.3.6

func (Integration) Policy() ent.Policy

Policy of the Integration

type Invite added in v0.2.6

type Invite struct {
	ent.Schema
}

Invite holds the schema definition for the Invite entity

func (Invite) Annotations added in v0.2.6

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

Annotations of the Invite

func (Invite) Edges added in v0.2.6

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

Edges of the Invite

func (Invite) Fields added in v0.2.6

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

Fields of the Invite

func (Invite) Hooks added in v0.2.6

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

Hooks of the Invite

func (Invite) Indexes added in v0.2.6

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

Indexes of the Invite

func (Invite) Mixin added in v0.2.6

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

Mixin of the Invite

func (Invite) Policy added in v0.2.6

func (Invite) Policy() ent.Policy

Policy of the Invite

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

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 added in v0.2.4

type OrgMembership struct {
	ent.Schema
}

OrgMembership holds the schema definition for the OrgMembership entity

func (OrgMembership) Annotations added in v0.2.4

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

Annotations of the OrgMembership

func (OrgMembership) Edges added in v0.2.4

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

Edges of the OrgMembership

func (OrgMembership) Fields added in v0.2.4

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

Fields of the OrgMembership

func (OrgMembership) Hooks added in v0.2.5

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

Hooks of the OrgMembership

func (OrgMembership) Indexes added in v0.2.5

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

func (OrgMembership) Mixin added in v0.2.4

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

Mixin of the OrgMembership

func (OrgMembership) Policy added in v0.3.2

func (OrgMembership) Policy() ent.Policy

Policy of the OrgMembership

type OrgOwnerMixin added in v0.2.4

type OrgOwnerMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// Optional makes the owner id field not required
	Optional bool
	// SkipOASGeneration skips open api spec generation for the field
	SkipOASGeneration bool
	// AllowWhere includes the owner_id field in gql generated fields
	AllowWhere bool
}

func (OrgOwnerMixin) Edges added in v0.2.4

func (orgOwned OrgOwnerMixin) Edges() []ent.Edge

Edges of the OrgOwnerMixin

func (OrgOwnerMixin) Fields added in v0.2.4

func (orgOwned OrgOwnerMixin) Fields() []ent.Field

Fields of the OrgOwnerMixin

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 added in v0.4.3

type OrganizationHistory struct {
	ent.Schema
}

OrganizationHistory holds the schema definition for the OrganizationHistory entity.

func (OrganizationHistory) Annotations added in v0.4.3

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

Annotations of the OrganizationHistory.

func (OrganizationHistory) Fields added in v0.4.3

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

Fields of the OrganizationHistory.

func (OrganizationHistory) Indexes added in v0.4.3

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

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

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

Mixin of the OrganizationSetting

func (OrganizationSetting) Policy added in v0.3.5

func (OrganizationSetting) Policy() ent.Policy

Policy defines the privacy policy of the OrganizationSetting

type OrganizationSettingHistory added in v0.4.3

type OrganizationSettingHistory struct {
	ent.Schema
}

OrganizationSettingHistory holds the schema definition for the OrganizationSettingHistory entity.

func (OrganizationSettingHistory) Annotations added in v0.4.3

Annotations of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Fields added in v0.4.3

Fields of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Indexes added in v0.4.3

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

type PasswordResetToken added in v0.2.3

type PasswordResetToken struct {
	ent.Schema
}

PasswordResetToken holds the schema definition for the PasswordResetToken entity

func (PasswordResetToken) Annotations added in v0.2.3

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

Annotations of the PasswordResetToken

func (PasswordResetToken) Edges added in v0.2.3

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

Edges of the PasswordResetToken

func (PasswordResetToken) Fields added in v0.2.3

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

Fields of the PasswordResetToken

func (PasswordResetToken) Hooks added in v0.2.3

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

Hooks of the PasswordResetToken

func (PasswordResetToken) Indexes added in v0.2.3

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

Indexes of the PasswordResetToken

func (PasswordResetToken) Mixin added in v0.2.3

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

Mixin of the PasswordResetToken

func (PasswordResetToken) Policy added in v0.2.4

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 added in v0.3.3

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

Interceptors of the PersonalAccessToken

func (PersonalAccessToken) Mixin

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

Mixin of the PersonalAccessToken

func (PersonalAccessToken) Policy added in v0.3.3

func (PersonalAccessToken) Policy() ent.Policy

Policy of the PersonalAccessToken

type Subscriber added in v0.3.6

type Subscriber struct {
	ent.Schema
}

Subscriber holds the schema definition for the Subscriber entity

func (Subscriber) Annotations added in v0.3.6

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

Annotations of the Subscriber

func (Subscriber) Edges added in v0.3.6

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

Edges of the Subscriber

func (Subscriber) Fields added in v0.3.6

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

Fields of the Subscriber

func (Subscriber) Hooks added in v0.3.6

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

func (Subscriber) Indexes added in v0.3.6

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

Indexes of the Subscriber

func (Subscriber) Interceptors added in v0.3.6

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

Interceptors of the Subscriber

func (Subscriber) Mixin added in v0.3.6

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

Mixin of the Subscriber

func (Subscriber) Policy added in v0.3.6

func (Subscriber) Policy() ent.Policy

Policy of the Subscriber

type TFASetting added in v0.4.4

type TFASetting struct {
	ent.Schema
}

TFASetting holds the schema definition for the TFASetting entity

func (TFASetting) Annotations added in v0.4.4

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

Annotations of the TFASetting

func (TFASetting) Fields added in v0.4.4

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

Fields of the TFASetting

func (TFASetting) Hooks added in v0.4.4

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

Hooks of the TFASetting

func (TFASetting) Mixin added in v0.4.4

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

Mixin of the TFASetting

type Template added in v0.4.3

type Template struct {
	ent.Schema
}

Template holds the schema definition for the Template entity

func (Template) Annotations added in v0.4.3

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

Annotations of the Template

func (Template) Edges added in v0.4.3

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

Edges of the Template

func (Template) Fields added in v0.4.3

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

Fields of the Template

func (Template) Indexes added in v0.4.3

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

Indexes of the Template

func (Template) Mixin added in v0.4.3

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

Mixin of the Template

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 added in v0.2.4

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 UserOwnedMixin added in v0.2.4

type UserOwnedMixin struct {
	mixin.Schema
	Ref               string
	Optional          bool
	AllowUpdate       bool
	SkipOASGeneration bool
	SoftDeleteIndex   bool
}

func (UserOwnedMixin) Edges added in v0.2.4

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

Edges of the UserOwnedMixin

func (UserOwnedMixin) Fields added in v0.2.4

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

Fields of the UserOwnedMixin

func (UserOwnedMixin) Indexes added in v0.3.6

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

Indexes of the UserOwnedMixin

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 added in v0.3.4

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

Hooks of the UserSetting.

func (UserSetting) Interceptors added in v0.3.4

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 added in v0.3.4

func (UserSetting) Policy() ent.Policy

type Webauthn added in v0.3.0

type Webauthn struct {
	ent.Schema
}

Webauthn holds the schema definition for the Webauthn entity

func (Webauthn) Annotations added in v0.3.0

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

Annotations of the Webauthn

func (Webauthn) Edges added in v0.3.0

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

Edges of the Webauthn

func (Webauthn) Fields added in v0.3.0

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

Fields of the Webauthn

func (Webauthn) Mixin added in v0.3.0

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

Mixin of the Webauthn

Jump to

Keyboard shortcuts

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