generated

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package generated is the ent generated package

Index

Constants

View Source
const (
	// Operation types.
	OpCreate    = ent.OpCreate
	OpDelete    = ent.OpDelete
	OpDeleteOne = ent.OpDeleteOne
	OpUpdate    = ent.OpUpdate
	OpUpdateOne = ent.OpUpdateOne

	// Node types.
	TypeEmailVerificationToken = "EmailVerificationToken"
	TypeEntitlement            = "Entitlement"
	TypeGroup                  = "Group"
	TypeGroupSetting           = "GroupSetting"
	TypeIntegration            = "Integration"
	TypeOauthProvider          = "OauthProvider"
	TypeOhAuthTooToken         = "OhAuthTooToken"
	TypeOrganization           = "Organization"
	TypeOrganizationSetting    = "OrganizationSetting"
	TypePersonalAccessToken    = "PersonalAccessToken"
	TypeSession                = "Session"
	TypeUser                   = "User"
	TypeUserSetting            = "UserSetting"
)

Variables

View Source
var (
	// GroupOrderFieldName orders Group by name.
	GroupOrderFieldName = &GroupOrderField{
		Value: func(gr *Group) (ent.Value, error) {
			return gr.Name, nil
		},
		column: group.FieldName,
		toTerm: group.ByName,
		toCursor: func(gr *Group) Cursor {
			return Cursor{
				ID:    gr.ID,
				Value: gr.Name,
			}
		},
	}
	// GroupOrderFieldDisplayName orders Group by display_name.
	GroupOrderFieldDisplayName = &GroupOrderField{
		Value: func(gr *Group) (ent.Value, error) {
			return gr.DisplayName, nil
		},
		column: group.FieldDisplayName,
		toTerm: group.ByDisplayName,
		toCursor: func(gr *Group) Cursor {
			return Cursor{
				ID:    gr.ID,
				Value: gr.DisplayName,
			}
		},
	}
)
View Source
var (
	// IntegrationOrderFieldName orders Integration by name.
	IntegrationOrderFieldName = &IntegrationOrderField{
		Value: func(i *Integration) (ent.Value, error) {
			return i.Name, nil
		},
		column: integration.FieldName,
		toTerm: integration.ByName,
		toCursor: func(i *Integration) Cursor {
			return Cursor{
				ID:    i.ID,
				Value: i.Name,
			}
		},
	}
	// IntegrationOrderFieldKind orders Integration by kind.
	IntegrationOrderFieldKind = &IntegrationOrderField{
		Value: func(i *Integration) (ent.Value, error) {
			return i.Kind, nil
		},
		column: integration.FieldKind,
		toTerm: integration.ByKind,
		toCursor: func(i *Integration) Cursor {
			return Cursor{
				ID:    i.ID,
				Value: i.Kind,
			}
		},
	}
)
View Source
var (
	// OrganizationOrderFieldName orders Organization by name.
	OrganizationOrderFieldName = &OrganizationOrderField{
		Value: func(o *Organization) (ent.Value, error) {
			return o.Name, nil
		},
		column: organization.FieldName,
		toTerm: organization.ByName,
		toCursor: func(o *Organization) Cursor {
			return Cursor{
				ID:    o.ID,
				Value: o.Name,
			}
		},
	}
	// OrganizationOrderFieldDisplayName orders Organization by display_name.
	OrganizationOrderFieldDisplayName = &OrganizationOrderField{
		Value: func(o *Organization) (ent.Value, error) {
			return o.DisplayName, nil
		},
		column: organization.FieldDisplayName,
		toTerm: organization.ByDisplayName,
		toCursor: func(o *Organization) Cursor {
			return Cursor{
				ID:    o.ID,
				Value: o.DisplayName,
			}
		},
	}
)
View Source
var (
	// UserOrderFieldFirstName orders User by first_name.
	UserOrderFieldFirstName = &UserOrderField{
		Value: func(u *User) (ent.Value, error) {
			return u.FirstName, nil
		},
		column: user.FieldFirstName,
		toTerm: user.ByFirstName,
		toCursor: func(u *User) Cursor {
			return Cursor{
				ID:    u.ID,
				Value: u.FirstName,
			}
		},
	}
	// UserOrderFieldLastName orders User by last_name.
	UserOrderFieldLastName = &UserOrderField{
		Value: func(u *User) (ent.Value, error) {
			return u.LastName, nil
		},
		column: user.FieldLastName,
		toTerm: user.ByLastName,
		toCursor: func(u *User) Cursor {
			return Cursor{
				ID:    u.ID,
				Value: u.LastName,
			}
		},
	}
	// UserOrderFieldDisplayName orders User by display_name.
	UserOrderFieldDisplayName = &UserOrderField{
		Value: func(u *User) (ent.Value, error) {
			return u.DisplayName, nil
		},
		column: user.FieldDisplayName,
		toTerm: user.ByDisplayName,
		toCursor: func(u *User) Cursor {
			return Cursor{
				ID:    u.ID,
				Value: u.DisplayName,
			}
		},
	}
)
View Source
var DefaultEntitlementOrder = &EntitlementOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &EntitlementOrderField{
		Value: func(e *Entitlement) (ent.Value, error) {
			return e.ID, nil
		},
		column: entitlement.FieldID,
		toTerm: entitlement.ByID,
		toCursor: func(e *Entitlement) Cursor {
			return Cursor{ID: e.ID}
		},
	},
}

DefaultEntitlementOrder is the default ordering of Entitlement.

View Source
var DefaultGroupOrder = &GroupOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &GroupOrderField{
		Value: func(gr *Group) (ent.Value, error) {
			return gr.ID, nil
		},
		column: group.FieldID,
		toTerm: group.ByID,
		toCursor: func(gr *Group) Cursor {
			return Cursor{ID: gr.ID}
		},
	},
}

DefaultGroupOrder is the default ordering of Group.

View Source
var DefaultGroupSettingOrder = &GroupSettingOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &GroupSettingOrderField{
		Value: func(gs *GroupSetting) (ent.Value, error) {
			return gs.ID, nil
		},
		column: groupsetting.FieldID,
		toTerm: groupsetting.ByID,
		toCursor: func(gs *GroupSetting) Cursor {
			return Cursor{ID: gs.ID}
		},
	},
}

DefaultGroupSettingOrder is the default ordering of GroupSetting.

View Source
var DefaultIntegrationOrder = &IntegrationOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &IntegrationOrderField{
		Value: func(i *Integration) (ent.Value, error) {
			return i.ID, nil
		},
		column: integration.FieldID,
		toTerm: integration.ByID,
		toCursor: func(i *Integration) Cursor {
			return Cursor{ID: i.ID}
		},
	},
}

DefaultIntegrationOrder is the default ordering of Integration.

View Source
var DefaultOauthProviderOrder = &OauthProviderOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &OauthProviderOrderField{
		Value: func(op *OauthProvider) (ent.Value, error) {
			return op.ID, nil
		},
		column: oauthprovider.FieldID,
		toTerm: oauthprovider.ByID,
		toCursor: func(op *OauthProvider) Cursor {
			return Cursor{ID: op.ID}
		},
	},
}

DefaultOauthProviderOrder is the default ordering of OauthProvider.

View Source
var DefaultOhAuthTooTokenOrder = &OhAuthTooTokenOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &OhAuthTooTokenOrderField{
		Value: func(oatt *OhAuthTooToken) (ent.Value, error) {
			return oatt.ID, nil
		},
		column: ohauthtootoken.FieldID,
		toTerm: ohauthtootoken.ByID,
		toCursor: func(oatt *OhAuthTooToken) Cursor {
			return Cursor{ID: oatt.ID}
		},
	},
}

DefaultOhAuthTooTokenOrder is the default ordering of OhAuthTooToken.

View Source
var DefaultOrganizationOrder = &OrganizationOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &OrganizationOrderField{
		Value: func(o *Organization) (ent.Value, error) {
			return o.ID, nil
		},
		column: organization.FieldID,
		toTerm: organization.ByID,
		toCursor: func(o *Organization) Cursor {
			return Cursor{ID: o.ID}
		},
	},
}

DefaultOrganizationOrder is the default ordering of Organization.

View Source
var DefaultOrganizationSettingOrder = &OrganizationSettingOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &OrganizationSettingOrderField{
		Value: func(os *OrganizationSetting) (ent.Value, error) {
			return os.ID, nil
		},
		column: organizationsetting.FieldID,
		toTerm: organizationsetting.ByID,
		toCursor: func(os *OrganizationSetting) Cursor {
			return Cursor{ID: os.ID}
		},
	},
}

DefaultOrganizationSettingOrder is the default ordering of OrganizationSetting.

View Source
var DefaultPersonalAccessTokenOrder = &PersonalAccessTokenOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &PersonalAccessTokenOrderField{
		Value: func(pat *PersonalAccessToken) (ent.Value, error) {
			return pat.ID, nil
		},
		column: personalaccesstoken.FieldID,
		toTerm: personalaccesstoken.ByID,
		toCursor: func(pat *PersonalAccessToken) Cursor {
			return Cursor{ID: pat.ID}
		},
	},
}

DefaultPersonalAccessTokenOrder is the default ordering of PersonalAccessToken.

View Source
var DefaultSessionOrder = &SessionOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &SessionOrderField{
		Value: func(s *Session) (ent.Value, error) {
			return s.ID, nil
		},
		column: session.FieldID,
		toTerm: session.ByID,
		toCursor: func(s *Session) Cursor {
			return Cursor{ID: s.ID}
		},
	},
}

DefaultSessionOrder is the default ordering of Session.

View Source
var DefaultUserOrder = &UserOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &UserOrderField{
		Value: func(u *User) (ent.Value, error) {
			return u.ID, nil
		},
		column: user.FieldID,
		toTerm: user.ByID,
		toCursor: func(u *User) Cursor {
			return Cursor{ID: u.ID}
		},
	},
}

DefaultUserOrder is the default ordering of User.

View Source
var DefaultUserSettingOrder = &UserSettingOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &UserSettingOrderField{
		Value: func(us *UserSetting) (ent.Value, error) {
			return us.ID, nil
		},
		column: usersetting.FieldID,
		toTerm: usersetting.ByID,
		toCursor: func(us *UserSetting) Cursor {
			return Cursor{ID: us.ID}
		},
	},
}

DefaultUserSettingOrder is the default ordering of UserSetting.

View Source
var ErrEmptyEntitlementWhereInput = errors.New("generated: empty predicate EntitlementWhereInput")

ErrEmptyEntitlementWhereInput is returned in case the EntitlementWhereInput is empty.

View Source
var ErrEmptyGroupSettingWhereInput = errors.New("generated: empty predicate GroupSettingWhereInput")

ErrEmptyGroupSettingWhereInput is returned in case the GroupSettingWhereInput is empty.

View Source
var ErrEmptyGroupWhereInput = errors.New("generated: empty predicate GroupWhereInput")

ErrEmptyGroupWhereInput is returned in case the GroupWhereInput is empty.

View Source
var ErrEmptyIntegrationWhereInput = errors.New("generated: empty predicate IntegrationWhereInput")

ErrEmptyIntegrationWhereInput is returned in case the IntegrationWhereInput is empty.

View Source
var ErrEmptyOauthProviderWhereInput = errors.New("generated: empty predicate OauthProviderWhereInput")

ErrEmptyOauthProviderWhereInput is returned in case the OauthProviderWhereInput is empty.

View Source
var ErrEmptyOhAuthTooTokenWhereInput = errors.New("generated: empty predicate OhAuthTooTokenWhereInput")

ErrEmptyOhAuthTooTokenWhereInput is returned in case the OhAuthTooTokenWhereInput is empty.

View Source
var ErrEmptyOrganizationSettingWhereInput = errors.New("generated: empty predicate OrganizationSettingWhereInput")

ErrEmptyOrganizationSettingWhereInput is returned in case the OrganizationSettingWhereInput is empty.

View Source
var ErrEmptyOrganizationWhereInput = errors.New("generated: empty predicate OrganizationWhereInput")

ErrEmptyOrganizationWhereInput is returned in case the OrganizationWhereInput is empty.

View Source
var ErrEmptyPersonalAccessTokenWhereInput = errors.New("generated: empty predicate PersonalAccessTokenWhereInput")

ErrEmptyPersonalAccessTokenWhereInput is returned in case the PersonalAccessTokenWhereInput is empty.

View Source
var ErrEmptySessionWhereInput = errors.New("generated: empty predicate SessionWhereInput")

ErrEmptySessionWhereInput is returned in case the SessionWhereInput is empty.

View Source
var ErrEmptyUserSettingWhereInput = errors.New("generated: empty predicate UserSettingWhereInput")

ErrEmptyUserSettingWhereInput is returned in case the UserSettingWhereInput is empty.

View Source
var ErrEmptyUserWhereInput = errors.New("generated: empty predicate UserWhereInput")

ErrEmptyUserWhereInput is returned in case the UserWhereInput is empty.

View Source
var ErrTxStarted = errors.New("generated: cannot start a transaction within a transaction")

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

Functions

func Asc

func Asc(fields ...string) func(*sql.Selector)

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) func(*sql.Selector)

Desc applies the given fields in DESC order.

func EmailVerificationTokenEdgeCleanup added in v0.2.2

func EmailVerificationTokenEdgeCleanup(ctx context.Context, id string) error

func EntitlementEdgeCleanup

func EntitlementEdgeCleanup(ctx context.Context, id string) error

func GroupEdgeCleanup

func GroupEdgeCleanup(ctx context.Context, id string) error

func GroupSettingEdgeCleanup

func GroupSettingEdgeCleanup(ctx context.Context, id string) error

func IntegrationEdgeCleanup

func IntegrationEdgeCleanup(ctx context.Context, id string) error

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

func OauthProviderEdgeCleanup

func OauthProviderEdgeCleanup(ctx context.Context, id string) error

func OhAuthTooTokenEdgeCleanup

func OhAuthTooTokenEdgeCleanup(ctx context.Context, id string) error

func OpenTxFromContext

func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)

OpenTxFromContext open transactions from client stored in context.

func OrganizationEdgeCleanup

func OrganizationEdgeCleanup(ctx context.Context, id string) error

func OrganizationSettingEdgeCleanup

func OrganizationSettingEdgeCleanup(ctx context.Context, id string) error

func PersonalAccessTokenEdgeCleanup

func PersonalAccessTokenEdgeCleanup(ctx context.Context, id string) error

func SessionEdgeCleanup

func SessionEdgeCleanup(ctx context.Context, id string) error

func UserEdgeCleanup

func UserEdgeCleanup(ctx context.Context, id string) error

func UserSettingEdgeCleanup

func UserSettingEdgeCleanup(ctx context.Context, id string) error

Types

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

As is a pseudo aggregation function for renaming another other functions with custom names. For example:

GroupBy(field1, field2).
Aggregate(generated.As(generated.Sum(field1), "sum_field1"), (generated.As(generated.Sum(field2), "sum_field2")).
Scan(ctx, &v)

func Count

func Count() AggregateFunc

Count applies the "count" aggregation function on each group.

func Max

func Max(field string) AggregateFunc

Max applies the "max" aggregation function on the given field of each group.

func Mean

func Mean(field string) AggregateFunc

Mean applies the "mean" aggregation function on the given field of each group.

func Min

func Min(field string) AggregateFunc

Min applies the "min" aggregation function on the given field of each group.

func Sum

func Sum(field string) AggregateFunc

Sum applies the "sum" aggregation function on the given field of each group.

type Client

type Client struct {

	// Schema is the client for creating, migrating and dropping schema.
	Schema *migrate.Schema
	// EmailVerificationToken is the client for interacting with the EmailVerificationToken builders.
	EmailVerificationToken *EmailVerificationTokenClient
	// Entitlement is the client for interacting with the Entitlement builders.
	Entitlement *EntitlementClient
	// Group is the client for interacting with the Group builders.
	Group *GroupClient
	// GroupSetting is the client for interacting with the GroupSetting builders.
	GroupSetting *GroupSettingClient
	// Integration is the client for interacting with the Integration builders.
	Integration *IntegrationClient
	// OauthProvider is the client for interacting with the OauthProvider builders.
	OauthProvider *OauthProviderClient
	// OhAuthTooToken is the client for interacting with the OhAuthTooToken builders.
	OhAuthTooToken *OhAuthTooTokenClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// OrganizationSetting is the client for interacting with the OrganizationSetting builders.
	OrganizationSetting *OrganizationSettingClient
	// PersonalAccessToken is the client for interacting with the PersonalAccessToken builders.
	PersonalAccessToken *PersonalAccessTokenClient
	// Session is the client for interacting with the Session builders.
	Session *SessionClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// UserSetting is the client for interacting with the UserSetting builders.
	UserSetting *UserSettingClient
	// contains filtered or unexported fields
}

Client is the client that holds all ent builders.

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	EmailVerificationToken.
	Query().
	Count(ctx)

func (*Client) Intercept

func (c *Client) Intercept(interceptors ...Interceptor)

Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.

func (*Client) Mutate

func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)

Mutate implements the ent.Mutator interface.

func (*Client) Noder

func (c *Client) Noder(ctx context.Context, id string, opts ...NodeOption) (_ Noder, err error)

Noder returns a Node by its id. If the NodeType was not provided, it will be derived from the id value according to the universal-id configuration.

c.Noder(ctx, id)
c.Noder(ctx, id, ent.WithNodeType(typeResolver))

func (*Client) Noders

func (c *Client) Noders(ctx context.Context, ids []string, opts ...NodeOption) ([]Noder, error)

func (*Client) OpenTx

func (c *Client) OpenTx(ctx context.Context) (context.Context, driver.Tx, error)

OpenTx opens a transaction and returns a transactional context along with the created transaction.

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:

hook := func(next ent.Committer) ent.Committer {
	return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Commit method.

type ConstraintError

type ConstraintError struct {
	// contains filtered or unexported fields
}

ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type CreateEntitlementInput

type CreateEntitlementInput struct {
	CreatedAt              *time.Time
	UpdatedAt              *time.Time
	CreatedBy              *string
	UpdatedBy              *string
	Tier                   *entitlement.Tier
	ExternalCustomerID     *string
	ExternalSubscriptionID *string
	Expires                *bool
	ExpiresAt              *time.Time
	Cancelled              *bool
	OwnerID                *string
}

CreateEntitlementInput represents a mutation input for creating entitlements.

func (*CreateEntitlementInput) Mutate

Mutate applies the CreateEntitlementInput on the EntitlementMutation builder.

type CreateGroupInput

type CreateGroupInput struct {
	CreatedAt       *time.Time
	UpdatedAt       *time.Time
	CreatedBy       *string
	UpdatedBy       *string
	Name            string
	Description     *string
	GravatarLogoURL *string
	LogoURL         *string
	DisplayName     *string
	SettingID       string
	UserIDs         []string
	OwnerID         string
}

CreateGroupInput represents a mutation input for creating groups.

func (*CreateGroupInput) Mutate

func (i *CreateGroupInput) Mutate(m *GroupMutation)

Mutate applies the CreateGroupInput on the GroupMutation builder.

type CreateGroupSettingInput

type CreateGroupSettingInput struct {
	CreatedAt    *time.Time
	UpdatedAt    *time.Time
	CreatedBy    *string
	UpdatedBy    *string
	Visibility   *groupsetting.Visibility
	JoinPolicy   *groupsetting.JoinPolicy
	Tags         []string
	SyncToSlack  *bool
	SyncToGithub *bool
	GroupID      *string
}

CreateGroupSettingInput represents a mutation input for creating groupsettings.

func (*CreateGroupSettingInput) Mutate

Mutate applies the CreateGroupSettingInput on the GroupSettingMutation builder.

type CreateIntegrationInput

type CreateIntegrationInput struct {
	CreatedAt   *time.Time
	UpdatedAt   *time.Time
	CreatedBy   *string
	UpdatedBy   *string
	Name        string
	Description *string
	Kind        *string
	SecretName  string
	OwnerID     *string
}

CreateIntegrationInput represents a mutation input for creating integrations.

func (*CreateIntegrationInput) Mutate

Mutate applies the CreateIntegrationInput on the IntegrationMutation builder.

type CreateOauthProviderInput

type CreateOauthProviderInput struct {
	CreatedAt    *time.Time
	UpdatedAt    *time.Time
	CreatedBy    *string
	UpdatedBy    *string
	Name         string
	ClientID     string
	ClientSecret string
	RedirectURL  string
	Scopes       string
	AuthURL      string
	TokenURL     string
	AuthStyle    uint8
	InfoURL      string
	OwnerID      *string
}

CreateOauthProviderInput represents a mutation input for creating oauthproviders.

func (*CreateOauthProviderInput) Mutate

Mutate applies the CreateOauthProviderInput on the OauthProviderMutation builder.

type CreateOhAuthTooTokenInput

type CreateOhAuthTooTokenInput struct {
	ClientID                string
	Scopes                  []string
	Nonce                   string
	ClaimsUserID            string
	ClaimsUsername          string
	ClaimsEmail             string
	ClaimsEmailVerified     bool
	ClaimsGroups            []string
	ClaimsPreferredUsername string
	ConnectorID             string
	ConnectorData           []string
	LastUsed                *time.Time
}

CreateOhAuthTooTokenInput represents a mutation input for creating ohauthtootokens.

func (*CreateOhAuthTooTokenInput) Mutate

Mutate applies the CreateOhAuthTooTokenInput on the OhAuthTooTokenMutation builder.

type CreateOrganizationInput

type CreateOrganizationInput struct {
	CreatedAt        *time.Time
	UpdatedAt        *time.Time
	CreatedBy        *string
	UpdatedBy        *string
	Name             string
	DisplayName      *string
	Description      *string
	PersonalOrg      *bool
	ParentID         *string
	UserIDs          []string
	GroupIDs         []string
	IntegrationIDs   []string
	SettingID        *string
	EntitlementIDs   []string
	OauthproviderIDs []string
}

CreateOrganizationInput represents a mutation input for creating organizations.

func (*CreateOrganizationInput) Mutate

Mutate applies the CreateOrganizationInput on the OrganizationMutation builder.

type CreateOrganizationSettingInput

type CreateOrganizationSettingInput struct {
	CreatedAt      *time.Time
	UpdatedAt      *time.Time
	CreatedBy      *string
	UpdatedBy      *string
	Domains        []string
	SSOCert        *string
	SSOEntrypoint  *string
	SSOIssuer      *string
	BillingContact *string
	BillingEmail   *string
	BillingPhone   *string
	BillingAddress *string
	TaxIdentifier  *string
	Tags           []string
	OrganizationID *string
}

CreateOrganizationSettingInput represents a mutation input for creating organizationsettings.

func (*CreateOrganizationSettingInput) Mutate

Mutate applies the CreateOrganizationSettingInput on the OrganizationSettingMutation builder.

type CreatePersonalAccessTokenInput

type CreatePersonalAccessTokenInput struct {
	CreatedAt   *time.Time
	UpdatedAt   *time.Time
	CreatedBy   *string
	UpdatedBy   *string
	Name        string
	Token       *string
	Abilities   []string
	ExpiresAt   time.Time
	Description *string
	LastUsedAt  *time.Time
	OwnerID     string
}

CreatePersonalAccessTokenInput represents a mutation input for creating personalaccesstokens.

func (*CreatePersonalAccessTokenInput) Mutate

Mutate applies the CreatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder.

type CreateSessionInput

type CreateSessionInput struct {
	CreatedAt      *time.Time
	UpdatedAt      *time.Time
	CreatedBy      *string
	UpdatedBy      *string
	SessionToken   string
	IssuedAt       time.Time
	ExpiresAt      time.Time
	OrganizationID string
	OwnerID        string
}

CreateSessionInput represents a mutation input for creating sessions.

func (*CreateSessionInput) Mutate

func (i *CreateSessionInput) Mutate(m *SessionMutation)

Mutate applies the CreateSessionInput on the SessionMutation builder.

type CreateUserInput

type CreateUserInput struct {
	CreatedAt                 *time.Time
	UpdatedAt                 *time.Time
	CreatedBy                 *string
	UpdatedBy                 *string
	Email                     string
	FirstName                 string
	LastName                  string
	DisplayName               *string
	AvatarRemoteURL           *string
	AvatarLocalFile           *string
	AvatarUpdatedAt           *time.Time
	LastSeen                  *time.Time
	Password                  *string
	Sub                       *string
	Oauth                     *bool
	OrganizationIDs           []string
	SessionIDs                []string
	GroupIDs                  []string
	PersonalAccessTokenIDs    []string
	SettingID                 string
	EmailVerificationTokenIDs []string
}

CreateUserInput represents a mutation input for creating users.

func (*CreateUserInput) Mutate

func (i *CreateUserInput) Mutate(m *UserMutation)

Mutate applies the CreateUserInput on the UserMutation builder.

type CreateUserSettingInput

type CreateUserSettingInput struct {
	CreatedAt      *time.Time
	UpdatedAt      *time.Time
	CreatedBy      *string
	UpdatedBy      *string
	Locked         *bool
	SilencedAt     *time.Time
	SuspendedAt    *time.Time
	RecoveryCode   *string
	Status         *usersetting.Status
	Role           *usersetting.Role
	Permissions    []string
	EmailConfirmed *bool
	Tags           []string
	UserID         *string
}

CreateUserSettingInput represents a mutation input for creating usersettings.

func (*CreateUserSettingInput) Mutate

Mutate applies the CreateUserSettingInput on the UserSettingMutation builder.

type Cursor

type Cursor = entgql.Cursor[string]

Common entgql types.

type EmailVerificationToken added in v0.2.2

type EmailVerificationToken struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// the verification token sent to the user via email which should only be provided to the /verify endpoint + handler
	Token string `json:"token,omitempty"`
	// the ttl of the verification token which defaults to 7 days
	TTL *time.Time `json:"ttl,omitempty"`
	// the email used as input to generate the verification token; this is used to verify that the token when regenerated within the server matches the token emailed
	Email string `json:"email,omitempty"`
	// the comparison secret to verify the token's signature
	Secret *[]byte `json:"secret,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the EmailVerificationTokenQuery when eager-loading is set.
	Edges EmailVerificationTokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

EmailVerificationToken is the model entity for the EmailVerificationToken schema.

func (*EmailVerificationToken) QueryOwner added in v0.2.2

func (evt *EmailVerificationToken) QueryOwner() *UserQuery

QueryOwner queries the "owner" edge of the EmailVerificationToken entity.

func (*EmailVerificationToken) String added in v0.2.2

func (evt *EmailVerificationToken) String() string

String implements the fmt.Stringer.

func (*EmailVerificationToken) Unwrap added in v0.2.2

Unwrap unwraps the EmailVerificationToken entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*EmailVerificationToken) Update added in v0.2.2

Update returns a builder for updating this EmailVerificationToken. Note that you need to call EmailVerificationToken.Unwrap() before calling this method if this EmailVerificationToken was returned from a transaction, and the transaction was committed or rolled back.

func (*EmailVerificationToken) Value added in v0.2.2

func (evt *EmailVerificationToken) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the EmailVerificationToken. This includes values selected through modifiers, order, etc.

type EmailVerificationTokenClient added in v0.2.2

type EmailVerificationTokenClient struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenClient is a client for the EmailVerificationToken schema.

func NewEmailVerificationTokenClient added in v0.2.2

func NewEmailVerificationTokenClient(c config) *EmailVerificationTokenClient

NewEmailVerificationTokenClient returns a client for the EmailVerificationToken from the given config.

func (*EmailVerificationTokenClient) Create added in v0.2.2

Create returns a builder for creating a EmailVerificationToken entity.

func (*EmailVerificationTokenClient) CreateBulk added in v0.2.2

CreateBulk returns a builder for creating a bulk of EmailVerificationToken entities.

func (*EmailVerificationTokenClient) Delete added in v0.2.2

Delete returns a delete builder for EmailVerificationToken.

func (*EmailVerificationTokenClient) DeleteOne added in v0.2.2

DeleteOne returns a builder for deleting the given entity.

func (*EmailVerificationTokenClient) DeleteOneID added in v0.2.2

DeleteOneID returns a builder for deleting the given entity by its id.

func (*EmailVerificationTokenClient) Get added in v0.2.2

Get returns a EmailVerificationToken entity by its id.

func (*EmailVerificationTokenClient) GetX added in v0.2.2

GetX is like Get, but panics if an error occurs.

func (*EmailVerificationTokenClient) Hooks added in v0.2.2

func (c *EmailVerificationTokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*EmailVerificationTokenClient) Intercept added in v0.2.2

func (c *EmailVerificationTokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `emailverificationtoken.Intercept(f(g(h())))`.

func (*EmailVerificationTokenClient) Interceptors added in v0.2.2

func (c *EmailVerificationTokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*EmailVerificationTokenClient) MapCreateBulk added in v0.2.2

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*EmailVerificationTokenClient) Query added in v0.2.2

Query returns a query builder for EmailVerificationToken.

func (*EmailVerificationTokenClient) QueryOwner added in v0.2.2

QueryOwner queries the owner edge of a EmailVerificationToken.

func (*EmailVerificationTokenClient) Update added in v0.2.2

Update returns an update builder for EmailVerificationToken.

func (*EmailVerificationTokenClient) UpdateOne added in v0.2.2

UpdateOne returns an update builder for the given entity.

func (*EmailVerificationTokenClient) UpdateOneID added in v0.2.2

UpdateOneID returns an update builder for the given id.

func (*EmailVerificationTokenClient) Use added in v0.2.2

func (c *EmailVerificationTokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `emailverificationtoken.Hooks(f(g(h())))`.

type EmailVerificationTokenCreate added in v0.2.2

type EmailVerificationTokenCreate struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenCreate is the builder for creating a EmailVerificationToken entity.

func (*EmailVerificationTokenCreate) Exec added in v0.2.2

Exec executes the query.

func (*EmailVerificationTokenCreate) ExecX added in v0.2.2

func (evtc *EmailVerificationTokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EmailVerificationTokenCreate) Mutation added in v0.2.2

Mutation returns the EmailVerificationTokenMutation object of the builder.

func (*EmailVerificationTokenCreate) Save added in v0.2.2

Save creates the EmailVerificationToken in the database.

func (*EmailVerificationTokenCreate) SaveX added in v0.2.2

SaveX calls Save and panics if Save returns an error.

func (*EmailVerificationTokenCreate) SetCreatedAt added in v0.2.2

SetCreatedAt sets the "created_at" field.

func (*EmailVerificationTokenCreate) SetCreatedBy added in v0.2.2

SetCreatedBy sets the "created_by" field.

func (*EmailVerificationTokenCreate) SetDeletedAt added in v0.2.2

SetDeletedAt sets the "deleted_at" field.

func (*EmailVerificationTokenCreate) SetDeletedBy added in v0.2.2

SetDeletedBy sets the "deleted_by" field.

func (*EmailVerificationTokenCreate) SetEmail added in v0.2.2

SetEmail sets the "email" field.

func (*EmailVerificationTokenCreate) SetID added in v0.2.2

SetID sets the "id" field.

func (*EmailVerificationTokenCreate) SetNillableCreatedAt added in v0.2.2

func (evtc *EmailVerificationTokenCreate) SetNillableCreatedAt(t *time.Time) *EmailVerificationTokenCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetNillableCreatedBy added in v0.2.2

func (evtc *EmailVerificationTokenCreate) SetNillableCreatedBy(s *string) *EmailVerificationTokenCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetNillableDeletedAt added in v0.2.2

func (evtc *EmailVerificationTokenCreate) SetNillableDeletedAt(t *time.Time) *EmailVerificationTokenCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetNillableDeletedBy added in v0.2.2

func (evtc *EmailVerificationTokenCreate) SetNillableDeletedBy(s *string) *EmailVerificationTokenCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetNillableID added in v0.2.2

SetNillableID sets the "id" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetNillableUpdatedAt added in v0.2.2

func (evtc *EmailVerificationTokenCreate) SetNillableUpdatedAt(t *time.Time) *EmailVerificationTokenCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetNillableUpdatedBy added in v0.2.2

func (evtc *EmailVerificationTokenCreate) SetNillableUpdatedBy(s *string) *EmailVerificationTokenCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*EmailVerificationTokenCreate) SetOwner added in v0.2.2

SetOwner sets the "owner" edge to the User entity.

func (*EmailVerificationTokenCreate) SetOwnerID added in v0.2.2

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*EmailVerificationTokenCreate) SetSecret added in v0.2.2

SetSecret sets the "secret" field.

func (*EmailVerificationTokenCreate) SetTTL added in v0.2.2

SetTTL sets the "ttl" field.

func (*EmailVerificationTokenCreate) SetToken added in v0.2.2

SetToken sets the "token" field.

func (*EmailVerificationTokenCreate) SetUpdatedAt added in v0.2.2

SetUpdatedAt sets the "updated_at" field.

func (*EmailVerificationTokenCreate) SetUpdatedBy added in v0.2.2

SetUpdatedBy sets the "updated_by" field.

type EmailVerificationTokenCreateBulk added in v0.2.2

type EmailVerificationTokenCreateBulk struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenCreateBulk is the builder for creating many EmailVerificationToken entities in bulk.

func (*EmailVerificationTokenCreateBulk) Exec added in v0.2.2

Exec executes the query.

func (*EmailVerificationTokenCreateBulk) ExecX added in v0.2.2

ExecX is like Exec, but panics if an error occurs.

func (*EmailVerificationTokenCreateBulk) Save added in v0.2.2

Save creates the EmailVerificationToken entities in the database.

func (*EmailVerificationTokenCreateBulk) SaveX added in v0.2.2

SaveX is like Save, but panics if an error occurs.

type EmailVerificationTokenDelete added in v0.2.2

type EmailVerificationTokenDelete struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenDelete is the builder for deleting a EmailVerificationToken entity.

func (*EmailVerificationTokenDelete) Exec added in v0.2.2

Exec executes the deletion query and returns how many vertices were deleted.

func (*EmailVerificationTokenDelete) ExecX added in v0.2.2

ExecX is like Exec, but panics if an error occurs.

func (*EmailVerificationTokenDelete) Where added in v0.2.2

Where appends a list predicates to the EmailVerificationTokenDelete builder.

type EmailVerificationTokenDeleteOne added in v0.2.2

type EmailVerificationTokenDeleteOne struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenDeleteOne is the builder for deleting a single EmailVerificationToken entity.

func (*EmailVerificationTokenDeleteOne) Exec added in v0.2.2

Exec executes the deletion query.

func (*EmailVerificationTokenDeleteOne) ExecX added in v0.2.2

ExecX is like Exec, but panics if an error occurs.

func (*EmailVerificationTokenDeleteOne) Where added in v0.2.2

Where appends a list predicates to the EmailVerificationTokenDelete builder.

type EmailVerificationTokenEdges added in v0.2.2

type EmailVerificationTokenEdges struct {
	// Owner holds the value of the owner edge.
	Owner *User `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

EmailVerificationTokenEdges holds the relations/edges for other nodes in the graph.

func (EmailVerificationTokenEdges) OwnerOrErr added in v0.2.2

func (e EmailVerificationTokenEdges) OwnerOrErr() (*User, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type EmailVerificationTokenFilter added in v0.2.2

type EmailVerificationTokenFilter struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenFilter provides a generic filtering capability at runtime for EmailVerificationTokenQuery.

func (*EmailVerificationTokenFilter) Where added in v0.2.2

func (f *EmailVerificationTokenFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*EmailVerificationTokenFilter) WhereCreatedAt added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*EmailVerificationTokenFilter) WhereCreatedBy added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*EmailVerificationTokenFilter) WhereDeletedAt added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*EmailVerificationTokenFilter) WhereDeletedBy added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*EmailVerificationTokenFilter) WhereEmail added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereEmail(p entql.StringP)

WhereEmail applies the entql string predicate on the email field.

func (*EmailVerificationTokenFilter) WhereHasOwner added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*EmailVerificationTokenFilter) WhereHasOwnerWith added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereHasOwnerWith(preds ...predicate.User)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*EmailVerificationTokenFilter) WhereID added in v0.2.2

WhereID applies the entql string predicate on the id field.

func (*EmailVerificationTokenFilter) WhereSecret added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereSecret(p entql.BytesP)

WhereSecret applies the entql []byte predicate on the secret field.

func (*EmailVerificationTokenFilter) WhereTTL added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereTTL(p entql.TimeP)

WhereTTL applies the entql time.Time predicate on the ttl field.

func (*EmailVerificationTokenFilter) WhereToken added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereToken(p entql.StringP)

WhereToken applies the entql string predicate on the token field.

func (*EmailVerificationTokenFilter) WhereUpdatedAt added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*EmailVerificationTokenFilter) WhereUpdatedBy added in v0.2.2

func (f *EmailVerificationTokenFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type EmailVerificationTokenGroupBy added in v0.2.2

type EmailVerificationTokenGroupBy struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenGroupBy is the group-by builder for EmailVerificationToken entities.

func (*EmailVerificationTokenGroupBy) Aggregate added in v0.2.2

Aggregate adds the given aggregation functions to the group-by query.

func (*EmailVerificationTokenGroupBy) Bool added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) BoolX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Bools added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) BoolsX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Float64 added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) Float64X added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Float64s added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) Float64sX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Int added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) IntX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Ints added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) IntsX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Scan added in v0.2.2

Scan applies the selector query and scans the result into the given value.

func (*EmailVerificationTokenGroupBy) ScanX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) String added in v0.2.2

func (s *EmailVerificationTokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) StringX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*EmailVerificationTokenGroupBy) Strings added in v0.2.2

func (s *EmailVerificationTokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenGroupBy) StringsX added in v0.2.2

func (s *EmailVerificationTokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type EmailVerificationTokenMutation added in v0.2.2

type EmailVerificationTokenMutation struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenMutation represents an operation that mutates the EmailVerificationToken nodes in the graph.

func (*EmailVerificationTokenMutation) AddField added in v0.2.2

func (m *EmailVerificationTokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*EmailVerificationTokenMutation) AddedEdges added in v0.2.2

func (m *EmailVerificationTokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*EmailVerificationTokenMutation) AddedField added in v0.2.2

func (m *EmailVerificationTokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*EmailVerificationTokenMutation) AddedFields added in v0.2.2

func (m *EmailVerificationTokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*EmailVerificationTokenMutation) AddedIDs added in v0.2.2

func (m *EmailVerificationTokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*EmailVerificationTokenMutation) ClearCreatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*EmailVerificationTokenMutation) ClearDeletedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*EmailVerificationTokenMutation) ClearDeletedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*EmailVerificationTokenMutation) ClearEdge added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*EmailVerificationTokenMutation) ClearField added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*EmailVerificationTokenMutation) ClearOwner added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearOwner()

ClearOwner clears the "owner" edge to the User entity.

func (*EmailVerificationTokenMutation) ClearUpdatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*EmailVerificationTokenMutation) ClearedEdges added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*EmailVerificationTokenMutation) ClearedFields added in v0.2.2

func (m *EmailVerificationTokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (EmailVerificationTokenMutation) Client added in v0.2.2

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*EmailVerificationTokenMutation) CreatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*EmailVerificationTokenMutation) CreatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*EmailVerificationTokenMutation) CreatedByCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*EmailVerificationTokenMutation) DeletedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*EmailVerificationTokenMutation) DeletedAtCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*EmailVerificationTokenMutation) DeletedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*EmailVerificationTokenMutation) DeletedByCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*EmailVerificationTokenMutation) EdgeCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*EmailVerificationTokenMutation) Email added in v0.2.2

func (m *EmailVerificationTokenMutation) Email() (r string, exists bool)

Email returns the value of the "email" field in the mutation.

func (*EmailVerificationTokenMutation) Field added in v0.2.2

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*EmailVerificationTokenMutation) FieldCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*EmailVerificationTokenMutation) Fields added in v0.2.2

func (m *EmailVerificationTokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*EmailVerificationTokenMutation) Filter added in v0.2.2

Filter returns an entql.Where implementation to apply filters on the EmailVerificationTokenMutation builder.

func (*EmailVerificationTokenMutation) ID added in v0.2.2

func (m *EmailVerificationTokenMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*EmailVerificationTokenMutation) IDs added in v0.2.2

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*EmailVerificationTokenMutation) OldCreatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldCreatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldDeletedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldDeletedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldEmail added in v0.2.2

func (m *EmailVerificationTokenMutation) OldEmail(ctx context.Context) (v string, err error)

OldEmail returns the old "email" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldField added in v0.2.2

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*EmailVerificationTokenMutation) OldSecret added in v0.2.2

func (m *EmailVerificationTokenMutation) OldSecret(ctx context.Context) (v *[]byte, err error)

OldSecret returns the old "secret" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldTTL added in v0.2.2

func (m *EmailVerificationTokenMutation) OldTTL(ctx context.Context) (v *time.Time, err error)

OldTTL returns the old "ttl" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldToken added in v0.2.2

func (m *EmailVerificationTokenMutation) OldToken(ctx context.Context) (v string, err error)

OldToken returns the old "token" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldUpdatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) OldUpdatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the EmailVerificationToken entity. If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EmailVerificationTokenMutation) Op added in v0.2.2

Op returns the operation name.

func (*EmailVerificationTokenMutation) OwnerCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the User entity was cleared.

func (*EmailVerificationTokenMutation) OwnerID added in v0.2.2

func (m *EmailVerificationTokenMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*EmailVerificationTokenMutation) OwnerIDs added in v0.2.2

func (m *EmailVerificationTokenMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*EmailVerificationTokenMutation) RemovedEdges added in v0.2.2

func (m *EmailVerificationTokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*EmailVerificationTokenMutation) RemovedIDs added in v0.2.2

func (m *EmailVerificationTokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*EmailVerificationTokenMutation) ResetCreatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*EmailVerificationTokenMutation) ResetCreatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*EmailVerificationTokenMutation) ResetDeletedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*EmailVerificationTokenMutation) ResetDeletedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*EmailVerificationTokenMutation) ResetEdge added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*EmailVerificationTokenMutation) ResetEmail added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetEmail()

ResetEmail resets all changes to the "email" field.

func (*EmailVerificationTokenMutation) ResetField added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*EmailVerificationTokenMutation) ResetOwner added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*EmailVerificationTokenMutation) ResetSecret added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetSecret()

ResetSecret resets all changes to the "secret" field.

func (*EmailVerificationTokenMutation) ResetTTL added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetTTL()

ResetTTL resets all changes to the "ttl" field.

func (*EmailVerificationTokenMutation) ResetToken added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetToken()

ResetToken resets all changes to the "token" field.

func (*EmailVerificationTokenMutation) ResetUpdatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*EmailVerificationTokenMutation) ResetUpdatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*EmailVerificationTokenMutation) Secret added in v0.2.2

func (m *EmailVerificationTokenMutation) Secret() (r []byte, exists bool)

Secret returns the value of the "secret" field in the mutation.

func (*EmailVerificationTokenMutation) SetCreatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*EmailVerificationTokenMutation) SetCreatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*EmailVerificationTokenMutation) SetDeletedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*EmailVerificationTokenMutation) SetDeletedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*EmailVerificationTokenMutation) SetEmail added in v0.2.2

func (m *EmailVerificationTokenMutation) SetEmail(s string)

SetEmail sets the "email" field.

func (*EmailVerificationTokenMutation) SetField added in v0.2.2

func (m *EmailVerificationTokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*EmailVerificationTokenMutation) SetID added in v0.2.2

SetID sets the value of the id field. Note that this operation is only accepted on creation of EmailVerificationToken entities.

func (*EmailVerificationTokenMutation) SetOp added in v0.2.2

func (m *EmailVerificationTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*EmailVerificationTokenMutation) SetOwnerID added in v0.2.2

func (m *EmailVerificationTokenMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the User entity by id.

func (*EmailVerificationTokenMutation) SetSecret added in v0.2.2

func (m *EmailVerificationTokenMutation) SetSecret(b []byte)

SetSecret sets the "secret" field.

func (*EmailVerificationTokenMutation) SetTTL added in v0.2.2

SetTTL sets the "ttl" field.

func (*EmailVerificationTokenMutation) SetToken added in v0.2.2

func (m *EmailVerificationTokenMutation) SetToken(s string)

SetToken sets the "token" field.

func (*EmailVerificationTokenMutation) SetUpdatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*EmailVerificationTokenMutation) SetUpdatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*EmailVerificationTokenMutation) TTL added in v0.2.2

func (m *EmailVerificationTokenMutation) TTL() (r time.Time, exists bool)

TTL returns the value of the "ttl" field in the mutation.

func (*EmailVerificationTokenMutation) Token added in v0.2.2

func (m *EmailVerificationTokenMutation) Token() (r string, exists bool)

Token returns the value of the "token" field in the mutation.

func (EmailVerificationTokenMutation) Tx added in v0.2.2

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*EmailVerificationTokenMutation) Type added in v0.2.2

Type returns the node type of this mutation (EmailVerificationToken).

func (*EmailVerificationTokenMutation) UpdatedAt added in v0.2.2

func (m *EmailVerificationTokenMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*EmailVerificationTokenMutation) UpdatedBy added in v0.2.2

func (m *EmailVerificationTokenMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*EmailVerificationTokenMutation) UpdatedByCleared added in v0.2.2

func (m *EmailVerificationTokenMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*EmailVerificationTokenMutation) Where added in v0.2.2

Where appends a list predicates to the EmailVerificationTokenMutation builder.

func (*EmailVerificationTokenMutation) WhereP added in v0.2.2

func (m *EmailVerificationTokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the EmailVerificationTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type EmailVerificationTokenQuery added in v0.2.2

type EmailVerificationTokenQuery struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenQuery is the builder for querying EmailVerificationToken entities.

func (*EmailVerificationTokenQuery) Aggregate added in v0.2.2

Aggregate returns a EmailVerificationTokenSelect configured with the given aggregations.

func (*EmailVerificationTokenQuery) All added in v0.2.2

All executes the query and returns a list of EmailVerificationTokens.

func (*EmailVerificationTokenQuery) AllX added in v0.2.2

AllX is like All, but panics if an error occurs.

func (*EmailVerificationTokenQuery) Clone added in v0.2.2

Clone returns a duplicate of the EmailVerificationTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*EmailVerificationTokenQuery) Count added in v0.2.2

func (evtq *EmailVerificationTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*EmailVerificationTokenQuery) CountX added in v0.2.2

func (evtq *EmailVerificationTokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*EmailVerificationTokenQuery) Exist added in v0.2.2

Exist returns true if the query has elements in the graph.

func (*EmailVerificationTokenQuery) ExistX added in v0.2.2

func (evtq *EmailVerificationTokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*EmailVerificationTokenQuery) Filter added in v0.2.2

Filter returns a Filter implementation to apply filters on the EmailVerificationTokenQuery builder.

func (*EmailVerificationTokenQuery) First added in v0.2.2

First returns the first EmailVerificationToken entity from the query. Returns a *NotFoundError when no EmailVerificationToken was found.

func (*EmailVerificationTokenQuery) FirstID added in v0.2.2

func (evtq *EmailVerificationTokenQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first EmailVerificationToken ID from the query. Returns a *NotFoundError when no EmailVerificationToken ID was found.

func (*EmailVerificationTokenQuery) FirstIDX added in v0.2.2

func (evtq *EmailVerificationTokenQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*EmailVerificationTokenQuery) FirstX added in v0.2.2

FirstX is like First, but panics if an error occurs.

func (*EmailVerificationTokenQuery) GroupBy added in v0.2.2

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.EmailVerificationToken.Query().
	GroupBy(emailverificationtoken.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*EmailVerificationTokenQuery) IDs added in v0.2.2

func (evtq *EmailVerificationTokenQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of EmailVerificationToken IDs.

func (*EmailVerificationTokenQuery) IDsX added in v0.2.2

IDsX is like IDs, but panics if an error occurs.

func (*EmailVerificationTokenQuery) Limit added in v0.2.2

Limit the number of records to be returned by this query.

func (*EmailVerificationTokenQuery) Offset added in v0.2.2

Offset to start from.

func (*EmailVerificationTokenQuery) Only added in v0.2.2

Only returns a single EmailVerificationToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one EmailVerificationToken entity is found. Returns a *NotFoundError when no EmailVerificationToken entities are found.

func (*EmailVerificationTokenQuery) OnlyID added in v0.2.2

func (evtq *EmailVerificationTokenQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only EmailVerificationToken ID in the query. Returns a *NotSingularError when more than one EmailVerificationToken ID is found. Returns a *NotFoundError when no entities are found.

func (*EmailVerificationTokenQuery) OnlyIDX added in v0.2.2

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*EmailVerificationTokenQuery) OnlyX added in v0.2.2

OnlyX is like Only, but panics if an error occurs.

func (*EmailVerificationTokenQuery) Order added in v0.2.2

Order specifies how the records should be ordered.

func (*EmailVerificationTokenQuery) QueryOwner added in v0.2.2

func (evtq *EmailVerificationTokenQuery) QueryOwner() *UserQuery

QueryOwner chains the current query on the "owner" edge.

func (*EmailVerificationTokenQuery) Select added in v0.2.2

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.EmailVerificationToken.Query().
	Select(emailverificationtoken.FieldCreatedAt).
	Scan(ctx, &v)

func (*EmailVerificationTokenQuery) Unique added in v0.2.2

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*EmailVerificationTokenQuery) Where added in v0.2.2

Where adds a new predicate for the EmailVerificationTokenQuery builder.

func (*EmailVerificationTokenQuery) WithOwner added in v0.2.2

func (evtq *EmailVerificationTokenQuery) WithOwner(opts ...func(*UserQuery)) *EmailVerificationTokenQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type EmailVerificationTokenSelect added in v0.2.2

type EmailVerificationTokenSelect struct {
	*EmailVerificationTokenQuery
	// contains filtered or unexported fields
}

EmailVerificationTokenSelect is the builder for selecting fields of EmailVerificationToken entities.

func (*EmailVerificationTokenSelect) Aggregate added in v0.2.2

Aggregate adds the given aggregation functions to the selector query.

func (*EmailVerificationTokenSelect) Bool added in v0.2.2

func (s *EmailVerificationTokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) BoolX added in v0.2.2

func (s *EmailVerificationTokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Bools added in v0.2.2

func (s *EmailVerificationTokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) BoolsX added in v0.2.2

func (s *EmailVerificationTokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Float64 added in v0.2.2

func (s *EmailVerificationTokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) Float64X added in v0.2.2

func (s *EmailVerificationTokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Float64s added in v0.2.2

func (s *EmailVerificationTokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) Float64sX added in v0.2.2

func (s *EmailVerificationTokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Int added in v0.2.2

func (s *EmailVerificationTokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) IntX added in v0.2.2

func (s *EmailVerificationTokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Ints added in v0.2.2

func (s *EmailVerificationTokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) IntsX added in v0.2.2

func (s *EmailVerificationTokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Scan added in v0.2.2

Scan applies the selector query and scans the result into the given value.

func (*EmailVerificationTokenSelect) ScanX added in v0.2.2

func (s *EmailVerificationTokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*EmailVerificationTokenSelect) String added in v0.2.2

func (s *EmailVerificationTokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) StringX added in v0.2.2

func (s *EmailVerificationTokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*EmailVerificationTokenSelect) Strings added in v0.2.2

func (s *EmailVerificationTokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*EmailVerificationTokenSelect) StringsX added in v0.2.2

func (s *EmailVerificationTokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type EmailVerificationTokenUpdate added in v0.2.2

type EmailVerificationTokenUpdate struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenUpdate is the builder for updating EmailVerificationToken entities.

func (*EmailVerificationTokenUpdate) ClearDeletedAt added in v0.2.2

ClearDeletedAt clears the value of the "deleted_at" field.

func (*EmailVerificationTokenUpdate) ClearDeletedBy added in v0.2.2

ClearDeletedBy clears the value of the "deleted_by" field.

func (*EmailVerificationTokenUpdate) ClearOwner added in v0.2.2

ClearOwner clears the "owner" edge to the User entity.

func (*EmailVerificationTokenUpdate) ClearUpdatedBy added in v0.2.2

ClearUpdatedBy clears the value of the "updated_by" field.

func (*EmailVerificationTokenUpdate) Exec added in v0.2.2

Exec executes the query.

func (*EmailVerificationTokenUpdate) ExecX added in v0.2.2

func (evtu *EmailVerificationTokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EmailVerificationTokenUpdate) Mutation added in v0.2.2

Mutation returns the EmailVerificationTokenMutation object of the builder.

func (*EmailVerificationTokenUpdate) Save added in v0.2.2

Save executes the query and returns the number of nodes affected by the update operation.

func (*EmailVerificationTokenUpdate) SaveX added in v0.2.2

SaveX is like Save, but panics if an error occurs.

func (*EmailVerificationTokenUpdate) SetDeletedAt added in v0.2.2

SetDeletedAt sets the "deleted_at" field.

func (*EmailVerificationTokenUpdate) SetDeletedBy added in v0.2.2

SetDeletedBy sets the "deleted_by" field.

func (*EmailVerificationTokenUpdate) SetEmail added in v0.2.2

SetEmail sets the "email" field.

func (*EmailVerificationTokenUpdate) SetNillableDeletedAt added in v0.2.2

func (evtu *EmailVerificationTokenUpdate) SetNillableDeletedAt(t *time.Time) *EmailVerificationTokenUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*EmailVerificationTokenUpdate) SetNillableDeletedBy added in v0.2.2

func (evtu *EmailVerificationTokenUpdate) SetNillableDeletedBy(s *string) *EmailVerificationTokenUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*EmailVerificationTokenUpdate) SetNillableEmail added in v0.2.2

SetNillableEmail sets the "email" field if the given value is not nil.

func (*EmailVerificationTokenUpdate) SetNillableTTL added in v0.2.2

SetNillableTTL sets the "ttl" field if the given value is not nil.

func (*EmailVerificationTokenUpdate) SetNillableToken added in v0.2.2

SetNillableToken sets the "token" field if the given value is not nil.

func (*EmailVerificationTokenUpdate) SetNillableUpdatedBy added in v0.2.2

func (evtu *EmailVerificationTokenUpdate) SetNillableUpdatedBy(s *string) *EmailVerificationTokenUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*EmailVerificationTokenUpdate) SetOwner added in v0.2.2

SetOwner sets the "owner" edge to the User entity.

func (*EmailVerificationTokenUpdate) SetOwnerID added in v0.2.2

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*EmailVerificationTokenUpdate) SetSecret added in v0.2.2

SetSecret sets the "secret" field.

func (*EmailVerificationTokenUpdate) SetTTL added in v0.2.2

SetTTL sets the "ttl" field.

func (*EmailVerificationTokenUpdate) SetToken added in v0.2.2

SetToken sets the "token" field.

func (*EmailVerificationTokenUpdate) SetUpdatedAt added in v0.2.2

SetUpdatedAt sets the "updated_at" field.

func (*EmailVerificationTokenUpdate) SetUpdatedBy added in v0.2.2

SetUpdatedBy sets the "updated_by" field.

func (*EmailVerificationTokenUpdate) Where added in v0.2.2

Where appends a list predicates to the EmailVerificationTokenUpdate builder.

type EmailVerificationTokenUpdateOne added in v0.2.2

type EmailVerificationTokenUpdateOne struct {
	// contains filtered or unexported fields
}

EmailVerificationTokenUpdateOne is the builder for updating a single EmailVerificationToken entity.

func (*EmailVerificationTokenUpdateOne) ClearDeletedAt added in v0.2.2

ClearDeletedAt clears the value of the "deleted_at" field.

func (*EmailVerificationTokenUpdateOne) ClearDeletedBy added in v0.2.2

ClearDeletedBy clears the value of the "deleted_by" field.

func (*EmailVerificationTokenUpdateOne) ClearOwner added in v0.2.2

ClearOwner clears the "owner" edge to the User entity.

func (*EmailVerificationTokenUpdateOne) ClearUpdatedBy added in v0.2.2

ClearUpdatedBy clears the value of the "updated_by" field.

func (*EmailVerificationTokenUpdateOne) Exec added in v0.2.2

Exec executes the query on the entity.

func (*EmailVerificationTokenUpdateOne) ExecX added in v0.2.2

ExecX is like Exec, but panics if an error occurs.

func (*EmailVerificationTokenUpdateOne) Mutation added in v0.2.2

Mutation returns the EmailVerificationTokenMutation object of the builder.

func (*EmailVerificationTokenUpdateOne) Save added in v0.2.2

Save executes the query and returns the updated EmailVerificationToken entity.

func (*EmailVerificationTokenUpdateOne) SaveX added in v0.2.2

SaveX is like Save, but panics if an error occurs.

func (*EmailVerificationTokenUpdateOne) Select added in v0.2.2

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*EmailVerificationTokenUpdateOne) SetDeletedAt added in v0.2.2

SetDeletedAt sets the "deleted_at" field.

func (*EmailVerificationTokenUpdateOne) SetDeletedBy added in v0.2.2

SetDeletedBy sets the "deleted_by" field.

func (*EmailVerificationTokenUpdateOne) SetEmail added in v0.2.2

SetEmail sets the "email" field.

func (*EmailVerificationTokenUpdateOne) SetNillableDeletedAt added in v0.2.2

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*EmailVerificationTokenUpdateOne) SetNillableDeletedBy added in v0.2.2

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*EmailVerificationTokenUpdateOne) SetNillableEmail added in v0.2.2

SetNillableEmail sets the "email" field if the given value is not nil.

func (*EmailVerificationTokenUpdateOne) SetNillableTTL added in v0.2.2

SetNillableTTL sets the "ttl" field if the given value is not nil.

func (*EmailVerificationTokenUpdateOne) SetNillableToken added in v0.2.2

SetNillableToken sets the "token" field if the given value is not nil.

func (*EmailVerificationTokenUpdateOne) SetNillableUpdatedBy added in v0.2.2

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*EmailVerificationTokenUpdateOne) SetOwner added in v0.2.2

SetOwner sets the "owner" edge to the User entity.

func (*EmailVerificationTokenUpdateOne) SetOwnerID added in v0.2.2

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*EmailVerificationTokenUpdateOne) SetSecret added in v0.2.2

SetSecret sets the "secret" field.

func (*EmailVerificationTokenUpdateOne) SetTTL added in v0.2.2

SetTTL sets the "ttl" field.

func (*EmailVerificationTokenUpdateOne) SetToken added in v0.2.2

SetToken sets the "token" field.

func (*EmailVerificationTokenUpdateOne) SetUpdatedAt added in v0.2.2

SetUpdatedAt sets the "updated_at" field.

func (*EmailVerificationTokenUpdateOne) SetUpdatedBy added in v0.2.2

SetUpdatedBy sets the "updated_by" field.

func (*EmailVerificationTokenUpdateOne) Where added in v0.2.2

Where appends a list predicates to the EmailVerificationTokenUpdate builder.

type EmailVerificationTokens added in v0.2.2

type EmailVerificationTokens []*EmailVerificationToken

EmailVerificationTokens is a parsable slice of EmailVerificationToken.

type Entitlement

type Entitlement struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// Tier holds the value of the "tier" field.
	Tier entitlement.Tier `json:"tier,omitempty"`
	// used to store references to external systems, e.g. Stripe
	ExternalCustomerID string `json:"external_customer_id,omitempty"`
	// used to store references to external systems, e.g. Stripe
	ExternalSubscriptionID string `json:"external_subscription_id,omitempty"`
	// whether or not the customers entitlement expires - expires_at will show the time
	Expires bool `json:"expires,omitempty"`
	// the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month
	ExpiresAt *time.Time `json:"expires_at,omitempty"`
	// whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at
	Cancelled bool `json:"cancelled,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the EntitlementQuery when eager-loading is set.
	Edges EntitlementEdges `json:"edges"`
	// contains filtered or unexported fields
}

Entitlement is the model entity for the Entitlement schema.

func (*Entitlement) IsNode

func (n *Entitlement) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*Entitlement) Owner

func (e *Entitlement) Owner(ctx context.Context) (*Organization, error)

func (*Entitlement) QueryOwner

func (e *Entitlement) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Entitlement entity.

func (*Entitlement) String

func (e *Entitlement) String() string

String implements the fmt.Stringer.

func (*Entitlement) ToEdge

func (e *Entitlement) ToEdge(order *EntitlementOrder) *EntitlementEdge

ToEdge converts Entitlement into EntitlementEdge.

func (*Entitlement) Unwrap

func (e *Entitlement) Unwrap() *Entitlement

Unwrap unwraps the Entitlement entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Entitlement) Update

func (e *Entitlement) Update() *EntitlementUpdateOne

Update returns a builder for updating this Entitlement. Note that you need to call Entitlement.Unwrap() before calling this method if this Entitlement was returned from a transaction, and the transaction was committed or rolled back.

func (*Entitlement) Value

func (e *Entitlement) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Entitlement. This includes values selected through modifiers, order, etc.

type EntitlementClient

type EntitlementClient struct {
	// contains filtered or unexported fields
}

EntitlementClient is a client for the Entitlement schema.

func NewEntitlementClient

func NewEntitlementClient(c config) *EntitlementClient

NewEntitlementClient returns a client for the Entitlement from the given config.

func (*EntitlementClient) Create

func (c *EntitlementClient) Create() *EntitlementCreate

Create returns a builder for creating a Entitlement entity.

func (*EntitlementClient) CreateBulk

func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk

CreateBulk returns a builder for creating a bulk of Entitlement entities.

func (*EntitlementClient) Delete

func (c *EntitlementClient) Delete() *EntitlementDelete

Delete returns a delete builder for Entitlement.

func (*EntitlementClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*EntitlementClient) DeleteOneID

func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*EntitlementClient) Get

Get returns a Entitlement entity by its id.

func (*EntitlementClient) GetX

GetX is like Get, but panics if an error occurs.

func (*EntitlementClient) Hooks

func (c *EntitlementClient) Hooks() []Hook

Hooks returns the client hooks.

func (*EntitlementClient) Intercept

func (c *EntitlementClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `entitlement.Intercept(f(g(h())))`.

func (*EntitlementClient) Interceptors

func (c *EntitlementClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*EntitlementClient) MapCreateBulk

func (c *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*EntitlementClient) Query

func (c *EntitlementClient) Query() *EntitlementQuery

Query returns a query builder for Entitlement.

func (*EntitlementClient) QueryOwner

func (c *EntitlementClient) QueryOwner(e *Entitlement) *OrganizationQuery

QueryOwner queries the owner edge of a Entitlement.

func (*EntitlementClient) Update

func (c *EntitlementClient) Update() *EntitlementUpdate

Update returns an update builder for Entitlement.

func (*EntitlementClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*EntitlementClient) UpdateOneID

func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne

UpdateOneID returns an update builder for the given id.

func (*EntitlementClient) Use

func (c *EntitlementClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `entitlement.Hooks(f(g(h())))`.

type EntitlementConnection

type EntitlementConnection struct {
	Edges      []*EntitlementEdge `json:"edges"`
	PageInfo   PageInfo           `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

EntitlementConnection is the connection containing edges to Entitlement.

type EntitlementCreate

type EntitlementCreate struct {
	// contains filtered or unexported fields
}

EntitlementCreate is the builder for creating a Entitlement entity.

func (*EntitlementCreate) Exec

func (ec *EntitlementCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*EntitlementCreate) ExecX

func (ec *EntitlementCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EntitlementCreate) Mutation

func (ec *EntitlementCreate) Mutation() *EntitlementMutation

Mutation returns the EntitlementMutation object of the builder.

func (*EntitlementCreate) Save

Save creates the Entitlement in the database.

func (*EntitlementCreate) SaveX

func (ec *EntitlementCreate) SaveX(ctx context.Context) *Entitlement

SaveX calls Save and panics if Save returns an error.

func (*EntitlementCreate) SetCancelled

func (ec *EntitlementCreate) SetCancelled(b bool) *EntitlementCreate

SetCancelled sets the "cancelled" field.

func (*EntitlementCreate) SetCreatedAt

func (ec *EntitlementCreate) SetCreatedAt(t time.Time) *EntitlementCreate

SetCreatedAt sets the "created_at" field.

func (*EntitlementCreate) SetCreatedBy

func (ec *EntitlementCreate) SetCreatedBy(s string) *EntitlementCreate

SetCreatedBy sets the "created_by" field.

func (*EntitlementCreate) SetDeletedAt

func (ec *EntitlementCreate) SetDeletedAt(t time.Time) *EntitlementCreate

SetDeletedAt sets the "deleted_at" field.

func (*EntitlementCreate) SetDeletedBy

func (ec *EntitlementCreate) SetDeletedBy(s string) *EntitlementCreate

SetDeletedBy sets the "deleted_by" field.

func (*EntitlementCreate) SetExpires

func (ec *EntitlementCreate) SetExpires(b bool) *EntitlementCreate

SetExpires sets the "expires" field.

func (*EntitlementCreate) SetExpiresAt

func (ec *EntitlementCreate) SetExpiresAt(t time.Time) *EntitlementCreate

SetExpiresAt sets the "expires_at" field.

func (*EntitlementCreate) SetExternalCustomerID

func (ec *EntitlementCreate) SetExternalCustomerID(s string) *EntitlementCreate

SetExternalCustomerID sets the "external_customer_id" field.

func (*EntitlementCreate) SetExternalSubscriptionID

func (ec *EntitlementCreate) SetExternalSubscriptionID(s string) *EntitlementCreate

SetExternalSubscriptionID sets the "external_subscription_id" field.

func (*EntitlementCreate) SetID

SetID sets the "id" field.

func (*EntitlementCreate) SetInput

SetInput applies the change-set in the CreateEntitlementInput on the EntitlementCreate builder.

func (*EntitlementCreate) SetNillableCancelled

func (ec *EntitlementCreate) SetNillableCancelled(b *bool) *EntitlementCreate

SetNillableCancelled sets the "cancelled" field if the given value is not nil.

func (*EntitlementCreate) SetNillableCreatedAt

func (ec *EntitlementCreate) SetNillableCreatedAt(t *time.Time) *EntitlementCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*EntitlementCreate) SetNillableCreatedBy

func (ec *EntitlementCreate) SetNillableCreatedBy(s *string) *EntitlementCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*EntitlementCreate) SetNillableDeletedAt

func (ec *EntitlementCreate) SetNillableDeletedAt(t *time.Time) *EntitlementCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*EntitlementCreate) SetNillableDeletedBy

func (ec *EntitlementCreate) SetNillableDeletedBy(s *string) *EntitlementCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*EntitlementCreate) SetNillableExpires

func (ec *EntitlementCreate) SetNillableExpires(b *bool) *EntitlementCreate

SetNillableExpires sets the "expires" field if the given value is not nil.

func (*EntitlementCreate) SetNillableExpiresAt

func (ec *EntitlementCreate) SetNillableExpiresAt(t *time.Time) *EntitlementCreate

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*EntitlementCreate) SetNillableExternalCustomerID

func (ec *EntitlementCreate) SetNillableExternalCustomerID(s *string) *EntitlementCreate

SetNillableExternalCustomerID sets the "external_customer_id" field if the given value is not nil.

func (*EntitlementCreate) SetNillableExternalSubscriptionID

func (ec *EntitlementCreate) SetNillableExternalSubscriptionID(s *string) *EntitlementCreate

SetNillableExternalSubscriptionID sets the "external_subscription_id" field if the given value is not nil.

func (*EntitlementCreate) SetNillableID

func (ec *EntitlementCreate) SetNillableID(s *string) *EntitlementCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*EntitlementCreate) SetNillableOwnerID

func (ec *EntitlementCreate) SetNillableOwnerID(id *string) *EntitlementCreate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*EntitlementCreate) SetNillableTier

func (ec *EntitlementCreate) SetNillableTier(e *entitlement.Tier) *EntitlementCreate

SetNillableTier sets the "tier" field if the given value is not nil.

func (*EntitlementCreate) SetNillableUpdatedAt

func (ec *EntitlementCreate) SetNillableUpdatedAt(t *time.Time) *EntitlementCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*EntitlementCreate) SetNillableUpdatedBy

func (ec *EntitlementCreate) SetNillableUpdatedBy(s *string) *EntitlementCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*EntitlementCreate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*EntitlementCreate) SetOwnerID

func (ec *EntitlementCreate) SetOwnerID(id string) *EntitlementCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*EntitlementCreate) SetTier

SetTier sets the "tier" field.

func (*EntitlementCreate) SetUpdatedAt

func (ec *EntitlementCreate) SetUpdatedAt(t time.Time) *EntitlementCreate

SetUpdatedAt sets the "updated_at" field.

func (*EntitlementCreate) SetUpdatedBy

func (ec *EntitlementCreate) SetUpdatedBy(s string) *EntitlementCreate

SetUpdatedBy sets the "updated_by" field.

type EntitlementCreateBulk

type EntitlementCreateBulk struct {
	// contains filtered or unexported fields
}

EntitlementCreateBulk is the builder for creating many Entitlement entities in bulk.

func (*EntitlementCreateBulk) Exec

func (ecb *EntitlementCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*EntitlementCreateBulk) ExecX

func (ecb *EntitlementCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EntitlementCreateBulk) Save

func (ecb *EntitlementCreateBulk) Save(ctx context.Context) ([]*Entitlement, error)

Save creates the Entitlement entities in the database.

func (*EntitlementCreateBulk) SaveX

func (ecb *EntitlementCreateBulk) SaveX(ctx context.Context) []*Entitlement

SaveX is like Save, but panics if an error occurs.

type EntitlementDelete

type EntitlementDelete struct {
	// contains filtered or unexported fields
}

EntitlementDelete is the builder for deleting a Entitlement entity.

func (*EntitlementDelete) Exec

func (ed *EntitlementDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*EntitlementDelete) ExecX

func (ed *EntitlementDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*EntitlementDelete) Where

Where appends a list predicates to the EntitlementDelete builder.

type EntitlementDeleteOne

type EntitlementDeleteOne struct {
	// contains filtered or unexported fields
}

EntitlementDeleteOne is the builder for deleting a single Entitlement entity.

func (*EntitlementDeleteOne) Exec

func (edo *EntitlementDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*EntitlementDeleteOne) ExecX

func (edo *EntitlementDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EntitlementDeleteOne) Where

Where appends a list predicates to the EntitlementDelete builder.

type EntitlementEdge

type EntitlementEdge struct {
	Node   *Entitlement `json:"node"`
	Cursor Cursor       `json:"cursor"`
}

EntitlementEdge is the edge representation of Entitlement.

type EntitlementEdges

type EntitlementEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

EntitlementEdges holds the relations/edges for other nodes in the graph.

func (EntitlementEdges) OwnerOrErr

func (e EntitlementEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type EntitlementFilter

type EntitlementFilter struct {
	// contains filtered or unexported fields
}

EntitlementFilter provides a generic filtering capability at runtime for EntitlementQuery.

func (*EntitlementFilter) Where

func (f *EntitlementFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*EntitlementFilter) WhereCancelled

func (f *EntitlementFilter) WhereCancelled(p entql.BoolP)

WhereCancelled applies the entql bool predicate on the cancelled field.

func (*EntitlementFilter) WhereCreatedAt

func (f *EntitlementFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*EntitlementFilter) WhereCreatedBy

func (f *EntitlementFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*EntitlementFilter) WhereDeletedAt

func (f *EntitlementFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*EntitlementFilter) WhereDeletedBy

func (f *EntitlementFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*EntitlementFilter) WhereExpires

func (f *EntitlementFilter) WhereExpires(p entql.BoolP)

WhereExpires applies the entql bool predicate on the expires field.

func (*EntitlementFilter) WhereExpiresAt

func (f *EntitlementFilter) WhereExpiresAt(p entql.TimeP)

WhereExpiresAt applies the entql time.Time predicate on the expires_at field.

func (*EntitlementFilter) WhereExternalCustomerID

func (f *EntitlementFilter) WhereExternalCustomerID(p entql.StringP)

WhereExternalCustomerID applies the entql string predicate on the external_customer_id field.

func (*EntitlementFilter) WhereExternalSubscriptionID

func (f *EntitlementFilter) WhereExternalSubscriptionID(p entql.StringP)

WhereExternalSubscriptionID applies the entql string predicate on the external_subscription_id field.

func (*EntitlementFilter) WhereHasOwner

func (f *EntitlementFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*EntitlementFilter) WhereHasOwnerWith

func (f *EntitlementFilter) WhereHasOwnerWith(preds ...predicate.Organization)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*EntitlementFilter) WhereID

func (f *EntitlementFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*EntitlementFilter) WhereTier

func (f *EntitlementFilter) WhereTier(p entql.StringP)

WhereTier applies the entql string predicate on the tier field.

func (*EntitlementFilter) WhereUpdatedAt

func (f *EntitlementFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*EntitlementFilter) WhereUpdatedBy

func (f *EntitlementFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type EntitlementGroupBy

type EntitlementGroupBy struct {
	// contains filtered or unexported fields
}

EntitlementGroupBy is the group-by builder for Entitlement entities.

func (*EntitlementGroupBy) Aggregate

func (egb *EntitlementGroupBy) Aggregate(fns ...AggregateFunc) *EntitlementGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*EntitlementGroupBy) Bool

func (s *EntitlementGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) BoolX

func (s *EntitlementGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*EntitlementGroupBy) Bools

func (s *EntitlementGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) BoolsX

func (s *EntitlementGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*EntitlementGroupBy) Float64

func (s *EntitlementGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) Float64X

func (s *EntitlementGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*EntitlementGroupBy) Float64s

func (s *EntitlementGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) Float64sX

func (s *EntitlementGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*EntitlementGroupBy) Int

func (s *EntitlementGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) IntX

func (s *EntitlementGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*EntitlementGroupBy) Ints

func (s *EntitlementGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) IntsX

func (s *EntitlementGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*EntitlementGroupBy) Scan

func (egb *EntitlementGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*EntitlementGroupBy) ScanX

func (s *EntitlementGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*EntitlementGroupBy) String

func (s *EntitlementGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) StringX

func (s *EntitlementGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*EntitlementGroupBy) Strings

func (s *EntitlementGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*EntitlementGroupBy) StringsX

func (s *EntitlementGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type EntitlementMutation

type EntitlementMutation struct {
	// contains filtered or unexported fields
}

EntitlementMutation represents an operation that mutates the Entitlement nodes in the graph.

func (*EntitlementMutation) AddField

func (m *EntitlementMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*EntitlementMutation) AddedEdges

func (m *EntitlementMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*EntitlementMutation) AddedField

func (m *EntitlementMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*EntitlementMutation) AddedFields

func (m *EntitlementMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*EntitlementMutation) AddedIDs

func (m *EntitlementMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*EntitlementMutation) Cancelled

func (m *EntitlementMutation) Cancelled() (r bool, exists bool)

Cancelled returns the value of the "cancelled" field in the mutation.

func (*EntitlementMutation) ClearCreatedBy

func (m *EntitlementMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*EntitlementMutation) ClearDeletedAt

func (m *EntitlementMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*EntitlementMutation) ClearDeletedBy

func (m *EntitlementMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*EntitlementMutation) ClearEdge

func (m *EntitlementMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*EntitlementMutation) ClearExpiresAt

func (m *EntitlementMutation) ClearExpiresAt()

ClearExpiresAt clears the value of the "expires_at" field.

func (*EntitlementMutation) ClearExternalCustomerID

func (m *EntitlementMutation) ClearExternalCustomerID()

ClearExternalCustomerID clears the value of the "external_customer_id" field.

func (*EntitlementMutation) ClearExternalSubscriptionID

func (m *EntitlementMutation) ClearExternalSubscriptionID()

ClearExternalSubscriptionID clears the value of the "external_subscription_id" field.

func (*EntitlementMutation) ClearField

func (m *EntitlementMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*EntitlementMutation) ClearOwner

func (m *EntitlementMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*EntitlementMutation) ClearUpdatedBy

func (m *EntitlementMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*EntitlementMutation) ClearedEdges

func (m *EntitlementMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*EntitlementMutation) ClearedFields

func (m *EntitlementMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (EntitlementMutation) Client

func (m EntitlementMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*EntitlementMutation) CreatedAt

func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*EntitlementMutation) CreatedBy

func (m *EntitlementMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*EntitlementMutation) CreatedByCleared

func (m *EntitlementMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*EntitlementMutation) DeletedAt

func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*EntitlementMutation) DeletedAtCleared

func (m *EntitlementMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*EntitlementMutation) DeletedBy

func (m *EntitlementMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*EntitlementMutation) DeletedByCleared

func (m *EntitlementMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*EntitlementMutation) EdgeCleared

func (m *EntitlementMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*EntitlementMutation) Expires

func (m *EntitlementMutation) Expires() (r bool, exists bool)

Expires returns the value of the "expires" field in the mutation.

func (*EntitlementMutation) ExpiresAt

func (m *EntitlementMutation) ExpiresAt() (r time.Time, exists bool)

ExpiresAt returns the value of the "expires_at" field in the mutation.

func (*EntitlementMutation) ExpiresAtCleared

func (m *EntitlementMutation) ExpiresAtCleared() bool

ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation.

func (*EntitlementMutation) ExternalCustomerID

func (m *EntitlementMutation) ExternalCustomerID() (r string, exists bool)

ExternalCustomerID returns the value of the "external_customer_id" field in the mutation.

func (*EntitlementMutation) ExternalCustomerIDCleared

func (m *EntitlementMutation) ExternalCustomerIDCleared() bool

ExternalCustomerIDCleared returns if the "external_customer_id" field was cleared in this mutation.

func (*EntitlementMutation) ExternalSubscriptionID

func (m *EntitlementMutation) ExternalSubscriptionID() (r string, exists bool)

ExternalSubscriptionID returns the value of the "external_subscription_id" field in the mutation.

func (*EntitlementMutation) ExternalSubscriptionIDCleared

func (m *EntitlementMutation) ExternalSubscriptionIDCleared() bool

ExternalSubscriptionIDCleared returns if the "external_subscription_id" field was cleared in this mutation.

func (*EntitlementMutation) Field

func (m *EntitlementMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*EntitlementMutation) FieldCleared

func (m *EntitlementMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*EntitlementMutation) Fields

func (m *EntitlementMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*EntitlementMutation) Filter

Filter returns an entql.Where implementation to apply filters on the EntitlementMutation builder.

func (*EntitlementMutation) ID

func (m *EntitlementMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*EntitlementMutation) IDs

func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*EntitlementMutation) OldCancelled

func (m *EntitlementMutation) OldCancelled(ctx context.Context) (v bool, err error)

OldCancelled returns the old "cancelled" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldCreatedAt

func (m *EntitlementMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldCreatedBy

func (m *EntitlementMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldDeletedAt

func (m *EntitlementMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldDeletedBy

func (m *EntitlementMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldExpires

func (m *EntitlementMutation) OldExpires(ctx context.Context) (v bool, err error)

OldExpires returns the old "expires" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldExpiresAt

func (m *EntitlementMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error)

OldExpiresAt returns the old "expires_at" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldExternalCustomerID

func (m *EntitlementMutation) OldExternalCustomerID(ctx context.Context) (v string, err error)

OldExternalCustomerID returns the old "external_customer_id" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldExternalSubscriptionID

func (m *EntitlementMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error)

OldExternalSubscriptionID returns the old "external_subscription_id" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldField

func (m *EntitlementMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*EntitlementMutation) OldTier

func (m *EntitlementMutation) OldTier(ctx context.Context) (v entitlement.Tier, err error)

OldTier returns the old "tier" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldUpdatedAt

func (m *EntitlementMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) OldUpdatedBy

func (m *EntitlementMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the Entitlement entity. If the Entitlement object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EntitlementMutation) Op

func (m *EntitlementMutation) Op() Op

Op returns the operation name.

func (*EntitlementMutation) OwnerCleared

func (m *EntitlementMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*EntitlementMutation) OwnerID

func (m *EntitlementMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*EntitlementMutation) OwnerIDs

func (m *EntitlementMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*EntitlementMutation) RemovedEdges

func (m *EntitlementMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*EntitlementMutation) RemovedIDs

func (m *EntitlementMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*EntitlementMutation) ResetCancelled

func (m *EntitlementMutation) ResetCancelled()

ResetCancelled resets all changes to the "cancelled" field.

func (*EntitlementMutation) ResetCreatedAt

func (m *EntitlementMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*EntitlementMutation) ResetCreatedBy

func (m *EntitlementMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*EntitlementMutation) ResetDeletedAt

func (m *EntitlementMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*EntitlementMutation) ResetDeletedBy

func (m *EntitlementMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*EntitlementMutation) ResetEdge

func (m *EntitlementMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*EntitlementMutation) ResetExpires

func (m *EntitlementMutation) ResetExpires()

ResetExpires resets all changes to the "expires" field.

func (*EntitlementMutation) ResetExpiresAt

func (m *EntitlementMutation) ResetExpiresAt()

ResetExpiresAt resets all changes to the "expires_at" field.

func (*EntitlementMutation) ResetExternalCustomerID

func (m *EntitlementMutation) ResetExternalCustomerID()

ResetExternalCustomerID resets all changes to the "external_customer_id" field.

func (*EntitlementMutation) ResetExternalSubscriptionID

func (m *EntitlementMutation) ResetExternalSubscriptionID()

ResetExternalSubscriptionID resets all changes to the "external_subscription_id" field.

func (*EntitlementMutation) ResetField

func (m *EntitlementMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*EntitlementMutation) ResetOwner

func (m *EntitlementMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*EntitlementMutation) ResetTier

func (m *EntitlementMutation) ResetTier()

ResetTier resets all changes to the "tier" field.

func (*EntitlementMutation) ResetUpdatedAt

func (m *EntitlementMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*EntitlementMutation) ResetUpdatedBy

func (m *EntitlementMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*EntitlementMutation) SetCancelled

func (m *EntitlementMutation) SetCancelled(b bool)

SetCancelled sets the "cancelled" field.

func (*EntitlementMutation) SetCreatedAt

func (m *EntitlementMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*EntitlementMutation) SetCreatedBy

func (m *EntitlementMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*EntitlementMutation) SetDeletedAt

func (m *EntitlementMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*EntitlementMutation) SetDeletedBy

func (m *EntitlementMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*EntitlementMutation) SetExpires

func (m *EntitlementMutation) SetExpires(b bool)

SetExpires sets the "expires" field.

func (*EntitlementMutation) SetExpiresAt

func (m *EntitlementMutation) SetExpiresAt(t time.Time)

SetExpiresAt sets the "expires_at" field.

func (*EntitlementMutation) SetExternalCustomerID

func (m *EntitlementMutation) SetExternalCustomerID(s string)

SetExternalCustomerID sets the "external_customer_id" field.

func (*EntitlementMutation) SetExternalSubscriptionID

func (m *EntitlementMutation) SetExternalSubscriptionID(s string)

SetExternalSubscriptionID sets the "external_subscription_id" field.

func (*EntitlementMutation) SetField

func (m *EntitlementMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*EntitlementMutation) SetID

func (m *EntitlementMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Entitlement entities.

func (*EntitlementMutation) SetOp

func (m *EntitlementMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*EntitlementMutation) SetOwnerID

func (m *EntitlementMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*EntitlementMutation) SetTier

func (m *EntitlementMutation) SetTier(e entitlement.Tier)

SetTier sets the "tier" field.

func (*EntitlementMutation) SetUpdatedAt

func (m *EntitlementMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*EntitlementMutation) SetUpdatedBy

func (m *EntitlementMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*EntitlementMutation) Tier

func (m *EntitlementMutation) Tier() (r entitlement.Tier, exists bool)

Tier returns the value of the "tier" field in the mutation.

func (EntitlementMutation) Tx

func (m EntitlementMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*EntitlementMutation) Type

func (m *EntitlementMutation) Type() string

Type returns the node type of this mutation (Entitlement).

func (*EntitlementMutation) UpdatedAt

func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*EntitlementMutation) UpdatedBy

func (m *EntitlementMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*EntitlementMutation) UpdatedByCleared

func (m *EntitlementMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*EntitlementMutation) Where

func (m *EntitlementMutation) Where(ps ...predicate.Entitlement)

Where appends a list predicates to the EntitlementMutation builder.

func (*EntitlementMutation) WhereP

func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the EntitlementMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type EntitlementOrder

type EntitlementOrder struct {
	Direction OrderDirection         `json:"direction"`
	Field     *EntitlementOrderField `json:"field"`
}

EntitlementOrder defines the ordering of Entitlement.

type EntitlementOrderField

type EntitlementOrderField struct {
	// Value extracts the ordering value from the given Entitlement.
	Value func(*Entitlement) (ent.Value, error)
	// contains filtered or unexported fields
}

EntitlementOrderField defines the ordering field of Entitlement.

type EntitlementPaginateOption

type EntitlementPaginateOption func(*entitlementPager) error

EntitlementPaginateOption enables pagination customization.

func WithEntitlementFilter

func WithEntitlementFilter(filter func(*EntitlementQuery) (*EntitlementQuery, error)) EntitlementPaginateOption

WithEntitlementFilter configures pagination filter.

func WithEntitlementOrder

func WithEntitlementOrder(order *EntitlementOrder) EntitlementPaginateOption

WithEntitlementOrder configures pagination ordering.

type EntitlementQuery

type EntitlementQuery struct {
	// contains filtered or unexported fields
}

EntitlementQuery is the builder for querying Entitlement entities.

func (*EntitlementQuery) Aggregate

func (eq *EntitlementQuery) Aggregate(fns ...AggregateFunc) *EntitlementSelect

Aggregate returns a EntitlementSelect configured with the given aggregations.

func (*EntitlementQuery) All

func (eq *EntitlementQuery) All(ctx context.Context) ([]*Entitlement, error)

All executes the query and returns a list of Entitlements.

func (*EntitlementQuery) AllX

func (eq *EntitlementQuery) AllX(ctx context.Context) []*Entitlement

AllX is like All, but panics if an error occurs.

func (*EntitlementQuery) Clone

func (eq *EntitlementQuery) Clone() *EntitlementQuery

Clone returns a duplicate of the EntitlementQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*EntitlementQuery) CollectFields

func (e *EntitlementQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*EntitlementQuery) Count

func (eq *EntitlementQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*EntitlementQuery) CountX

func (eq *EntitlementQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*EntitlementQuery) Exist

func (eq *EntitlementQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*EntitlementQuery) ExistX

func (eq *EntitlementQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*EntitlementQuery) Filter

func (eq *EntitlementQuery) Filter() *EntitlementFilter

Filter returns a Filter implementation to apply filters on the EntitlementQuery builder.

func (*EntitlementQuery) First

func (eq *EntitlementQuery) First(ctx context.Context) (*Entitlement, error)

First returns the first Entitlement entity from the query. Returns a *NotFoundError when no Entitlement was found.

func (*EntitlementQuery) FirstID

func (eq *EntitlementQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first Entitlement ID from the query. Returns a *NotFoundError when no Entitlement ID was found.

func (*EntitlementQuery) FirstIDX

func (eq *EntitlementQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*EntitlementQuery) FirstX

func (eq *EntitlementQuery) FirstX(ctx context.Context) *Entitlement

FirstX is like First, but panics if an error occurs.

func (*EntitlementQuery) GroupBy

func (eq *EntitlementQuery) GroupBy(field string, fields ...string) *EntitlementGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Entitlement.Query().
	GroupBy(entitlement.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*EntitlementQuery) IDs

func (eq *EntitlementQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of Entitlement IDs.

func (*EntitlementQuery) IDsX

func (eq *EntitlementQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*EntitlementQuery) Limit

func (eq *EntitlementQuery) Limit(limit int) *EntitlementQuery

Limit the number of records to be returned by this query.

func (*EntitlementQuery) Offset

func (eq *EntitlementQuery) Offset(offset int) *EntitlementQuery

Offset to start from.

func (*EntitlementQuery) Only

func (eq *EntitlementQuery) Only(ctx context.Context) (*Entitlement, error)

Only returns a single Entitlement entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Entitlement entity is found. Returns a *NotFoundError when no Entitlement entities are found.

func (*EntitlementQuery) OnlyID

func (eq *EntitlementQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only Entitlement ID in the query. Returns a *NotSingularError when more than one Entitlement ID is found. Returns a *NotFoundError when no entities are found.

func (*EntitlementQuery) OnlyIDX

func (eq *EntitlementQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*EntitlementQuery) OnlyX

func (eq *EntitlementQuery) OnlyX(ctx context.Context) *Entitlement

OnlyX is like Only, but panics if an error occurs.

func (*EntitlementQuery) Order

Order specifies how the records should be ordered.

func (*EntitlementQuery) Paginate

func (e *EntitlementQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...EntitlementPaginateOption,
) (*EntitlementConnection, error)

Paginate executes the query and returns a relay based cursor connection to Entitlement.

func (*EntitlementQuery) QueryOwner

func (eq *EntitlementQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*EntitlementQuery) Select

func (eq *EntitlementQuery) Select(fields ...string) *EntitlementSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Entitlement.Query().
	Select(entitlement.FieldCreatedAt).
	Scan(ctx, &v)

func (*EntitlementQuery) Unique

func (eq *EntitlementQuery) Unique(unique bool) *EntitlementQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*EntitlementQuery) Where

Where adds a new predicate for the EntitlementQuery builder.

func (*EntitlementQuery) WithOwner

func (eq *EntitlementQuery) WithOwner(opts ...func(*OrganizationQuery)) *EntitlementQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type EntitlementSelect

type EntitlementSelect struct {
	*EntitlementQuery
	// contains filtered or unexported fields
}

EntitlementSelect is the builder for selecting fields of Entitlement entities.

func (*EntitlementSelect) Aggregate

func (es *EntitlementSelect) Aggregate(fns ...AggregateFunc) *EntitlementSelect

Aggregate adds the given aggregation functions to the selector query.

func (*EntitlementSelect) Bool

func (s *EntitlementSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) BoolX

func (s *EntitlementSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*EntitlementSelect) Bools

func (s *EntitlementSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) BoolsX

func (s *EntitlementSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*EntitlementSelect) Float64

func (s *EntitlementSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) Float64X

func (s *EntitlementSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*EntitlementSelect) Float64s

func (s *EntitlementSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) Float64sX

func (s *EntitlementSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*EntitlementSelect) Int

func (s *EntitlementSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) IntX

func (s *EntitlementSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*EntitlementSelect) Ints

func (s *EntitlementSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) IntsX

func (s *EntitlementSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*EntitlementSelect) Scan

func (es *EntitlementSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*EntitlementSelect) ScanX

func (s *EntitlementSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*EntitlementSelect) String

func (s *EntitlementSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) StringX

func (s *EntitlementSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*EntitlementSelect) Strings

func (s *EntitlementSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*EntitlementSelect) StringsX

func (s *EntitlementSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type EntitlementUpdate

type EntitlementUpdate struct {
	// contains filtered or unexported fields
}

EntitlementUpdate is the builder for updating Entitlement entities.

func (*EntitlementUpdate) ClearDeletedAt

func (eu *EntitlementUpdate) ClearDeletedAt() *EntitlementUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*EntitlementUpdate) ClearDeletedBy

func (eu *EntitlementUpdate) ClearDeletedBy() *EntitlementUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*EntitlementUpdate) ClearExpiresAt

func (eu *EntitlementUpdate) ClearExpiresAt() *EntitlementUpdate

ClearExpiresAt clears the value of the "expires_at" field.

func (*EntitlementUpdate) ClearExternalCustomerID

func (eu *EntitlementUpdate) ClearExternalCustomerID() *EntitlementUpdate

ClearExternalCustomerID clears the value of the "external_customer_id" field.

func (*EntitlementUpdate) ClearExternalSubscriptionID

func (eu *EntitlementUpdate) ClearExternalSubscriptionID() *EntitlementUpdate

ClearExternalSubscriptionID clears the value of the "external_subscription_id" field.

func (*EntitlementUpdate) ClearOwner

func (eu *EntitlementUpdate) ClearOwner() *EntitlementUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*EntitlementUpdate) ClearUpdatedBy

func (eu *EntitlementUpdate) ClearUpdatedBy() *EntitlementUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*EntitlementUpdate) Exec

func (eu *EntitlementUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*EntitlementUpdate) ExecX

func (eu *EntitlementUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EntitlementUpdate) Mutation

func (eu *EntitlementUpdate) Mutation() *EntitlementMutation

Mutation returns the EntitlementMutation object of the builder.

func (*EntitlementUpdate) Save

func (eu *EntitlementUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*EntitlementUpdate) SaveX

func (eu *EntitlementUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*EntitlementUpdate) SetCancelled

func (eu *EntitlementUpdate) SetCancelled(b bool) *EntitlementUpdate

SetCancelled sets the "cancelled" field.

func (*EntitlementUpdate) SetDeletedAt

func (eu *EntitlementUpdate) SetDeletedAt(t time.Time) *EntitlementUpdate

SetDeletedAt sets the "deleted_at" field.

func (*EntitlementUpdate) SetDeletedBy

func (eu *EntitlementUpdate) SetDeletedBy(s string) *EntitlementUpdate

SetDeletedBy sets the "deleted_by" field.

func (*EntitlementUpdate) SetExpires

func (eu *EntitlementUpdate) SetExpires(b bool) *EntitlementUpdate

SetExpires sets the "expires" field.

func (*EntitlementUpdate) SetExpiresAt

func (eu *EntitlementUpdate) SetExpiresAt(t time.Time) *EntitlementUpdate

SetExpiresAt sets the "expires_at" field.

func (*EntitlementUpdate) SetExternalCustomerID

func (eu *EntitlementUpdate) SetExternalCustomerID(s string) *EntitlementUpdate

SetExternalCustomerID sets the "external_customer_id" field.

func (*EntitlementUpdate) SetExternalSubscriptionID

func (eu *EntitlementUpdate) SetExternalSubscriptionID(s string) *EntitlementUpdate

SetExternalSubscriptionID sets the "external_subscription_id" field.

func (*EntitlementUpdate) SetInput

SetInput applies the change-set in the UpdateEntitlementInput on the EntitlementUpdate builder.

func (*EntitlementUpdate) SetNillableCancelled

func (eu *EntitlementUpdate) SetNillableCancelled(b *bool) *EntitlementUpdate

SetNillableCancelled sets the "cancelled" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableDeletedAt

func (eu *EntitlementUpdate) SetNillableDeletedAt(t *time.Time) *EntitlementUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableDeletedBy

func (eu *EntitlementUpdate) SetNillableDeletedBy(s *string) *EntitlementUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableExpires

func (eu *EntitlementUpdate) SetNillableExpires(b *bool) *EntitlementUpdate

SetNillableExpires sets the "expires" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableExpiresAt

func (eu *EntitlementUpdate) SetNillableExpiresAt(t *time.Time) *EntitlementUpdate

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableExternalCustomerID

func (eu *EntitlementUpdate) SetNillableExternalCustomerID(s *string) *EntitlementUpdate

SetNillableExternalCustomerID sets the "external_customer_id" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableExternalSubscriptionID

func (eu *EntitlementUpdate) SetNillableExternalSubscriptionID(s *string) *EntitlementUpdate

SetNillableExternalSubscriptionID sets the "external_subscription_id" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableOwnerID

func (eu *EntitlementUpdate) SetNillableOwnerID(id *string) *EntitlementUpdate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*EntitlementUpdate) SetNillableTier

func (eu *EntitlementUpdate) SetNillableTier(e *entitlement.Tier) *EntitlementUpdate

SetNillableTier sets the "tier" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableUpdatedBy

func (eu *EntitlementUpdate) SetNillableUpdatedBy(s *string) *EntitlementUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*EntitlementUpdate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*EntitlementUpdate) SetOwnerID

func (eu *EntitlementUpdate) SetOwnerID(id string) *EntitlementUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*EntitlementUpdate) SetTier

SetTier sets the "tier" field.

func (*EntitlementUpdate) SetUpdatedAt

func (eu *EntitlementUpdate) SetUpdatedAt(t time.Time) *EntitlementUpdate

SetUpdatedAt sets the "updated_at" field.

func (*EntitlementUpdate) SetUpdatedBy

func (eu *EntitlementUpdate) SetUpdatedBy(s string) *EntitlementUpdate

SetUpdatedBy sets the "updated_by" field.

func (*EntitlementUpdate) Where

Where appends a list predicates to the EntitlementUpdate builder.

type EntitlementUpdateOne

type EntitlementUpdateOne struct {
	// contains filtered or unexported fields
}

EntitlementUpdateOne is the builder for updating a single Entitlement entity.

func (*EntitlementUpdateOne) ClearDeletedAt

func (euo *EntitlementUpdateOne) ClearDeletedAt() *EntitlementUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*EntitlementUpdateOne) ClearDeletedBy

func (euo *EntitlementUpdateOne) ClearDeletedBy() *EntitlementUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*EntitlementUpdateOne) ClearExpiresAt

func (euo *EntitlementUpdateOne) ClearExpiresAt() *EntitlementUpdateOne

ClearExpiresAt clears the value of the "expires_at" field.

func (*EntitlementUpdateOne) ClearExternalCustomerID

func (euo *EntitlementUpdateOne) ClearExternalCustomerID() *EntitlementUpdateOne

ClearExternalCustomerID clears the value of the "external_customer_id" field.

func (*EntitlementUpdateOne) ClearExternalSubscriptionID

func (euo *EntitlementUpdateOne) ClearExternalSubscriptionID() *EntitlementUpdateOne

ClearExternalSubscriptionID clears the value of the "external_subscription_id" field.

func (*EntitlementUpdateOne) ClearOwner

func (euo *EntitlementUpdateOne) ClearOwner() *EntitlementUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*EntitlementUpdateOne) ClearUpdatedBy

func (euo *EntitlementUpdateOne) ClearUpdatedBy() *EntitlementUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*EntitlementUpdateOne) Exec

func (euo *EntitlementUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*EntitlementUpdateOne) ExecX

func (euo *EntitlementUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EntitlementUpdateOne) Mutation

func (euo *EntitlementUpdateOne) Mutation() *EntitlementMutation

Mutation returns the EntitlementMutation object of the builder.

func (*EntitlementUpdateOne) Save

Save executes the query and returns the updated Entitlement entity.

func (*EntitlementUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*EntitlementUpdateOne) Select

func (euo *EntitlementUpdateOne) Select(field string, fields ...string) *EntitlementUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*EntitlementUpdateOne) SetCancelled

func (euo *EntitlementUpdateOne) SetCancelled(b bool) *EntitlementUpdateOne

SetCancelled sets the "cancelled" field.

func (*EntitlementUpdateOne) SetDeletedAt

func (euo *EntitlementUpdateOne) SetDeletedAt(t time.Time) *EntitlementUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*EntitlementUpdateOne) SetDeletedBy

func (euo *EntitlementUpdateOne) SetDeletedBy(s string) *EntitlementUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*EntitlementUpdateOne) SetExpires

func (euo *EntitlementUpdateOne) SetExpires(b bool) *EntitlementUpdateOne

SetExpires sets the "expires" field.

func (*EntitlementUpdateOne) SetExpiresAt

func (euo *EntitlementUpdateOne) SetExpiresAt(t time.Time) *EntitlementUpdateOne

SetExpiresAt sets the "expires_at" field.

func (*EntitlementUpdateOne) SetExternalCustomerID

func (euo *EntitlementUpdateOne) SetExternalCustomerID(s string) *EntitlementUpdateOne

SetExternalCustomerID sets the "external_customer_id" field.

func (*EntitlementUpdateOne) SetExternalSubscriptionID

func (euo *EntitlementUpdateOne) SetExternalSubscriptionID(s string) *EntitlementUpdateOne

SetExternalSubscriptionID sets the "external_subscription_id" field.

func (*EntitlementUpdateOne) SetInput

SetInput applies the change-set in the UpdateEntitlementInput on the EntitlementUpdateOne builder.

func (*EntitlementUpdateOne) SetNillableCancelled

func (euo *EntitlementUpdateOne) SetNillableCancelled(b *bool) *EntitlementUpdateOne

SetNillableCancelled sets the "cancelled" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableDeletedAt

func (euo *EntitlementUpdateOne) SetNillableDeletedAt(t *time.Time) *EntitlementUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableDeletedBy

func (euo *EntitlementUpdateOne) SetNillableDeletedBy(s *string) *EntitlementUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableExpires

func (euo *EntitlementUpdateOne) SetNillableExpires(b *bool) *EntitlementUpdateOne

SetNillableExpires sets the "expires" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableExpiresAt

func (euo *EntitlementUpdateOne) SetNillableExpiresAt(t *time.Time) *EntitlementUpdateOne

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableExternalCustomerID

func (euo *EntitlementUpdateOne) SetNillableExternalCustomerID(s *string) *EntitlementUpdateOne

SetNillableExternalCustomerID sets the "external_customer_id" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableExternalSubscriptionID

func (euo *EntitlementUpdateOne) SetNillableExternalSubscriptionID(s *string) *EntitlementUpdateOne

SetNillableExternalSubscriptionID sets the "external_subscription_id" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableOwnerID

func (euo *EntitlementUpdateOne) SetNillableOwnerID(id *string) *EntitlementUpdateOne

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableTier

func (euo *EntitlementUpdateOne) SetNillableTier(e *entitlement.Tier) *EntitlementUpdateOne

SetNillableTier sets the "tier" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableUpdatedBy

func (euo *EntitlementUpdateOne) SetNillableUpdatedBy(s *string) *EntitlementUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*EntitlementUpdateOne) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*EntitlementUpdateOne) SetOwnerID

func (euo *EntitlementUpdateOne) SetOwnerID(id string) *EntitlementUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*EntitlementUpdateOne) SetTier

SetTier sets the "tier" field.

func (*EntitlementUpdateOne) SetUpdatedAt

func (euo *EntitlementUpdateOne) SetUpdatedAt(t time.Time) *EntitlementUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*EntitlementUpdateOne) SetUpdatedBy

func (euo *EntitlementUpdateOne) SetUpdatedBy(s string) *EntitlementUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*EntitlementUpdateOne) Where

Where appends a list predicates to the EntitlementUpdate builder.

type EntitlementWhereInput

type EntitlementWhereInput struct {
	Predicates []predicate.Entitlement  `json:"-"`
	Not        *EntitlementWhereInput   `json:"not,omitempty"`
	Or         []*EntitlementWhereInput `json:"or,omitempty"`
	And        []*EntitlementWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "tier" field predicates.
	Tier      *entitlement.Tier  `json:"tier,omitempty"`
	TierNEQ   *entitlement.Tier  `json:"tierNEQ,omitempty"`
	TierIn    []entitlement.Tier `json:"tierIn,omitempty"`
	TierNotIn []entitlement.Tier `json:"tierNotIn,omitempty"`

	// "external_customer_id" field predicates.
	ExternalCustomerID             *string  `json:"externalCustomerID,omitempty"`
	ExternalCustomerIDNEQ          *string  `json:"externalCustomerIDNEQ,omitempty"`
	ExternalCustomerIDIn           []string `json:"externalCustomerIDIn,omitempty"`
	ExternalCustomerIDNotIn        []string `json:"externalCustomerIDNotIn,omitempty"`
	ExternalCustomerIDGT           *string  `json:"externalCustomerIDGT,omitempty"`
	ExternalCustomerIDGTE          *string  `json:"externalCustomerIDGTE,omitempty"`
	ExternalCustomerIDLT           *string  `json:"externalCustomerIDLT,omitempty"`
	ExternalCustomerIDLTE          *string  `json:"externalCustomerIDLTE,omitempty"`
	ExternalCustomerIDContains     *string  `json:"externalCustomerIDContains,omitempty"`
	ExternalCustomerIDHasPrefix    *string  `json:"externalCustomerIDHasPrefix,omitempty"`
	ExternalCustomerIDHasSuffix    *string  `json:"externalCustomerIDHasSuffix,omitempty"`
	ExternalCustomerIDIsNil        bool     `json:"externalCustomerIDIsNil,omitempty"`
	ExternalCustomerIDNotNil       bool     `json:"externalCustomerIDNotNil,omitempty"`
	ExternalCustomerIDEqualFold    *string  `json:"externalCustomerIDEqualFold,omitempty"`
	ExternalCustomerIDContainsFold *string  `json:"externalCustomerIDContainsFold,omitempty"`

	// "external_subscription_id" field predicates.
	ExternalSubscriptionID             *string  `json:"externalSubscriptionID,omitempty"`
	ExternalSubscriptionIDNEQ          *string  `json:"externalSubscriptionIDNEQ,omitempty"`
	ExternalSubscriptionIDIn           []string `json:"externalSubscriptionIDIn,omitempty"`
	ExternalSubscriptionIDNotIn        []string `json:"externalSubscriptionIDNotIn,omitempty"`
	ExternalSubscriptionIDGT           *string  `json:"externalSubscriptionIDGT,omitempty"`
	ExternalSubscriptionIDGTE          *string  `json:"externalSubscriptionIDGTE,omitempty"`
	ExternalSubscriptionIDLT           *string  `json:"externalSubscriptionIDLT,omitempty"`
	ExternalSubscriptionIDLTE          *string  `json:"externalSubscriptionIDLTE,omitempty"`
	ExternalSubscriptionIDContains     *string  `json:"externalSubscriptionIDContains,omitempty"`
	ExternalSubscriptionIDHasPrefix    *string  `json:"externalSubscriptionIDHasPrefix,omitempty"`
	ExternalSubscriptionIDHasSuffix    *string  `json:"externalSubscriptionIDHasSuffix,omitempty"`
	ExternalSubscriptionIDIsNil        bool     `json:"externalSubscriptionIDIsNil,omitempty"`
	ExternalSubscriptionIDNotNil       bool     `json:"externalSubscriptionIDNotNil,omitempty"`
	ExternalSubscriptionIDEqualFold    *string  `json:"externalSubscriptionIDEqualFold,omitempty"`
	ExternalSubscriptionIDContainsFold *string  `json:"externalSubscriptionIDContainsFold,omitempty"`

	// "expires" field predicates.
	Expires    *bool `json:"expires,omitempty"`
	ExpiresNEQ *bool `json:"expiresNEQ,omitempty"`

	// "expires_at" field predicates.
	ExpiresAt       *time.Time  `json:"expiresAt,omitempty"`
	ExpiresAtNEQ    *time.Time  `json:"expiresAtNEQ,omitempty"`
	ExpiresAtIn     []time.Time `json:"expiresAtIn,omitempty"`
	ExpiresAtNotIn  []time.Time `json:"expiresAtNotIn,omitempty"`
	ExpiresAtGT     *time.Time  `json:"expiresAtGT,omitempty"`
	ExpiresAtGTE    *time.Time  `json:"expiresAtGTE,omitempty"`
	ExpiresAtLT     *time.Time  `json:"expiresAtLT,omitempty"`
	ExpiresAtLTE    *time.Time  `json:"expiresAtLTE,omitempty"`
	ExpiresAtIsNil  bool        `json:"expiresAtIsNil,omitempty"`
	ExpiresAtNotNil bool        `json:"expiresAtNotNil,omitempty"`

	// "cancelled" field predicates.
	Cancelled    *bool `json:"cancelled,omitempty"`
	CancelledNEQ *bool `json:"cancelledNEQ,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`
}

EntitlementWhereInput represents a where input for filtering Entitlement queries.

func (*EntitlementWhereInput) AddPredicates

func (i *EntitlementWhereInput) AddPredicates(predicates ...predicate.Entitlement)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*EntitlementWhereInput) Filter

Filter applies the EntitlementWhereInput filter on the EntitlementQuery builder.

func (*EntitlementWhereInput) P

P returns a predicate for filtering entitlements. An error is returned if the input is empty or invalid.

type Entitlements

type Entitlements []*Entitlement

Entitlements is a parsable slice of Entitlement.

type Group

type Group struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// the name of the group - must be unique within the organization
	Name string `json:"name,omitempty"`
	// the groups description
	Description string `json:"description,omitempty"`
	// the URL to an auto generated gravatar image for the group
	GravatarLogoURL string `json:"gravatar_logo_url,omitempty"`
	// the URL to an image uploaded by the customer for the groups avatar image
	LogoURL string `json:"logo_url,omitempty"`
	// The group's displayed 'friendly' name
	DisplayName string `json:"display_name,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the GroupQuery when eager-loading is set.
	Edges GroupEdges `json:"edges"`
	// contains filtered or unexported fields
}

Group is the model entity for the Group schema.

func (*Group) IsNode

func (n *Group) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*Group) NamedUsers

func (gr *Group) NamedUsers(name string) ([]*User, error)

NamedUsers returns the Users named value or an error if the edge was not loaded in eager-loading with this name.

func (*Group) Owner

func (gr *Group) Owner(ctx context.Context) (*Organization, error)

func (*Group) QueryOwner

func (gr *Group) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Group entity.

func (*Group) QuerySetting

func (gr *Group) QuerySetting() *GroupSettingQuery

QuerySetting queries the "setting" edge of the Group entity.

func (*Group) QueryUsers

func (gr *Group) QueryUsers() *UserQuery

QueryUsers queries the "users" edge of the Group entity.

func (*Group) Setting

func (gr *Group) Setting(ctx context.Context) (*GroupSetting, error)

func (*Group) String

func (gr *Group) String() string

String implements the fmt.Stringer.

func (*Group) ToEdge

func (gr *Group) ToEdge(order *GroupOrder) *GroupEdge

ToEdge converts Group into GroupEdge.

func (*Group) Unwrap

func (gr *Group) Unwrap() *Group

Unwrap unwraps the Group entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Group) Update

func (gr *Group) Update() *GroupUpdateOne

Update returns a builder for updating this Group. Note that you need to call Group.Unwrap() before calling this method if this Group was returned from a transaction, and the transaction was committed or rolled back.

func (*Group) Users

func (gr *Group) Users(ctx context.Context) (result []*User, err error)

func (*Group) Value

func (gr *Group) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Group. This includes values selected through modifiers, order, etc.

type GroupClient

type GroupClient struct {
	// contains filtered or unexported fields
}

GroupClient is a client for the Group schema.

func NewGroupClient

func NewGroupClient(c config) *GroupClient

NewGroupClient returns a client for the Group from the given config.

func (*GroupClient) Create

func (c *GroupClient) Create() *GroupCreate

Create returns a builder for creating a Group entity.

func (*GroupClient) CreateBulk

func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk

CreateBulk returns a builder for creating a bulk of Group entities.

func (*GroupClient) Delete

func (c *GroupClient) Delete() *GroupDelete

Delete returns a delete builder for Group.

func (*GroupClient) DeleteOne

func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*GroupClient) DeleteOneID

func (c *GroupClient) DeleteOneID(id string) *GroupDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*GroupClient) Get

func (c *GroupClient) Get(ctx context.Context, id string) (*Group, error)

Get returns a Group entity by its id.

func (*GroupClient) GetX

func (c *GroupClient) GetX(ctx context.Context, id string) *Group

GetX is like Get, but panics if an error occurs.

func (*GroupClient) Hooks

func (c *GroupClient) Hooks() []Hook

Hooks returns the client hooks.

func (*GroupClient) Intercept

func (c *GroupClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`.

func (*GroupClient) Interceptors

func (c *GroupClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*GroupClient) MapCreateBulk

func (c *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*GroupClient) Query

func (c *GroupClient) Query() *GroupQuery

Query returns a query builder for Group.

func (*GroupClient) QueryOwner

func (c *GroupClient) QueryOwner(gr *Group) *OrganizationQuery

QueryOwner queries the owner edge of a Group.

func (*GroupClient) QuerySetting

func (c *GroupClient) QuerySetting(gr *Group) *GroupSettingQuery

QuerySetting queries the setting edge of a Group.

func (*GroupClient) QueryUsers

func (c *GroupClient) QueryUsers(gr *Group) *UserQuery

QueryUsers queries the users edge of a Group.

func (*GroupClient) Update

func (c *GroupClient) Update() *GroupUpdate

Update returns an update builder for Group.

func (*GroupClient) UpdateOne

func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne

UpdateOne returns an update builder for the given entity.

func (*GroupClient) UpdateOneID

func (c *GroupClient) UpdateOneID(id string) *GroupUpdateOne

UpdateOneID returns an update builder for the given id.

func (*GroupClient) Use

func (c *GroupClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `group.Hooks(f(g(h())))`.

type GroupConnection

type GroupConnection struct {
	Edges      []*GroupEdge `json:"edges"`
	PageInfo   PageInfo     `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

GroupConnection is the connection containing edges to Group.

type GroupCreate

type GroupCreate struct {
	// contains filtered or unexported fields
}

GroupCreate is the builder for creating a Group entity.

func (*GroupCreate) AddUserIDs

func (gc *GroupCreate) AddUserIDs(ids ...string) *GroupCreate

AddUserIDs adds the "users" edge to the User entity by IDs.

func (*GroupCreate) AddUsers

func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate

AddUsers adds the "users" edges to the User entity.

func (*GroupCreate) Exec

func (gc *GroupCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupCreate) ExecX

func (gc *GroupCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupCreate) Mutation

func (gc *GroupCreate) Mutation() *GroupMutation

Mutation returns the GroupMutation object of the builder.

func (*GroupCreate) Save

func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)

Save creates the Group in the database.

func (*GroupCreate) SaveX

func (gc *GroupCreate) SaveX(ctx context.Context) *Group

SaveX calls Save and panics if Save returns an error.

func (*GroupCreate) SetCreatedAt

func (gc *GroupCreate) SetCreatedAt(t time.Time) *GroupCreate

SetCreatedAt sets the "created_at" field.

func (*GroupCreate) SetCreatedBy

func (gc *GroupCreate) SetCreatedBy(s string) *GroupCreate

SetCreatedBy sets the "created_by" field.

func (*GroupCreate) SetDeletedAt

func (gc *GroupCreate) SetDeletedAt(t time.Time) *GroupCreate

SetDeletedAt sets the "deleted_at" field.

func (*GroupCreate) SetDeletedBy

func (gc *GroupCreate) SetDeletedBy(s string) *GroupCreate

SetDeletedBy sets the "deleted_by" field.

func (*GroupCreate) SetDescription

func (gc *GroupCreate) SetDescription(s string) *GroupCreate

SetDescription sets the "description" field.

func (*GroupCreate) SetDisplayName

func (gc *GroupCreate) SetDisplayName(s string) *GroupCreate

SetDisplayName sets the "display_name" field.

func (*GroupCreate) SetGravatarLogoURL

func (gc *GroupCreate) SetGravatarLogoURL(s string) *GroupCreate

SetGravatarLogoURL sets the "gravatar_logo_url" field.

func (*GroupCreate) SetID

func (gc *GroupCreate) SetID(s string) *GroupCreate

SetID sets the "id" field.

func (*GroupCreate) SetInput

func (c *GroupCreate) SetInput(i CreateGroupInput) *GroupCreate

SetInput applies the change-set in the CreateGroupInput on the GroupCreate builder.

func (*GroupCreate) SetLogoURL

func (gc *GroupCreate) SetLogoURL(s string) *GroupCreate

SetLogoURL sets the "logo_url" field.

func (*GroupCreate) SetName

func (gc *GroupCreate) SetName(s string) *GroupCreate

SetName sets the "name" field.

func (*GroupCreate) SetNillableCreatedAt

func (gc *GroupCreate) SetNillableCreatedAt(t *time.Time) *GroupCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*GroupCreate) SetNillableCreatedBy

func (gc *GroupCreate) SetNillableCreatedBy(s *string) *GroupCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*GroupCreate) SetNillableDeletedAt

func (gc *GroupCreate) SetNillableDeletedAt(t *time.Time) *GroupCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*GroupCreate) SetNillableDeletedBy

func (gc *GroupCreate) SetNillableDeletedBy(s *string) *GroupCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*GroupCreate) SetNillableDescription

func (gc *GroupCreate) SetNillableDescription(s *string) *GroupCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*GroupCreate) SetNillableDisplayName

func (gc *GroupCreate) SetNillableDisplayName(s *string) *GroupCreate

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*GroupCreate) SetNillableGravatarLogoURL

func (gc *GroupCreate) SetNillableGravatarLogoURL(s *string) *GroupCreate

SetNillableGravatarLogoURL sets the "gravatar_logo_url" field if the given value is not nil.

func (*GroupCreate) SetNillableID

func (gc *GroupCreate) SetNillableID(s *string) *GroupCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*GroupCreate) SetNillableLogoURL

func (gc *GroupCreate) SetNillableLogoURL(s *string) *GroupCreate

SetNillableLogoURL sets the "logo_url" field if the given value is not nil.

func (*GroupCreate) SetNillableUpdatedAt

func (gc *GroupCreate) SetNillableUpdatedAt(t *time.Time) *GroupCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*GroupCreate) SetNillableUpdatedBy

func (gc *GroupCreate) SetNillableUpdatedBy(s *string) *GroupCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*GroupCreate) SetOwner

func (gc *GroupCreate) SetOwner(o *Organization) *GroupCreate

SetOwner sets the "owner" edge to the Organization entity.

func (*GroupCreate) SetOwnerID

func (gc *GroupCreate) SetOwnerID(id string) *GroupCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*GroupCreate) SetSetting

func (gc *GroupCreate) SetSetting(g *GroupSetting) *GroupCreate

SetSetting sets the "setting" edge to the GroupSetting entity.

func (*GroupCreate) SetSettingID

func (gc *GroupCreate) SetSettingID(id string) *GroupCreate

SetSettingID sets the "setting" edge to the GroupSetting entity by ID.

func (*GroupCreate) SetUpdatedAt

func (gc *GroupCreate) SetUpdatedAt(t time.Time) *GroupCreate

SetUpdatedAt sets the "updated_at" field.

func (*GroupCreate) SetUpdatedBy

func (gc *GroupCreate) SetUpdatedBy(s string) *GroupCreate

SetUpdatedBy sets the "updated_by" field.

type GroupCreateBulk

type GroupCreateBulk struct {
	// contains filtered or unexported fields
}

GroupCreateBulk is the builder for creating many Group entities in bulk.

func (*GroupCreateBulk) Exec

func (gcb *GroupCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupCreateBulk) ExecX

func (gcb *GroupCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupCreateBulk) Save

func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error)

Save creates the Group entities in the database.

func (*GroupCreateBulk) SaveX

func (gcb *GroupCreateBulk) SaveX(ctx context.Context) []*Group

SaveX is like Save, but panics if an error occurs.

type GroupDelete

type GroupDelete struct {
	// contains filtered or unexported fields
}

GroupDelete is the builder for deleting a Group entity.

func (*GroupDelete) Exec

func (gd *GroupDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*GroupDelete) ExecX

func (gd *GroupDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*GroupDelete) Where

func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete

Where appends a list predicates to the GroupDelete builder.

type GroupDeleteOne

type GroupDeleteOne struct {
	// contains filtered or unexported fields
}

GroupDeleteOne is the builder for deleting a single Group entity.

func (*GroupDeleteOne) Exec

func (gdo *GroupDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*GroupDeleteOne) ExecX

func (gdo *GroupDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupDeleteOne) Where

func (gdo *GroupDeleteOne) Where(ps ...predicate.Group) *GroupDeleteOne

Where appends a list predicates to the GroupDelete builder.

type GroupEdge

type GroupEdge struct {
	Node   *Group `json:"node"`
	Cursor Cursor `json:"cursor"`
}

GroupEdge is the edge representation of Group.

type GroupEdges

type GroupEdges struct {
	// Setting holds the value of the setting edge.
	Setting *GroupSetting `json:"setting,omitempty"`
	// Users holds the value of the users edge.
	Users []*User `json:"users,omitempty"`
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

GroupEdges holds the relations/edges for other nodes in the graph.

func (GroupEdges) OwnerOrErr

func (e GroupEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (GroupEdges) SettingOrErr

func (e GroupEdges) SettingOrErr() (*GroupSetting, error)

SettingOrErr returns the Setting value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (GroupEdges) UsersOrErr

func (e GroupEdges) UsersOrErr() ([]*User, error)

UsersOrErr returns the Users value or an error if the edge was not loaded in eager-loading.

type GroupFilter

type GroupFilter struct {
	// contains filtered or unexported fields
}

GroupFilter provides a generic filtering capability at runtime for GroupQuery.

func (*GroupFilter) Where

func (f *GroupFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*GroupFilter) WhereCreatedAt

func (f *GroupFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*GroupFilter) WhereCreatedBy

func (f *GroupFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*GroupFilter) WhereDeletedAt

func (f *GroupFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*GroupFilter) WhereDeletedBy

func (f *GroupFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*GroupFilter) WhereDescription

func (f *GroupFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*GroupFilter) WhereDisplayName

func (f *GroupFilter) WhereDisplayName(p entql.StringP)

WhereDisplayName applies the entql string predicate on the display_name field.

func (*GroupFilter) WhereGravatarLogoURL

func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP)

WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field.

func (*GroupFilter) WhereHasOwner

func (f *GroupFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*GroupFilter) WhereHasOwnerWith

func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*GroupFilter) WhereHasSetting

func (f *GroupFilter) WhereHasSetting()

WhereHasSetting applies a predicate to check if query has an edge setting.

func (*GroupFilter) WhereHasSettingWith

func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting)

WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates).

func (*GroupFilter) WhereHasUsers

func (f *GroupFilter) WhereHasUsers()

WhereHasUsers applies a predicate to check if query has an edge users.

func (*GroupFilter) WhereHasUsersWith

func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User)

WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates).

func (*GroupFilter) WhereID

func (f *GroupFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*GroupFilter) WhereLogoURL

func (f *GroupFilter) WhereLogoURL(p entql.StringP)

WhereLogoURL applies the entql string predicate on the logo_url field.

func (*GroupFilter) WhereName

func (f *GroupFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*GroupFilter) WhereUpdatedAt

func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*GroupFilter) WhereUpdatedBy

func (f *GroupFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type GroupGroupBy

type GroupGroupBy struct {
	// contains filtered or unexported fields
}

GroupGroupBy is the group-by builder for Group entities.

func (*GroupGroupBy) Aggregate

func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*GroupGroupBy) Bool

func (s *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) BoolX

func (s *GroupGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*GroupGroupBy) Bools

func (s *GroupGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) BoolsX

func (s *GroupGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*GroupGroupBy) Float64

func (s *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) Float64X

func (s *GroupGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*GroupGroupBy) Float64s

func (s *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) Float64sX

func (s *GroupGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*GroupGroupBy) Int

func (s *GroupGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) IntX

func (s *GroupGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*GroupGroupBy) Ints

func (s *GroupGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) IntsX

func (s *GroupGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*GroupGroupBy) Scan

func (ggb *GroupGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*GroupGroupBy) ScanX

func (s *GroupGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*GroupGroupBy) String

func (s *GroupGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) StringX

func (s *GroupGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*GroupGroupBy) Strings

func (s *GroupGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*GroupGroupBy) StringsX

func (s *GroupGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type GroupMutation

type GroupMutation struct {
	// contains filtered or unexported fields
}

GroupMutation represents an operation that mutates the Group nodes in the graph.

func (*GroupMutation) AddField

func (m *GroupMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*GroupMutation) AddUserIDs

func (m *GroupMutation) AddUserIDs(ids ...string)

AddUserIDs adds the "users" edge to the User entity by ids.

func (*GroupMutation) AddedEdges

func (m *GroupMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*GroupMutation) AddedField

func (m *GroupMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*GroupMutation) AddedFields

func (m *GroupMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*GroupMutation) AddedIDs

func (m *GroupMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*GroupMutation) ClearCreatedBy

func (m *GroupMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*GroupMutation) ClearDeletedAt

func (m *GroupMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*GroupMutation) ClearDeletedBy

func (m *GroupMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*GroupMutation) ClearDescription

func (m *GroupMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*GroupMutation) ClearEdge

func (m *GroupMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*GroupMutation) ClearField

func (m *GroupMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*GroupMutation) ClearGravatarLogoURL

func (m *GroupMutation) ClearGravatarLogoURL()

ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field.

func (*GroupMutation) ClearLogoURL

func (m *GroupMutation) ClearLogoURL()

ClearLogoURL clears the value of the "logo_url" field.

func (*GroupMutation) ClearOwner

func (m *GroupMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*GroupMutation) ClearSetting

func (m *GroupMutation) ClearSetting()

ClearSetting clears the "setting" edge to the GroupSetting entity.

func (*GroupMutation) ClearUpdatedBy

func (m *GroupMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupMutation) ClearUsers

func (m *GroupMutation) ClearUsers()

ClearUsers clears the "users" edge to the User entity.

func (*GroupMutation) ClearedEdges

func (m *GroupMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*GroupMutation) ClearedFields

func (m *GroupMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (GroupMutation) Client

func (m GroupMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*GroupMutation) CreatedAt

func (m *GroupMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*GroupMutation) CreatedBy

func (m *GroupMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*GroupMutation) CreatedByCleared

func (m *GroupMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*GroupMutation) DeletedAt

func (m *GroupMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*GroupMutation) DeletedAtCleared

func (m *GroupMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*GroupMutation) DeletedBy

func (m *GroupMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*GroupMutation) DeletedByCleared

func (m *GroupMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*GroupMutation) Description

func (m *GroupMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*GroupMutation) DescriptionCleared

func (m *GroupMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*GroupMutation) DisplayName

func (m *GroupMutation) DisplayName() (r string, exists bool)

DisplayName returns the value of the "display_name" field in the mutation.

func (*GroupMutation) EdgeCleared

func (m *GroupMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*GroupMutation) Field

func (m *GroupMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*GroupMutation) FieldCleared

func (m *GroupMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*GroupMutation) Fields

func (m *GroupMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*GroupMutation) Filter

func (m *GroupMutation) Filter() *GroupFilter

Filter returns an entql.Where implementation to apply filters on the GroupMutation builder.

func (*GroupMutation) GravatarLogoURL

func (m *GroupMutation) GravatarLogoURL() (r string, exists bool)

GravatarLogoURL returns the value of the "gravatar_logo_url" field in the mutation.

func (*GroupMutation) GravatarLogoURLCleared

func (m *GroupMutation) GravatarLogoURLCleared() bool

GravatarLogoURLCleared returns if the "gravatar_logo_url" field was cleared in this mutation.

func (*GroupMutation) ID

func (m *GroupMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*GroupMutation) IDs

func (m *GroupMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*GroupMutation) LogoURL

func (m *GroupMutation) LogoURL() (r string, exists bool)

LogoURL returns the value of the "logo_url" field in the mutation.

func (*GroupMutation) LogoURLCleared

func (m *GroupMutation) LogoURLCleared() bool

LogoURLCleared returns if the "logo_url" field was cleared in this mutation.

func (*GroupMutation) Name

func (m *GroupMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*GroupMutation) OldCreatedAt

func (m *GroupMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldCreatedBy

func (m *GroupMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldDeletedAt

func (m *GroupMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldDeletedBy

func (m *GroupMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldDescription

func (m *GroupMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldDisplayName

func (m *GroupMutation) OldDisplayName(ctx context.Context) (v string, err error)

OldDisplayName returns the old "display_name" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldField

func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*GroupMutation) OldGravatarLogoURL

func (m *GroupMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error)

OldGravatarLogoURL returns the old "gravatar_logo_url" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldLogoURL

func (m *GroupMutation) OldLogoURL(ctx context.Context) (v string, err error)

OldLogoURL returns the old "logo_url" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldName

func (m *GroupMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldUpdatedAt

func (m *GroupMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) OldUpdatedBy

func (m *GroupMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupMutation) Op

func (m *GroupMutation) Op() Op

Op returns the operation name.

func (*GroupMutation) OwnerCleared

func (m *GroupMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*GroupMutation) OwnerID

func (m *GroupMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*GroupMutation) OwnerIDs

func (m *GroupMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*GroupMutation) RemoveUserIDs

func (m *GroupMutation) RemoveUserIDs(ids ...string)

RemoveUserIDs removes the "users" edge to the User entity by IDs.

func (*GroupMutation) RemovedEdges

func (m *GroupMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*GroupMutation) RemovedIDs

func (m *GroupMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*GroupMutation) RemovedUsersIDs

func (m *GroupMutation) RemovedUsersIDs() (ids []string)

RemovedUsers returns the removed IDs of the "users" edge to the User entity.

func (*GroupMutation) ResetCreatedAt

func (m *GroupMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*GroupMutation) ResetCreatedBy

func (m *GroupMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*GroupMutation) ResetDeletedAt

func (m *GroupMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*GroupMutation) ResetDeletedBy

func (m *GroupMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*GroupMutation) ResetDescription

func (m *GroupMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*GroupMutation) ResetDisplayName

func (m *GroupMutation) ResetDisplayName()

ResetDisplayName resets all changes to the "display_name" field.

func (*GroupMutation) ResetEdge

func (m *GroupMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*GroupMutation) ResetField

func (m *GroupMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*GroupMutation) ResetGravatarLogoURL

func (m *GroupMutation) ResetGravatarLogoURL()

ResetGravatarLogoURL resets all changes to the "gravatar_logo_url" field.

func (*GroupMutation) ResetLogoURL

func (m *GroupMutation) ResetLogoURL()

ResetLogoURL resets all changes to the "logo_url" field.

func (*GroupMutation) ResetName

func (m *GroupMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*GroupMutation) ResetOwner

func (m *GroupMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*GroupMutation) ResetSetting

func (m *GroupMutation) ResetSetting()

ResetSetting resets all changes to the "setting" edge.

func (*GroupMutation) ResetUpdatedAt

func (m *GroupMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*GroupMutation) ResetUpdatedBy

func (m *GroupMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*GroupMutation) ResetUsers

func (m *GroupMutation) ResetUsers()

ResetUsers resets all changes to the "users" edge.

func (*GroupMutation) SetCreatedAt

func (m *GroupMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*GroupMutation) SetCreatedBy

func (m *GroupMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*GroupMutation) SetDeletedAt

func (m *GroupMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*GroupMutation) SetDeletedBy

func (m *GroupMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*GroupMutation) SetDescription

func (m *GroupMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*GroupMutation) SetDisplayName

func (m *GroupMutation) SetDisplayName(s string)

SetDisplayName sets the "display_name" field.

func (*GroupMutation) SetField

func (m *GroupMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*GroupMutation) SetGravatarLogoURL

func (m *GroupMutation) SetGravatarLogoURL(s string)

SetGravatarLogoURL sets the "gravatar_logo_url" field.

func (*GroupMutation) SetID

func (m *GroupMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Group entities.

func (*GroupMutation) SetLogoURL

func (m *GroupMutation) SetLogoURL(s string)

SetLogoURL sets the "logo_url" field.

func (*GroupMutation) SetName

func (m *GroupMutation) SetName(s string)

SetName sets the "name" field.

func (*GroupMutation) SetOp

func (m *GroupMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*GroupMutation) SetOwnerID

func (m *GroupMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*GroupMutation) SetSettingID

func (m *GroupMutation) SetSettingID(id string)

SetSettingID sets the "setting" edge to the GroupSetting entity by id.

func (*GroupMutation) SetUpdatedAt

func (m *GroupMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*GroupMutation) SetUpdatedBy

func (m *GroupMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*GroupMutation) SettingCleared

func (m *GroupMutation) SettingCleared() bool

SettingCleared reports if the "setting" edge to the GroupSetting entity was cleared.

func (*GroupMutation) SettingID

func (m *GroupMutation) SettingID() (id string, exists bool)

SettingID returns the "setting" edge ID in the mutation.

func (*GroupMutation) SettingIDs

func (m *GroupMutation) SettingIDs() (ids []string)

SettingIDs returns the "setting" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SettingID instead. It exists only for internal usage by the builders.

func (GroupMutation) Tx

func (m GroupMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*GroupMutation) Type

func (m *GroupMutation) Type() string

Type returns the node type of this mutation (Group).

func (*GroupMutation) UpdatedAt

func (m *GroupMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*GroupMutation) UpdatedBy

func (m *GroupMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*GroupMutation) UpdatedByCleared

func (m *GroupMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*GroupMutation) UsersCleared

func (m *GroupMutation) UsersCleared() bool

UsersCleared reports if the "users" edge to the User entity was cleared.

func (*GroupMutation) UsersIDs

func (m *GroupMutation) UsersIDs() (ids []string)

UsersIDs returns the "users" edge IDs in the mutation.

func (*GroupMutation) Where

func (m *GroupMutation) Where(ps ...predicate.Group)

Where appends a list predicates to the GroupMutation builder.

func (*GroupMutation) WhereP

func (m *GroupMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the GroupMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type GroupOrder

type GroupOrder struct {
	Direction OrderDirection   `json:"direction"`
	Field     *GroupOrderField `json:"field"`
}

GroupOrder defines the ordering of Group.

type GroupOrderField

type GroupOrderField struct {
	// Value extracts the ordering value from the given Group.
	Value func(*Group) (ent.Value, error)
	// contains filtered or unexported fields
}

GroupOrderField defines the ordering field of Group.

func (GroupOrderField) MarshalGQL

func (f GroupOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (GroupOrderField) String

func (f GroupOrderField) String() string

String implement fmt.Stringer interface.

func (*GroupOrderField) UnmarshalGQL

func (f *GroupOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type GroupPaginateOption

type GroupPaginateOption func(*groupPager) error

GroupPaginateOption enables pagination customization.

func WithGroupFilter

func WithGroupFilter(filter func(*GroupQuery) (*GroupQuery, error)) GroupPaginateOption

WithGroupFilter configures pagination filter.

func WithGroupOrder

func WithGroupOrder(order *GroupOrder) GroupPaginateOption

WithGroupOrder configures pagination ordering.

type GroupQuery

type GroupQuery struct {
	// contains filtered or unexported fields
}

GroupQuery is the builder for querying Group entities.

func (*GroupQuery) Aggregate

func (gq *GroupQuery) Aggregate(fns ...AggregateFunc) *GroupSelect

Aggregate returns a GroupSelect configured with the given aggregations.

func (*GroupQuery) All

func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)

All executes the query and returns a list of Groups.

func (*GroupQuery) AllX

func (gq *GroupQuery) AllX(ctx context.Context) []*Group

AllX is like All, but panics if an error occurs.

func (*GroupQuery) Clone

func (gq *GroupQuery) Clone() *GroupQuery

Clone returns a duplicate of the GroupQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*GroupQuery) CollectFields

func (gr *GroupQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*GroupQuery) Count

func (gq *GroupQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*GroupQuery) CountX

func (gq *GroupQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*GroupQuery) Exist

func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*GroupQuery) ExistX

func (gq *GroupQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*GroupQuery) Filter

func (gq *GroupQuery) Filter() *GroupFilter

Filter returns a Filter implementation to apply filters on the GroupQuery builder.

func (*GroupQuery) First

func (gq *GroupQuery) First(ctx context.Context) (*Group, error)

First returns the first Group entity from the query. Returns a *NotFoundError when no Group was found.

func (*GroupQuery) FirstID

func (gq *GroupQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first Group ID from the query. Returns a *NotFoundError when no Group ID was found.

func (*GroupQuery) FirstIDX

func (gq *GroupQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*GroupQuery) FirstX

func (gq *GroupQuery) FirstX(ctx context.Context) *Group

FirstX is like First, but panics if an error occurs.

func (*GroupQuery) GroupBy

func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Group.Query().
	GroupBy(group.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*GroupQuery) IDs

func (gq *GroupQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of Group IDs.

func (*GroupQuery) IDsX

func (gq *GroupQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*GroupQuery) Limit

func (gq *GroupQuery) Limit(limit int) *GroupQuery

Limit the number of records to be returned by this query.

func (*GroupQuery) Offset

func (gq *GroupQuery) Offset(offset int) *GroupQuery

Offset to start from.

func (*GroupQuery) Only

func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)

Only returns a single Group entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Group entity is found. Returns a *NotFoundError when no Group entities are found.

func (*GroupQuery) OnlyID

func (gq *GroupQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only Group ID in the query. Returns a *NotSingularError when more than one Group ID is found. Returns a *NotFoundError when no entities are found.

func (*GroupQuery) OnlyIDX

func (gq *GroupQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*GroupQuery) OnlyX

func (gq *GroupQuery) OnlyX(ctx context.Context) *Group

OnlyX is like Only, but panics if an error occurs.

func (*GroupQuery) Order

func (gq *GroupQuery) Order(o ...group.OrderOption) *GroupQuery

Order specifies how the records should be ordered.

func (*GroupQuery) Paginate

func (gr *GroupQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...GroupPaginateOption,
) (*GroupConnection, error)

Paginate executes the query and returns a relay based cursor connection to Group.

func (*GroupQuery) QueryOwner

func (gq *GroupQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*GroupQuery) QuerySetting

func (gq *GroupQuery) QuerySetting() *GroupSettingQuery

QuerySetting chains the current query on the "setting" edge.

func (*GroupQuery) QueryUsers

func (gq *GroupQuery) QueryUsers() *UserQuery

QueryUsers chains the current query on the "users" edge.

func (*GroupQuery) Select

func (gq *GroupQuery) Select(fields ...string) *GroupSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Group.Query().
	Select(group.FieldCreatedAt).
	Scan(ctx, &v)

func (*GroupQuery) Unique

func (gq *GroupQuery) Unique(unique bool) *GroupQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*GroupQuery) Where

func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery

Where adds a new predicate for the GroupQuery builder.

func (*GroupQuery) WithNamedUsers

func (gq *GroupQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *GroupQuery

WithNamedUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*GroupQuery) WithOwner

func (gq *GroupQuery) WithOwner(opts ...func(*OrganizationQuery)) *GroupQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*GroupQuery) WithSetting

func (gq *GroupQuery) WithSetting(opts ...func(*GroupSettingQuery)) *GroupQuery

WithSetting tells the query-builder to eager-load the nodes that are connected to the "setting" edge. The optional arguments are used to configure the query builder of the edge.

func (*GroupQuery) WithUsers

func (gq *GroupQuery) WithUsers(opts ...func(*UserQuery)) *GroupQuery

WithUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge. The optional arguments are used to configure the query builder of the edge.

type GroupSelect

type GroupSelect struct {
	*GroupQuery
	// contains filtered or unexported fields
}

GroupSelect is the builder for selecting fields of Group entities.

func (*GroupSelect) Aggregate

func (gs *GroupSelect) Aggregate(fns ...AggregateFunc) *GroupSelect

Aggregate adds the given aggregation functions to the selector query.

func (*GroupSelect) Bool

func (s *GroupSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*GroupSelect) BoolX

func (s *GroupSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*GroupSelect) Bools

func (s *GroupSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*GroupSelect) BoolsX

func (s *GroupSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*GroupSelect) Float64

func (s *GroupSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*GroupSelect) Float64X

func (s *GroupSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*GroupSelect) Float64s

func (s *GroupSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*GroupSelect) Float64sX

func (s *GroupSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*GroupSelect) Int

func (s *GroupSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*GroupSelect) IntX

func (s *GroupSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*GroupSelect) Ints

func (s *GroupSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*GroupSelect) IntsX

func (s *GroupSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*GroupSelect) Scan

func (gs *GroupSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*GroupSelect) ScanX

func (s *GroupSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*GroupSelect) String

func (s *GroupSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*GroupSelect) StringX

func (s *GroupSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*GroupSelect) Strings

func (s *GroupSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*GroupSelect) StringsX

func (s *GroupSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type GroupSetting

type GroupSetting struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization
	Visibility groupsetting.Visibility `json:"visibility,omitempty"`
	// the policy governing ability to freely join a group, whether it requires an invitation, application, or either
	JoinPolicy groupsetting.JoinPolicy `json:"join_policy,omitempty"`
	// tags associated with the object
	Tags []string `json:"tags,omitempty"`
	// SyncToSlack holds the value of the "sync_to_slack" field.
	SyncToSlack bool `json:"sync_to_slack,omitempty"`
	// SyncToGithub holds the value of the "sync_to_github" field.
	SyncToGithub bool `json:"sync_to_github,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the GroupSettingQuery when eager-loading is set.
	Edges GroupSettingEdges `json:"edges"`
	// contains filtered or unexported fields
}

GroupSetting is the model entity for the GroupSetting schema.

func (*GroupSetting) Group

func (gs *GroupSetting) Group(ctx context.Context) (*Group, error)

func (*GroupSetting) IsNode

func (n *GroupSetting) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*GroupSetting) QueryGroup

func (gs *GroupSetting) QueryGroup() *GroupQuery

QueryGroup queries the "group" edge of the GroupSetting entity.

func (*GroupSetting) String

func (gs *GroupSetting) String() string

String implements the fmt.Stringer.

func (*GroupSetting) ToEdge

func (gs *GroupSetting) ToEdge(order *GroupSettingOrder) *GroupSettingEdge

ToEdge converts GroupSetting into GroupSettingEdge.

func (*GroupSetting) Unwrap

func (gs *GroupSetting) Unwrap() *GroupSetting

Unwrap unwraps the GroupSetting entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*GroupSetting) Update

func (gs *GroupSetting) Update() *GroupSettingUpdateOne

Update returns a builder for updating this GroupSetting. Note that you need to call GroupSetting.Unwrap() before calling this method if this GroupSetting was returned from a transaction, and the transaction was committed or rolled back.

func (*GroupSetting) Value

func (gs *GroupSetting) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the GroupSetting. This includes values selected through modifiers, order, etc.

type GroupSettingClient

type GroupSettingClient struct {
	// contains filtered or unexported fields
}

GroupSettingClient is a client for the GroupSetting schema.

func NewGroupSettingClient

func NewGroupSettingClient(c config) *GroupSettingClient

NewGroupSettingClient returns a client for the GroupSetting from the given config.

func (*GroupSettingClient) Create

Create returns a builder for creating a GroupSetting entity.

func (*GroupSettingClient) CreateBulk

func (c *GroupSettingClient) CreateBulk(builders ...*GroupSettingCreate) *GroupSettingCreateBulk

CreateBulk returns a builder for creating a bulk of GroupSetting entities.

func (*GroupSettingClient) Delete

Delete returns a delete builder for GroupSetting.

func (*GroupSettingClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*GroupSettingClient) DeleteOneID

func (c *GroupSettingClient) DeleteOneID(id string) *GroupSettingDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*GroupSettingClient) Get

Get returns a GroupSetting entity by its id.

func (*GroupSettingClient) GetX

GetX is like Get, but panics if an error occurs.

func (*GroupSettingClient) Hooks

func (c *GroupSettingClient) Hooks() []Hook

Hooks returns the client hooks.

func (*GroupSettingClient) Intercept

func (c *GroupSettingClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `groupsetting.Intercept(f(g(h())))`.

func (*GroupSettingClient) Interceptors

func (c *GroupSettingClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*GroupSettingClient) MapCreateBulk

func (c *GroupSettingClient) MapCreateBulk(slice any, setFunc func(*GroupSettingCreate, int)) *GroupSettingCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*GroupSettingClient) Query

Query returns a query builder for GroupSetting.

func (*GroupSettingClient) QueryGroup

func (c *GroupSettingClient) QueryGroup(gs *GroupSetting) *GroupQuery

QueryGroup queries the group edge of a GroupSetting.

func (*GroupSettingClient) Update

Update returns an update builder for GroupSetting.

func (*GroupSettingClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*GroupSettingClient) UpdateOneID

func (c *GroupSettingClient) UpdateOneID(id string) *GroupSettingUpdateOne

UpdateOneID returns an update builder for the given id.

func (*GroupSettingClient) Use

func (c *GroupSettingClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `groupsetting.Hooks(f(g(h())))`.

type GroupSettingConnection

type GroupSettingConnection struct {
	Edges      []*GroupSettingEdge `json:"edges"`
	PageInfo   PageInfo            `json:"pageInfo"`
	TotalCount int                 `json:"totalCount"`
}

GroupSettingConnection is the connection containing edges to GroupSetting.

type GroupSettingCreate

type GroupSettingCreate struct {
	// contains filtered or unexported fields
}

GroupSettingCreate is the builder for creating a GroupSetting entity.

func (*GroupSettingCreate) Exec

func (gsc *GroupSettingCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupSettingCreate) ExecX

func (gsc *GroupSettingCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupSettingCreate) Mutation

func (gsc *GroupSettingCreate) Mutation() *GroupSettingMutation

Mutation returns the GroupSettingMutation object of the builder.

func (*GroupSettingCreate) Save

Save creates the GroupSetting in the database.

func (*GroupSettingCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*GroupSettingCreate) SetCreatedAt

func (gsc *GroupSettingCreate) SetCreatedAt(t time.Time) *GroupSettingCreate

SetCreatedAt sets the "created_at" field.

func (*GroupSettingCreate) SetCreatedBy

func (gsc *GroupSettingCreate) SetCreatedBy(s string) *GroupSettingCreate

SetCreatedBy sets the "created_by" field.

func (*GroupSettingCreate) SetDeletedAt

func (gsc *GroupSettingCreate) SetDeletedAt(t time.Time) *GroupSettingCreate

SetDeletedAt sets the "deleted_at" field.

func (*GroupSettingCreate) SetDeletedBy

func (gsc *GroupSettingCreate) SetDeletedBy(s string) *GroupSettingCreate

SetDeletedBy sets the "deleted_by" field.

func (*GroupSettingCreate) SetGroup

func (gsc *GroupSettingCreate) SetGroup(g *Group) *GroupSettingCreate

SetGroup sets the "group" edge to the Group entity.

func (*GroupSettingCreate) SetGroupID

func (gsc *GroupSettingCreate) SetGroupID(id string) *GroupSettingCreate

SetGroupID sets the "group" edge to the Group entity by ID.

func (*GroupSettingCreate) SetID

SetID sets the "id" field.

func (*GroupSettingCreate) SetInput

SetInput applies the change-set in the CreateGroupSettingInput on the GroupSettingCreate builder.

func (*GroupSettingCreate) SetJoinPolicy

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingCreate) SetNillableCreatedAt

func (gsc *GroupSettingCreate) SetNillableCreatedAt(t *time.Time) *GroupSettingCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableCreatedBy

func (gsc *GroupSettingCreate) SetNillableCreatedBy(s *string) *GroupSettingCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableDeletedAt

func (gsc *GroupSettingCreate) SetNillableDeletedAt(t *time.Time) *GroupSettingCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableDeletedBy

func (gsc *GroupSettingCreate) SetNillableDeletedBy(s *string) *GroupSettingCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableGroupID

func (gsc *GroupSettingCreate) SetNillableGroupID(id *string) *GroupSettingCreate

SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.

func (*GroupSettingCreate) SetNillableID

func (gsc *GroupSettingCreate) SetNillableID(s *string) *GroupSettingCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableJoinPolicy

func (gsc *GroupSettingCreate) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingCreate

SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableSyncToGithub

func (gsc *GroupSettingCreate) SetNillableSyncToGithub(b *bool) *GroupSettingCreate

SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableSyncToSlack

func (gsc *GroupSettingCreate) SetNillableSyncToSlack(b *bool) *GroupSettingCreate

SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableUpdatedAt

func (gsc *GroupSettingCreate) SetNillableUpdatedAt(t *time.Time) *GroupSettingCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableUpdatedBy

func (gsc *GroupSettingCreate) SetNillableUpdatedBy(s *string) *GroupSettingCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*GroupSettingCreate) SetNillableVisibility

func (gsc *GroupSettingCreate) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingCreate

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*GroupSettingCreate) SetSyncToGithub

func (gsc *GroupSettingCreate) SetSyncToGithub(b bool) *GroupSettingCreate

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingCreate) SetSyncToSlack

func (gsc *GroupSettingCreate) SetSyncToSlack(b bool) *GroupSettingCreate

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingCreate) SetTags

func (gsc *GroupSettingCreate) SetTags(s []string) *GroupSettingCreate

SetTags sets the "tags" field.

func (*GroupSettingCreate) SetUpdatedAt

func (gsc *GroupSettingCreate) SetUpdatedAt(t time.Time) *GroupSettingCreate

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingCreate) SetUpdatedBy

func (gsc *GroupSettingCreate) SetUpdatedBy(s string) *GroupSettingCreate

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingCreate) SetVisibility

SetVisibility sets the "visibility" field.

type GroupSettingCreateBulk

type GroupSettingCreateBulk struct {
	// contains filtered or unexported fields
}

GroupSettingCreateBulk is the builder for creating many GroupSetting entities in bulk.

func (*GroupSettingCreateBulk) Exec

func (gscb *GroupSettingCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupSettingCreateBulk) ExecX

func (gscb *GroupSettingCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupSettingCreateBulk) Save

Save creates the GroupSetting entities in the database.

func (*GroupSettingCreateBulk) SaveX

func (gscb *GroupSettingCreateBulk) SaveX(ctx context.Context) []*GroupSetting

SaveX is like Save, but panics if an error occurs.

type GroupSettingDelete

type GroupSettingDelete struct {
	// contains filtered or unexported fields
}

GroupSettingDelete is the builder for deleting a GroupSetting entity.

func (*GroupSettingDelete) Exec

func (gsd *GroupSettingDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*GroupSettingDelete) ExecX

func (gsd *GroupSettingDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*GroupSettingDelete) Where

Where appends a list predicates to the GroupSettingDelete builder.

type GroupSettingDeleteOne

type GroupSettingDeleteOne struct {
	// contains filtered or unexported fields
}

GroupSettingDeleteOne is the builder for deleting a single GroupSetting entity.

func (*GroupSettingDeleteOne) Exec

func (gsdo *GroupSettingDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*GroupSettingDeleteOne) ExecX

func (gsdo *GroupSettingDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupSettingDeleteOne) Where

Where appends a list predicates to the GroupSettingDelete builder.

type GroupSettingEdge

type GroupSettingEdge struct {
	Node   *GroupSetting `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

GroupSettingEdge is the edge representation of GroupSetting.

type GroupSettingEdges

type GroupSettingEdges struct {
	// Group holds the value of the group edge.
	Group *Group `json:"group,omitempty"`
	// contains filtered or unexported fields
}

GroupSettingEdges holds the relations/edges for other nodes in the graph.

func (GroupSettingEdges) GroupOrErr

func (e GroupSettingEdges) GroupOrErr() (*Group, error)

GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type GroupSettingFilter

type GroupSettingFilter struct {
	// contains filtered or unexported fields
}

GroupSettingFilter provides a generic filtering capability at runtime for GroupSettingQuery.

func (*GroupSettingFilter) Where

func (f *GroupSettingFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*GroupSettingFilter) WhereCreatedAt

func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*GroupSettingFilter) WhereCreatedBy

func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*GroupSettingFilter) WhereDeletedAt

func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*GroupSettingFilter) WhereDeletedBy

func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*GroupSettingFilter) WhereHasGroup

func (f *GroupSettingFilter) WhereHasGroup()

WhereHasGroup applies a predicate to check if query has an edge group.

func (*GroupSettingFilter) WhereHasGroupWith

func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group)

WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates).

func (*GroupSettingFilter) WhereID

func (f *GroupSettingFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*GroupSettingFilter) WhereJoinPolicy

func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP)

WhereJoinPolicy applies the entql string predicate on the join_policy field.

func (*GroupSettingFilter) WhereSyncToGithub

func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP)

WhereSyncToGithub applies the entql bool predicate on the sync_to_github field.

func (*GroupSettingFilter) WhereSyncToSlack

func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP)

WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field.

func (*GroupSettingFilter) WhereTags

func (f *GroupSettingFilter) WhereTags(p entql.BytesP)

WhereTags applies the entql json.RawMessage predicate on the tags field.

func (*GroupSettingFilter) WhereUpdatedAt

func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*GroupSettingFilter) WhereUpdatedBy

func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

func (*GroupSettingFilter) WhereVisibility

func (f *GroupSettingFilter) WhereVisibility(p entql.StringP)

WhereVisibility applies the entql string predicate on the visibility field.

type GroupSettingGroupBy

type GroupSettingGroupBy struct {
	// contains filtered or unexported fields
}

GroupSettingGroupBy is the group-by builder for GroupSetting entities.

func (*GroupSettingGroupBy) Aggregate

func (gsgb *GroupSettingGroupBy) Aggregate(fns ...AggregateFunc) *GroupSettingGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*GroupSettingGroupBy) Bool

func (s *GroupSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) BoolX

func (s *GroupSettingGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*GroupSettingGroupBy) Bools

func (s *GroupSettingGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) BoolsX

func (s *GroupSettingGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*GroupSettingGroupBy) Float64

func (s *GroupSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) Float64X

func (s *GroupSettingGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*GroupSettingGroupBy) Float64s

func (s *GroupSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) Float64sX

func (s *GroupSettingGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*GroupSettingGroupBy) Int

func (s *GroupSettingGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) IntX

func (s *GroupSettingGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*GroupSettingGroupBy) Ints

func (s *GroupSettingGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) IntsX

func (s *GroupSettingGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*GroupSettingGroupBy) Scan

func (gsgb *GroupSettingGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*GroupSettingGroupBy) ScanX

func (s *GroupSettingGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*GroupSettingGroupBy) String

func (s *GroupSettingGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) StringX

func (s *GroupSettingGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*GroupSettingGroupBy) Strings

func (s *GroupSettingGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*GroupSettingGroupBy) StringsX

func (s *GroupSettingGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type GroupSettingMutation

type GroupSettingMutation struct {
	// contains filtered or unexported fields
}

GroupSettingMutation represents an operation that mutates the GroupSetting nodes in the graph.

func (*GroupSettingMutation) AddField

func (m *GroupSettingMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*GroupSettingMutation) AddedEdges

func (m *GroupSettingMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*GroupSettingMutation) AddedField

func (m *GroupSettingMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*GroupSettingMutation) AddedFields

func (m *GroupSettingMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*GroupSettingMutation) AddedIDs

func (m *GroupSettingMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*GroupSettingMutation) AppendTags

func (m *GroupSettingMutation) AppendTags(s []string)

AppendTags adds s to the "tags" field.

func (*GroupSettingMutation) AppendedTags

func (m *GroupSettingMutation) AppendedTags() ([]string, bool)

AppendedTags returns the list of values that were appended to the "tags" field in this mutation.

func (*GroupSettingMutation) ClearCreatedBy

func (m *GroupSettingMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*GroupSettingMutation) ClearDeletedAt

func (m *GroupSettingMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*GroupSettingMutation) ClearDeletedBy

func (m *GroupSettingMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*GroupSettingMutation) ClearEdge

func (m *GroupSettingMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*GroupSettingMutation) ClearField

func (m *GroupSettingMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*GroupSettingMutation) ClearGroup

func (m *GroupSettingMutation) ClearGroup()

ClearGroup clears the "group" edge to the Group entity.

func (*GroupSettingMutation) ClearUpdatedBy

func (m *GroupSettingMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupSettingMutation) ClearedEdges

func (m *GroupSettingMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*GroupSettingMutation) ClearedFields

func (m *GroupSettingMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (GroupSettingMutation) Client

func (m GroupSettingMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*GroupSettingMutation) CreatedAt

func (m *GroupSettingMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*GroupSettingMutation) CreatedBy

func (m *GroupSettingMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*GroupSettingMutation) CreatedByCleared

func (m *GroupSettingMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*GroupSettingMutation) DeletedAt

func (m *GroupSettingMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*GroupSettingMutation) DeletedAtCleared

func (m *GroupSettingMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*GroupSettingMutation) DeletedBy

func (m *GroupSettingMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*GroupSettingMutation) DeletedByCleared

func (m *GroupSettingMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*GroupSettingMutation) EdgeCleared

func (m *GroupSettingMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*GroupSettingMutation) Field

func (m *GroupSettingMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*GroupSettingMutation) FieldCleared

func (m *GroupSettingMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*GroupSettingMutation) Fields

func (m *GroupSettingMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*GroupSettingMutation) Filter

Filter returns an entql.Where implementation to apply filters on the GroupSettingMutation builder.

func (*GroupSettingMutation) GroupCleared

func (m *GroupSettingMutation) GroupCleared() bool

GroupCleared reports if the "group" edge to the Group entity was cleared.

func (*GroupSettingMutation) GroupID

func (m *GroupSettingMutation) GroupID() (id string, exists bool)

GroupID returns the "group" edge ID in the mutation.

func (*GroupSettingMutation) GroupIDs

func (m *GroupSettingMutation) GroupIDs() (ids []string)

GroupIDs returns the "group" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use GroupID instead. It exists only for internal usage by the builders.

func (*GroupSettingMutation) ID

func (m *GroupSettingMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*GroupSettingMutation) IDs

func (m *GroupSettingMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*GroupSettingMutation) JoinPolicy

func (m *GroupSettingMutation) JoinPolicy() (r groupsetting.JoinPolicy, exists bool)

JoinPolicy returns the value of the "join_policy" field in the mutation.

func (*GroupSettingMutation) OldCreatedAt

func (m *GroupSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldCreatedBy

func (m *GroupSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldDeletedAt

func (m *GroupSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldDeletedBy

func (m *GroupSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldField

func (m *GroupSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*GroupSettingMutation) OldJoinPolicy

func (m *GroupSettingMutation) OldJoinPolicy(ctx context.Context) (v groupsetting.JoinPolicy, err error)

OldJoinPolicy returns the old "join_policy" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldSyncToGithub

func (m *GroupSettingMutation) OldSyncToGithub(ctx context.Context) (v bool, err error)

OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldSyncToSlack

func (m *GroupSettingMutation) OldSyncToSlack(ctx context.Context) (v bool, err error)

OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldTags

func (m *GroupSettingMutation) OldTags(ctx context.Context) (v []string, err error)

OldTags returns the old "tags" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldUpdatedAt

func (m *GroupSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldUpdatedBy

func (m *GroupSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) OldVisibility

func (m *GroupSettingMutation) OldVisibility(ctx context.Context) (v groupsetting.Visibility, err error)

OldVisibility returns the old "visibility" field's value of the GroupSetting entity. If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GroupSettingMutation) Op

func (m *GroupSettingMutation) Op() Op

Op returns the operation name.

func (*GroupSettingMutation) RemovedEdges

func (m *GroupSettingMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*GroupSettingMutation) RemovedIDs

func (m *GroupSettingMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*GroupSettingMutation) ResetCreatedAt

func (m *GroupSettingMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*GroupSettingMutation) ResetCreatedBy

func (m *GroupSettingMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*GroupSettingMutation) ResetDeletedAt

func (m *GroupSettingMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*GroupSettingMutation) ResetDeletedBy

func (m *GroupSettingMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*GroupSettingMutation) ResetEdge

func (m *GroupSettingMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*GroupSettingMutation) ResetField

func (m *GroupSettingMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*GroupSettingMutation) ResetGroup

func (m *GroupSettingMutation) ResetGroup()

ResetGroup resets all changes to the "group" edge.

func (*GroupSettingMutation) ResetJoinPolicy

func (m *GroupSettingMutation) ResetJoinPolicy()

ResetJoinPolicy resets all changes to the "join_policy" field.

func (*GroupSettingMutation) ResetSyncToGithub

func (m *GroupSettingMutation) ResetSyncToGithub()

ResetSyncToGithub resets all changes to the "sync_to_github" field.

func (*GroupSettingMutation) ResetSyncToSlack

func (m *GroupSettingMutation) ResetSyncToSlack()

ResetSyncToSlack resets all changes to the "sync_to_slack" field.

func (*GroupSettingMutation) ResetTags

func (m *GroupSettingMutation) ResetTags()

ResetTags resets all changes to the "tags" field.

func (*GroupSettingMutation) ResetUpdatedAt

func (m *GroupSettingMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*GroupSettingMutation) ResetUpdatedBy

func (m *GroupSettingMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*GroupSettingMutation) ResetVisibility

func (m *GroupSettingMutation) ResetVisibility()

ResetVisibility resets all changes to the "visibility" field.

func (*GroupSettingMutation) SetCreatedAt

func (m *GroupSettingMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*GroupSettingMutation) SetCreatedBy

func (m *GroupSettingMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*GroupSettingMutation) SetDeletedAt

func (m *GroupSettingMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*GroupSettingMutation) SetDeletedBy

func (m *GroupSettingMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*GroupSettingMutation) SetField

func (m *GroupSettingMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*GroupSettingMutation) SetGroupID

func (m *GroupSettingMutation) SetGroupID(id string)

SetGroupID sets the "group" edge to the Group entity by id.

func (*GroupSettingMutation) SetID

func (m *GroupSettingMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of GroupSetting entities.

func (*GroupSettingMutation) SetJoinPolicy

func (m *GroupSettingMutation) SetJoinPolicy(gp groupsetting.JoinPolicy)

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingMutation) SetOp

func (m *GroupSettingMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*GroupSettingMutation) SetSyncToGithub

func (m *GroupSettingMutation) SetSyncToGithub(b bool)

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingMutation) SetSyncToSlack

func (m *GroupSettingMutation) SetSyncToSlack(b bool)

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingMutation) SetTags

func (m *GroupSettingMutation) SetTags(s []string)

SetTags sets the "tags" field.

func (*GroupSettingMutation) SetUpdatedAt

func (m *GroupSettingMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingMutation) SetUpdatedBy

func (m *GroupSettingMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingMutation) SetVisibility

func (m *GroupSettingMutation) SetVisibility(gr groupsetting.Visibility)

SetVisibility sets the "visibility" field.

func (*GroupSettingMutation) SyncToGithub

func (m *GroupSettingMutation) SyncToGithub() (r bool, exists bool)

SyncToGithub returns the value of the "sync_to_github" field in the mutation.

func (*GroupSettingMutation) SyncToSlack

func (m *GroupSettingMutation) SyncToSlack() (r bool, exists bool)

SyncToSlack returns the value of the "sync_to_slack" field in the mutation.

func (*GroupSettingMutation) Tags

func (m *GroupSettingMutation) Tags() (r []string, exists bool)

Tags returns the value of the "tags" field in the mutation.

func (GroupSettingMutation) Tx

func (m GroupSettingMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*GroupSettingMutation) Type

func (m *GroupSettingMutation) Type() string

Type returns the node type of this mutation (GroupSetting).

func (*GroupSettingMutation) UpdatedAt

func (m *GroupSettingMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*GroupSettingMutation) UpdatedBy

func (m *GroupSettingMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*GroupSettingMutation) UpdatedByCleared

func (m *GroupSettingMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*GroupSettingMutation) Visibility

func (m *GroupSettingMutation) Visibility() (r groupsetting.Visibility, exists bool)

Visibility returns the value of the "visibility" field in the mutation.

func (*GroupSettingMutation) Where

Where appends a list predicates to the GroupSettingMutation builder.

func (*GroupSettingMutation) WhereP

func (m *GroupSettingMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the GroupSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type GroupSettingOrder

type GroupSettingOrder struct {
	Direction OrderDirection          `json:"direction"`
	Field     *GroupSettingOrderField `json:"field"`
}

GroupSettingOrder defines the ordering of GroupSetting.

type GroupSettingOrderField

type GroupSettingOrderField struct {
	// Value extracts the ordering value from the given GroupSetting.
	Value func(*GroupSetting) (ent.Value, error)
	// contains filtered or unexported fields
}

GroupSettingOrderField defines the ordering field of GroupSetting.

type GroupSettingPaginateOption

type GroupSettingPaginateOption func(*groupsettingPager) error

GroupSettingPaginateOption enables pagination customization.

func WithGroupSettingFilter

func WithGroupSettingFilter(filter func(*GroupSettingQuery) (*GroupSettingQuery, error)) GroupSettingPaginateOption

WithGroupSettingFilter configures pagination filter.

func WithGroupSettingOrder

func WithGroupSettingOrder(order *GroupSettingOrder) GroupSettingPaginateOption

WithGroupSettingOrder configures pagination ordering.

type GroupSettingQuery

type GroupSettingQuery struct {
	// contains filtered or unexported fields
}

GroupSettingQuery is the builder for querying GroupSetting entities.

func (*GroupSettingQuery) Aggregate

func (gsq *GroupSettingQuery) Aggregate(fns ...AggregateFunc) *GroupSettingSelect

Aggregate returns a GroupSettingSelect configured with the given aggregations.

func (*GroupSettingQuery) All

func (gsq *GroupSettingQuery) All(ctx context.Context) ([]*GroupSetting, error)

All executes the query and returns a list of GroupSettings.

func (*GroupSettingQuery) AllX

func (gsq *GroupSettingQuery) AllX(ctx context.Context) []*GroupSetting

AllX is like All, but panics if an error occurs.

func (*GroupSettingQuery) Clone

func (gsq *GroupSettingQuery) Clone() *GroupSettingQuery

Clone returns a duplicate of the GroupSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*GroupSettingQuery) CollectFields

func (gs *GroupSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*GroupSettingQuery) Count

func (gsq *GroupSettingQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*GroupSettingQuery) CountX

func (gsq *GroupSettingQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*GroupSettingQuery) Exist

func (gsq *GroupSettingQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*GroupSettingQuery) ExistX

func (gsq *GroupSettingQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*GroupSettingQuery) Filter

func (gsq *GroupSettingQuery) Filter() *GroupSettingFilter

Filter returns a Filter implementation to apply filters on the GroupSettingQuery builder.

func (*GroupSettingQuery) First

func (gsq *GroupSettingQuery) First(ctx context.Context) (*GroupSetting, error)

First returns the first GroupSetting entity from the query. Returns a *NotFoundError when no GroupSetting was found.

func (*GroupSettingQuery) FirstID

func (gsq *GroupSettingQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first GroupSetting ID from the query. Returns a *NotFoundError when no GroupSetting ID was found.

func (*GroupSettingQuery) FirstIDX

func (gsq *GroupSettingQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*GroupSettingQuery) FirstX

func (gsq *GroupSettingQuery) FirstX(ctx context.Context) *GroupSetting

FirstX is like First, but panics if an error occurs.

func (*GroupSettingQuery) GroupBy

func (gsq *GroupSettingQuery) GroupBy(field string, fields ...string) *GroupSettingGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.GroupSetting.Query().
	GroupBy(groupsetting.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*GroupSettingQuery) IDs

func (gsq *GroupSettingQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of GroupSetting IDs.

func (*GroupSettingQuery) IDsX

func (gsq *GroupSettingQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*GroupSettingQuery) Limit

func (gsq *GroupSettingQuery) Limit(limit int) *GroupSettingQuery

Limit the number of records to be returned by this query.

func (*GroupSettingQuery) Offset

func (gsq *GroupSettingQuery) Offset(offset int) *GroupSettingQuery

Offset to start from.

func (*GroupSettingQuery) Only

func (gsq *GroupSettingQuery) Only(ctx context.Context) (*GroupSetting, error)

Only returns a single GroupSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one GroupSetting entity is found. Returns a *NotFoundError when no GroupSetting entities are found.

func (*GroupSettingQuery) OnlyID

func (gsq *GroupSettingQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only GroupSetting ID in the query. Returns a *NotSingularError when more than one GroupSetting ID is found. Returns a *NotFoundError when no entities are found.

func (*GroupSettingQuery) OnlyIDX

func (gsq *GroupSettingQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*GroupSettingQuery) OnlyX

func (gsq *GroupSettingQuery) OnlyX(ctx context.Context) *GroupSetting

OnlyX is like Only, but panics if an error occurs.

func (*GroupSettingQuery) Order

Order specifies how the records should be ordered.

func (*GroupSettingQuery) Paginate

func (gs *GroupSettingQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...GroupSettingPaginateOption,
) (*GroupSettingConnection, error)

Paginate executes the query and returns a relay based cursor connection to GroupSetting.

func (*GroupSettingQuery) QueryGroup

func (gsq *GroupSettingQuery) QueryGroup() *GroupQuery

QueryGroup chains the current query on the "group" edge.

func (*GroupSettingQuery) Select

func (gsq *GroupSettingQuery) Select(fields ...string) *GroupSettingSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.GroupSetting.Query().
	Select(groupsetting.FieldCreatedAt).
	Scan(ctx, &v)

func (*GroupSettingQuery) Unique

func (gsq *GroupSettingQuery) Unique(unique bool) *GroupSettingQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*GroupSettingQuery) Where

Where adds a new predicate for the GroupSettingQuery builder.

func (*GroupSettingQuery) WithGroup

func (gsq *GroupSettingQuery) WithGroup(opts ...func(*GroupQuery)) *GroupSettingQuery

WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.

type GroupSettingSelect

type GroupSettingSelect struct {
	*GroupSettingQuery
	// contains filtered or unexported fields
}

GroupSettingSelect is the builder for selecting fields of GroupSetting entities.

func (*GroupSettingSelect) Aggregate

func (gss *GroupSettingSelect) Aggregate(fns ...AggregateFunc) *GroupSettingSelect

Aggregate adds the given aggregation functions to the selector query.

func (*GroupSettingSelect) Bool

func (s *GroupSettingSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) BoolX

func (s *GroupSettingSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*GroupSettingSelect) Bools

func (s *GroupSettingSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) BoolsX

func (s *GroupSettingSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*GroupSettingSelect) Float64

func (s *GroupSettingSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) Float64X

func (s *GroupSettingSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*GroupSettingSelect) Float64s

func (s *GroupSettingSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) Float64sX

func (s *GroupSettingSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*GroupSettingSelect) Int

func (s *GroupSettingSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) IntX

func (s *GroupSettingSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*GroupSettingSelect) Ints

func (s *GroupSettingSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) IntsX

func (s *GroupSettingSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*GroupSettingSelect) Scan

func (gss *GroupSettingSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*GroupSettingSelect) ScanX

func (s *GroupSettingSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*GroupSettingSelect) String

func (s *GroupSettingSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) StringX

func (s *GroupSettingSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*GroupSettingSelect) Strings

func (s *GroupSettingSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*GroupSettingSelect) StringsX

func (s *GroupSettingSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type GroupSettingUpdate

type GroupSettingUpdate struct {
	// contains filtered or unexported fields
}

GroupSettingUpdate is the builder for updating GroupSetting entities.

func (*GroupSettingUpdate) AppendTags

func (gsu *GroupSettingUpdate) AppendTags(s []string) *GroupSettingUpdate

AppendTags appends s to the "tags" field.

func (*GroupSettingUpdate) ClearDeletedAt

func (gsu *GroupSettingUpdate) ClearDeletedAt() *GroupSettingUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*GroupSettingUpdate) ClearDeletedBy

func (gsu *GroupSettingUpdate) ClearDeletedBy() *GroupSettingUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*GroupSettingUpdate) ClearGroup

func (gsu *GroupSettingUpdate) ClearGroup() *GroupSettingUpdate

ClearGroup clears the "group" edge to the Group entity.

func (*GroupSettingUpdate) ClearUpdatedBy

func (gsu *GroupSettingUpdate) ClearUpdatedBy() *GroupSettingUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupSettingUpdate) Exec

func (gsu *GroupSettingUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupSettingUpdate) ExecX

func (gsu *GroupSettingUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupSettingUpdate) Mutation

func (gsu *GroupSettingUpdate) Mutation() *GroupSettingMutation

Mutation returns the GroupSettingMutation object of the builder.

func (*GroupSettingUpdate) Save

func (gsu *GroupSettingUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*GroupSettingUpdate) SaveX

func (gsu *GroupSettingUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*GroupSettingUpdate) SetDeletedAt

func (gsu *GroupSettingUpdate) SetDeletedAt(t time.Time) *GroupSettingUpdate

SetDeletedAt sets the "deleted_at" field.

func (*GroupSettingUpdate) SetDeletedBy

func (gsu *GroupSettingUpdate) SetDeletedBy(s string) *GroupSettingUpdate

SetDeletedBy sets the "deleted_by" field.

func (*GroupSettingUpdate) SetGroup

func (gsu *GroupSettingUpdate) SetGroup(g *Group) *GroupSettingUpdate

SetGroup sets the "group" edge to the Group entity.

func (*GroupSettingUpdate) SetGroupID

func (gsu *GroupSettingUpdate) SetGroupID(id string) *GroupSettingUpdate

SetGroupID sets the "group" edge to the Group entity by ID.

func (*GroupSettingUpdate) SetInput

SetInput applies the change-set in the UpdateGroupSettingInput on the GroupSettingUpdate builder.

func (*GroupSettingUpdate) SetJoinPolicy

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingUpdate) SetNillableDeletedAt

func (gsu *GroupSettingUpdate) SetNillableDeletedAt(t *time.Time) *GroupSettingUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*GroupSettingUpdate) SetNillableDeletedBy

func (gsu *GroupSettingUpdate) SetNillableDeletedBy(s *string) *GroupSettingUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*GroupSettingUpdate) SetNillableGroupID

func (gsu *GroupSettingUpdate) SetNillableGroupID(id *string) *GroupSettingUpdate

SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.

func (*GroupSettingUpdate) SetNillableJoinPolicy

func (gsu *GroupSettingUpdate) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingUpdate

SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.

func (*GroupSettingUpdate) SetNillableSyncToGithub

func (gsu *GroupSettingUpdate) SetNillableSyncToGithub(b *bool) *GroupSettingUpdate

SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.

func (*GroupSettingUpdate) SetNillableSyncToSlack

func (gsu *GroupSettingUpdate) SetNillableSyncToSlack(b *bool) *GroupSettingUpdate

SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.

func (*GroupSettingUpdate) SetNillableUpdatedBy

func (gsu *GroupSettingUpdate) SetNillableUpdatedBy(s *string) *GroupSettingUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*GroupSettingUpdate) SetNillableVisibility

func (gsu *GroupSettingUpdate) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingUpdate

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*GroupSettingUpdate) SetSyncToGithub

func (gsu *GroupSettingUpdate) SetSyncToGithub(b bool) *GroupSettingUpdate

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingUpdate) SetSyncToSlack

func (gsu *GroupSettingUpdate) SetSyncToSlack(b bool) *GroupSettingUpdate

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingUpdate) SetTags

func (gsu *GroupSettingUpdate) SetTags(s []string) *GroupSettingUpdate

SetTags sets the "tags" field.

func (*GroupSettingUpdate) SetUpdatedAt

func (gsu *GroupSettingUpdate) SetUpdatedAt(t time.Time) *GroupSettingUpdate

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingUpdate) SetUpdatedBy

func (gsu *GroupSettingUpdate) SetUpdatedBy(s string) *GroupSettingUpdate

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingUpdate) SetVisibility

SetVisibility sets the "visibility" field.

func (*GroupSettingUpdate) Where

Where appends a list predicates to the GroupSettingUpdate builder.

type GroupSettingUpdateOne

type GroupSettingUpdateOne struct {
	// contains filtered or unexported fields
}

GroupSettingUpdateOne is the builder for updating a single GroupSetting entity.

func (*GroupSettingUpdateOne) AppendTags

func (gsuo *GroupSettingUpdateOne) AppendTags(s []string) *GroupSettingUpdateOne

AppendTags appends s to the "tags" field.

func (*GroupSettingUpdateOne) ClearDeletedAt

func (gsuo *GroupSettingUpdateOne) ClearDeletedAt() *GroupSettingUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*GroupSettingUpdateOne) ClearDeletedBy

func (gsuo *GroupSettingUpdateOne) ClearDeletedBy() *GroupSettingUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*GroupSettingUpdateOne) ClearGroup

func (gsuo *GroupSettingUpdateOne) ClearGroup() *GroupSettingUpdateOne

ClearGroup clears the "group" edge to the Group entity.

func (*GroupSettingUpdateOne) ClearUpdatedBy

func (gsuo *GroupSettingUpdateOne) ClearUpdatedBy() *GroupSettingUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupSettingUpdateOne) Exec

func (gsuo *GroupSettingUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*GroupSettingUpdateOne) ExecX

func (gsuo *GroupSettingUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupSettingUpdateOne) Mutation

func (gsuo *GroupSettingUpdateOne) Mutation() *GroupSettingMutation

Mutation returns the GroupSettingMutation object of the builder.

func (*GroupSettingUpdateOne) Save

Save executes the query and returns the updated GroupSetting entity.

func (*GroupSettingUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*GroupSettingUpdateOne) Select

func (gsuo *GroupSettingUpdateOne) Select(field string, fields ...string) *GroupSettingUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*GroupSettingUpdateOne) SetDeletedAt

func (gsuo *GroupSettingUpdateOne) SetDeletedAt(t time.Time) *GroupSettingUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*GroupSettingUpdateOne) SetDeletedBy

func (gsuo *GroupSettingUpdateOne) SetDeletedBy(s string) *GroupSettingUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*GroupSettingUpdateOne) SetGroup

SetGroup sets the "group" edge to the Group entity.

func (*GroupSettingUpdateOne) SetGroupID

func (gsuo *GroupSettingUpdateOne) SetGroupID(id string) *GroupSettingUpdateOne

SetGroupID sets the "group" edge to the Group entity by ID.

func (*GroupSettingUpdateOne) SetInput

SetInput applies the change-set in the UpdateGroupSettingInput on the GroupSettingUpdateOne builder.

func (*GroupSettingUpdateOne) SetJoinPolicy

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingUpdateOne) SetNillableDeletedAt

func (gsuo *GroupSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *GroupSettingUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableDeletedBy

func (gsuo *GroupSettingUpdateOne) SetNillableDeletedBy(s *string) *GroupSettingUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableGroupID

func (gsuo *GroupSettingUpdateOne) SetNillableGroupID(id *string) *GroupSettingUpdateOne

SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableJoinPolicy

func (gsuo *GroupSettingUpdateOne) SetNillableJoinPolicy(gp *groupsetting.JoinPolicy) *GroupSettingUpdateOne

SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableSyncToGithub

func (gsuo *GroupSettingUpdateOne) SetNillableSyncToGithub(b *bool) *GroupSettingUpdateOne

SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableSyncToSlack

func (gsuo *GroupSettingUpdateOne) SetNillableSyncToSlack(b *bool) *GroupSettingUpdateOne

SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableUpdatedBy

func (gsuo *GroupSettingUpdateOne) SetNillableUpdatedBy(s *string) *GroupSettingUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetNillableVisibility

func (gsuo *GroupSettingUpdateOne) SetNillableVisibility(gr *groupsetting.Visibility) *GroupSettingUpdateOne

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*GroupSettingUpdateOne) SetSyncToGithub

func (gsuo *GroupSettingUpdateOne) SetSyncToGithub(b bool) *GroupSettingUpdateOne

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingUpdateOne) SetSyncToSlack

func (gsuo *GroupSettingUpdateOne) SetSyncToSlack(b bool) *GroupSettingUpdateOne

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingUpdateOne) SetTags

SetTags sets the "tags" field.

func (*GroupSettingUpdateOne) SetUpdatedAt

func (gsuo *GroupSettingUpdateOne) SetUpdatedAt(t time.Time) *GroupSettingUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingUpdateOne) SetUpdatedBy

func (gsuo *GroupSettingUpdateOne) SetUpdatedBy(s string) *GroupSettingUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingUpdateOne) SetVisibility

SetVisibility sets the "visibility" field.

func (*GroupSettingUpdateOne) Where

Where appends a list predicates to the GroupSettingUpdate builder.

type GroupSettingWhereInput

type GroupSettingWhereInput struct {
	Predicates []predicate.GroupSetting  `json:"-"`
	Not        *GroupSettingWhereInput   `json:"not,omitempty"`
	Or         []*GroupSettingWhereInput `json:"or,omitempty"`
	And        []*GroupSettingWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "visibility" field predicates.
	Visibility      *groupsetting.Visibility  `json:"visibility,omitempty"`
	VisibilityNEQ   *groupsetting.Visibility  `json:"visibilityNEQ,omitempty"`
	VisibilityIn    []groupsetting.Visibility `json:"visibilityIn,omitempty"`
	VisibilityNotIn []groupsetting.Visibility `json:"visibilityNotIn,omitempty"`

	// "join_policy" field predicates.
	JoinPolicy      *groupsetting.JoinPolicy  `json:"joinPolicy,omitempty"`
	JoinPolicyNEQ   *groupsetting.JoinPolicy  `json:"joinPolicyNEQ,omitempty"`
	JoinPolicyIn    []groupsetting.JoinPolicy `json:"joinPolicyIn,omitempty"`
	JoinPolicyNotIn []groupsetting.JoinPolicy `json:"joinPolicyNotIn,omitempty"`

	// "sync_to_slack" field predicates.
	SyncToSlack    *bool `json:"syncToSlack,omitempty"`
	SyncToSlackNEQ *bool `json:"syncToSlackNEQ,omitempty"`

	// "sync_to_github" field predicates.
	SyncToGithub    *bool `json:"syncToGithub,omitempty"`
	SyncToGithubNEQ *bool `json:"syncToGithubNEQ,omitempty"`

	// "group" edge predicates.
	HasGroup     *bool              `json:"hasGroup,omitempty"`
	HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"`
}

GroupSettingWhereInput represents a where input for filtering GroupSetting queries.

func (*GroupSettingWhereInput) AddPredicates

func (i *GroupSettingWhereInput) AddPredicates(predicates ...predicate.GroupSetting)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*GroupSettingWhereInput) Filter

Filter applies the GroupSettingWhereInput filter on the GroupSettingQuery builder.

func (*GroupSettingWhereInput) P

P returns a predicate for filtering groupsettings. An error is returned if the input is empty or invalid.

type GroupSettings

type GroupSettings []*GroupSetting

GroupSettings is a parsable slice of GroupSetting.

type GroupUpdate

type GroupUpdate struct {
	// contains filtered or unexported fields
}

GroupUpdate is the builder for updating Group entities.

func (*GroupUpdate) AddUserIDs

func (gu *GroupUpdate) AddUserIDs(ids ...string) *GroupUpdate

AddUserIDs adds the "users" edge to the User entity by IDs.

func (*GroupUpdate) AddUsers

func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate

AddUsers adds the "users" edges to the User entity.

func (*GroupUpdate) ClearDeletedAt

func (gu *GroupUpdate) ClearDeletedAt() *GroupUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*GroupUpdate) ClearDeletedBy

func (gu *GroupUpdate) ClearDeletedBy() *GroupUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*GroupUpdate) ClearDescription

func (gu *GroupUpdate) ClearDescription() *GroupUpdate

ClearDescription clears the value of the "description" field.

func (*GroupUpdate) ClearGravatarLogoURL

func (gu *GroupUpdate) ClearGravatarLogoURL() *GroupUpdate

ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field.

func (*GroupUpdate) ClearLogoURL

func (gu *GroupUpdate) ClearLogoURL() *GroupUpdate

ClearLogoURL clears the value of the "logo_url" field.

func (*GroupUpdate) ClearOwner

func (gu *GroupUpdate) ClearOwner() *GroupUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*GroupUpdate) ClearSetting

func (gu *GroupUpdate) ClearSetting() *GroupUpdate

ClearSetting clears the "setting" edge to the GroupSetting entity.

func (*GroupUpdate) ClearUpdatedBy

func (gu *GroupUpdate) ClearUpdatedBy() *GroupUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupUpdate) ClearUsers

func (gu *GroupUpdate) ClearUsers() *GroupUpdate

ClearUsers clears all "users" edges to the User entity.

func (*GroupUpdate) Exec

func (gu *GroupUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupUpdate) ExecX

func (gu *GroupUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupUpdate) Mutation

func (gu *GroupUpdate) Mutation() *GroupMutation

Mutation returns the GroupMutation object of the builder.

func (*GroupUpdate) RemoveUserIDs

func (gu *GroupUpdate) RemoveUserIDs(ids ...string) *GroupUpdate

RemoveUserIDs removes the "users" edge to User entities by IDs.

func (*GroupUpdate) RemoveUsers

func (gu *GroupUpdate) RemoveUsers(u ...*User) *GroupUpdate

RemoveUsers removes "users" edges to User entities.

func (*GroupUpdate) Save

func (gu *GroupUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*GroupUpdate) SaveX

func (gu *GroupUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*GroupUpdate) SetDeletedAt

func (gu *GroupUpdate) SetDeletedAt(t time.Time) *GroupUpdate

SetDeletedAt sets the "deleted_at" field.

func (*GroupUpdate) SetDeletedBy

func (gu *GroupUpdate) SetDeletedBy(s string) *GroupUpdate

SetDeletedBy sets the "deleted_by" field.

func (*GroupUpdate) SetDescription

func (gu *GroupUpdate) SetDescription(s string) *GroupUpdate

SetDescription sets the "description" field.

func (*GroupUpdate) SetDisplayName

func (gu *GroupUpdate) SetDisplayName(s string) *GroupUpdate

SetDisplayName sets the "display_name" field.

func (*GroupUpdate) SetGravatarLogoURL

func (gu *GroupUpdate) SetGravatarLogoURL(s string) *GroupUpdate

SetGravatarLogoURL sets the "gravatar_logo_url" field.

func (*GroupUpdate) SetInput

func (c *GroupUpdate) SetInput(i UpdateGroupInput) *GroupUpdate

SetInput applies the change-set in the UpdateGroupInput on the GroupUpdate builder.

func (*GroupUpdate) SetLogoURL

func (gu *GroupUpdate) SetLogoURL(s string) *GroupUpdate

SetLogoURL sets the "logo_url" field.

func (*GroupUpdate) SetName

func (gu *GroupUpdate) SetName(s string) *GroupUpdate

SetName sets the "name" field.

func (*GroupUpdate) SetNillableDeletedAt

func (gu *GroupUpdate) SetNillableDeletedAt(t *time.Time) *GroupUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*GroupUpdate) SetNillableDeletedBy

func (gu *GroupUpdate) SetNillableDeletedBy(s *string) *GroupUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*GroupUpdate) SetNillableDescription

func (gu *GroupUpdate) SetNillableDescription(s *string) *GroupUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*GroupUpdate) SetNillableDisplayName

func (gu *GroupUpdate) SetNillableDisplayName(s *string) *GroupUpdate

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*GroupUpdate) SetNillableGravatarLogoURL

func (gu *GroupUpdate) SetNillableGravatarLogoURL(s *string) *GroupUpdate

SetNillableGravatarLogoURL sets the "gravatar_logo_url" field if the given value is not nil.

func (*GroupUpdate) SetNillableLogoURL

func (gu *GroupUpdate) SetNillableLogoURL(s *string) *GroupUpdate

SetNillableLogoURL sets the "logo_url" field if the given value is not nil.

func (*GroupUpdate) SetNillableName

func (gu *GroupUpdate) SetNillableName(s *string) *GroupUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*GroupUpdate) SetNillableUpdatedBy

func (gu *GroupUpdate) SetNillableUpdatedBy(s *string) *GroupUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*GroupUpdate) SetOwner

func (gu *GroupUpdate) SetOwner(o *Organization) *GroupUpdate

SetOwner sets the "owner" edge to the Organization entity.

func (*GroupUpdate) SetOwnerID

func (gu *GroupUpdate) SetOwnerID(id string) *GroupUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*GroupUpdate) SetSetting

func (gu *GroupUpdate) SetSetting(g *GroupSetting) *GroupUpdate

SetSetting sets the "setting" edge to the GroupSetting entity.

func (*GroupUpdate) SetSettingID

func (gu *GroupUpdate) SetSettingID(id string) *GroupUpdate

SetSettingID sets the "setting" edge to the GroupSetting entity by ID.

func (*GroupUpdate) SetUpdatedAt

func (gu *GroupUpdate) SetUpdatedAt(t time.Time) *GroupUpdate

SetUpdatedAt sets the "updated_at" field.

func (*GroupUpdate) SetUpdatedBy

func (gu *GroupUpdate) SetUpdatedBy(s string) *GroupUpdate

SetUpdatedBy sets the "updated_by" field.

func (*GroupUpdate) Where

func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate

Where appends a list predicates to the GroupUpdate builder.

type GroupUpdateOne

type GroupUpdateOne struct {
	// contains filtered or unexported fields
}

GroupUpdateOne is the builder for updating a single Group entity.

func (*GroupUpdateOne) AddUserIDs

func (guo *GroupUpdateOne) AddUserIDs(ids ...string) *GroupUpdateOne

AddUserIDs adds the "users" edge to the User entity by IDs.

func (*GroupUpdateOne) AddUsers

func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne

AddUsers adds the "users" edges to the User entity.

func (*GroupUpdateOne) ClearDeletedAt

func (guo *GroupUpdateOne) ClearDeletedAt() *GroupUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*GroupUpdateOne) ClearDeletedBy

func (guo *GroupUpdateOne) ClearDeletedBy() *GroupUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*GroupUpdateOne) ClearDescription

func (guo *GroupUpdateOne) ClearDescription() *GroupUpdateOne

ClearDescription clears the value of the "description" field.

func (*GroupUpdateOne) ClearGravatarLogoURL

func (guo *GroupUpdateOne) ClearGravatarLogoURL() *GroupUpdateOne

ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field.

func (*GroupUpdateOne) ClearLogoURL

func (guo *GroupUpdateOne) ClearLogoURL() *GroupUpdateOne

ClearLogoURL clears the value of the "logo_url" field.

func (*GroupUpdateOne) ClearOwner

func (guo *GroupUpdateOne) ClearOwner() *GroupUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*GroupUpdateOne) ClearSetting

func (guo *GroupUpdateOne) ClearSetting() *GroupUpdateOne

ClearSetting clears the "setting" edge to the GroupSetting entity.

func (*GroupUpdateOne) ClearUpdatedBy

func (guo *GroupUpdateOne) ClearUpdatedBy() *GroupUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupUpdateOne) ClearUsers

func (guo *GroupUpdateOne) ClearUsers() *GroupUpdateOne

ClearUsers clears all "users" edges to the User entity.

func (*GroupUpdateOne) Exec

func (guo *GroupUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*GroupUpdateOne) ExecX

func (guo *GroupUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GroupUpdateOne) Mutation

func (guo *GroupUpdateOne) Mutation() *GroupMutation

Mutation returns the GroupMutation object of the builder.

func (*GroupUpdateOne) RemoveUserIDs

func (guo *GroupUpdateOne) RemoveUserIDs(ids ...string) *GroupUpdateOne

RemoveUserIDs removes the "users" edge to User entities by IDs.

func (*GroupUpdateOne) RemoveUsers

func (guo *GroupUpdateOne) RemoveUsers(u ...*User) *GroupUpdateOne

RemoveUsers removes "users" edges to User entities.

func (*GroupUpdateOne) Save

func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)

Save executes the query and returns the updated Group entity.

func (*GroupUpdateOne) SaveX

func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group

SaveX is like Save, but panics if an error occurs.

func (*GroupUpdateOne) Select

func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*GroupUpdateOne) SetDeletedAt

func (guo *GroupUpdateOne) SetDeletedAt(t time.Time) *GroupUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*GroupUpdateOne) SetDeletedBy

func (guo *GroupUpdateOne) SetDeletedBy(s string) *GroupUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*GroupUpdateOne) SetDescription

func (guo *GroupUpdateOne) SetDescription(s string) *GroupUpdateOne

SetDescription sets the "description" field.

func (*GroupUpdateOne) SetDisplayName

func (guo *GroupUpdateOne) SetDisplayName(s string) *GroupUpdateOne

SetDisplayName sets the "display_name" field.

func (*GroupUpdateOne) SetGravatarLogoURL

func (guo *GroupUpdateOne) SetGravatarLogoURL(s string) *GroupUpdateOne

SetGravatarLogoURL sets the "gravatar_logo_url" field.

func (*GroupUpdateOne) SetInput

SetInput applies the change-set in the UpdateGroupInput on the GroupUpdateOne builder.

func (*GroupUpdateOne) SetLogoURL

func (guo *GroupUpdateOne) SetLogoURL(s string) *GroupUpdateOne

SetLogoURL sets the "logo_url" field.

func (*GroupUpdateOne) SetName

func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne

SetName sets the "name" field.

func (*GroupUpdateOne) SetNillableDeletedAt

func (guo *GroupUpdateOne) SetNillableDeletedAt(t *time.Time) *GroupUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableDeletedBy

func (guo *GroupUpdateOne) SetNillableDeletedBy(s *string) *GroupUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableDescription

func (guo *GroupUpdateOne) SetNillableDescription(s *string) *GroupUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableDisplayName

func (guo *GroupUpdateOne) SetNillableDisplayName(s *string) *GroupUpdateOne

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableGravatarLogoURL

func (guo *GroupUpdateOne) SetNillableGravatarLogoURL(s *string) *GroupUpdateOne

SetNillableGravatarLogoURL sets the "gravatar_logo_url" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableLogoURL

func (guo *GroupUpdateOne) SetNillableLogoURL(s *string) *GroupUpdateOne

SetNillableLogoURL sets the "logo_url" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableName

func (guo *GroupUpdateOne) SetNillableName(s *string) *GroupUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*GroupUpdateOne) SetNillableUpdatedBy

func (guo *GroupUpdateOne) SetNillableUpdatedBy(s *string) *GroupUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*GroupUpdateOne) SetOwner

func (guo *GroupUpdateOne) SetOwner(o *Organization) *GroupUpdateOne

SetOwner sets the "owner" edge to the Organization entity.

func (*GroupUpdateOne) SetOwnerID

func (guo *GroupUpdateOne) SetOwnerID(id string) *GroupUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*GroupUpdateOne) SetSetting

func (guo *GroupUpdateOne) SetSetting(g *GroupSetting) *GroupUpdateOne

SetSetting sets the "setting" edge to the GroupSetting entity.

func (*GroupUpdateOne) SetSettingID

func (guo *GroupUpdateOne) SetSettingID(id string) *GroupUpdateOne

SetSettingID sets the "setting" edge to the GroupSetting entity by ID.

func (*GroupUpdateOne) SetUpdatedAt

func (guo *GroupUpdateOne) SetUpdatedAt(t time.Time) *GroupUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*GroupUpdateOne) SetUpdatedBy

func (guo *GroupUpdateOne) SetUpdatedBy(s string) *GroupUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*GroupUpdateOne) Where

func (guo *GroupUpdateOne) Where(ps ...predicate.Group) *GroupUpdateOne

Where appends a list predicates to the GroupUpdate builder.

type GroupWhereInput

type GroupWhereInput struct {
	Predicates []predicate.Group  `json:"-"`
	Not        *GroupWhereInput   `json:"not,omitempty"`
	Or         []*GroupWhereInput `json:"or,omitempty"`
	And        []*GroupWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "display_name" field predicates.
	DisplayName             *string  `json:"displayName,omitempty"`
	DisplayNameNEQ          *string  `json:"displayNameNEQ,omitempty"`
	DisplayNameIn           []string `json:"displayNameIn,omitempty"`
	DisplayNameNotIn        []string `json:"displayNameNotIn,omitempty"`
	DisplayNameGT           *string  `json:"displayNameGT,omitempty"`
	DisplayNameGTE          *string  `json:"displayNameGTE,omitempty"`
	DisplayNameLT           *string  `json:"displayNameLT,omitempty"`
	DisplayNameLTE          *string  `json:"displayNameLTE,omitempty"`
	DisplayNameContains     *string  `json:"displayNameContains,omitempty"`
	DisplayNameHasPrefix    *string  `json:"displayNameHasPrefix,omitempty"`
	DisplayNameHasSuffix    *string  `json:"displayNameHasSuffix,omitempty"`
	DisplayNameEqualFold    *string  `json:"displayNameEqualFold,omitempty"`
	DisplayNameContainsFold *string  `json:"displayNameContainsFold,omitempty"`

	// "setting" edge predicates.
	HasSetting     *bool                     `json:"hasSetting,omitempty"`
	HasSettingWith []*GroupSettingWhereInput `json:"hasSettingWith,omitempty"`

	// "users" edge predicates.
	HasUsers     *bool             `json:"hasUsers,omitempty"`
	HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`
}

GroupWhereInput represents a where input for filtering Group queries.

func (*GroupWhereInput) AddPredicates

func (i *GroupWhereInput) AddPredicates(predicates ...predicate.Group)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*GroupWhereInput) Filter

func (i *GroupWhereInput) Filter(q *GroupQuery) (*GroupQuery, error)

Filter applies the GroupWhereInput filter on the GroupQuery builder.

func (*GroupWhereInput) P

P returns a predicate for filtering groups. An error is returned if the input is empty or invalid.

type Groups

type Groups []*Group

Groups is a parsable slice of Group.

type Hook

type Hook = ent.Hook

ent aliases to avoid import conflicts in user's code.

type Integration

type Integration struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// the name of the integration - must be unique within the organization
	Name string `json:"name,omitempty"`
	// a description of the integration
	Description string `json:"description,omitempty"`
	// Kind holds the value of the "kind" field.
	Kind string `json:"kind,omitempty"`
	// SecretName holds the value of the "secret_name" field.
	SecretName string `json:"secret_name,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the IntegrationQuery when eager-loading is set.
	Edges IntegrationEdges `json:"edges"`
	// contains filtered or unexported fields
}

Integration is the model entity for the Integration schema.

func (*Integration) IsNode

func (n *Integration) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*Integration) Owner

func (i *Integration) Owner(ctx context.Context) (*Organization, error)

func (*Integration) QueryOwner

func (i *Integration) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Integration entity.

func (*Integration) String

func (i *Integration) String() string

String implements the fmt.Stringer.

func (*Integration) ToEdge

func (i *Integration) ToEdge(order *IntegrationOrder) *IntegrationEdge

ToEdge converts Integration into IntegrationEdge.

func (*Integration) Unwrap

func (i *Integration) Unwrap() *Integration

Unwrap unwraps the Integration entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Integration) Update

func (i *Integration) Update() *IntegrationUpdateOne

Update returns a builder for updating this Integration. Note that you need to call Integration.Unwrap() before calling this method if this Integration was returned from a transaction, and the transaction was committed or rolled back.

func (*Integration) Value

func (i *Integration) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Integration. This includes values selected through modifiers, order, etc.

type IntegrationClient

type IntegrationClient struct {
	// contains filtered or unexported fields
}

IntegrationClient is a client for the Integration schema.

func NewIntegrationClient

func NewIntegrationClient(c config) *IntegrationClient

NewIntegrationClient returns a client for the Integration from the given config.

func (*IntegrationClient) Create

func (c *IntegrationClient) Create() *IntegrationCreate

Create returns a builder for creating a Integration entity.

func (*IntegrationClient) CreateBulk

func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk

CreateBulk returns a builder for creating a bulk of Integration entities.

func (*IntegrationClient) Delete

func (c *IntegrationClient) Delete() *IntegrationDelete

Delete returns a delete builder for Integration.

func (*IntegrationClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*IntegrationClient) DeleteOneID

func (c *IntegrationClient) DeleteOneID(id string) *IntegrationDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*IntegrationClient) Get

Get returns a Integration entity by its id.

func (*IntegrationClient) GetX

GetX is like Get, but panics if an error occurs.

func (*IntegrationClient) Hooks

func (c *IntegrationClient) Hooks() []Hook

Hooks returns the client hooks.

func (*IntegrationClient) Intercept

func (c *IntegrationClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `integration.Intercept(f(g(h())))`.

func (*IntegrationClient) Interceptors

func (c *IntegrationClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*IntegrationClient) MapCreateBulk

func (c *IntegrationClient) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*IntegrationClient) Query

func (c *IntegrationClient) Query() *IntegrationQuery

Query returns a query builder for Integration.

func (*IntegrationClient) QueryOwner

func (c *IntegrationClient) QueryOwner(i *Integration) *OrganizationQuery

QueryOwner queries the owner edge of a Integration.

func (*IntegrationClient) Update

func (c *IntegrationClient) Update() *IntegrationUpdate

Update returns an update builder for Integration.

func (*IntegrationClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*IntegrationClient) UpdateOneID

func (c *IntegrationClient) UpdateOneID(id string) *IntegrationUpdateOne

UpdateOneID returns an update builder for the given id.

func (*IntegrationClient) Use

func (c *IntegrationClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `integration.Hooks(f(g(h())))`.

type IntegrationConnection

type IntegrationConnection struct {
	Edges      []*IntegrationEdge `json:"edges"`
	PageInfo   PageInfo           `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

IntegrationConnection is the connection containing edges to Integration.

type IntegrationCreate

type IntegrationCreate struct {
	// contains filtered or unexported fields
}

IntegrationCreate is the builder for creating a Integration entity.

func (*IntegrationCreate) Exec

func (ic *IntegrationCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*IntegrationCreate) ExecX

func (ic *IntegrationCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*IntegrationCreate) Mutation

func (ic *IntegrationCreate) Mutation() *IntegrationMutation

Mutation returns the IntegrationMutation object of the builder.

func (*IntegrationCreate) Save

Save creates the Integration in the database.

func (*IntegrationCreate) SaveX

func (ic *IntegrationCreate) SaveX(ctx context.Context) *Integration

SaveX calls Save and panics if Save returns an error.

func (*IntegrationCreate) SetCreatedAt

func (ic *IntegrationCreate) SetCreatedAt(t time.Time) *IntegrationCreate

SetCreatedAt sets the "created_at" field.

func (*IntegrationCreate) SetCreatedBy

func (ic *IntegrationCreate) SetCreatedBy(s string) *IntegrationCreate

SetCreatedBy sets the "created_by" field.

func (*IntegrationCreate) SetDeletedAt

func (ic *IntegrationCreate) SetDeletedAt(t time.Time) *IntegrationCreate

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationCreate) SetDeletedBy

func (ic *IntegrationCreate) SetDeletedBy(s string) *IntegrationCreate

SetDeletedBy sets the "deleted_by" field.

func (*IntegrationCreate) SetDescription

func (ic *IntegrationCreate) SetDescription(s string) *IntegrationCreate

SetDescription sets the "description" field.

func (*IntegrationCreate) SetID

SetID sets the "id" field.

func (*IntegrationCreate) SetInput

SetInput applies the change-set in the CreateIntegrationInput on the IntegrationCreate builder.

func (*IntegrationCreate) SetKind

func (ic *IntegrationCreate) SetKind(s string) *IntegrationCreate

SetKind sets the "kind" field.

func (*IntegrationCreate) SetName

func (ic *IntegrationCreate) SetName(s string) *IntegrationCreate

SetName sets the "name" field.

func (*IntegrationCreate) SetNillableCreatedAt

func (ic *IntegrationCreate) SetNillableCreatedAt(t *time.Time) *IntegrationCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*IntegrationCreate) SetNillableCreatedBy

func (ic *IntegrationCreate) SetNillableCreatedBy(s *string) *IntegrationCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*IntegrationCreate) SetNillableDeletedAt

func (ic *IntegrationCreate) SetNillableDeletedAt(t *time.Time) *IntegrationCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationCreate) SetNillableDeletedBy

func (ic *IntegrationCreate) SetNillableDeletedBy(s *string) *IntegrationCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*IntegrationCreate) SetNillableDescription

func (ic *IntegrationCreate) SetNillableDescription(s *string) *IntegrationCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*IntegrationCreate) SetNillableID

func (ic *IntegrationCreate) SetNillableID(s *string) *IntegrationCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*IntegrationCreate) SetNillableKind

func (ic *IntegrationCreate) SetNillableKind(s *string) *IntegrationCreate

SetNillableKind sets the "kind" field if the given value is not nil.

func (*IntegrationCreate) SetNillableOwnerID

func (ic *IntegrationCreate) SetNillableOwnerID(id *string) *IntegrationCreate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*IntegrationCreate) SetNillableUpdatedAt

func (ic *IntegrationCreate) SetNillableUpdatedAt(t *time.Time) *IntegrationCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*IntegrationCreate) SetNillableUpdatedBy

func (ic *IntegrationCreate) SetNillableUpdatedBy(s *string) *IntegrationCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*IntegrationCreate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*IntegrationCreate) SetOwnerID

func (ic *IntegrationCreate) SetOwnerID(id string) *IntegrationCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*IntegrationCreate) SetSecretName

func (ic *IntegrationCreate) SetSecretName(s string) *IntegrationCreate

SetSecretName sets the "secret_name" field.

func (*IntegrationCreate) SetUpdatedAt

func (ic *IntegrationCreate) SetUpdatedAt(t time.Time) *IntegrationCreate

SetUpdatedAt sets the "updated_at" field.

func (*IntegrationCreate) SetUpdatedBy

func (ic *IntegrationCreate) SetUpdatedBy(s string) *IntegrationCreate

SetUpdatedBy sets the "updated_by" field.

type IntegrationCreateBulk

type IntegrationCreateBulk struct {
	// contains filtered or unexported fields
}

IntegrationCreateBulk is the builder for creating many Integration entities in bulk.

func (*IntegrationCreateBulk) Exec

func (icb *IntegrationCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*IntegrationCreateBulk) ExecX

func (icb *IntegrationCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*IntegrationCreateBulk) Save

func (icb *IntegrationCreateBulk) Save(ctx context.Context) ([]*Integration, error)

Save creates the Integration entities in the database.

func (*IntegrationCreateBulk) SaveX

func (icb *IntegrationCreateBulk) SaveX(ctx context.Context) []*Integration

SaveX is like Save, but panics if an error occurs.

type IntegrationDelete

type IntegrationDelete struct {
	// contains filtered or unexported fields
}

IntegrationDelete is the builder for deleting a Integration entity.

func (*IntegrationDelete) Exec

func (id *IntegrationDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*IntegrationDelete) ExecX

func (id *IntegrationDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*IntegrationDelete) Where

Where appends a list predicates to the IntegrationDelete builder.

type IntegrationDeleteOne

type IntegrationDeleteOne struct {
	// contains filtered or unexported fields
}

IntegrationDeleteOne is the builder for deleting a single Integration entity.

func (*IntegrationDeleteOne) Exec

func (ido *IntegrationDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*IntegrationDeleteOne) ExecX

func (ido *IntegrationDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*IntegrationDeleteOne) Where

Where appends a list predicates to the IntegrationDelete builder.

type IntegrationEdge

type IntegrationEdge struct {
	Node   *Integration `json:"node"`
	Cursor Cursor       `json:"cursor"`
}

IntegrationEdge is the edge representation of Integration.

type IntegrationEdges

type IntegrationEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

IntegrationEdges holds the relations/edges for other nodes in the graph.

func (IntegrationEdges) OwnerOrErr

func (e IntegrationEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type IntegrationFilter

type IntegrationFilter struct {
	// contains filtered or unexported fields
}

IntegrationFilter provides a generic filtering capability at runtime for IntegrationQuery.

func (*IntegrationFilter) Where

func (f *IntegrationFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*IntegrationFilter) WhereCreatedAt

func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*IntegrationFilter) WhereCreatedBy

func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*IntegrationFilter) WhereDeletedAt

func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*IntegrationFilter) WhereDeletedBy

func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*IntegrationFilter) WhereDescription

func (f *IntegrationFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*IntegrationFilter) WhereHasOwner

func (f *IntegrationFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*IntegrationFilter) WhereHasOwnerWith

func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*IntegrationFilter) WhereID

func (f *IntegrationFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*IntegrationFilter) WhereKind

func (f *IntegrationFilter) WhereKind(p entql.StringP)

WhereKind applies the entql string predicate on the kind field.

func (*IntegrationFilter) WhereName

func (f *IntegrationFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*IntegrationFilter) WhereSecretName

func (f *IntegrationFilter) WhereSecretName(p entql.StringP)

WhereSecretName applies the entql string predicate on the secret_name field.

func (*IntegrationFilter) WhereUpdatedAt

func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*IntegrationFilter) WhereUpdatedBy

func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type IntegrationGroupBy

type IntegrationGroupBy struct {
	// contains filtered or unexported fields
}

IntegrationGroupBy is the group-by builder for Integration entities.

func (*IntegrationGroupBy) Aggregate

func (igb *IntegrationGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*IntegrationGroupBy) Bool

func (s *IntegrationGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) BoolX

func (s *IntegrationGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*IntegrationGroupBy) Bools

func (s *IntegrationGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) BoolsX

func (s *IntegrationGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*IntegrationGroupBy) Float64

func (s *IntegrationGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) Float64X

func (s *IntegrationGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*IntegrationGroupBy) Float64s

func (s *IntegrationGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) Float64sX

func (s *IntegrationGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*IntegrationGroupBy) Int

func (s *IntegrationGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) IntX

func (s *IntegrationGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*IntegrationGroupBy) Ints

func (s *IntegrationGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) IntsX

func (s *IntegrationGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*IntegrationGroupBy) Scan

func (igb *IntegrationGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*IntegrationGroupBy) ScanX

func (s *IntegrationGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*IntegrationGroupBy) String

func (s *IntegrationGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) StringX

func (s *IntegrationGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*IntegrationGroupBy) Strings

func (s *IntegrationGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*IntegrationGroupBy) StringsX

func (s *IntegrationGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type IntegrationMutation

type IntegrationMutation struct {
	// contains filtered or unexported fields
}

IntegrationMutation represents an operation that mutates the Integration nodes in the graph.

func (*IntegrationMutation) AddField

func (m *IntegrationMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*IntegrationMutation) AddedEdges

func (m *IntegrationMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*IntegrationMutation) AddedField

func (m *IntegrationMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*IntegrationMutation) AddedFields

func (m *IntegrationMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*IntegrationMutation) AddedIDs

func (m *IntegrationMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*IntegrationMutation) ClearCreatedBy

func (m *IntegrationMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*IntegrationMutation) ClearDeletedAt

func (m *IntegrationMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationMutation) ClearDeletedBy

func (m *IntegrationMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*IntegrationMutation) ClearDescription

func (m *IntegrationMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*IntegrationMutation) ClearEdge

func (m *IntegrationMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*IntegrationMutation) ClearField

func (m *IntegrationMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*IntegrationMutation) ClearKind

func (m *IntegrationMutation) ClearKind()

ClearKind clears the value of the "kind" field.

func (*IntegrationMutation) ClearOwner

func (m *IntegrationMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*IntegrationMutation) ClearUpdatedBy

func (m *IntegrationMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*IntegrationMutation) ClearedEdges

func (m *IntegrationMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*IntegrationMutation) ClearedFields

func (m *IntegrationMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (IntegrationMutation) Client

func (m IntegrationMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*IntegrationMutation) CreatedAt

func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*IntegrationMutation) CreatedBy

func (m *IntegrationMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*IntegrationMutation) CreatedByCleared

func (m *IntegrationMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*IntegrationMutation) DeletedAt

func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*IntegrationMutation) DeletedAtCleared

func (m *IntegrationMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*IntegrationMutation) DeletedBy

func (m *IntegrationMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*IntegrationMutation) DeletedByCleared

func (m *IntegrationMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*IntegrationMutation) Description

func (m *IntegrationMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*IntegrationMutation) DescriptionCleared

func (m *IntegrationMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*IntegrationMutation) EdgeCleared

func (m *IntegrationMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*IntegrationMutation) Field

func (m *IntegrationMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*IntegrationMutation) FieldCleared

func (m *IntegrationMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*IntegrationMutation) Fields

func (m *IntegrationMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*IntegrationMutation) Filter

Filter returns an entql.Where implementation to apply filters on the IntegrationMutation builder.

func (*IntegrationMutation) ID

func (m *IntegrationMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*IntegrationMutation) IDs

func (m *IntegrationMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*IntegrationMutation) Kind

func (m *IntegrationMutation) Kind() (r string, exists bool)

Kind returns the value of the "kind" field in the mutation.

func (*IntegrationMutation) KindCleared

func (m *IntegrationMutation) KindCleared() bool

KindCleared returns if the "kind" field was cleared in this mutation.

func (*IntegrationMutation) Name

func (m *IntegrationMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*IntegrationMutation) OldCreatedAt

func (m *IntegrationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldCreatedBy

func (m *IntegrationMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldDeletedAt

func (m *IntegrationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldDeletedBy

func (m *IntegrationMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldDescription

func (m *IntegrationMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldField

func (m *IntegrationMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*IntegrationMutation) OldKind

func (m *IntegrationMutation) OldKind(ctx context.Context) (v string, err error)

OldKind returns the old "kind" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldName

func (m *IntegrationMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldSecretName

func (m *IntegrationMutation) OldSecretName(ctx context.Context) (v string, err error)

OldSecretName returns the old "secret_name" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldUpdatedAt

func (m *IntegrationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) OldUpdatedBy

func (m *IntegrationMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the Integration entity. If the Integration object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IntegrationMutation) Op

func (m *IntegrationMutation) Op() Op

Op returns the operation name.

func (*IntegrationMutation) OwnerCleared

func (m *IntegrationMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*IntegrationMutation) OwnerID

func (m *IntegrationMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*IntegrationMutation) OwnerIDs

func (m *IntegrationMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*IntegrationMutation) RemovedEdges

func (m *IntegrationMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*IntegrationMutation) RemovedIDs

func (m *IntegrationMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*IntegrationMutation) ResetCreatedAt

func (m *IntegrationMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*IntegrationMutation) ResetCreatedBy

func (m *IntegrationMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*IntegrationMutation) ResetDeletedAt

func (m *IntegrationMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*IntegrationMutation) ResetDeletedBy

func (m *IntegrationMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*IntegrationMutation) ResetDescription

func (m *IntegrationMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*IntegrationMutation) ResetEdge

func (m *IntegrationMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*IntegrationMutation) ResetField

func (m *IntegrationMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*IntegrationMutation) ResetKind

func (m *IntegrationMutation) ResetKind()

ResetKind resets all changes to the "kind" field.

func (*IntegrationMutation) ResetName

func (m *IntegrationMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*IntegrationMutation) ResetOwner

func (m *IntegrationMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*IntegrationMutation) ResetSecretName

func (m *IntegrationMutation) ResetSecretName()

ResetSecretName resets all changes to the "secret_name" field.

func (*IntegrationMutation) ResetUpdatedAt

func (m *IntegrationMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*IntegrationMutation) ResetUpdatedBy

func (m *IntegrationMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*IntegrationMutation) SecretName

func (m *IntegrationMutation) SecretName() (r string, exists bool)

SecretName returns the value of the "secret_name" field in the mutation.

func (*IntegrationMutation) SetCreatedAt

func (m *IntegrationMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*IntegrationMutation) SetCreatedBy

func (m *IntegrationMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*IntegrationMutation) SetDeletedAt

func (m *IntegrationMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationMutation) SetDeletedBy

func (m *IntegrationMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*IntegrationMutation) SetDescription

func (m *IntegrationMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*IntegrationMutation) SetField

func (m *IntegrationMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*IntegrationMutation) SetID

func (m *IntegrationMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Integration entities.

func (*IntegrationMutation) SetKind

func (m *IntegrationMutation) SetKind(s string)

SetKind sets the "kind" field.

func (*IntegrationMutation) SetName

func (m *IntegrationMutation) SetName(s string)

SetName sets the "name" field.

func (*IntegrationMutation) SetOp

func (m *IntegrationMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*IntegrationMutation) SetOwnerID

func (m *IntegrationMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*IntegrationMutation) SetSecretName

func (m *IntegrationMutation) SetSecretName(s string)

SetSecretName sets the "secret_name" field.

func (*IntegrationMutation) SetUpdatedAt

func (m *IntegrationMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*IntegrationMutation) SetUpdatedBy

func (m *IntegrationMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (IntegrationMutation) Tx

func (m IntegrationMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*IntegrationMutation) Type

func (m *IntegrationMutation) Type() string

Type returns the node type of this mutation (Integration).

func (*IntegrationMutation) UpdatedAt

func (m *IntegrationMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*IntegrationMutation) UpdatedBy

func (m *IntegrationMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*IntegrationMutation) UpdatedByCleared

func (m *IntegrationMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*IntegrationMutation) Where

func (m *IntegrationMutation) Where(ps ...predicate.Integration)

Where appends a list predicates to the IntegrationMutation builder.

func (*IntegrationMutation) WhereP

func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the IntegrationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type IntegrationOrder

type IntegrationOrder struct {
	Direction OrderDirection         `json:"direction"`
	Field     *IntegrationOrderField `json:"field"`
}

IntegrationOrder defines the ordering of Integration.

type IntegrationOrderField

type IntegrationOrderField struct {
	// Value extracts the ordering value from the given Integration.
	Value func(*Integration) (ent.Value, error)
	// contains filtered or unexported fields
}

IntegrationOrderField defines the ordering field of Integration.

func (IntegrationOrderField) MarshalGQL

func (f IntegrationOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (IntegrationOrderField) String

func (f IntegrationOrderField) String() string

String implement fmt.Stringer interface.

func (*IntegrationOrderField) UnmarshalGQL

func (f *IntegrationOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type IntegrationPaginateOption

type IntegrationPaginateOption func(*integrationPager) error

IntegrationPaginateOption enables pagination customization.

func WithIntegrationFilter

func WithIntegrationFilter(filter func(*IntegrationQuery) (*IntegrationQuery, error)) IntegrationPaginateOption

WithIntegrationFilter configures pagination filter.

func WithIntegrationOrder

func WithIntegrationOrder(order *IntegrationOrder) IntegrationPaginateOption

WithIntegrationOrder configures pagination ordering.

type IntegrationQuery

type IntegrationQuery struct {
	// contains filtered or unexported fields
}

IntegrationQuery is the builder for querying Integration entities.

func (*IntegrationQuery) Aggregate

func (iq *IntegrationQuery) Aggregate(fns ...AggregateFunc) *IntegrationSelect

Aggregate returns a IntegrationSelect configured with the given aggregations.

func (*IntegrationQuery) All

func (iq *IntegrationQuery) All(ctx context.Context) ([]*Integration, error)

All executes the query and returns a list of Integrations.

func (*IntegrationQuery) AllX

func (iq *IntegrationQuery) AllX(ctx context.Context) []*Integration

AllX is like All, but panics if an error occurs.

func (*IntegrationQuery) Clone

func (iq *IntegrationQuery) Clone() *IntegrationQuery

Clone returns a duplicate of the IntegrationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*IntegrationQuery) CollectFields

func (i *IntegrationQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*IntegrationQuery) Count

func (iq *IntegrationQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*IntegrationQuery) CountX

func (iq *IntegrationQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*IntegrationQuery) Exist

func (iq *IntegrationQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*IntegrationQuery) ExistX

func (iq *IntegrationQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*IntegrationQuery) Filter

func (iq *IntegrationQuery) Filter() *IntegrationFilter

Filter returns a Filter implementation to apply filters on the IntegrationQuery builder.

func (*IntegrationQuery) First

func (iq *IntegrationQuery) First(ctx context.Context) (*Integration, error)

First returns the first Integration entity from the query. Returns a *NotFoundError when no Integration was found.

func (*IntegrationQuery) FirstID

func (iq *IntegrationQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first Integration ID from the query. Returns a *NotFoundError when no Integration ID was found.

func (*IntegrationQuery) FirstIDX

func (iq *IntegrationQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*IntegrationQuery) FirstX

func (iq *IntegrationQuery) FirstX(ctx context.Context) *Integration

FirstX is like First, but panics if an error occurs.

func (*IntegrationQuery) GroupBy

func (iq *IntegrationQuery) GroupBy(field string, fields ...string) *IntegrationGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Integration.Query().
	GroupBy(integration.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*IntegrationQuery) IDs

func (iq *IntegrationQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of Integration IDs.

func (*IntegrationQuery) IDsX

func (iq *IntegrationQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*IntegrationQuery) Limit

func (iq *IntegrationQuery) Limit(limit int) *IntegrationQuery

Limit the number of records to be returned by this query.

func (*IntegrationQuery) Offset

func (iq *IntegrationQuery) Offset(offset int) *IntegrationQuery

Offset to start from.

func (*IntegrationQuery) Only

func (iq *IntegrationQuery) Only(ctx context.Context) (*Integration, error)

Only returns a single Integration entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Integration entity is found. Returns a *NotFoundError when no Integration entities are found.

func (*IntegrationQuery) OnlyID

func (iq *IntegrationQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only Integration ID in the query. Returns a *NotSingularError when more than one Integration ID is found. Returns a *NotFoundError when no entities are found.

func (*IntegrationQuery) OnlyIDX

func (iq *IntegrationQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*IntegrationQuery) OnlyX

func (iq *IntegrationQuery) OnlyX(ctx context.Context) *Integration

OnlyX is like Only, but panics if an error occurs.

func (*IntegrationQuery) Order

Order specifies how the records should be ordered.

func (*IntegrationQuery) Paginate

func (i *IntegrationQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...IntegrationPaginateOption,
) (*IntegrationConnection, error)

Paginate executes the query and returns a relay based cursor connection to Integration.

func (*IntegrationQuery) QueryOwner

func (iq *IntegrationQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*IntegrationQuery) Select

func (iq *IntegrationQuery) Select(fields ...string) *IntegrationSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Integration.Query().
	Select(integration.FieldCreatedAt).
	Scan(ctx, &v)

func (*IntegrationQuery) Unique

func (iq *IntegrationQuery) Unique(unique bool) *IntegrationQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*IntegrationQuery) Where

Where adds a new predicate for the IntegrationQuery builder.

func (*IntegrationQuery) WithOwner

func (iq *IntegrationQuery) WithOwner(opts ...func(*OrganizationQuery)) *IntegrationQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type IntegrationSelect

type IntegrationSelect struct {
	*IntegrationQuery
	// contains filtered or unexported fields
}

IntegrationSelect is the builder for selecting fields of Integration entities.

func (*IntegrationSelect) Aggregate

func (is *IntegrationSelect) Aggregate(fns ...AggregateFunc) *IntegrationSelect

Aggregate adds the given aggregation functions to the selector query.

func (*IntegrationSelect) Bool

func (s *IntegrationSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) BoolX

func (s *IntegrationSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*IntegrationSelect) Bools

func (s *IntegrationSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) BoolsX

func (s *IntegrationSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*IntegrationSelect) Float64

func (s *IntegrationSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) Float64X

func (s *IntegrationSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*IntegrationSelect) Float64s

func (s *IntegrationSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) Float64sX

func (s *IntegrationSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*IntegrationSelect) Int

func (s *IntegrationSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) IntX

func (s *IntegrationSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*IntegrationSelect) Ints

func (s *IntegrationSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) IntsX

func (s *IntegrationSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*IntegrationSelect) Scan

func (is *IntegrationSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*IntegrationSelect) ScanX

func (s *IntegrationSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*IntegrationSelect) String

func (s *IntegrationSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) StringX

func (s *IntegrationSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*IntegrationSelect) Strings

func (s *IntegrationSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*IntegrationSelect) StringsX

func (s *IntegrationSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type IntegrationUpdate

type IntegrationUpdate struct {
	// contains filtered or unexported fields
}

IntegrationUpdate is the builder for updating Integration entities.

func (*IntegrationUpdate) ClearDeletedAt

func (iu *IntegrationUpdate) ClearDeletedAt() *IntegrationUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationUpdate) ClearDeletedBy

func (iu *IntegrationUpdate) ClearDeletedBy() *IntegrationUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*IntegrationUpdate) ClearDescription

func (iu *IntegrationUpdate) ClearDescription() *IntegrationUpdate

ClearDescription clears the value of the "description" field.

func (*IntegrationUpdate) ClearKind

func (iu *IntegrationUpdate) ClearKind() *IntegrationUpdate

ClearKind clears the value of the "kind" field.

func (*IntegrationUpdate) ClearOwner

func (iu *IntegrationUpdate) ClearOwner() *IntegrationUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*IntegrationUpdate) ClearUpdatedBy

func (iu *IntegrationUpdate) ClearUpdatedBy() *IntegrationUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*IntegrationUpdate) Exec

func (iu *IntegrationUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*IntegrationUpdate) ExecX

func (iu *IntegrationUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*IntegrationUpdate) Mutation

func (iu *IntegrationUpdate) Mutation() *IntegrationMutation

Mutation returns the IntegrationMutation object of the builder.

func (*IntegrationUpdate) Save

func (iu *IntegrationUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*IntegrationUpdate) SaveX

func (iu *IntegrationUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*IntegrationUpdate) SetDeletedAt

func (iu *IntegrationUpdate) SetDeletedAt(t time.Time) *IntegrationUpdate

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationUpdate) SetDeletedBy

func (iu *IntegrationUpdate) SetDeletedBy(s string) *IntegrationUpdate

SetDeletedBy sets the "deleted_by" field.

func (*IntegrationUpdate) SetDescription

func (iu *IntegrationUpdate) SetDescription(s string) *IntegrationUpdate

SetDescription sets the "description" field.

func (*IntegrationUpdate) SetInput

SetInput applies the change-set in the UpdateIntegrationInput on the IntegrationUpdate builder.

func (*IntegrationUpdate) SetKind

func (iu *IntegrationUpdate) SetKind(s string) *IntegrationUpdate

SetKind sets the "kind" field.

func (*IntegrationUpdate) SetName

func (iu *IntegrationUpdate) SetName(s string) *IntegrationUpdate

SetName sets the "name" field.

func (*IntegrationUpdate) SetNillableDeletedAt

func (iu *IntegrationUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationUpdate) SetNillableDeletedBy

func (iu *IntegrationUpdate) SetNillableDeletedBy(s *string) *IntegrationUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*IntegrationUpdate) SetNillableDescription

func (iu *IntegrationUpdate) SetNillableDescription(s *string) *IntegrationUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*IntegrationUpdate) SetNillableKind

func (iu *IntegrationUpdate) SetNillableKind(s *string) *IntegrationUpdate

SetNillableKind sets the "kind" field if the given value is not nil.

func (*IntegrationUpdate) SetNillableName

func (iu *IntegrationUpdate) SetNillableName(s *string) *IntegrationUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*IntegrationUpdate) SetNillableOwnerID

func (iu *IntegrationUpdate) SetNillableOwnerID(id *string) *IntegrationUpdate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*IntegrationUpdate) SetNillableUpdatedBy

func (iu *IntegrationUpdate) SetNillableUpdatedBy(s *string) *IntegrationUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*IntegrationUpdate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*IntegrationUpdate) SetOwnerID

func (iu *IntegrationUpdate) SetOwnerID(id string) *IntegrationUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*IntegrationUpdate) SetUpdatedAt

func (iu *IntegrationUpdate) SetUpdatedAt(t time.Time) *IntegrationUpdate

SetUpdatedAt sets the "updated_at" field.

func (*IntegrationUpdate) SetUpdatedBy

func (iu *IntegrationUpdate) SetUpdatedBy(s string) *IntegrationUpdate

SetUpdatedBy sets the "updated_by" field.

func (*IntegrationUpdate) Where

Where appends a list predicates to the IntegrationUpdate builder.

type IntegrationUpdateOne

type IntegrationUpdateOne struct {
	// contains filtered or unexported fields
}

IntegrationUpdateOne is the builder for updating a single Integration entity.

func (*IntegrationUpdateOne) ClearDeletedAt

func (iuo *IntegrationUpdateOne) ClearDeletedAt() *IntegrationUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationUpdateOne) ClearDeletedBy

func (iuo *IntegrationUpdateOne) ClearDeletedBy() *IntegrationUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*IntegrationUpdateOne) ClearDescription

func (iuo *IntegrationUpdateOne) ClearDescription() *IntegrationUpdateOne

ClearDescription clears the value of the "description" field.

func (*IntegrationUpdateOne) ClearKind

func (iuo *IntegrationUpdateOne) ClearKind() *IntegrationUpdateOne

ClearKind clears the value of the "kind" field.

func (*IntegrationUpdateOne) ClearOwner

func (iuo *IntegrationUpdateOne) ClearOwner() *IntegrationUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*IntegrationUpdateOne) ClearUpdatedBy

func (iuo *IntegrationUpdateOne) ClearUpdatedBy() *IntegrationUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*IntegrationUpdateOne) Exec

func (iuo *IntegrationUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*IntegrationUpdateOne) ExecX

func (iuo *IntegrationUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*IntegrationUpdateOne) Mutation

func (iuo *IntegrationUpdateOne) Mutation() *IntegrationMutation

Mutation returns the IntegrationMutation object of the builder.

func (*IntegrationUpdateOne) Save

Save executes the query and returns the updated Integration entity.

func (*IntegrationUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*IntegrationUpdateOne) Select

func (iuo *IntegrationUpdateOne) Select(field string, fields ...string) *IntegrationUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*IntegrationUpdateOne) SetDeletedAt

func (iuo *IntegrationUpdateOne) SetDeletedAt(t time.Time) *IntegrationUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationUpdateOne) SetDeletedBy

func (iuo *IntegrationUpdateOne) SetDeletedBy(s string) *IntegrationUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*IntegrationUpdateOne) SetDescription

func (iuo *IntegrationUpdateOne) SetDescription(s string) *IntegrationUpdateOne

SetDescription sets the "description" field.

func (*IntegrationUpdateOne) SetInput

SetInput applies the change-set in the UpdateIntegrationInput on the IntegrationUpdateOne builder.

func (*IntegrationUpdateOne) SetKind

SetKind sets the "kind" field.

func (*IntegrationUpdateOne) SetName

SetName sets the "name" field.

func (*IntegrationUpdateOne) SetNillableDeletedAt

func (iuo *IntegrationUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationUpdateOne) SetNillableDeletedBy

func (iuo *IntegrationUpdateOne) SetNillableDeletedBy(s *string) *IntegrationUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*IntegrationUpdateOne) SetNillableDescription

func (iuo *IntegrationUpdateOne) SetNillableDescription(s *string) *IntegrationUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*IntegrationUpdateOne) SetNillableKind

func (iuo *IntegrationUpdateOne) SetNillableKind(s *string) *IntegrationUpdateOne

SetNillableKind sets the "kind" field if the given value is not nil.

func (*IntegrationUpdateOne) SetNillableName

func (iuo *IntegrationUpdateOne) SetNillableName(s *string) *IntegrationUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*IntegrationUpdateOne) SetNillableOwnerID

func (iuo *IntegrationUpdateOne) SetNillableOwnerID(id *string) *IntegrationUpdateOne

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*IntegrationUpdateOne) SetNillableUpdatedBy

func (iuo *IntegrationUpdateOne) SetNillableUpdatedBy(s *string) *IntegrationUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*IntegrationUpdateOne) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*IntegrationUpdateOne) SetOwnerID

func (iuo *IntegrationUpdateOne) SetOwnerID(id string) *IntegrationUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*IntegrationUpdateOne) SetUpdatedAt

func (iuo *IntegrationUpdateOne) SetUpdatedAt(t time.Time) *IntegrationUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*IntegrationUpdateOne) SetUpdatedBy

func (iuo *IntegrationUpdateOne) SetUpdatedBy(s string) *IntegrationUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*IntegrationUpdateOne) Where

Where appends a list predicates to the IntegrationUpdate builder.

type IntegrationWhereInput

type IntegrationWhereInput struct {
	Predicates []predicate.Integration  `json:"-"`
	Not        *IntegrationWhereInput   `json:"not,omitempty"`
	Or         []*IntegrationWhereInput `json:"or,omitempty"`
	And        []*IntegrationWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "kind" field predicates.
	Kind             *string  `json:"kind,omitempty"`
	KindNEQ          *string  `json:"kindNEQ,omitempty"`
	KindIn           []string `json:"kindIn,omitempty"`
	KindNotIn        []string `json:"kindNotIn,omitempty"`
	KindGT           *string  `json:"kindGT,omitempty"`
	KindGTE          *string  `json:"kindGTE,omitempty"`
	KindLT           *string  `json:"kindLT,omitempty"`
	KindLTE          *string  `json:"kindLTE,omitempty"`
	KindContains     *string  `json:"kindContains,omitempty"`
	KindHasPrefix    *string  `json:"kindHasPrefix,omitempty"`
	KindHasSuffix    *string  `json:"kindHasSuffix,omitempty"`
	KindIsNil        bool     `json:"kindIsNil,omitempty"`
	KindNotNil       bool     `json:"kindNotNil,omitempty"`
	KindEqualFold    *string  `json:"kindEqualFold,omitempty"`
	KindContainsFold *string  `json:"kindContainsFold,omitempty"`

	// "secret_name" field predicates.
	SecretName             *string  `json:"secretName,omitempty"`
	SecretNameNEQ          *string  `json:"secretNameNEQ,omitempty"`
	SecretNameIn           []string `json:"secretNameIn,omitempty"`
	SecretNameNotIn        []string `json:"secretNameNotIn,omitempty"`
	SecretNameGT           *string  `json:"secretNameGT,omitempty"`
	SecretNameGTE          *string  `json:"secretNameGTE,omitempty"`
	SecretNameLT           *string  `json:"secretNameLT,omitempty"`
	SecretNameLTE          *string  `json:"secretNameLTE,omitempty"`
	SecretNameContains     *string  `json:"secretNameContains,omitempty"`
	SecretNameHasPrefix    *string  `json:"secretNameHasPrefix,omitempty"`
	SecretNameHasSuffix    *string  `json:"secretNameHasSuffix,omitempty"`
	SecretNameEqualFold    *string  `json:"secretNameEqualFold,omitempty"`
	SecretNameContainsFold *string  `json:"secretNameContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`
}

IntegrationWhereInput represents a where input for filtering Integration queries.

func (*IntegrationWhereInput) AddPredicates

func (i *IntegrationWhereInput) AddPredicates(predicates ...predicate.Integration)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*IntegrationWhereInput) Filter

Filter applies the IntegrationWhereInput filter on the IntegrationQuery builder.

func (*IntegrationWhereInput) P

P returns a predicate for filtering integrations. An error is returned if the input is empty or invalid.

type Integrations

type Integrations []*Integration

Integrations is a parsable slice of Integration.

type InterceptFunc

type InterceptFunc = ent.InterceptFunc

ent aliases to avoid import conflicts in user's code.

type Interceptor

type Interceptor = ent.Interceptor

ent aliases to avoid import conflicts in user's code.

type MutateFunc

type MutateFunc = ent.MutateFunc

ent aliases to avoid import conflicts in user's code.

type Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

ent aliases to avoid import conflicts in user's code.

type NodeOption

type NodeOption func(*nodeOptions)

NodeOption allows configuring the Noder execution using functional options.

func WithFixedNodeType

func WithFixedNodeType(t string) NodeOption

WithFixedNodeType sets the Type of the node to a fixed value.

func WithNodeType

func WithNodeType(f func(context.Context, string) (string, error)) NodeOption

WithNodeType sets the node Type resolver function (i.e. the table to query). If was not provided, the table will be derived from the universal-id configuration as described in: https://entgo.io/docs/migrate/#universal-ids.

type Noder

type Noder interface {
	IsNode()
}

Noder wraps the basic Node method.

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError returns when trying to fetch a specific entity and it was not found in the database.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error implements the error interface.

type NotLoadedError

type NotLoadedError struct {
	// contains filtered or unexported fields
}

NotLoadedError returns when trying to get a node that was not loaded by the query.

func (*NotLoadedError) Error

func (e *NotLoadedError) Error() string

Error implements the error interface.

type NotSingularError

type NotSingularError struct {
	// contains filtered or unexported fields
}

NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.

func (*NotSingularError) Error

func (e *NotSingularError) Error() string

Error implements the error interface.

type OauthProvider

type OauthProvider struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// the oauth provider's name
	Name string `json:"name,omitempty"`
	// the client id for the oauth provider
	ClientID string `json:"client_id,omitempty"`
	// the client secret
	ClientSecret string `json:"client_secret,omitempty"`
	// the redirect url
	RedirectURL string `json:"redirect_url,omitempty"`
	// the scopes
	Scopes string `json:"scopes,omitempty"`
	// the auth url of the provider
	AuthURL string `json:"auth_url,omitempty"`
	// the token url of the provider
	TokenURL string `json:"token_url,omitempty"`
	// the auth style, 0: auto detect 1: third party log in 2: log in with username and password
	AuthStyle uint8 `json:"auth_style,omitempty"`
	// the URL to request user information by token
	InfoURL string `json:"info_url,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the OauthProviderQuery when eager-loading is set.
	Edges OauthProviderEdges `json:"edges"`
	// contains filtered or unexported fields
}

OauthProvider is the model entity for the OauthProvider schema.

func (*OauthProvider) IsNode

func (n *OauthProvider) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*OauthProvider) Owner

func (op *OauthProvider) Owner(ctx context.Context) (*Organization, error)

func (*OauthProvider) QueryOwner

func (op *OauthProvider) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the OauthProvider entity.

func (*OauthProvider) String

func (op *OauthProvider) String() string

String implements the fmt.Stringer.

func (*OauthProvider) ToEdge

ToEdge converts OauthProvider into OauthProviderEdge.

func (*OauthProvider) Unwrap

func (op *OauthProvider) Unwrap() *OauthProvider

Unwrap unwraps the OauthProvider entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*OauthProvider) Update

func (op *OauthProvider) Update() *OauthProviderUpdateOne

Update returns a builder for updating this OauthProvider. Note that you need to call OauthProvider.Unwrap() before calling this method if this OauthProvider was returned from a transaction, and the transaction was committed or rolled back.

func (*OauthProvider) Value

func (op *OauthProvider) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the OauthProvider. This includes values selected through modifiers, order, etc.

type OauthProviderClient

type OauthProviderClient struct {
	// contains filtered or unexported fields
}

OauthProviderClient is a client for the OauthProvider schema.

func NewOauthProviderClient

func NewOauthProviderClient(c config) *OauthProviderClient

NewOauthProviderClient returns a client for the OauthProvider from the given config.

func (*OauthProviderClient) Create

Create returns a builder for creating a OauthProvider entity.

func (*OauthProviderClient) CreateBulk

CreateBulk returns a builder for creating a bulk of OauthProvider entities.

func (*OauthProviderClient) Delete

Delete returns a delete builder for OauthProvider.

func (*OauthProviderClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*OauthProviderClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*OauthProviderClient) Get

Get returns a OauthProvider entity by its id.

func (*OauthProviderClient) GetX

GetX is like Get, but panics if an error occurs.

func (*OauthProviderClient) Hooks

func (c *OauthProviderClient) Hooks() []Hook

Hooks returns the client hooks.

func (*OauthProviderClient) Intercept

func (c *OauthProviderClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `oauthprovider.Intercept(f(g(h())))`.

func (*OauthProviderClient) Interceptors

func (c *OauthProviderClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*OauthProviderClient) MapCreateBulk

func (c *OauthProviderClient) MapCreateBulk(slice any, setFunc func(*OauthProviderCreate, int)) *OauthProviderCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*OauthProviderClient) Query

Query returns a query builder for OauthProvider.

func (*OauthProviderClient) QueryOwner

QueryOwner queries the owner edge of a OauthProvider.

func (*OauthProviderClient) Update

Update returns an update builder for OauthProvider.

func (*OauthProviderClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OauthProviderClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*OauthProviderClient) Use

func (c *OauthProviderClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `oauthprovider.Hooks(f(g(h())))`.

type OauthProviderConnection

type OauthProviderConnection struct {
	Edges      []*OauthProviderEdge `json:"edges"`
	PageInfo   PageInfo             `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

OauthProviderConnection is the connection containing edges to OauthProvider.

type OauthProviderCreate

type OauthProviderCreate struct {
	// contains filtered or unexported fields
}

OauthProviderCreate is the builder for creating a OauthProvider entity.

func (*OauthProviderCreate) Exec

func (opc *OauthProviderCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*OauthProviderCreate) ExecX

func (opc *OauthProviderCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OauthProviderCreate) Mutation

func (opc *OauthProviderCreate) Mutation() *OauthProviderMutation

Mutation returns the OauthProviderMutation object of the builder.

func (*OauthProviderCreate) Save

Save creates the OauthProvider in the database.

func (*OauthProviderCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OauthProviderCreate) SetAuthStyle

func (opc *OauthProviderCreate) SetAuthStyle(u uint8) *OauthProviderCreate

SetAuthStyle sets the "auth_style" field.

func (*OauthProviderCreate) SetAuthURL

func (opc *OauthProviderCreate) SetAuthURL(s string) *OauthProviderCreate

SetAuthURL sets the "auth_url" field.

func (*OauthProviderCreate) SetClientID

func (opc *OauthProviderCreate) SetClientID(s string) *OauthProviderCreate

SetClientID sets the "client_id" field.

func (*OauthProviderCreate) SetClientSecret

func (opc *OauthProviderCreate) SetClientSecret(s string) *OauthProviderCreate

SetClientSecret sets the "client_secret" field.

func (*OauthProviderCreate) SetCreatedAt

func (opc *OauthProviderCreate) SetCreatedAt(t time.Time) *OauthProviderCreate

SetCreatedAt sets the "created_at" field.

func (*OauthProviderCreate) SetCreatedBy

func (opc *OauthProviderCreate) SetCreatedBy(s string) *OauthProviderCreate

SetCreatedBy sets the "created_by" field.

func (*OauthProviderCreate) SetDeletedAt

func (opc *OauthProviderCreate) SetDeletedAt(t time.Time) *OauthProviderCreate

SetDeletedAt sets the "deleted_at" field.

func (*OauthProviderCreate) SetDeletedBy

func (opc *OauthProviderCreate) SetDeletedBy(s string) *OauthProviderCreate

SetDeletedBy sets the "deleted_by" field.

func (*OauthProviderCreate) SetID

SetID sets the "id" field.

func (*OauthProviderCreate) SetInfoURL

func (opc *OauthProviderCreate) SetInfoURL(s string) *OauthProviderCreate

SetInfoURL sets the "info_url" field.

func (*OauthProviderCreate) SetInput

SetInput applies the change-set in the CreateOauthProviderInput on the OauthProviderCreate builder.

func (*OauthProviderCreate) SetName

SetName sets the "name" field.

func (*OauthProviderCreate) SetNillableCreatedAt

func (opc *OauthProviderCreate) SetNillableCreatedAt(t *time.Time) *OauthProviderCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*OauthProviderCreate) SetNillableCreatedBy

func (opc *OauthProviderCreate) SetNillableCreatedBy(s *string) *OauthProviderCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*OauthProviderCreate) SetNillableDeletedAt

func (opc *OauthProviderCreate) SetNillableDeletedAt(t *time.Time) *OauthProviderCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OauthProviderCreate) SetNillableDeletedBy

func (opc *OauthProviderCreate) SetNillableDeletedBy(s *string) *OauthProviderCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OauthProviderCreate) SetNillableID

func (opc *OauthProviderCreate) SetNillableID(s *string) *OauthProviderCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*OauthProviderCreate) SetNillableOwnerID

func (opc *OauthProviderCreate) SetNillableOwnerID(id *string) *OauthProviderCreate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*OauthProviderCreate) SetNillableUpdatedAt

func (opc *OauthProviderCreate) SetNillableUpdatedAt(t *time.Time) *OauthProviderCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*OauthProviderCreate) SetNillableUpdatedBy

func (opc *OauthProviderCreate) SetNillableUpdatedBy(s *string) *OauthProviderCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OauthProviderCreate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*OauthProviderCreate) SetOwnerID

func (opc *OauthProviderCreate) SetOwnerID(id string) *OauthProviderCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*OauthProviderCreate) SetRedirectURL

func (opc *OauthProviderCreate) SetRedirectURL(s string) *OauthProviderCreate

SetRedirectURL sets the "redirect_url" field.

func (*OauthProviderCreate) SetScopes

func (opc *OauthProviderCreate) SetScopes(s string) *OauthProviderCreate

SetScopes sets the "scopes" field.

func (*OauthProviderCreate) SetTokenURL

func (opc *OauthProviderCreate) SetTokenURL(s string) *OauthProviderCreate

SetTokenURL sets the "token_url" field.

func (*OauthProviderCreate) SetUpdatedAt

func (opc *OauthProviderCreate) SetUpdatedAt(t time.Time) *OauthProviderCreate

SetUpdatedAt sets the "updated_at" field.

func (*OauthProviderCreate) SetUpdatedBy

func (opc *OauthProviderCreate) SetUpdatedBy(s string) *OauthProviderCreate

SetUpdatedBy sets the "updated_by" field.

type OauthProviderCreateBulk

type OauthProviderCreateBulk struct {
	// contains filtered or unexported fields
}

OauthProviderCreateBulk is the builder for creating many OauthProvider entities in bulk.

func (*OauthProviderCreateBulk) Exec

func (opcb *OauthProviderCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*OauthProviderCreateBulk) ExecX

func (opcb *OauthProviderCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OauthProviderCreateBulk) Save

Save creates the OauthProvider entities in the database.

func (*OauthProviderCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type OauthProviderDelete

type OauthProviderDelete struct {
	// contains filtered or unexported fields
}

OauthProviderDelete is the builder for deleting a OauthProvider entity.

func (*OauthProviderDelete) Exec

func (opd *OauthProviderDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*OauthProviderDelete) ExecX

func (opd *OauthProviderDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*OauthProviderDelete) Where

Where appends a list predicates to the OauthProviderDelete builder.

type OauthProviderDeleteOne

type OauthProviderDeleteOne struct {
	// contains filtered or unexported fields
}

OauthProviderDeleteOne is the builder for deleting a single OauthProvider entity.

func (*OauthProviderDeleteOne) Exec

func (opdo *OauthProviderDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*OauthProviderDeleteOne) ExecX

func (opdo *OauthProviderDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OauthProviderDeleteOne) Where

Where appends a list predicates to the OauthProviderDelete builder.

type OauthProviderEdge

type OauthProviderEdge struct {
	Node   *OauthProvider `json:"node"`
	Cursor Cursor         `json:"cursor"`
}

OauthProviderEdge is the edge representation of OauthProvider.

type OauthProviderEdges

type OauthProviderEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

OauthProviderEdges holds the relations/edges for other nodes in the graph.

func (OauthProviderEdges) OwnerOrErr

func (e OauthProviderEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type OauthProviderFilter

type OauthProviderFilter struct {
	// contains filtered or unexported fields
}

OauthProviderFilter provides a generic filtering capability at runtime for OauthProviderQuery.

func (*OauthProviderFilter) Where

func (f *OauthProviderFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*OauthProviderFilter) WhereAuthStyle

func (f *OauthProviderFilter) WhereAuthStyle(p entql.Uint8P)

WhereAuthStyle applies the entql uint8 predicate on the auth_style field.

func (*OauthProviderFilter) WhereAuthURL

func (f *OauthProviderFilter) WhereAuthURL(p entql.StringP)

WhereAuthURL applies the entql string predicate on the auth_url field.

func (*OauthProviderFilter) WhereClientID

func (f *OauthProviderFilter) WhereClientID(p entql.StringP)

WhereClientID applies the entql string predicate on the client_id field.

func (*OauthProviderFilter) WhereClientSecret

func (f *OauthProviderFilter) WhereClientSecret(p entql.StringP)

WhereClientSecret applies the entql string predicate on the client_secret field.

func (*OauthProviderFilter) WhereCreatedAt

func (f *OauthProviderFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*OauthProviderFilter) WhereCreatedBy

func (f *OauthProviderFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*OauthProviderFilter) WhereDeletedAt

func (f *OauthProviderFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*OauthProviderFilter) WhereDeletedBy

func (f *OauthProviderFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*OauthProviderFilter) WhereHasOwner

func (f *OauthProviderFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*OauthProviderFilter) WhereHasOwnerWith

func (f *OauthProviderFilter) WhereHasOwnerWith(preds ...predicate.Organization)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*OauthProviderFilter) WhereID

func (f *OauthProviderFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*OauthProviderFilter) WhereInfoURL

func (f *OauthProviderFilter) WhereInfoURL(p entql.StringP)

WhereInfoURL applies the entql string predicate on the info_url field.

func (*OauthProviderFilter) WhereName

func (f *OauthProviderFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*OauthProviderFilter) WhereRedirectURL

func (f *OauthProviderFilter) WhereRedirectURL(p entql.StringP)

WhereRedirectURL applies the entql string predicate on the redirect_url field.

func (*OauthProviderFilter) WhereScopes

func (f *OauthProviderFilter) WhereScopes(p entql.StringP)

WhereScopes applies the entql string predicate on the scopes field.

func (*OauthProviderFilter) WhereTokenURL

func (f *OauthProviderFilter) WhereTokenURL(p entql.StringP)

WhereTokenURL applies the entql string predicate on the token_url field.

func (*OauthProviderFilter) WhereUpdatedAt

func (f *OauthProviderFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*OauthProviderFilter) WhereUpdatedBy

func (f *OauthProviderFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type OauthProviderGroupBy

type OauthProviderGroupBy struct {
	// contains filtered or unexported fields
}

OauthProviderGroupBy is the group-by builder for OauthProvider entities.

func (*OauthProviderGroupBy) Aggregate

func (opgb *OauthProviderGroupBy) Aggregate(fns ...AggregateFunc) *OauthProviderGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*OauthProviderGroupBy) Bool

func (s *OauthProviderGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) BoolX

func (s *OauthProviderGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OauthProviderGroupBy) Bools

func (s *OauthProviderGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) BoolsX

func (s *OauthProviderGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OauthProviderGroupBy) Float64

func (s *OauthProviderGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) Float64X

func (s *OauthProviderGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OauthProviderGroupBy) Float64s

func (s *OauthProviderGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) Float64sX

func (s *OauthProviderGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OauthProviderGroupBy) Int

func (s *OauthProviderGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) IntX

func (s *OauthProviderGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OauthProviderGroupBy) Ints

func (s *OauthProviderGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) IntsX

func (s *OauthProviderGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OauthProviderGroupBy) Scan

func (opgb *OauthProviderGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OauthProviderGroupBy) ScanX

func (s *OauthProviderGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OauthProviderGroupBy) String

func (s *OauthProviderGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) StringX

func (s *OauthProviderGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OauthProviderGroupBy) Strings

func (s *OauthProviderGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OauthProviderGroupBy) StringsX

func (s *OauthProviderGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OauthProviderMutation

type OauthProviderMutation struct {
	// contains filtered or unexported fields
}

OauthProviderMutation represents an operation that mutates the OauthProvider nodes in the graph.

func (*OauthProviderMutation) AddAuthStyle

func (m *OauthProviderMutation) AddAuthStyle(u int8)

AddAuthStyle adds u to the "auth_style" field.

func (*OauthProviderMutation) AddField

func (m *OauthProviderMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OauthProviderMutation) AddedAuthStyle

func (m *OauthProviderMutation) AddedAuthStyle() (r int8, exists bool)

AddedAuthStyle returns the value that was added to the "auth_style" field in this mutation.

func (*OauthProviderMutation) AddedEdges

func (m *OauthProviderMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*OauthProviderMutation) AddedField

func (m *OauthProviderMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OauthProviderMutation) AddedFields

func (m *OauthProviderMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*OauthProviderMutation) AddedIDs

func (m *OauthProviderMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*OauthProviderMutation) AuthStyle

func (m *OauthProviderMutation) AuthStyle() (r uint8, exists bool)

AuthStyle returns the value of the "auth_style" field in the mutation.

func (*OauthProviderMutation) AuthURL

func (m *OauthProviderMutation) AuthURL() (r string, exists bool)

AuthURL returns the value of the "auth_url" field in the mutation.

func (*OauthProviderMutation) ClearCreatedBy

func (m *OauthProviderMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*OauthProviderMutation) ClearDeletedAt

func (m *OauthProviderMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OauthProviderMutation) ClearDeletedBy

func (m *OauthProviderMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OauthProviderMutation) ClearEdge

func (m *OauthProviderMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*OauthProviderMutation) ClearField

func (m *OauthProviderMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*OauthProviderMutation) ClearOwner

func (m *OauthProviderMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*OauthProviderMutation) ClearUpdatedBy

func (m *OauthProviderMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OauthProviderMutation) ClearedEdges

func (m *OauthProviderMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*OauthProviderMutation) ClearedFields

func (m *OauthProviderMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (OauthProviderMutation) Client

func (m OauthProviderMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*OauthProviderMutation) ClientID

func (m *OauthProviderMutation) ClientID() (r string, exists bool)

ClientID returns the value of the "client_id" field in the mutation.

func (*OauthProviderMutation) ClientSecret

func (m *OauthProviderMutation) ClientSecret() (r string, exists bool)

ClientSecret returns the value of the "client_secret" field in the mutation.

func (*OauthProviderMutation) CreatedAt

func (m *OauthProviderMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*OauthProviderMutation) CreatedBy

func (m *OauthProviderMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*OauthProviderMutation) CreatedByCleared

func (m *OauthProviderMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*OauthProviderMutation) DeletedAt

func (m *OauthProviderMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*OauthProviderMutation) DeletedAtCleared

func (m *OauthProviderMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*OauthProviderMutation) DeletedBy

func (m *OauthProviderMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*OauthProviderMutation) DeletedByCleared

func (m *OauthProviderMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*OauthProviderMutation) EdgeCleared

func (m *OauthProviderMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*OauthProviderMutation) Field

func (m *OauthProviderMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OauthProviderMutation) FieldCleared

func (m *OauthProviderMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*OauthProviderMutation) Fields

func (m *OauthProviderMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*OauthProviderMutation) Filter

Filter returns an entql.Where implementation to apply filters on the OauthProviderMutation builder.

func (*OauthProviderMutation) ID

func (m *OauthProviderMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*OauthProviderMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*OauthProviderMutation) InfoURL

func (m *OauthProviderMutation) InfoURL() (r string, exists bool)

InfoURL returns the value of the "info_url" field in the mutation.

func (*OauthProviderMutation) Name

func (m *OauthProviderMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*OauthProviderMutation) OldAuthStyle

func (m *OauthProviderMutation) OldAuthStyle(ctx context.Context) (v uint8, err error)

OldAuthStyle returns the old "auth_style" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldAuthURL

func (m *OauthProviderMutation) OldAuthURL(ctx context.Context) (v string, err error)

OldAuthURL returns the old "auth_url" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldClientID

func (m *OauthProviderMutation) OldClientID(ctx context.Context) (v string, err error)

OldClientID returns the old "client_id" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldClientSecret

func (m *OauthProviderMutation) OldClientSecret(ctx context.Context) (v string, err error)

OldClientSecret returns the old "client_secret" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldCreatedAt

func (m *OauthProviderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldCreatedBy

func (m *OauthProviderMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldDeletedAt

func (m *OauthProviderMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldDeletedBy

func (m *OauthProviderMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldField

func (m *OauthProviderMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*OauthProviderMutation) OldInfoURL

func (m *OauthProviderMutation) OldInfoURL(ctx context.Context) (v string, err error)

OldInfoURL returns the old "info_url" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldName

func (m *OauthProviderMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldRedirectURL

func (m *OauthProviderMutation) OldRedirectURL(ctx context.Context) (v string, err error)

OldRedirectURL returns the old "redirect_url" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldScopes

func (m *OauthProviderMutation) OldScopes(ctx context.Context) (v string, err error)

OldScopes returns the old "scopes" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldTokenURL

func (m *OauthProviderMutation) OldTokenURL(ctx context.Context) (v string, err error)

OldTokenURL returns the old "token_url" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldUpdatedAt

func (m *OauthProviderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) OldUpdatedBy

func (m *OauthProviderMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the OauthProvider entity. If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OauthProviderMutation) Op

func (m *OauthProviderMutation) Op() Op

Op returns the operation name.

func (*OauthProviderMutation) OwnerCleared

func (m *OauthProviderMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*OauthProviderMutation) OwnerID

func (m *OauthProviderMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*OauthProviderMutation) OwnerIDs

func (m *OauthProviderMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*OauthProviderMutation) RedirectURL

func (m *OauthProviderMutation) RedirectURL() (r string, exists bool)

RedirectURL returns the value of the "redirect_url" field in the mutation.

func (*OauthProviderMutation) RemovedEdges

func (m *OauthProviderMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*OauthProviderMutation) RemovedIDs

func (m *OauthProviderMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*OauthProviderMutation) ResetAuthStyle

func (m *OauthProviderMutation) ResetAuthStyle()

ResetAuthStyle resets all changes to the "auth_style" field.

func (*OauthProviderMutation) ResetAuthURL

func (m *OauthProviderMutation) ResetAuthURL()

ResetAuthURL resets all changes to the "auth_url" field.

func (*OauthProviderMutation) ResetClientID

func (m *OauthProviderMutation) ResetClientID()

ResetClientID resets all changes to the "client_id" field.

func (*OauthProviderMutation) ResetClientSecret

func (m *OauthProviderMutation) ResetClientSecret()

ResetClientSecret resets all changes to the "client_secret" field.

func (*OauthProviderMutation) ResetCreatedAt

func (m *OauthProviderMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*OauthProviderMutation) ResetCreatedBy

func (m *OauthProviderMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*OauthProviderMutation) ResetDeletedAt

func (m *OauthProviderMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*OauthProviderMutation) ResetDeletedBy

func (m *OauthProviderMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*OauthProviderMutation) ResetEdge

func (m *OauthProviderMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*OauthProviderMutation) ResetField

func (m *OauthProviderMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*OauthProviderMutation) ResetInfoURL

func (m *OauthProviderMutation) ResetInfoURL()

ResetInfoURL resets all changes to the "info_url" field.

func (*OauthProviderMutation) ResetName

func (m *OauthProviderMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*OauthProviderMutation) ResetOwner

func (m *OauthProviderMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*OauthProviderMutation) ResetRedirectURL

func (m *OauthProviderMutation) ResetRedirectURL()

ResetRedirectURL resets all changes to the "redirect_url" field.

func (*OauthProviderMutation) ResetScopes

func (m *OauthProviderMutation) ResetScopes()

ResetScopes resets all changes to the "scopes" field.

func (*OauthProviderMutation) ResetTokenURL

func (m *OauthProviderMutation) ResetTokenURL()

ResetTokenURL resets all changes to the "token_url" field.

func (*OauthProviderMutation) ResetUpdatedAt

func (m *OauthProviderMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*OauthProviderMutation) ResetUpdatedBy

func (m *OauthProviderMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*OauthProviderMutation) Scopes

func (m *OauthProviderMutation) Scopes() (r string, exists bool)

Scopes returns the value of the "scopes" field in the mutation.

func (*OauthProviderMutation) SetAuthStyle

func (m *OauthProviderMutation) SetAuthStyle(u uint8)

SetAuthStyle sets the "auth_style" field.

func (*OauthProviderMutation) SetAuthURL

func (m *OauthProviderMutation) SetAuthURL(s string)

SetAuthURL sets the "auth_url" field.

func (*OauthProviderMutation) SetClientID

func (m *OauthProviderMutation) SetClientID(s string)

SetClientID sets the "client_id" field.

func (*OauthProviderMutation) SetClientSecret

func (m *OauthProviderMutation) SetClientSecret(s string)

SetClientSecret sets the "client_secret" field.

func (*OauthProviderMutation) SetCreatedAt

func (m *OauthProviderMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*OauthProviderMutation) SetCreatedBy

func (m *OauthProviderMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*OauthProviderMutation) SetDeletedAt

func (m *OauthProviderMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*OauthProviderMutation) SetDeletedBy

func (m *OauthProviderMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*OauthProviderMutation) SetField

func (m *OauthProviderMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OauthProviderMutation) SetID

func (m *OauthProviderMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of OauthProvider entities.

func (*OauthProviderMutation) SetInfoURL

func (m *OauthProviderMutation) SetInfoURL(s string)

SetInfoURL sets the "info_url" field.

func (*OauthProviderMutation) SetName

func (m *OauthProviderMutation) SetName(s string)

SetName sets the "name" field.

func (*OauthProviderMutation) SetOp

func (m *OauthProviderMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*OauthProviderMutation) SetOwnerID

func (m *OauthProviderMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*OauthProviderMutation) SetRedirectURL

func (m *OauthProviderMutation) SetRedirectURL(s string)

SetRedirectURL sets the "redirect_url" field.

func (*OauthProviderMutation) SetScopes

func (m *OauthProviderMutation) SetScopes(s string)

SetScopes sets the "scopes" field.

func (*OauthProviderMutation) SetTokenURL

func (m *OauthProviderMutation) SetTokenURL(s string)

SetTokenURL sets the "token_url" field.

func (*OauthProviderMutation) SetUpdatedAt

func (m *OauthProviderMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*OauthProviderMutation) SetUpdatedBy

func (m *OauthProviderMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*OauthProviderMutation) TokenURL

func (m *OauthProviderMutation) TokenURL() (r string, exists bool)

TokenURL returns the value of the "token_url" field in the mutation.

func (OauthProviderMutation) Tx

func (m OauthProviderMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*OauthProviderMutation) Type

func (m *OauthProviderMutation) Type() string

Type returns the node type of this mutation (OauthProvider).

func (*OauthProviderMutation) UpdatedAt

func (m *OauthProviderMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*OauthProviderMutation) UpdatedBy

func (m *OauthProviderMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*OauthProviderMutation) UpdatedByCleared

func (m *OauthProviderMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*OauthProviderMutation) Where

Where appends a list predicates to the OauthProviderMutation builder.

func (*OauthProviderMutation) WhereP

func (m *OauthProviderMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the OauthProviderMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type OauthProviderOrder

type OauthProviderOrder struct {
	Direction OrderDirection           `json:"direction"`
	Field     *OauthProviderOrderField `json:"field"`
}

OauthProviderOrder defines the ordering of OauthProvider.

type OauthProviderOrderField

type OauthProviderOrderField struct {
	// Value extracts the ordering value from the given OauthProvider.
	Value func(*OauthProvider) (ent.Value, error)
	// contains filtered or unexported fields
}

OauthProviderOrderField defines the ordering field of OauthProvider.

type OauthProviderPaginateOption

type OauthProviderPaginateOption func(*oauthproviderPager) error

OauthProviderPaginateOption enables pagination customization.

func WithOauthProviderFilter

func WithOauthProviderFilter(filter func(*OauthProviderQuery) (*OauthProviderQuery, error)) OauthProviderPaginateOption

WithOauthProviderFilter configures pagination filter.

func WithOauthProviderOrder

func WithOauthProviderOrder(order *OauthProviderOrder) OauthProviderPaginateOption

WithOauthProviderOrder configures pagination ordering.

type OauthProviderQuery

type OauthProviderQuery struct {
	// contains filtered or unexported fields
}

OauthProviderQuery is the builder for querying OauthProvider entities.

func (*OauthProviderQuery) Aggregate

func (opq *OauthProviderQuery) Aggregate(fns ...AggregateFunc) *OauthProviderSelect

Aggregate returns a OauthProviderSelect configured with the given aggregations.

func (*OauthProviderQuery) All

All executes the query and returns a list of OauthProviders.

func (*OauthProviderQuery) AllX

func (opq *OauthProviderQuery) AllX(ctx context.Context) []*OauthProvider

AllX is like All, but panics if an error occurs.

func (*OauthProviderQuery) Clone

func (opq *OauthProviderQuery) Clone() *OauthProviderQuery

Clone returns a duplicate of the OauthProviderQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*OauthProviderQuery) CollectFields

func (op *OauthProviderQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*OauthProviderQuery) Count

func (opq *OauthProviderQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OauthProviderQuery) CountX

func (opq *OauthProviderQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*OauthProviderQuery) Exist

func (opq *OauthProviderQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*OauthProviderQuery) ExistX

func (opq *OauthProviderQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*OauthProviderQuery) Filter

func (opq *OauthProviderQuery) Filter() *OauthProviderFilter

Filter returns a Filter implementation to apply filters on the OauthProviderQuery builder.

func (*OauthProviderQuery) First

First returns the first OauthProvider entity from the query. Returns a *NotFoundError when no OauthProvider was found.

func (*OauthProviderQuery) FirstID

func (opq *OauthProviderQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first OauthProvider ID from the query. Returns a *NotFoundError when no OauthProvider ID was found.

func (*OauthProviderQuery) FirstIDX

func (opq *OauthProviderQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*OauthProviderQuery) FirstX

func (opq *OauthProviderQuery) FirstX(ctx context.Context) *OauthProvider

FirstX is like First, but panics if an error occurs.

func (*OauthProviderQuery) GroupBy

func (opq *OauthProviderQuery) GroupBy(field string, fields ...string) *OauthProviderGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.OauthProvider.Query().
	GroupBy(oauthprovider.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*OauthProviderQuery) IDs

func (opq *OauthProviderQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of OauthProvider IDs.

func (*OauthProviderQuery) IDsX

func (opq *OauthProviderQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*OauthProviderQuery) Limit

func (opq *OauthProviderQuery) Limit(limit int) *OauthProviderQuery

Limit the number of records to be returned by this query.

func (*OauthProviderQuery) Offset

func (opq *OauthProviderQuery) Offset(offset int) *OauthProviderQuery

Offset to start from.

func (*OauthProviderQuery) Only

Only returns a single OauthProvider entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OauthProvider entity is found. Returns a *NotFoundError when no OauthProvider entities are found.

func (*OauthProviderQuery) OnlyID

func (opq *OauthProviderQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only OauthProvider ID in the query. Returns a *NotSingularError when more than one OauthProvider ID is found. Returns a *NotFoundError when no entities are found.

func (*OauthProviderQuery) OnlyIDX

func (opq *OauthProviderQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*OauthProviderQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*OauthProviderQuery) Order

Order specifies how the records should be ordered.

func (*OauthProviderQuery) Paginate

func (op *OauthProviderQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...OauthProviderPaginateOption,
) (*OauthProviderConnection, error)

Paginate executes the query and returns a relay based cursor connection to OauthProvider.

func (*OauthProviderQuery) QueryOwner

func (opq *OauthProviderQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*OauthProviderQuery) Select

func (opq *OauthProviderQuery) Select(fields ...string) *OauthProviderSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.OauthProvider.Query().
	Select(oauthprovider.FieldCreatedAt).
	Scan(ctx, &v)

func (*OauthProviderQuery) Unique

func (opq *OauthProviderQuery) Unique(unique bool) *OauthProviderQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*OauthProviderQuery) Where

Where adds a new predicate for the OauthProviderQuery builder.

func (*OauthProviderQuery) WithOwner

func (opq *OauthProviderQuery) WithOwner(opts ...func(*OrganizationQuery)) *OauthProviderQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type OauthProviderSelect

type OauthProviderSelect struct {
	*OauthProviderQuery
	// contains filtered or unexported fields
}

OauthProviderSelect is the builder for selecting fields of OauthProvider entities.

func (*OauthProviderSelect) Aggregate

func (ops *OauthProviderSelect) Aggregate(fns ...AggregateFunc) *OauthProviderSelect

Aggregate adds the given aggregation functions to the selector query.

func (*OauthProviderSelect) Bool

func (s *OauthProviderSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) BoolX

func (s *OauthProviderSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OauthProviderSelect) Bools

func (s *OauthProviderSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) BoolsX

func (s *OauthProviderSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OauthProviderSelect) Float64

func (s *OauthProviderSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) Float64X

func (s *OauthProviderSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OauthProviderSelect) Float64s

func (s *OauthProviderSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) Float64sX

func (s *OauthProviderSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OauthProviderSelect) Int

func (s *OauthProviderSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) IntX

func (s *OauthProviderSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OauthProviderSelect) Ints

func (s *OauthProviderSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) IntsX

func (s *OauthProviderSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OauthProviderSelect) Scan

func (ops *OauthProviderSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OauthProviderSelect) ScanX

func (s *OauthProviderSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OauthProviderSelect) String

func (s *OauthProviderSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) StringX

func (s *OauthProviderSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OauthProviderSelect) Strings

func (s *OauthProviderSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OauthProviderSelect) StringsX

func (s *OauthProviderSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OauthProviderUpdate

type OauthProviderUpdate struct {
	// contains filtered or unexported fields
}

OauthProviderUpdate is the builder for updating OauthProvider entities.

func (*OauthProviderUpdate) AddAuthStyle

func (opu *OauthProviderUpdate) AddAuthStyle(u int8) *OauthProviderUpdate

AddAuthStyle adds u to the "auth_style" field.

func (*OauthProviderUpdate) ClearDeletedAt

func (opu *OauthProviderUpdate) ClearDeletedAt() *OauthProviderUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OauthProviderUpdate) ClearDeletedBy

func (opu *OauthProviderUpdate) ClearDeletedBy() *OauthProviderUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OauthProviderUpdate) ClearOwner

func (opu *OauthProviderUpdate) ClearOwner() *OauthProviderUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*OauthProviderUpdate) ClearUpdatedBy

func (opu *OauthProviderUpdate) ClearUpdatedBy() *OauthProviderUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OauthProviderUpdate) Exec

func (opu *OauthProviderUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*OauthProviderUpdate) ExecX

func (opu *OauthProviderUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OauthProviderUpdate) Mutation

func (opu *OauthProviderUpdate) Mutation() *OauthProviderMutation

Mutation returns the OauthProviderMutation object of the builder.

func (*OauthProviderUpdate) Save

func (opu *OauthProviderUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*OauthProviderUpdate) SaveX

func (opu *OauthProviderUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*OauthProviderUpdate) SetAuthStyle

func (opu *OauthProviderUpdate) SetAuthStyle(u uint8) *OauthProviderUpdate

SetAuthStyle sets the "auth_style" field.

func (*OauthProviderUpdate) SetAuthURL

func (opu *OauthProviderUpdate) SetAuthURL(s string) *OauthProviderUpdate

SetAuthURL sets the "auth_url" field.

func (*OauthProviderUpdate) SetClientID

func (opu *OauthProviderUpdate) SetClientID(s string) *OauthProviderUpdate

SetClientID sets the "client_id" field.

func (*OauthProviderUpdate) SetClientSecret

func (opu *OauthProviderUpdate) SetClientSecret(s string) *OauthProviderUpdate

SetClientSecret sets the "client_secret" field.

func (*OauthProviderUpdate) SetDeletedAt

func (opu *OauthProviderUpdate) SetDeletedAt(t time.Time) *OauthProviderUpdate

SetDeletedAt sets the "deleted_at" field.

func (*OauthProviderUpdate) SetDeletedBy

func (opu *OauthProviderUpdate) SetDeletedBy(s string) *OauthProviderUpdate

SetDeletedBy sets the "deleted_by" field.

func (*OauthProviderUpdate) SetInfoURL

func (opu *OauthProviderUpdate) SetInfoURL(s string) *OauthProviderUpdate

SetInfoURL sets the "info_url" field.

func (*OauthProviderUpdate) SetInput

SetInput applies the change-set in the UpdateOauthProviderInput on the OauthProviderUpdate builder.

func (*OauthProviderUpdate) SetName

SetName sets the "name" field.

func (*OauthProviderUpdate) SetNillableAuthStyle

func (opu *OauthProviderUpdate) SetNillableAuthStyle(u *uint8) *OauthProviderUpdate

SetNillableAuthStyle sets the "auth_style" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableAuthURL

func (opu *OauthProviderUpdate) SetNillableAuthURL(s *string) *OauthProviderUpdate

SetNillableAuthURL sets the "auth_url" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableClientID

func (opu *OauthProviderUpdate) SetNillableClientID(s *string) *OauthProviderUpdate

SetNillableClientID sets the "client_id" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableClientSecret

func (opu *OauthProviderUpdate) SetNillableClientSecret(s *string) *OauthProviderUpdate

SetNillableClientSecret sets the "client_secret" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableDeletedAt

func (opu *OauthProviderUpdate) SetNillableDeletedAt(t *time.Time) *OauthProviderUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableDeletedBy

func (opu *OauthProviderUpdate) SetNillableDeletedBy(s *string) *OauthProviderUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableInfoURL

func (opu *OauthProviderUpdate) SetNillableInfoURL(s *string) *OauthProviderUpdate

SetNillableInfoURL sets the "info_url" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableName

func (opu *OauthProviderUpdate) SetNillableName(s *string) *OauthProviderUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableOwnerID

func (opu *OauthProviderUpdate) SetNillableOwnerID(id *string) *OauthProviderUpdate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*OauthProviderUpdate) SetNillableRedirectURL

func (opu *OauthProviderUpdate) SetNillableRedirectURL(s *string) *OauthProviderUpdate

SetNillableRedirectURL sets the "redirect_url" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableScopes

func (opu *OauthProviderUpdate) SetNillableScopes(s *string) *OauthProviderUpdate

SetNillableScopes sets the "scopes" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableTokenURL

func (opu *OauthProviderUpdate) SetNillableTokenURL(s *string) *OauthProviderUpdate

SetNillableTokenURL sets the "token_url" field if the given value is not nil.

func (*OauthProviderUpdate) SetNillableUpdatedBy

func (opu *OauthProviderUpdate) SetNillableUpdatedBy(s *string) *OauthProviderUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OauthProviderUpdate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*OauthProviderUpdate) SetOwnerID

func (opu *OauthProviderUpdate) SetOwnerID(id string) *OauthProviderUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*OauthProviderUpdate) SetRedirectURL

func (opu *OauthProviderUpdate) SetRedirectURL(s string) *OauthProviderUpdate

SetRedirectURL sets the "redirect_url" field.

func (*OauthProviderUpdate) SetScopes

func (opu *OauthProviderUpdate) SetScopes(s string) *OauthProviderUpdate

SetScopes sets the "scopes" field.

func (*OauthProviderUpdate) SetTokenURL

func (opu *OauthProviderUpdate) SetTokenURL(s string) *OauthProviderUpdate

SetTokenURL sets the "token_url" field.

func (*OauthProviderUpdate) SetUpdatedAt

func (opu *OauthProviderUpdate) SetUpdatedAt(t time.Time) *OauthProviderUpdate

SetUpdatedAt sets the "updated_at" field.

func (*OauthProviderUpdate) SetUpdatedBy

func (opu *OauthProviderUpdate) SetUpdatedBy(s string) *OauthProviderUpdate

SetUpdatedBy sets the "updated_by" field.

func (*OauthProviderUpdate) Where

Where appends a list predicates to the OauthProviderUpdate builder.

type OauthProviderUpdateOne

type OauthProviderUpdateOne struct {
	// contains filtered or unexported fields
}

OauthProviderUpdateOne is the builder for updating a single OauthProvider entity.

func (*OauthProviderUpdateOne) AddAuthStyle

func (opuo *OauthProviderUpdateOne) AddAuthStyle(u int8) *OauthProviderUpdateOne

AddAuthStyle adds u to the "auth_style" field.

func (*OauthProviderUpdateOne) ClearDeletedAt

func (opuo *OauthProviderUpdateOne) ClearDeletedAt() *OauthProviderUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OauthProviderUpdateOne) ClearDeletedBy

func (opuo *OauthProviderUpdateOne) ClearDeletedBy() *OauthProviderUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OauthProviderUpdateOne) ClearOwner

func (opuo *OauthProviderUpdateOne) ClearOwner() *OauthProviderUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*OauthProviderUpdateOne) ClearUpdatedBy

func (opuo *OauthProviderUpdateOne) ClearUpdatedBy() *OauthProviderUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OauthProviderUpdateOne) Exec

func (opuo *OauthProviderUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*OauthProviderUpdateOne) ExecX

func (opuo *OauthProviderUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OauthProviderUpdateOne) Mutation

Mutation returns the OauthProviderMutation object of the builder.

func (*OauthProviderUpdateOne) Save

Save executes the query and returns the updated OauthProvider entity.

func (*OauthProviderUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*OauthProviderUpdateOne) Select

func (opuo *OauthProviderUpdateOne) Select(field string, fields ...string) *OauthProviderUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*OauthProviderUpdateOne) SetAuthStyle

func (opuo *OauthProviderUpdateOne) SetAuthStyle(u uint8) *OauthProviderUpdateOne

SetAuthStyle sets the "auth_style" field.

func (*OauthProviderUpdateOne) SetAuthURL

SetAuthURL sets the "auth_url" field.

func (*OauthProviderUpdateOne) SetClientID

SetClientID sets the "client_id" field.

func (*OauthProviderUpdateOne) SetClientSecret

func (opuo *OauthProviderUpdateOne) SetClientSecret(s string) *OauthProviderUpdateOne

SetClientSecret sets the "client_secret" field.

func (*OauthProviderUpdateOne) SetDeletedAt

func (opuo *OauthProviderUpdateOne) SetDeletedAt(t time.Time) *OauthProviderUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*OauthProviderUpdateOne) SetDeletedBy

func (opuo *OauthProviderUpdateOne) SetDeletedBy(s string) *OauthProviderUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*OauthProviderUpdateOne) SetInfoURL

SetInfoURL sets the "info_url" field.

func (*OauthProviderUpdateOne) SetInput

SetInput applies the change-set in the UpdateOauthProviderInput on the OauthProviderUpdateOne builder.

func (*OauthProviderUpdateOne) SetName

SetName sets the "name" field.

func (*OauthProviderUpdateOne) SetNillableAuthStyle

func (opuo *OauthProviderUpdateOne) SetNillableAuthStyle(u *uint8) *OauthProviderUpdateOne

SetNillableAuthStyle sets the "auth_style" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableAuthURL

func (opuo *OauthProviderUpdateOne) SetNillableAuthURL(s *string) *OauthProviderUpdateOne

SetNillableAuthURL sets the "auth_url" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableClientID

func (opuo *OauthProviderUpdateOne) SetNillableClientID(s *string) *OauthProviderUpdateOne

SetNillableClientID sets the "client_id" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableClientSecret

func (opuo *OauthProviderUpdateOne) SetNillableClientSecret(s *string) *OauthProviderUpdateOne

SetNillableClientSecret sets the "client_secret" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableDeletedAt

func (opuo *OauthProviderUpdateOne) SetNillableDeletedAt(t *time.Time) *OauthProviderUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableDeletedBy

func (opuo *OauthProviderUpdateOne) SetNillableDeletedBy(s *string) *OauthProviderUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableInfoURL

func (opuo *OauthProviderUpdateOne) SetNillableInfoURL(s *string) *OauthProviderUpdateOne

SetNillableInfoURL sets the "info_url" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableName

func (opuo *OauthProviderUpdateOne) SetNillableName(s *string) *OauthProviderUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableOwnerID

func (opuo *OauthProviderUpdateOne) SetNillableOwnerID(id *string) *OauthProviderUpdateOne

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableRedirectURL

func (opuo *OauthProviderUpdateOne) SetNillableRedirectURL(s *string) *OauthProviderUpdateOne

SetNillableRedirectURL sets the "redirect_url" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableScopes

func (opuo *OauthProviderUpdateOne) SetNillableScopes(s *string) *OauthProviderUpdateOne

SetNillableScopes sets the "scopes" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableTokenURL

func (opuo *OauthProviderUpdateOne) SetNillableTokenURL(s *string) *OauthProviderUpdateOne

SetNillableTokenURL sets the "token_url" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetNillableUpdatedBy

func (opuo *OauthProviderUpdateOne) SetNillableUpdatedBy(s *string) *OauthProviderUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OauthProviderUpdateOne) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*OauthProviderUpdateOne) SetOwnerID

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*OauthProviderUpdateOne) SetRedirectURL

func (opuo *OauthProviderUpdateOne) SetRedirectURL(s string) *OauthProviderUpdateOne

SetRedirectURL sets the "redirect_url" field.

func (*OauthProviderUpdateOne) SetScopes

SetScopes sets the "scopes" field.

func (*OauthProviderUpdateOne) SetTokenURL

SetTokenURL sets the "token_url" field.

func (*OauthProviderUpdateOne) SetUpdatedAt

func (opuo *OauthProviderUpdateOne) SetUpdatedAt(t time.Time) *OauthProviderUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*OauthProviderUpdateOne) SetUpdatedBy

func (opuo *OauthProviderUpdateOne) SetUpdatedBy(s string) *OauthProviderUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*OauthProviderUpdateOne) Where

Where appends a list predicates to the OauthProviderUpdate builder.

type OauthProviderWhereInput

type OauthProviderWhereInput struct {
	Predicates []predicate.OauthProvider  `json:"-"`
	Not        *OauthProviderWhereInput   `json:"not,omitempty"`
	Or         []*OauthProviderWhereInput `json:"or,omitempty"`
	And        []*OauthProviderWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "client_id" field predicates.
	ClientID             *string  `json:"clientID,omitempty"`
	ClientIDNEQ          *string  `json:"clientIDNEQ,omitempty"`
	ClientIDIn           []string `json:"clientIDIn,omitempty"`
	ClientIDNotIn        []string `json:"clientIDNotIn,omitempty"`
	ClientIDGT           *string  `json:"clientIDGT,omitempty"`
	ClientIDGTE          *string  `json:"clientIDGTE,omitempty"`
	ClientIDLT           *string  `json:"clientIDLT,omitempty"`
	ClientIDLTE          *string  `json:"clientIDLTE,omitempty"`
	ClientIDContains     *string  `json:"clientIDContains,omitempty"`
	ClientIDHasPrefix    *string  `json:"clientIDHasPrefix,omitempty"`
	ClientIDHasSuffix    *string  `json:"clientIDHasSuffix,omitempty"`
	ClientIDEqualFold    *string  `json:"clientIDEqualFold,omitempty"`
	ClientIDContainsFold *string  `json:"clientIDContainsFold,omitempty"`

	// "client_secret" field predicates.
	ClientSecret             *string  `json:"clientSecret,omitempty"`
	ClientSecretNEQ          *string  `json:"clientSecretNEQ,omitempty"`
	ClientSecretIn           []string `json:"clientSecretIn,omitempty"`
	ClientSecretNotIn        []string `json:"clientSecretNotIn,omitempty"`
	ClientSecretGT           *string  `json:"clientSecretGT,omitempty"`
	ClientSecretGTE          *string  `json:"clientSecretGTE,omitempty"`
	ClientSecretLT           *string  `json:"clientSecretLT,omitempty"`
	ClientSecretLTE          *string  `json:"clientSecretLTE,omitempty"`
	ClientSecretContains     *string  `json:"clientSecretContains,omitempty"`
	ClientSecretHasPrefix    *string  `json:"clientSecretHasPrefix,omitempty"`
	ClientSecretHasSuffix    *string  `json:"clientSecretHasSuffix,omitempty"`
	ClientSecretEqualFold    *string  `json:"clientSecretEqualFold,omitempty"`
	ClientSecretContainsFold *string  `json:"clientSecretContainsFold,omitempty"`

	// "redirect_url" field predicates.
	RedirectURL             *string  `json:"redirectURL,omitempty"`
	RedirectURLNEQ          *string  `json:"redirectURLNEQ,omitempty"`
	RedirectURLIn           []string `json:"redirectURLIn,omitempty"`
	RedirectURLNotIn        []string `json:"redirectURLNotIn,omitempty"`
	RedirectURLGT           *string  `json:"redirectURLGT,omitempty"`
	RedirectURLGTE          *string  `json:"redirectURLGTE,omitempty"`
	RedirectURLLT           *string  `json:"redirectURLLT,omitempty"`
	RedirectURLLTE          *string  `json:"redirectURLLTE,omitempty"`
	RedirectURLContains     *string  `json:"redirectURLContains,omitempty"`
	RedirectURLHasPrefix    *string  `json:"redirectURLHasPrefix,omitempty"`
	RedirectURLHasSuffix    *string  `json:"redirectURLHasSuffix,omitempty"`
	RedirectURLEqualFold    *string  `json:"redirectURLEqualFold,omitempty"`
	RedirectURLContainsFold *string  `json:"redirectURLContainsFold,omitempty"`

	// "scopes" field predicates.
	Scopes             *string  `json:"scopes,omitempty"`
	ScopesNEQ          *string  `json:"scopesNEQ,omitempty"`
	ScopesIn           []string `json:"scopesIn,omitempty"`
	ScopesNotIn        []string `json:"scopesNotIn,omitempty"`
	ScopesGT           *string  `json:"scopesGT,omitempty"`
	ScopesGTE          *string  `json:"scopesGTE,omitempty"`
	ScopesLT           *string  `json:"scopesLT,omitempty"`
	ScopesLTE          *string  `json:"scopesLTE,omitempty"`
	ScopesContains     *string  `json:"scopesContains,omitempty"`
	ScopesHasPrefix    *string  `json:"scopesHasPrefix,omitempty"`
	ScopesHasSuffix    *string  `json:"scopesHasSuffix,omitempty"`
	ScopesEqualFold    *string  `json:"scopesEqualFold,omitempty"`
	ScopesContainsFold *string  `json:"scopesContainsFold,omitempty"`

	// "auth_url" field predicates.
	AuthURL             *string  `json:"authURL,omitempty"`
	AuthURLNEQ          *string  `json:"authURLNEQ,omitempty"`
	AuthURLIn           []string `json:"authURLIn,omitempty"`
	AuthURLNotIn        []string `json:"authURLNotIn,omitempty"`
	AuthURLGT           *string  `json:"authURLGT,omitempty"`
	AuthURLGTE          *string  `json:"authURLGTE,omitempty"`
	AuthURLLT           *string  `json:"authURLLT,omitempty"`
	AuthURLLTE          *string  `json:"authURLLTE,omitempty"`
	AuthURLContains     *string  `json:"authURLContains,omitempty"`
	AuthURLHasPrefix    *string  `json:"authURLHasPrefix,omitempty"`
	AuthURLHasSuffix    *string  `json:"authURLHasSuffix,omitempty"`
	AuthURLEqualFold    *string  `json:"authURLEqualFold,omitempty"`
	AuthURLContainsFold *string  `json:"authURLContainsFold,omitempty"`

	// "token_url" field predicates.
	TokenURL             *string  `json:"tokenURL,omitempty"`
	TokenURLNEQ          *string  `json:"tokenURLNEQ,omitempty"`
	TokenURLIn           []string `json:"tokenURLIn,omitempty"`
	TokenURLNotIn        []string `json:"tokenURLNotIn,omitempty"`
	TokenURLGT           *string  `json:"tokenURLGT,omitempty"`
	TokenURLGTE          *string  `json:"tokenURLGTE,omitempty"`
	TokenURLLT           *string  `json:"tokenURLLT,omitempty"`
	TokenURLLTE          *string  `json:"tokenURLLTE,omitempty"`
	TokenURLContains     *string  `json:"tokenURLContains,omitempty"`
	TokenURLHasPrefix    *string  `json:"tokenURLHasPrefix,omitempty"`
	TokenURLHasSuffix    *string  `json:"tokenURLHasSuffix,omitempty"`
	TokenURLEqualFold    *string  `json:"tokenURLEqualFold,omitempty"`
	TokenURLContainsFold *string  `json:"tokenURLContainsFold,omitempty"`

	// "auth_style" field predicates.
	AuthStyle      *uint8  `json:"authStyle,omitempty"`
	AuthStyleNEQ   *uint8  `json:"authStyleNEQ,omitempty"`
	AuthStyleIn    []uint8 `json:"authStyleIn,omitempty"`
	AuthStyleNotIn []uint8 `json:"authStyleNotIn,omitempty"`
	AuthStyleGT    *uint8  `json:"authStyleGT,omitempty"`
	AuthStyleGTE   *uint8  `json:"authStyleGTE,omitempty"`
	AuthStyleLT    *uint8  `json:"authStyleLT,omitempty"`
	AuthStyleLTE   *uint8  `json:"authStyleLTE,omitempty"`

	// "info_url" field predicates.
	InfoURL             *string  `json:"infoURL,omitempty"`
	InfoURLNEQ          *string  `json:"infoURLNEQ,omitempty"`
	InfoURLIn           []string `json:"infoURLIn,omitempty"`
	InfoURLNotIn        []string `json:"infoURLNotIn,omitempty"`
	InfoURLGT           *string  `json:"infoURLGT,omitempty"`
	InfoURLGTE          *string  `json:"infoURLGTE,omitempty"`
	InfoURLLT           *string  `json:"infoURLLT,omitempty"`
	InfoURLLTE          *string  `json:"infoURLLTE,omitempty"`
	InfoURLContains     *string  `json:"infoURLContains,omitempty"`
	InfoURLHasPrefix    *string  `json:"infoURLHasPrefix,omitempty"`
	InfoURLHasSuffix    *string  `json:"infoURLHasSuffix,omitempty"`
	InfoURLEqualFold    *string  `json:"infoURLEqualFold,omitempty"`
	InfoURLContainsFold *string  `json:"infoURLContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`
}

OauthProviderWhereInput represents a where input for filtering OauthProvider queries.

func (*OauthProviderWhereInput) AddPredicates

func (i *OauthProviderWhereInput) AddPredicates(predicates ...predicate.OauthProvider)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*OauthProviderWhereInput) Filter

Filter applies the OauthProviderWhereInput filter on the OauthProviderQuery builder.

func (*OauthProviderWhereInput) P

P returns a predicate for filtering oauthproviders. An error is returned if the input is empty or invalid.

type OauthProviders

type OauthProviders []*OauthProvider

OauthProviders is a parsable slice of OauthProvider.

type OhAuthTooToken

type OhAuthTooToken struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// ClientID holds the value of the "client_id" field.
	ClientID string `json:"client_id,omitempty"`
	// Scopes holds the value of the "scopes" field.
	Scopes []string `json:"scopes,omitempty"`
	// Nonce holds the value of the "nonce" field.
	Nonce string `json:"nonce,omitempty"`
	// ClaimsUserID holds the value of the "claims_user_id" field.
	ClaimsUserID string `json:"claims_user_id,omitempty"`
	// ClaimsUsername holds the value of the "claims_username" field.
	ClaimsUsername string `json:"claims_username,omitempty"`
	// ClaimsEmail holds the value of the "claims_email" field.
	ClaimsEmail string `json:"claims_email,omitempty"`
	// ClaimsEmailVerified holds the value of the "claims_email_verified" field.
	ClaimsEmailVerified bool `json:"claims_email_verified,omitempty"`
	// ClaimsGroups holds the value of the "claims_groups" field.
	ClaimsGroups []string `json:"claims_groups,omitempty"`
	// ClaimsPreferredUsername holds the value of the "claims_preferred_username" field.
	ClaimsPreferredUsername string `json:"claims_preferred_username,omitempty"`
	// ConnectorID holds the value of the "connector_id" field.
	ConnectorID string `json:"connector_id,omitempty"`
	// ConnectorData holds the value of the "connector_data" field.
	ConnectorData []string `json:"connector_data,omitempty"`
	// LastUsed holds the value of the "last_used" field.
	LastUsed time.Time `json:"last_used,omitempty"`
	// contains filtered or unexported fields
}

OhAuthTooToken is the model entity for the OhAuthTooToken schema.

func (*OhAuthTooToken) IsNode

func (n *OhAuthTooToken) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*OhAuthTooToken) String

func (oatt *OhAuthTooToken) String() string

String implements the fmt.Stringer.

func (*OhAuthTooToken) ToEdge

ToEdge converts OhAuthTooToken into OhAuthTooTokenEdge.

func (*OhAuthTooToken) Unwrap

func (oatt *OhAuthTooToken) Unwrap() *OhAuthTooToken

Unwrap unwraps the OhAuthTooToken entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*OhAuthTooToken) Update

func (oatt *OhAuthTooToken) Update() *OhAuthTooTokenUpdateOne

Update returns a builder for updating this OhAuthTooToken. Note that you need to call OhAuthTooToken.Unwrap() before calling this method if this OhAuthTooToken was returned from a transaction, and the transaction was committed or rolled back.

func (*OhAuthTooToken) Value

func (oatt *OhAuthTooToken) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the OhAuthTooToken. This includes values selected through modifiers, order, etc.

type OhAuthTooTokenClient

type OhAuthTooTokenClient struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenClient is a client for the OhAuthTooToken schema.

func NewOhAuthTooTokenClient

func NewOhAuthTooTokenClient(c config) *OhAuthTooTokenClient

NewOhAuthTooTokenClient returns a client for the OhAuthTooToken from the given config.

func (*OhAuthTooTokenClient) Create

Create returns a builder for creating a OhAuthTooToken entity.

func (*OhAuthTooTokenClient) CreateBulk

CreateBulk returns a builder for creating a bulk of OhAuthTooToken entities.

func (*OhAuthTooTokenClient) Delete

Delete returns a delete builder for OhAuthTooToken.

func (*OhAuthTooTokenClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*OhAuthTooTokenClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*OhAuthTooTokenClient) Get

Get returns a OhAuthTooToken entity by its id.

func (*OhAuthTooTokenClient) GetX

GetX is like Get, but panics if an error occurs.

func (*OhAuthTooTokenClient) Hooks

func (c *OhAuthTooTokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*OhAuthTooTokenClient) Intercept

func (c *OhAuthTooTokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `ohauthtootoken.Intercept(f(g(h())))`.

func (*OhAuthTooTokenClient) Interceptors

func (c *OhAuthTooTokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*OhAuthTooTokenClient) MapCreateBulk

func (c *OhAuthTooTokenClient) MapCreateBulk(slice any, setFunc func(*OhAuthTooTokenCreate, int)) *OhAuthTooTokenCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*OhAuthTooTokenClient) Query

Query returns a query builder for OhAuthTooToken.

func (*OhAuthTooTokenClient) Update

Update returns an update builder for OhAuthTooToken.

func (*OhAuthTooTokenClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OhAuthTooTokenClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*OhAuthTooTokenClient) Use

func (c *OhAuthTooTokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `ohauthtootoken.Hooks(f(g(h())))`.

type OhAuthTooTokenConnection

type OhAuthTooTokenConnection struct {
	Edges      []*OhAuthTooTokenEdge `json:"edges"`
	PageInfo   PageInfo              `json:"pageInfo"`
	TotalCount int                   `json:"totalCount"`
}

OhAuthTooTokenConnection is the connection containing edges to OhAuthTooToken.

type OhAuthTooTokenCreate

type OhAuthTooTokenCreate struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenCreate is the builder for creating a OhAuthTooToken entity.

func (*OhAuthTooTokenCreate) Exec

func (oattc *OhAuthTooTokenCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*OhAuthTooTokenCreate) ExecX

func (oattc *OhAuthTooTokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OhAuthTooTokenCreate) Mutation

func (oattc *OhAuthTooTokenCreate) Mutation() *OhAuthTooTokenMutation

Mutation returns the OhAuthTooTokenMutation object of the builder.

func (*OhAuthTooTokenCreate) Save

Save creates the OhAuthTooToken in the database.

func (*OhAuthTooTokenCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OhAuthTooTokenCreate) SetClaimsEmail

func (oattc *OhAuthTooTokenCreate) SetClaimsEmail(s string) *OhAuthTooTokenCreate

SetClaimsEmail sets the "claims_email" field.

func (*OhAuthTooTokenCreate) SetClaimsEmailVerified

func (oattc *OhAuthTooTokenCreate) SetClaimsEmailVerified(b bool) *OhAuthTooTokenCreate

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*OhAuthTooTokenCreate) SetClaimsGroups

func (oattc *OhAuthTooTokenCreate) SetClaimsGroups(s []string) *OhAuthTooTokenCreate

SetClaimsGroups sets the "claims_groups" field.

func (*OhAuthTooTokenCreate) SetClaimsPreferredUsername

func (oattc *OhAuthTooTokenCreate) SetClaimsPreferredUsername(s string) *OhAuthTooTokenCreate

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*OhAuthTooTokenCreate) SetClaimsUserID

func (oattc *OhAuthTooTokenCreate) SetClaimsUserID(s string) *OhAuthTooTokenCreate

SetClaimsUserID sets the "claims_user_id" field.

func (*OhAuthTooTokenCreate) SetClaimsUsername

func (oattc *OhAuthTooTokenCreate) SetClaimsUsername(s string) *OhAuthTooTokenCreate

SetClaimsUsername sets the "claims_username" field.

func (*OhAuthTooTokenCreate) SetClientID

func (oattc *OhAuthTooTokenCreate) SetClientID(s string) *OhAuthTooTokenCreate

SetClientID sets the "client_id" field.

func (*OhAuthTooTokenCreate) SetConnectorData

func (oattc *OhAuthTooTokenCreate) SetConnectorData(s []string) *OhAuthTooTokenCreate

SetConnectorData sets the "connector_data" field.

func (*OhAuthTooTokenCreate) SetConnectorID

func (oattc *OhAuthTooTokenCreate) SetConnectorID(s string) *OhAuthTooTokenCreate

SetConnectorID sets the "connector_id" field.

func (*OhAuthTooTokenCreate) SetID

SetID sets the "id" field.

func (*OhAuthTooTokenCreate) SetInput

SetInput applies the change-set in the CreateOhAuthTooTokenInput on the OhAuthTooTokenCreate builder.

func (*OhAuthTooTokenCreate) SetLastUsed

func (oattc *OhAuthTooTokenCreate) SetLastUsed(t time.Time) *OhAuthTooTokenCreate

SetLastUsed sets the "last_used" field.

func (*OhAuthTooTokenCreate) SetNillableID

func (oattc *OhAuthTooTokenCreate) SetNillableID(s *string) *OhAuthTooTokenCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*OhAuthTooTokenCreate) SetNillableLastUsed

func (oattc *OhAuthTooTokenCreate) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenCreate

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*OhAuthTooTokenCreate) SetNonce

func (oattc *OhAuthTooTokenCreate) SetNonce(s string) *OhAuthTooTokenCreate

SetNonce sets the "nonce" field.

func (*OhAuthTooTokenCreate) SetScopes

func (oattc *OhAuthTooTokenCreate) SetScopes(s []string) *OhAuthTooTokenCreate

SetScopes sets the "scopes" field.

type OhAuthTooTokenCreateBulk

type OhAuthTooTokenCreateBulk struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenCreateBulk is the builder for creating many OhAuthTooToken entities in bulk.

func (*OhAuthTooTokenCreateBulk) Exec

func (oattcb *OhAuthTooTokenCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*OhAuthTooTokenCreateBulk) ExecX

func (oattcb *OhAuthTooTokenCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OhAuthTooTokenCreateBulk) Save

Save creates the OhAuthTooToken entities in the database.

func (*OhAuthTooTokenCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type OhAuthTooTokenDelete

type OhAuthTooTokenDelete struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenDelete is the builder for deleting a OhAuthTooToken entity.

func (*OhAuthTooTokenDelete) Exec

func (oattd *OhAuthTooTokenDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*OhAuthTooTokenDelete) ExecX

func (oattd *OhAuthTooTokenDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*OhAuthTooTokenDelete) Where

Where appends a list predicates to the OhAuthTooTokenDelete builder.

type OhAuthTooTokenDeleteOne

type OhAuthTooTokenDeleteOne struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenDeleteOne is the builder for deleting a single OhAuthTooToken entity.

func (*OhAuthTooTokenDeleteOne) Exec

func (oattdo *OhAuthTooTokenDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*OhAuthTooTokenDeleteOne) ExecX

func (oattdo *OhAuthTooTokenDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OhAuthTooTokenDeleteOne) Where

Where appends a list predicates to the OhAuthTooTokenDelete builder.

type OhAuthTooTokenEdge

type OhAuthTooTokenEdge struct {
	Node   *OhAuthTooToken `json:"node"`
	Cursor Cursor          `json:"cursor"`
}

OhAuthTooTokenEdge is the edge representation of OhAuthTooToken.

type OhAuthTooTokenFilter

type OhAuthTooTokenFilter struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenFilter provides a generic filtering capability at runtime for OhAuthTooTokenQuery.

func (*OhAuthTooTokenFilter) Where

func (f *OhAuthTooTokenFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*OhAuthTooTokenFilter) WhereClaimsEmail

func (f *OhAuthTooTokenFilter) WhereClaimsEmail(p entql.StringP)

WhereClaimsEmail applies the entql string predicate on the claims_email field.

func (*OhAuthTooTokenFilter) WhereClaimsEmailVerified

func (f *OhAuthTooTokenFilter) WhereClaimsEmailVerified(p entql.BoolP)

WhereClaimsEmailVerified applies the entql bool predicate on the claims_email_verified field.

func (*OhAuthTooTokenFilter) WhereClaimsGroups

func (f *OhAuthTooTokenFilter) WhereClaimsGroups(p entql.BytesP)

WhereClaimsGroups applies the entql json.RawMessage predicate on the claims_groups field.

func (*OhAuthTooTokenFilter) WhereClaimsPreferredUsername

func (f *OhAuthTooTokenFilter) WhereClaimsPreferredUsername(p entql.StringP)

WhereClaimsPreferredUsername applies the entql string predicate on the claims_preferred_username field.

func (*OhAuthTooTokenFilter) WhereClaimsUserID

func (f *OhAuthTooTokenFilter) WhereClaimsUserID(p entql.StringP)

WhereClaimsUserID applies the entql string predicate on the claims_user_id field.

func (*OhAuthTooTokenFilter) WhereClaimsUsername

func (f *OhAuthTooTokenFilter) WhereClaimsUsername(p entql.StringP)

WhereClaimsUsername applies the entql string predicate on the claims_username field.

func (*OhAuthTooTokenFilter) WhereClientID

func (f *OhAuthTooTokenFilter) WhereClientID(p entql.StringP)

WhereClientID applies the entql string predicate on the client_id field.

func (*OhAuthTooTokenFilter) WhereConnectorData

func (f *OhAuthTooTokenFilter) WhereConnectorData(p entql.BytesP)

WhereConnectorData applies the entql json.RawMessage predicate on the connector_data field.

func (*OhAuthTooTokenFilter) WhereConnectorID

func (f *OhAuthTooTokenFilter) WhereConnectorID(p entql.StringP)

WhereConnectorID applies the entql string predicate on the connector_id field.

func (*OhAuthTooTokenFilter) WhereID

func (f *OhAuthTooTokenFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*OhAuthTooTokenFilter) WhereLastUsed

func (f *OhAuthTooTokenFilter) WhereLastUsed(p entql.TimeP)

WhereLastUsed applies the entql time.Time predicate on the last_used field.

func (*OhAuthTooTokenFilter) WhereNonce

func (f *OhAuthTooTokenFilter) WhereNonce(p entql.StringP)

WhereNonce applies the entql string predicate on the nonce field.

func (*OhAuthTooTokenFilter) WhereScopes

func (f *OhAuthTooTokenFilter) WhereScopes(p entql.BytesP)

WhereScopes applies the entql json.RawMessage predicate on the scopes field.

type OhAuthTooTokenGroupBy

type OhAuthTooTokenGroupBy struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenGroupBy is the group-by builder for OhAuthTooToken entities.

func (*OhAuthTooTokenGroupBy) Aggregate

func (oattgb *OhAuthTooTokenGroupBy) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*OhAuthTooTokenGroupBy) Bool

func (s *OhAuthTooTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) BoolX

func (s *OhAuthTooTokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Bools

func (s *OhAuthTooTokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) BoolsX

func (s *OhAuthTooTokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Float64

func (s *OhAuthTooTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) Float64X

func (s *OhAuthTooTokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Float64s

func (s *OhAuthTooTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) Float64sX

func (s *OhAuthTooTokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Int

func (s *OhAuthTooTokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) IntX

func (s *OhAuthTooTokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Ints

func (s *OhAuthTooTokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) IntsX

func (s *OhAuthTooTokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Scan

func (oattgb *OhAuthTooTokenGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OhAuthTooTokenGroupBy) ScanX

func (s *OhAuthTooTokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) String

func (s *OhAuthTooTokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) StringX

func (s *OhAuthTooTokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OhAuthTooTokenGroupBy) Strings

func (s *OhAuthTooTokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenGroupBy) StringsX

func (s *OhAuthTooTokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OhAuthTooTokenMutation

type OhAuthTooTokenMutation struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenMutation represents an operation that mutates the OhAuthTooToken nodes in the graph.

func (*OhAuthTooTokenMutation) AddField

func (m *OhAuthTooTokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OhAuthTooTokenMutation) AddedEdges

func (m *OhAuthTooTokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*OhAuthTooTokenMutation) AddedField

func (m *OhAuthTooTokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OhAuthTooTokenMutation) AddedFields

func (m *OhAuthTooTokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*OhAuthTooTokenMutation) AddedIDs

func (m *OhAuthTooTokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*OhAuthTooTokenMutation) AppendClaimsGroups

func (m *OhAuthTooTokenMutation) AppendClaimsGroups(s []string)

AppendClaimsGroups adds s to the "claims_groups" field.

func (*OhAuthTooTokenMutation) AppendConnectorData

func (m *OhAuthTooTokenMutation) AppendConnectorData(s []string)

AppendConnectorData adds s to the "connector_data" field.

func (*OhAuthTooTokenMutation) AppendScopes

func (m *OhAuthTooTokenMutation) AppendScopes(s []string)

AppendScopes adds s to the "scopes" field.

func (*OhAuthTooTokenMutation) AppendedClaimsGroups

func (m *OhAuthTooTokenMutation) AppendedClaimsGroups() ([]string, bool)

AppendedClaimsGroups returns the list of values that were appended to the "claims_groups" field in this mutation.

func (*OhAuthTooTokenMutation) AppendedConnectorData

func (m *OhAuthTooTokenMutation) AppendedConnectorData() ([]string, bool)

AppendedConnectorData returns the list of values that were appended to the "connector_data" field in this mutation.

func (*OhAuthTooTokenMutation) AppendedScopes

func (m *OhAuthTooTokenMutation) AppendedScopes() ([]string, bool)

AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation.

func (*OhAuthTooTokenMutation) ClaimsEmail

func (m *OhAuthTooTokenMutation) ClaimsEmail() (r string, exists bool)

ClaimsEmail returns the value of the "claims_email" field in the mutation.

func (*OhAuthTooTokenMutation) ClaimsEmailVerified

func (m *OhAuthTooTokenMutation) ClaimsEmailVerified() (r bool, exists bool)

ClaimsEmailVerified returns the value of the "claims_email_verified" field in the mutation.

func (*OhAuthTooTokenMutation) ClaimsGroups

func (m *OhAuthTooTokenMutation) ClaimsGroups() (r []string, exists bool)

ClaimsGroups returns the value of the "claims_groups" field in the mutation.

func (*OhAuthTooTokenMutation) ClaimsGroupsCleared

func (m *OhAuthTooTokenMutation) ClaimsGroupsCleared() bool

ClaimsGroupsCleared returns if the "claims_groups" field was cleared in this mutation.

func (*OhAuthTooTokenMutation) ClaimsPreferredUsername

func (m *OhAuthTooTokenMutation) ClaimsPreferredUsername() (r string, exists bool)

ClaimsPreferredUsername returns the value of the "claims_preferred_username" field in the mutation.

func (*OhAuthTooTokenMutation) ClaimsUserID

func (m *OhAuthTooTokenMutation) ClaimsUserID() (r string, exists bool)

ClaimsUserID returns the value of the "claims_user_id" field in the mutation.

func (*OhAuthTooTokenMutation) ClaimsUsername

func (m *OhAuthTooTokenMutation) ClaimsUsername() (r string, exists bool)

ClaimsUsername returns the value of the "claims_username" field in the mutation.

func (*OhAuthTooTokenMutation) ClearClaimsGroups

func (m *OhAuthTooTokenMutation) ClearClaimsGroups()

ClearClaimsGroups clears the value of the "claims_groups" field.

func (*OhAuthTooTokenMutation) ClearConnectorData

func (m *OhAuthTooTokenMutation) ClearConnectorData()

ClearConnectorData clears the value of the "connector_data" field.

func (*OhAuthTooTokenMutation) ClearEdge

func (m *OhAuthTooTokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*OhAuthTooTokenMutation) ClearField

func (m *OhAuthTooTokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*OhAuthTooTokenMutation) ClearScopes

func (m *OhAuthTooTokenMutation) ClearScopes()

ClearScopes clears the value of the "scopes" field.

func (*OhAuthTooTokenMutation) ClearedEdges

func (m *OhAuthTooTokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*OhAuthTooTokenMutation) ClearedFields

func (m *OhAuthTooTokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (OhAuthTooTokenMutation) Client

func (m OhAuthTooTokenMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*OhAuthTooTokenMutation) ClientID

func (m *OhAuthTooTokenMutation) ClientID() (r string, exists bool)

ClientID returns the value of the "client_id" field in the mutation.

func (*OhAuthTooTokenMutation) ConnectorData

func (m *OhAuthTooTokenMutation) ConnectorData() (r []string, exists bool)

ConnectorData returns the value of the "connector_data" field in the mutation.

func (*OhAuthTooTokenMutation) ConnectorDataCleared

func (m *OhAuthTooTokenMutation) ConnectorDataCleared() bool

ConnectorDataCleared returns if the "connector_data" field was cleared in this mutation.

func (*OhAuthTooTokenMutation) ConnectorID

func (m *OhAuthTooTokenMutation) ConnectorID() (r string, exists bool)

ConnectorID returns the value of the "connector_id" field in the mutation.

func (*OhAuthTooTokenMutation) EdgeCleared

func (m *OhAuthTooTokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*OhAuthTooTokenMutation) Field

func (m *OhAuthTooTokenMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OhAuthTooTokenMutation) FieldCleared

func (m *OhAuthTooTokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*OhAuthTooTokenMutation) Fields

func (m *OhAuthTooTokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*OhAuthTooTokenMutation) Filter

Filter returns an entql.Where implementation to apply filters on the OhAuthTooTokenMutation builder.

func (*OhAuthTooTokenMutation) ID

func (m *OhAuthTooTokenMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*OhAuthTooTokenMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*OhAuthTooTokenMutation) LastUsed

func (m *OhAuthTooTokenMutation) LastUsed() (r time.Time, exists bool)

LastUsed returns the value of the "last_used" field in the mutation.

func (*OhAuthTooTokenMutation) Nonce

func (m *OhAuthTooTokenMutation) Nonce() (r string, exists bool)

Nonce returns the value of the "nonce" field in the mutation.

func (*OhAuthTooTokenMutation) OldClaimsEmail

func (m *OhAuthTooTokenMutation) OldClaimsEmail(ctx context.Context) (v string, err error)

OldClaimsEmail returns the old "claims_email" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldClaimsEmailVerified

func (m *OhAuthTooTokenMutation) OldClaimsEmailVerified(ctx context.Context) (v bool, err error)

OldClaimsEmailVerified returns the old "claims_email_verified" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldClaimsGroups

func (m *OhAuthTooTokenMutation) OldClaimsGroups(ctx context.Context) (v []string, err error)

OldClaimsGroups returns the old "claims_groups" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldClaimsPreferredUsername

func (m *OhAuthTooTokenMutation) OldClaimsPreferredUsername(ctx context.Context) (v string, err error)

OldClaimsPreferredUsername returns the old "claims_preferred_username" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldClaimsUserID

func (m *OhAuthTooTokenMutation) OldClaimsUserID(ctx context.Context) (v string, err error)

OldClaimsUserID returns the old "claims_user_id" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldClaimsUsername

func (m *OhAuthTooTokenMutation) OldClaimsUsername(ctx context.Context) (v string, err error)

OldClaimsUsername returns the old "claims_username" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldClientID

func (m *OhAuthTooTokenMutation) OldClientID(ctx context.Context) (v string, err error)

OldClientID returns the old "client_id" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldConnectorData

func (m *OhAuthTooTokenMutation) OldConnectorData(ctx context.Context) (v []string, err error)

OldConnectorData returns the old "connector_data" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldConnectorID

func (m *OhAuthTooTokenMutation) OldConnectorID(ctx context.Context) (v string, err error)

OldConnectorID returns the old "connector_id" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldField

func (m *OhAuthTooTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*OhAuthTooTokenMutation) OldLastUsed

func (m *OhAuthTooTokenMutation) OldLastUsed(ctx context.Context) (v time.Time, err error)

OldLastUsed returns the old "last_used" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldNonce

func (m *OhAuthTooTokenMutation) OldNonce(ctx context.Context) (v string, err error)

OldNonce returns the old "nonce" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) OldScopes

func (m *OhAuthTooTokenMutation) OldScopes(ctx context.Context) (v []string, err error)

OldScopes returns the old "scopes" field's value of the OhAuthTooToken entity. If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OhAuthTooTokenMutation) Op

func (m *OhAuthTooTokenMutation) Op() Op

Op returns the operation name.

func (*OhAuthTooTokenMutation) RemovedEdges

func (m *OhAuthTooTokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*OhAuthTooTokenMutation) RemovedIDs

func (m *OhAuthTooTokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*OhAuthTooTokenMutation) ResetClaimsEmail

func (m *OhAuthTooTokenMutation) ResetClaimsEmail()

ResetClaimsEmail resets all changes to the "claims_email" field.

func (*OhAuthTooTokenMutation) ResetClaimsEmailVerified

func (m *OhAuthTooTokenMutation) ResetClaimsEmailVerified()

ResetClaimsEmailVerified resets all changes to the "claims_email_verified" field.

func (*OhAuthTooTokenMutation) ResetClaimsGroups

func (m *OhAuthTooTokenMutation) ResetClaimsGroups()

ResetClaimsGroups resets all changes to the "claims_groups" field.

func (*OhAuthTooTokenMutation) ResetClaimsPreferredUsername

func (m *OhAuthTooTokenMutation) ResetClaimsPreferredUsername()

ResetClaimsPreferredUsername resets all changes to the "claims_preferred_username" field.

func (*OhAuthTooTokenMutation) ResetClaimsUserID

func (m *OhAuthTooTokenMutation) ResetClaimsUserID()

ResetClaimsUserID resets all changes to the "claims_user_id" field.

func (*OhAuthTooTokenMutation) ResetClaimsUsername

func (m *OhAuthTooTokenMutation) ResetClaimsUsername()

ResetClaimsUsername resets all changes to the "claims_username" field.

func (*OhAuthTooTokenMutation) ResetClientID

func (m *OhAuthTooTokenMutation) ResetClientID()

ResetClientID resets all changes to the "client_id" field.

func (*OhAuthTooTokenMutation) ResetConnectorData

func (m *OhAuthTooTokenMutation) ResetConnectorData()

ResetConnectorData resets all changes to the "connector_data" field.

func (*OhAuthTooTokenMutation) ResetConnectorID

func (m *OhAuthTooTokenMutation) ResetConnectorID()

ResetConnectorID resets all changes to the "connector_id" field.

func (*OhAuthTooTokenMutation) ResetEdge

func (m *OhAuthTooTokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*OhAuthTooTokenMutation) ResetField

func (m *OhAuthTooTokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*OhAuthTooTokenMutation) ResetLastUsed

func (m *OhAuthTooTokenMutation) ResetLastUsed()

ResetLastUsed resets all changes to the "last_used" field.

func (*OhAuthTooTokenMutation) ResetNonce

func (m *OhAuthTooTokenMutation) ResetNonce()

ResetNonce resets all changes to the "nonce" field.

func (*OhAuthTooTokenMutation) ResetScopes

func (m *OhAuthTooTokenMutation) ResetScopes()

ResetScopes resets all changes to the "scopes" field.

func (*OhAuthTooTokenMutation) Scopes

func (m *OhAuthTooTokenMutation) Scopes() (r []string, exists bool)

Scopes returns the value of the "scopes" field in the mutation.

func (*OhAuthTooTokenMutation) ScopesCleared

func (m *OhAuthTooTokenMutation) ScopesCleared() bool

ScopesCleared returns if the "scopes" field was cleared in this mutation.

func (*OhAuthTooTokenMutation) SetClaimsEmail

func (m *OhAuthTooTokenMutation) SetClaimsEmail(s string)

SetClaimsEmail sets the "claims_email" field.

func (*OhAuthTooTokenMutation) SetClaimsEmailVerified

func (m *OhAuthTooTokenMutation) SetClaimsEmailVerified(b bool)

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*OhAuthTooTokenMutation) SetClaimsGroups

func (m *OhAuthTooTokenMutation) SetClaimsGroups(s []string)

SetClaimsGroups sets the "claims_groups" field.

func (*OhAuthTooTokenMutation) SetClaimsPreferredUsername

func (m *OhAuthTooTokenMutation) SetClaimsPreferredUsername(s string)

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*OhAuthTooTokenMutation) SetClaimsUserID

func (m *OhAuthTooTokenMutation) SetClaimsUserID(s string)

SetClaimsUserID sets the "claims_user_id" field.

func (*OhAuthTooTokenMutation) SetClaimsUsername

func (m *OhAuthTooTokenMutation) SetClaimsUsername(s string)

SetClaimsUsername sets the "claims_username" field.

func (*OhAuthTooTokenMutation) SetClientID

func (m *OhAuthTooTokenMutation) SetClientID(s string)

SetClientID sets the "client_id" field.

func (*OhAuthTooTokenMutation) SetConnectorData

func (m *OhAuthTooTokenMutation) SetConnectorData(s []string)

SetConnectorData sets the "connector_data" field.

func (*OhAuthTooTokenMutation) SetConnectorID

func (m *OhAuthTooTokenMutation) SetConnectorID(s string)

SetConnectorID sets the "connector_id" field.

func (*OhAuthTooTokenMutation) SetField

func (m *OhAuthTooTokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OhAuthTooTokenMutation) SetID

func (m *OhAuthTooTokenMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of OhAuthTooToken entities.

func (*OhAuthTooTokenMutation) SetLastUsed

func (m *OhAuthTooTokenMutation) SetLastUsed(t time.Time)

SetLastUsed sets the "last_used" field.

func (*OhAuthTooTokenMutation) SetNonce

func (m *OhAuthTooTokenMutation) SetNonce(s string)

SetNonce sets the "nonce" field.

func (*OhAuthTooTokenMutation) SetOp

func (m *OhAuthTooTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*OhAuthTooTokenMutation) SetScopes

func (m *OhAuthTooTokenMutation) SetScopes(s []string)

SetScopes sets the "scopes" field.

func (OhAuthTooTokenMutation) Tx

func (m OhAuthTooTokenMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*OhAuthTooTokenMutation) Type

func (m *OhAuthTooTokenMutation) Type() string

Type returns the node type of this mutation (OhAuthTooToken).

func (*OhAuthTooTokenMutation) Where

Where appends a list predicates to the OhAuthTooTokenMutation builder.

func (*OhAuthTooTokenMutation) WhereP

func (m *OhAuthTooTokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the OhAuthTooTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type OhAuthTooTokenOrder

type OhAuthTooTokenOrder struct {
	Direction OrderDirection            `json:"direction"`
	Field     *OhAuthTooTokenOrderField `json:"field"`
}

OhAuthTooTokenOrder defines the ordering of OhAuthTooToken.

type OhAuthTooTokenOrderField

type OhAuthTooTokenOrderField struct {
	// Value extracts the ordering value from the given OhAuthTooToken.
	Value func(*OhAuthTooToken) (ent.Value, error)
	// contains filtered or unexported fields
}

OhAuthTooTokenOrderField defines the ordering field of OhAuthTooToken.

type OhAuthTooTokenPaginateOption

type OhAuthTooTokenPaginateOption func(*ohauthtootokenPager) error

OhAuthTooTokenPaginateOption enables pagination customization.

func WithOhAuthTooTokenFilter

func WithOhAuthTooTokenFilter(filter func(*OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error)) OhAuthTooTokenPaginateOption

WithOhAuthTooTokenFilter configures pagination filter.

func WithOhAuthTooTokenOrder

func WithOhAuthTooTokenOrder(order *OhAuthTooTokenOrder) OhAuthTooTokenPaginateOption

WithOhAuthTooTokenOrder configures pagination ordering.

type OhAuthTooTokenQuery

type OhAuthTooTokenQuery struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenQuery is the builder for querying OhAuthTooToken entities.

func (*OhAuthTooTokenQuery) Aggregate

func (oattq *OhAuthTooTokenQuery) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenSelect

Aggregate returns a OhAuthTooTokenSelect configured with the given aggregations.

func (*OhAuthTooTokenQuery) All

func (oattq *OhAuthTooTokenQuery) All(ctx context.Context) ([]*OhAuthTooToken, error)

All executes the query and returns a list of OhAuthTooTokens.

func (*OhAuthTooTokenQuery) AllX

func (oattq *OhAuthTooTokenQuery) AllX(ctx context.Context) []*OhAuthTooToken

AllX is like All, but panics if an error occurs.

func (*OhAuthTooTokenQuery) Clone

func (oattq *OhAuthTooTokenQuery) Clone() *OhAuthTooTokenQuery

Clone returns a duplicate of the OhAuthTooTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*OhAuthTooTokenQuery) CollectFields

func (oatt *OhAuthTooTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*OhAuthTooTokenQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*OhAuthTooTokenQuery) Count

func (oattq *OhAuthTooTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OhAuthTooTokenQuery) CountX

func (oattq *OhAuthTooTokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*OhAuthTooTokenQuery) Exist

func (oattq *OhAuthTooTokenQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*OhAuthTooTokenQuery) ExistX

func (oattq *OhAuthTooTokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*OhAuthTooTokenQuery) Filter

func (oattq *OhAuthTooTokenQuery) Filter() *OhAuthTooTokenFilter

Filter returns a Filter implementation to apply filters on the OhAuthTooTokenQuery builder.

func (*OhAuthTooTokenQuery) First

func (oattq *OhAuthTooTokenQuery) First(ctx context.Context) (*OhAuthTooToken, error)

First returns the first OhAuthTooToken entity from the query. Returns a *NotFoundError when no OhAuthTooToken was found.

func (*OhAuthTooTokenQuery) FirstID

func (oattq *OhAuthTooTokenQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first OhAuthTooToken ID from the query. Returns a *NotFoundError when no OhAuthTooToken ID was found.

func (*OhAuthTooTokenQuery) FirstIDX

func (oattq *OhAuthTooTokenQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*OhAuthTooTokenQuery) FirstX

func (oattq *OhAuthTooTokenQuery) FirstX(ctx context.Context) *OhAuthTooToken

FirstX is like First, but panics if an error occurs.

func (*OhAuthTooTokenQuery) GroupBy

func (oattq *OhAuthTooTokenQuery) GroupBy(field string, fields ...string) *OhAuthTooTokenGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	ClientID string `json:"client_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.OhAuthTooToken.Query().
	GroupBy(ohauthtootoken.FieldClientID).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*OhAuthTooTokenQuery) IDs

func (oattq *OhAuthTooTokenQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of OhAuthTooToken IDs.

func (*OhAuthTooTokenQuery) IDsX

func (oattq *OhAuthTooTokenQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*OhAuthTooTokenQuery) Limit

func (oattq *OhAuthTooTokenQuery) Limit(limit int) *OhAuthTooTokenQuery

Limit the number of records to be returned by this query.

func (*OhAuthTooTokenQuery) Offset

func (oattq *OhAuthTooTokenQuery) Offset(offset int) *OhAuthTooTokenQuery

Offset to start from.

func (*OhAuthTooTokenQuery) Only

Only returns a single OhAuthTooToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OhAuthTooToken entity is found. Returns a *NotFoundError when no OhAuthTooToken entities are found.

func (*OhAuthTooTokenQuery) OnlyID

func (oattq *OhAuthTooTokenQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only OhAuthTooToken ID in the query. Returns a *NotSingularError when more than one OhAuthTooToken ID is found. Returns a *NotFoundError when no entities are found.

func (*OhAuthTooTokenQuery) OnlyIDX

func (oattq *OhAuthTooTokenQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*OhAuthTooTokenQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*OhAuthTooTokenQuery) Order

Order specifies how the records should be ordered.

func (*OhAuthTooTokenQuery) Paginate

func (oatt *OhAuthTooTokenQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...OhAuthTooTokenPaginateOption,
) (*OhAuthTooTokenConnection, error)

Paginate executes the query and returns a relay based cursor connection to OhAuthTooToken.

func (*OhAuthTooTokenQuery) Select

func (oattq *OhAuthTooTokenQuery) Select(fields ...string) *OhAuthTooTokenSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	ClientID string `json:"client_id,omitempty"`
}

client.OhAuthTooToken.Query().
	Select(ohauthtootoken.FieldClientID).
	Scan(ctx, &v)

func (*OhAuthTooTokenQuery) Unique

func (oattq *OhAuthTooTokenQuery) Unique(unique bool) *OhAuthTooTokenQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*OhAuthTooTokenQuery) Where

Where adds a new predicate for the OhAuthTooTokenQuery builder.

type OhAuthTooTokenSelect

type OhAuthTooTokenSelect struct {
	*OhAuthTooTokenQuery
	// contains filtered or unexported fields
}

OhAuthTooTokenSelect is the builder for selecting fields of OhAuthTooToken entities.

func (*OhAuthTooTokenSelect) Aggregate

func (oatts *OhAuthTooTokenSelect) Aggregate(fns ...AggregateFunc) *OhAuthTooTokenSelect

Aggregate adds the given aggregation functions to the selector query.

func (*OhAuthTooTokenSelect) Bool

func (s *OhAuthTooTokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) BoolX

func (s *OhAuthTooTokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Bools

func (s *OhAuthTooTokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) BoolsX

func (s *OhAuthTooTokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Float64

func (s *OhAuthTooTokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) Float64X

func (s *OhAuthTooTokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Float64s

func (s *OhAuthTooTokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) Float64sX

func (s *OhAuthTooTokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Int

func (s *OhAuthTooTokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) IntX

func (s *OhAuthTooTokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Ints

func (s *OhAuthTooTokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) IntsX

func (s *OhAuthTooTokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Scan

func (oatts *OhAuthTooTokenSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OhAuthTooTokenSelect) ScanX

func (s *OhAuthTooTokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OhAuthTooTokenSelect) String

func (s *OhAuthTooTokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) StringX

func (s *OhAuthTooTokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OhAuthTooTokenSelect) Strings

func (s *OhAuthTooTokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OhAuthTooTokenSelect) StringsX

func (s *OhAuthTooTokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OhAuthTooTokenUpdate

type OhAuthTooTokenUpdate struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenUpdate is the builder for updating OhAuthTooToken entities.

func (*OhAuthTooTokenUpdate) AppendClaimsGroups

func (oattu *OhAuthTooTokenUpdate) AppendClaimsGroups(s []string) *OhAuthTooTokenUpdate

AppendClaimsGroups appends s to the "claims_groups" field.

func (*OhAuthTooTokenUpdate) AppendConnectorData

func (oattu *OhAuthTooTokenUpdate) AppendConnectorData(s []string) *OhAuthTooTokenUpdate

AppendConnectorData appends s to the "connector_data" field.

func (*OhAuthTooTokenUpdate) AppendScopes

func (oattu *OhAuthTooTokenUpdate) AppendScopes(s []string) *OhAuthTooTokenUpdate

AppendScopes appends s to the "scopes" field.

func (*OhAuthTooTokenUpdate) ClearClaimsGroups

func (oattu *OhAuthTooTokenUpdate) ClearClaimsGroups() *OhAuthTooTokenUpdate

ClearClaimsGroups clears the value of the "claims_groups" field.

func (*OhAuthTooTokenUpdate) ClearConnectorData

func (oattu *OhAuthTooTokenUpdate) ClearConnectorData() *OhAuthTooTokenUpdate

ClearConnectorData clears the value of the "connector_data" field.

func (*OhAuthTooTokenUpdate) ClearScopes

func (oattu *OhAuthTooTokenUpdate) ClearScopes() *OhAuthTooTokenUpdate

ClearScopes clears the value of the "scopes" field.

func (*OhAuthTooTokenUpdate) Exec

func (oattu *OhAuthTooTokenUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*OhAuthTooTokenUpdate) ExecX

func (oattu *OhAuthTooTokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OhAuthTooTokenUpdate) Mutation

func (oattu *OhAuthTooTokenUpdate) Mutation() *OhAuthTooTokenMutation

Mutation returns the OhAuthTooTokenMutation object of the builder.

func (*OhAuthTooTokenUpdate) Save

func (oattu *OhAuthTooTokenUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*OhAuthTooTokenUpdate) SaveX

func (oattu *OhAuthTooTokenUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*OhAuthTooTokenUpdate) SetClaimsEmail

func (oattu *OhAuthTooTokenUpdate) SetClaimsEmail(s string) *OhAuthTooTokenUpdate

SetClaimsEmail sets the "claims_email" field.

func (*OhAuthTooTokenUpdate) SetClaimsEmailVerified

func (oattu *OhAuthTooTokenUpdate) SetClaimsEmailVerified(b bool) *OhAuthTooTokenUpdate

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*OhAuthTooTokenUpdate) SetClaimsGroups

func (oattu *OhAuthTooTokenUpdate) SetClaimsGroups(s []string) *OhAuthTooTokenUpdate

SetClaimsGroups sets the "claims_groups" field.

func (*OhAuthTooTokenUpdate) SetClaimsPreferredUsername

func (oattu *OhAuthTooTokenUpdate) SetClaimsPreferredUsername(s string) *OhAuthTooTokenUpdate

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*OhAuthTooTokenUpdate) SetClaimsUserID

func (oattu *OhAuthTooTokenUpdate) SetClaimsUserID(s string) *OhAuthTooTokenUpdate

SetClaimsUserID sets the "claims_user_id" field.

func (*OhAuthTooTokenUpdate) SetClaimsUsername

func (oattu *OhAuthTooTokenUpdate) SetClaimsUsername(s string) *OhAuthTooTokenUpdate

SetClaimsUsername sets the "claims_username" field.

func (*OhAuthTooTokenUpdate) SetClientID

func (oattu *OhAuthTooTokenUpdate) SetClientID(s string) *OhAuthTooTokenUpdate

SetClientID sets the "client_id" field.

func (*OhAuthTooTokenUpdate) SetConnectorData

func (oattu *OhAuthTooTokenUpdate) SetConnectorData(s []string) *OhAuthTooTokenUpdate

SetConnectorData sets the "connector_data" field.

func (*OhAuthTooTokenUpdate) SetConnectorID

func (oattu *OhAuthTooTokenUpdate) SetConnectorID(s string) *OhAuthTooTokenUpdate

SetConnectorID sets the "connector_id" field.

func (*OhAuthTooTokenUpdate) SetInput

SetInput applies the change-set in the UpdateOhAuthTooTokenInput on the OhAuthTooTokenUpdate builder.

func (*OhAuthTooTokenUpdate) SetLastUsed

func (oattu *OhAuthTooTokenUpdate) SetLastUsed(t time.Time) *OhAuthTooTokenUpdate

SetLastUsed sets the "last_used" field.

func (*OhAuthTooTokenUpdate) SetNillableClaimsEmail

func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsEmail(s *string) *OhAuthTooTokenUpdate

SetNillableClaimsEmail sets the "claims_email" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableClaimsEmailVerified

func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsEmailVerified(b *bool) *OhAuthTooTokenUpdate

SetNillableClaimsEmailVerified sets the "claims_email_verified" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableClaimsPreferredUsername

func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsPreferredUsername(s *string) *OhAuthTooTokenUpdate

SetNillableClaimsPreferredUsername sets the "claims_preferred_username" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableClaimsUserID

func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsUserID(s *string) *OhAuthTooTokenUpdate

SetNillableClaimsUserID sets the "claims_user_id" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableClaimsUsername

func (oattu *OhAuthTooTokenUpdate) SetNillableClaimsUsername(s *string) *OhAuthTooTokenUpdate

SetNillableClaimsUsername sets the "claims_username" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableClientID

func (oattu *OhAuthTooTokenUpdate) SetNillableClientID(s *string) *OhAuthTooTokenUpdate

SetNillableClientID sets the "client_id" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableConnectorID

func (oattu *OhAuthTooTokenUpdate) SetNillableConnectorID(s *string) *OhAuthTooTokenUpdate

SetNillableConnectorID sets the "connector_id" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableLastUsed

func (oattu *OhAuthTooTokenUpdate) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenUpdate

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNillableNonce

func (oattu *OhAuthTooTokenUpdate) SetNillableNonce(s *string) *OhAuthTooTokenUpdate

SetNillableNonce sets the "nonce" field if the given value is not nil.

func (*OhAuthTooTokenUpdate) SetNonce

func (oattu *OhAuthTooTokenUpdate) SetNonce(s string) *OhAuthTooTokenUpdate

SetNonce sets the "nonce" field.

func (*OhAuthTooTokenUpdate) SetScopes

func (oattu *OhAuthTooTokenUpdate) SetScopes(s []string) *OhAuthTooTokenUpdate

SetScopes sets the "scopes" field.

func (*OhAuthTooTokenUpdate) Where

Where appends a list predicates to the OhAuthTooTokenUpdate builder.

type OhAuthTooTokenUpdateOne

type OhAuthTooTokenUpdateOne struct {
	// contains filtered or unexported fields
}

OhAuthTooTokenUpdateOne is the builder for updating a single OhAuthTooToken entity.

func (*OhAuthTooTokenUpdateOne) AppendClaimsGroups

func (oattuo *OhAuthTooTokenUpdateOne) AppendClaimsGroups(s []string) *OhAuthTooTokenUpdateOne

AppendClaimsGroups appends s to the "claims_groups" field.

func (*OhAuthTooTokenUpdateOne) AppendConnectorData

func (oattuo *OhAuthTooTokenUpdateOne) AppendConnectorData(s []string) *OhAuthTooTokenUpdateOne

AppendConnectorData appends s to the "connector_data" field.

func (*OhAuthTooTokenUpdateOne) AppendScopes

func (oattuo *OhAuthTooTokenUpdateOne) AppendScopes(s []string) *OhAuthTooTokenUpdateOne

AppendScopes appends s to the "scopes" field.

func (*OhAuthTooTokenUpdateOne) ClearClaimsGroups

func (oattuo *OhAuthTooTokenUpdateOne) ClearClaimsGroups() *OhAuthTooTokenUpdateOne

ClearClaimsGroups clears the value of the "claims_groups" field.

func (*OhAuthTooTokenUpdateOne) ClearConnectorData

func (oattuo *OhAuthTooTokenUpdateOne) ClearConnectorData() *OhAuthTooTokenUpdateOne

ClearConnectorData clears the value of the "connector_data" field.

func (*OhAuthTooTokenUpdateOne) ClearScopes

func (oattuo *OhAuthTooTokenUpdateOne) ClearScopes() *OhAuthTooTokenUpdateOne

ClearScopes clears the value of the "scopes" field.

func (*OhAuthTooTokenUpdateOne) Exec

func (oattuo *OhAuthTooTokenUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*OhAuthTooTokenUpdateOne) ExecX

func (oattuo *OhAuthTooTokenUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OhAuthTooTokenUpdateOne) Mutation

func (oattuo *OhAuthTooTokenUpdateOne) Mutation() *OhAuthTooTokenMutation

Mutation returns the OhAuthTooTokenMutation object of the builder.

func (*OhAuthTooTokenUpdateOne) Save

Save executes the query and returns the updated OhAuthTooToken entity.

func (*OhAuthTooTokenUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*OhAuthTooTokenUpdateOne) Select

func (oattuo *OhAuthTooTokenUpdateOne) Select(field string, fields ...string) *OhAuthTooTokenUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*OhAuthTooTokenUpdateOne) SetClaimsEmail

func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsEmail(s string) *OhAuthTooTokenUpdateOne

SetClaimsEmail sets the "claims_email" field.

func (*OhAuthTooTokenUpdateOne) SetClaimsEmailVerified

func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsEmailVerified(b bool) *OhAuthTooTokenUpdateOne

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*OhAuthTooTokenUpdateOne) SetClaimsGroups

func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsGroups(s []string) *OhAuthTooTokenUpdateOne

SetClaimsGroups sets the "claims_groups" field.

func (*OhAuthTooTokenUpdateOne) SetClaimsPreferredUsername

func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsPreferredUsername(s string) *OhAuthTooTokenUpdateOne

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*OhAuthTooTokenUpdateOne) SetClaimsUserID

func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsUserID(s string) *OhAuthTooTokenUpdateOne

SetClaimsUserID sets the "claims_user_id" field.

func (*OhAuthTooTokenUpdateOne) SetClaimsUsername

func (oattuo *OhAuthTooTokenUpdateOne) SetClaimsUsername(s string) *OhAuthTooTokenUpdateOne

SetClaimsUsername sets the "claims_username" field.

func (*OhAuthTooTokenUpdateOne) SetClientID

func (oattuo *OhAuthTooTokenUpdateOne) SetClientID(s string) *OhAuthTooTokenUpdateOne

SetClientID sets the "client_id" field.

func (*OhAuthTooTokenUpdateOne) SetConnectorData

func (oattuo *OhAuthTooTokenUpdateOne) SetConnectorData(s []string) *OhAuthTooTokenUpdateOne

SetConnectorData sets the "connector_data" field.

func (*OhAuthTooTokenUpdateOne) SetConnectorID

func (oattuo *OhAuthTooTokenUpdateOne) SetConnectorID(s string) *OhAuthTooTokenUpdateOne

SetConnectorID sets the "connector_id" field.

func (*OhAuthTooTokenUpdateOne) SetInput

SetInput applies the change-set in the UpdateOhAuthTooTokenInput on the OhAuthTooTokenUpdateOne builder.

func (*OhAuthTooTokenUpdateOne) SetLastUsed

func (oattuo *OhAuthTooTokenUpdateOne) SetLastUsed(t time.Time) *OhAuthTooTokenUpdateOne

SetLastUsed sets the "last_used" field.

func (*OhAuthTooTokenUpdateOne) SetNillableClaimsEmail

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsEmail(s *string) *OhAuthTooTokenUpdateOne

SetNillableClaimsEmail sets the "claims_email" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableClaimsEmailVerified

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsEmailVerified(b *bool) *OhAuthTooTokenUpdateOne

SetNillableClaimsEmailVerified sets the "claims_email_verified" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableClaimsPreferredUsername

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsPreferredUsername(s *string) *OhAuthTooTokenUpdateOne

SetNillableClaimsPreferredUsername sets the "claims_preferred_username" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableClaimsUserID

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsUserID(s *string) *OhAuthTooTokenUpdateOne

SetNillableClaimsUserID sets the "claims_user_id" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableClaimsUsername

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClaimsUsername(s *string) *OhAuthTooTokenUpdateOne

SetNillableClaimsUsername sets the "claims_username" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableClientID

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableClientID(s *string) *OhAuthTooTokenUpdateOne

SetNillableClientID sets the "client_id" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableConnectorID

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableConnectorID(s *string) *OhAuthTooTokenUpdateOne

SetNillableConnectorID sets the "connector_id" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableLastUsed

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableLastUsed(t *time.Time) *OhAuthTooTokenUpdateOne

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNillableNonce

func (oattuo *OhAuthTooTokenUpdateOne) SetNillableNonce(s *string) *OhAuthTooTokenUpdateOne

SetNillableNonce sets the "nonce" field if the given value is not nil.

func (*OhAuthTooTokenUpdateOne) SetNonce

SetNonce sets the "nonce" field.

func (*OhAuthTooTokenUpdateOne) SetScopes

func (oattuo *OhAuthTooTokenUpdateOne) SetScopes(s []string) *OhAuthTooTokenUpdateOne

SetScopes sets the "scopes" field.

func (*OhAuthTooTokenUpdateOne) Where

Where appends a list predicates to the OhAuthTooTokenUpdate builder.

type OhAuthTooTokenWhereInput

type OhAuthTooTokenWhereInput struct {
	Predicates []predicate.OhAuthTooToken  `json:"-"`
	Not        *OhAuthTooTokenWhereInput   `json:"not,omitempty"`
	Or         []*OhAuthTooTokenWhereInput `json:"or,omitempty"`
	And        []*OhAuthTooTokenWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "client_id" field predicates.
	ClientID             *string  `json:"clientID,omitempty"`
	ClientIDNEQ          *string  `json:"clientIDNEQ,omitempty"`
	ClientIDIn           []string `json:"clientIDIn,omitempty"`
	ClientIDNotIn        []string `json:"clientIDNotIn,omitempty"`
	ClientIDGT           *string  `json:"clientIDGT,omitempty"`
	ClientIDGTE          *string  `json:"clientIDGTE,omitempty"`
	ClientIDLT           *string  `json:"clientIDLT,omitempty"`
	ClientIDLTE          *string  `json:"clientIDLTE,omitempty"`
	ClientIDContains     *string  `json:"clientIDContains,omitempty"`
	ClientIDHasPrefix    *string  `json:"clientIDHasPrefix,omitempty"`
	ClientIDHasSuffix    *string  `json:"clientIDHasSuffix,omitempty"`
	ClientIDEqualFold    *string  `json:"clientIDEqualFold,omitempty"`
	ClientIDContainsFold *string  `json:"clientIDContainsFold,omitempty"`

	// "nonce" field predicates.
	Nonce             *string  `json:"nonce,omitempty"`
	NonceNEQ          *string  `json:"nonceNEQ,omitempty"`
	NonceIn           []string `json:"nonceIn,omitempty"`
	NonceNotIn        []string `json:"nonceNotIn,omitempty"`
	NonceGT           *string  `json:"nonceGT,omitempty"`
	NonceGTE          *string  `json:"nonceGTE,omitempty"`
	NonceLT           *string  `json:"nonceLT,omitempty"`
	NonceLTE          *string  `json:"nonceLTE,omitempty"`
	NonceContains     *string  `json:"nonceContains,omitempty"`
	NonceHasPrefix    *string  `json:"nonceHasPrefix,omitempty"`
	NonceHasSuffix    *string  `json:"nonceHasSuffix,omitempty"`
	NonceEqualFold    *string  `json:"nonceEqualFold,omitempty"`
	NonceContainsFold *string  `json:"nonceContainsFold,omitempty"`

	// "claims_user_id" field predicates.
	ClaimsUserID             *string  `json:"claimsUserID,omitempty"`
	ClaimsUserIDNEQ          *string  `json:"claimsUserIDNEQ,omitempty"`
	ClaimsUserIDIn           []string `json:"claimsUserIDIn,omitempty"`
	ClaimsUserIDNotIn        []string `json:"claimsUserIDNotIn,omitempty"`
	ClaimsUserIDGT           *string  `json:"claimsUserIDGT,omitempty"`
	ClaimsUserIDGTE          *string  `json:"claimsUserIDGTE,omitempty"`
	ClaimsUserIDLT           *string  `json:"claimsUserIDLT,omitempty"`
	ClaimsUserIDLTE          *string  `json:"claimsUserIDLTE,omitempty"`
	ClaimsUserIDContains     *string  `json:"claimsUserIDContains,omitempty"`
	ClaimsUserIDHasPrefix    *string  `json:"claimsUserIDHasPrefix,omitempty"`
	ClaimsUserIDHasSuffix    *string  `json:"claimsUserIDHasSuffix,omitempty"`
	ClaimsUserIDEqualFold    *string  `json:"claimsUserIDEqualFold,omitempty"`
	ClaimsUserIDContainsFold *string  `json:"claimsUserIDContainsFold,omitempty"`

	// "claims_username" field predicates.
	ClaimsUsername             *string  `json:"claimsUsername,omitempty"`
	ClaimsUsernameNEQ          *string  `json:"claimsUsernameNEQ,omitempty"`
	ClaimsUsernameIn           []string `json:"claimsUsernameIn,omitempty"`
	ClaimsUsernameNotIn        []string `json:"claimsUsernameNotIn,omitempty"`
	ClaimsUsernameGT           *string  `json:"claimsUsernameGT,omitempty"`
	ClaimsUsernameGTE          *string  `json:"claimsUsernameGTE,omitempty"`
	ClaimsUsernameLT           *string  `json:"claimsUsernameLT,omitempty"`
	ClaimsUsernameLTE          *string  `json:"claimsUsernameLTE,omitempty"`
	ClaimsUsernameContains     *string  `json:"claimsUsernameContains,omitempty"`
	ClaimsUsernameHasPrefix    *string  `json:"claimsUsernameHasPrefix,omitempty"`
	ClaimsUsernameHasSuffix    *string  `json:"claimsUsernameHasSuffix,omitempty"`
	ClaimsUsernameEqualFold    *string  `json:"claimsUsernameEqualFold,omitempty"`
	ClaimsUsernameContainsFold *string  `json:"claimsUsernameContainsFold,omitempty"`

	// "claims_email" field predicates.
	ClaimsEmail             *string  `json:"claimsEmail,omitempty"`
	ClaimsEmailNEQ          *string  `json:"claimsEmailNEQ,omitempty"`
	ClaimsEmailIn           []string `json:"claimsEmailIn,omitempty"`
	ClaimsEmailNotIn        []string `json:"claimsEmailNotIn,omitempty"`
	ClaimsEmailGT           *string  `json:"claimsEmailGT,omitempty"`
	ClaimsEmailGTE          *string  `json:"claimsEmailGTE,omitempty"`
	ClaimsEmailLT           *string  `json:"claimsEmailLT,omitempty"`
	ClaimsEmailLTE          *string  `json:"claimsEmailLTE,omitempty"`
	ClaimsEmailContains     *string  `json:"claimsEmailContains,omitempty"`
	ClaimsEmailHasPrefix    *string  `json:"claimsEmailHasPrefix,omitempty"`
	ClaimsEmailHasSuffix    *string  `json:"claimsEmailHasSuffix,omitempty"`
	ClaimsEmailEqualFold    *string  `json:"claimsEmailEqualFold,omitempty"`
	ClaimsEmailContainsFold *string  `json:"claimsEmailContainsFold,omitempty"`

	// "claims_email_verified" field predicates.
	ClaimsEmailVerified    *bool `json:"claimsEmailVerified,omitempty"`
	ClaimsEmailVerifiedNEQ *bool `json:"claimsEmailVerifiedNEQ,omitempty"`

	// "claims_preferred_username" field predicates.
	ClaimsPreferredUsername             *string  `json:"claimsPreferredUsername,omitempty"`
	ClaimsPreferredUsernameNEQ          *string  `json:"claimsPreferredUsernameNEQ,omitempty"`
	ClaimsPreferredUsernameIn           []string `json:"claimsPreferredUsernameIn,omitempty"`
	ClaimsPreferredUsernameNotIn        []string `json:"claimsPreferredUsernameNotIn,omitempty"`
	ClaimsPreferredUsernameGT           *string  `json:"claimsPreferredUsernameGT,omitempty"`
	ClaimsPreferredUsernameGTE          *string  `json:"claimsPreferredUsernameGTE,omitempty"`
	ClaimsPreferredUsernameLT           *string  `json:"claimsPreferredUsernameLT,omitempty"`
	ClaimsPreferredUsernameLTE          *string  `json:"claimsPreferredUsernameLTE,omitempty"`
	ClaimsPreferredUsernameContains     *string  `json:"claimsPreferredUsernameContains,omitempty"`
	ClaimsPreferredUsernameHasPrefix    *string  `json:"claimsPreferredUsernameHasPrefix,omitempty"`
	ClaimsPreferredUsernameHasSuffix    *string  `json:"claimsPreferredUsernameHasSuffix,omitempty"`
	ClaimsPreferredUsernameEqualFold    *string  `json:"claimsPreferredUsernameEqualFold,omitempty"`
	ClaimsPreferredUsernameContainsFold *string  `json:"claimsPreferredUsernameContainsFold,omitempty"`

	// "connector_id" field predicates.
	ConnectorID             *string  `json:"connectorID,omitempty"`
	ConnectorIDNEQ          *string  `json:"connectorIDNEQ,omitempty"`
	ConnectorIDIn           []string `json:"connectorIDIn,omitempty"`
	ConnectorIDNotIn        []string `json:"connectorIDNotIn,omitempty"`
	ConnectorIDGT           *string  `json:"connectorIDGT,omitempty"`
	ConnectorIDGTE          *string  `json:"connectorIDGTE,omitempty"`
	ConnectorIDLT           *string  `json:"connectorIDLT,omitempty"`
	ConnectorIDLTE          *string  `json:"connectorIDLTE,omitempty"`
	ConnectorIDContains     *string  `json:"connectorIDContains,omitempty"`
	ConnectorIDHasPrefix    *string  `json:"connectorIDHasPrefix,omitempty"`
	ConnectorIDHasSuffix    *string  `json:"connectorIDHasSuffix,omitempty"`
	ConnectorIDEqualFold    *string  `json:"connectorIDEqualFold,omitempty"`
	ConnectorIDContainsFold *string  `json:"connectorIDContainsFold,omitempty"`

	// "last_used" field predicates.
	LastUsed      *time.Time  `json:"lastUsed,omitempty"`
	LastUsedNEQ   *time.Time  `json:"lastUsedNEQ,omitempty"`
	LastUsedIn    []time.Time `json:"lastUsedIn,omitempty"`
	LastUsedNotIn []time.Time `json:"lastUsedNotIn,omitempty"`
	LastUsedGT    *time.Time  `json:"lastUsedGT,omitempty"`
	LastUsedGTE   *time.Time  `json:"lastUsedGTE,omitempty"`
	LastUsedLT    *time.Time  `json:"lastUsedLT,omitempty"`
	LastUsedLTE   *time.Time  `json:"lastUsedLTE,omitempty"`
}

OhAuthTooTokenWhereInput represents a where input for filtering OhAuthTooToken queries.

func (*OhAuthTooTokenWhereInput) AddPredicates

func (i *OhAuthTooTokenWhereInput) AddPredicates(predicates ...predicate.OhAuthTooToken)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*OhAuthTooTokenWhereInput) Filter

Filter applies the OhAuthTooTokenWhereInput filter on the OhAuthTooTokenQuery builder.

func (*OhAuthTooTokenWhereInput) P

P returns a predicate for filtering ohauthtootokens. An error is returned if the input is empty or invalid.

type OhAuthTooTokens

type OhAuthTooTokens []*OhAuthTooToken

OhAuthTooTokens is a parsable slice of OhAuthTooToken.

type Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func AlternateSchema

func AlternateSchema(schemaConfig SchemaConfig) Option

AlternateSchemas allows alternate schema names to be passed into ent operations.

func Authz

func Authz(v fga.Client) Option

Authz configures the Authz.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func HTTPClient

func HTTPClient(v *http.Client) Option

HTTPClient configures the HTTPClient.

func Log

func Log(fn func(...any)) Option

Log sets the logging function for debug mode.

func Logger

func Logger(v zap.SugaredLogger) Option

Logger configures the Logger.

func SecretsKeeper

func SecretsKeeper(v *secrets.Keeper) Option

SecretsKeeper configures the SecretsKeeper.

type OrderDirection

type OrderDirection = entgql.OrderDirection

Common entgql types.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.

type Organization

type Organization struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// the name of the organization
	Name string `json:"name,omitempty"`
	// The organization's displayed 'friendly' name
	DisplayName string `json:"display_name,omitempty"`
	// An optional description of the organization
	Description string `json:"description,omitempty"`
	// The ID of the parent organization for the organization.
	ParentOrganizationID string `json:"parent_organization_id,omitempty"`
	// orgs directly associated with a user
	PersonalOrg bool `json:"personal_org,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the OrganizationQuery when eager-loading is set.
	Edges OrganizationEdges `json:"edges"`
	// contains filtered or unexported fields
}

Organization is the model entity for the Organization schema.

func (*Organization) Children

func (o *Organization) Children(
	ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy *OrganizationOrder, where *OrganizationWhereInput,
) (*OrganizationConnection, error)

func (*Organization) Entitlements

func (o *Organization) Entitlements(ctx context.Context) (result []*Entitlement, err error)

func (*Organization) Groups

func (o *Organization) Groups(ctx context.Context) (result []*Group, err error)

func (*Organization) Integrations

func (o *Organization) Integrations(ctx context.Context) (result []*Integration, err error)

func (*Organization) IsNode

func (n *Organization) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*Organization) NamedChildren

func (o *Organization) NamedChildren(name string) ([]*Organization, error)

NamedChildren returns the Children named value or an error if the edge was not loaded in eager-loading with this name.

func (*Organization) NamedEntitlements

func (o *Organization) NamedEntitlements(name string) ([]*Entitlement, error)

NamedEntitlements returns the Entitlements named value or an error if the edge was not loaded in eager-loading with this name.

func (*Organization) NamedGroups

func (o *Organization) NamedGroups(name string) ([]*Group, error)

NamedGroups returns the Groups named value or an error if the edge was not loaded in eager-loading with this name.

func (*Organization) NamedIntegrations

func (o *Organization) NamedIntegrations(name string) ([]*Integration, error)

NamedIntegrations returns the Integrations named value or an error if the edge was not loaded in eager-loading with this name.

func (*Organization) NamedOauthprovider

func (o *Organization) NamedOauthprovider(name string) ([]*OauthProvider, error)

NamedOauthprovider returns the Oauthprovider named value or an error if the edge was not loaded in eager-loading with this name.

func (*Organization) NamedUsers

func (o *Organization) NamedUsers(name string) ([]*User, error)

NamedUsers returns the Users named value or an error if the edge was not loaded in eager-loading with this name.

func (*Organization) Oauthprovider

func (o *Organization) Oauthprovider(ctx context.Context) (result []*OauthProvider, err error)

func (*Organization) Parent

func (o *Organization) Parent(ctx context.Context) (*Organization, error)

func (*Organization) QueryChildren

func (o *Organization) QueryChildren() *OrganizationQuery

QueryChildren queries the "children" edge of the Organization entity.

func (*Organization) QueryEntitlements

func (o *Organization) QueryEntitlements() *EntitlementQuery

QueryEntitlements queries the "entitlements" edge of the Organization entity.

func (*Organization) QueryGroups

func (o *Organization) QueryGroups() *GroupQuery

QueryGroups queries the "groups" edge of the Organization entity.

func (*Organization) QueryIntegrations

func (o *Organization) QueryIntegrations() *IntegrationQuery

QueryIntegrations queries the "integrations" edge of the Organization entity.

func (*Organization) QueryOauthprovider

func (o *Organization) QueryOauthprovider() *OauthProviderQuery

QueryOauthprovider queries the "oauthprovider" edge of the Organization entity.

func (*Organization) QueryParent

func (o *Organization) QueryParent() *OrganizationQuery

QueryParent queries the "parent" edge of the Organization entity.

func (*Organization) QuerySetting

func (o *Organization) QuerySetting() *OrganizationSettingQuery

QuerySetting queries the "setting" edge of the Organization entity.

func (*Organization) QueryUsers

func (o *Organization) QueryUsers() *UserQuery

QueryUsers queries the "users" edge of the Organization entity.

func (*Organization) Setting

func (*Organization) String

func (o *Organization) String() string

String implements the fmt.Stringer.

func (*Organization) ToEdge

func (o *Organization) ToEdge(order *OrganizationOrder) *OrganizationEdge

ToEdge converts Organization into OrganizationEdge.

func (*Organization) Unwrap

func (o *Organization) Unwrap() *Organization

Unwrap unwraps the Organization entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Organization) Update

func (o *Organization) Update() *OrganizationUpdateOne

Update returns a builder for updating this Organization. Note that you need to call Organization.Unwrap() before calling this method if this Organization was returned from a transaction, and the transaction was committed or rolled back.

func (*Organization) Users

func (o *Organization) Users(ctx context.Context) (result []*User, err error)

func (*Organization) Value

func (o *Organization) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Organization. This includes values selected through modifiers, order, etc.

type OrganizationClient

type OrganizationClient struct {
	// contains filtered or unexported fields
}

OrganizationClient is a client for the Organization schema.

func NewOrganizationClient

func NewOrganizationClient(c config) *OrganizationClient

NewOrganizationClient returns a client for the Organization from the given config.

func (*OrganizationClient) Create

Create returns a builder for creating a Organization entity.

func (*OrganizationClient) CreateBulk

func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk

CreateBulk returns a builder for creating a bulk of Organization entities.

func (*OrganizationClient) Delete

Delete returns a delete builder for Organization.

func (*OrganizationClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*OrganizationClient) DeleteOneID

func (c *OrganizationClient) DeleteOneID(id string) *OrganizationDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*OrganizationClient) Get

Get returns a Organization entity by its id.

func (*OrganizationClient) GetX

GetX is like Get, but panics if an error occurs.

func (*OrganizationClient) Hooks

func (c *OrganizationClient) Hooks() []Hook

Hooks returns the client hooks.

func (*OrganizationClient) Intercept

func (c *OrganizationClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`.

func (*OrganizationClient) Interceptors

func (c *OrganizationClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*OrganizationClient) MapCreateBulk

func (c *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*OrganizationClient) Query

Query returns a query builder for Organization.

func (*OrganizationClient) QueryChildren

func (c *OrganizationClient) QueryChildren(o *Organization) *OrganizationQuery

QueryChildren queries the children edge of a Organization.

func (*OrganizationClient) QueryEntitlements

func (c *OrganizationClient) QueryEntitlements(o *Organization) *EntitlementQuery

QueryEntitlements queries the entitlements edge of a Organization.

func (*OrganizationClient) QueryGroups

func (c *OrganizationClient) QueryGroups(o *Organization) *GroupQuery

QueryGroups queries the groups edge of a Organization.

func (*OrganizationClient) QueryIntegrations

func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery

QueryIntegrations queries the integrations edge of a Organization.

func (*OrganizationClient) QueryOauthprovider

func (c *OrganizationClient) QueryOauthprovider(o *Organization) *OauthProviderQuery

QueryOauthprovider queries the oauthprovider edge of a Organization.

func (*OrganizationClient) QueryParent

QueryParent queries the parent edge of a Organization.

func (*OrganizationClient) QuerySetting

QuerySetting queries the setting edge of a Organization.

func (*OrganizationClient) QueryUsers

func (c *OrganizationClient) QueryUsers(o *Organization) *UserQuery

QueryUsers queries the users edge of a Organization.

func (*OrganizationClient) Update

Update returns an update builder for Organization.

func (*OrganizationClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OrganizationClient) UpdateOneID

func (c *OrganizationClient) UpdateOneID(id string) *OrganizationUpdateOne

UpdateOneID returns an update builder for the given id.

func (*OrganizationClient) Use

func (c *OrganizationClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`.

type OrganizationConnection

type OrganizationConnection struct {
	Edges      []*OrganizationEdge `json:"edges"`
	PageInfo   PageInfo            `json:"pageInfo"`
	TotalCount int                 `json:"totalCount"`
}

OrganizationConnection is the connection containing edges to Organization.

type OrganizationCreate

type OrganizationCreate struct {
	// contains filtered or unexported fields
}

OrganizationCreate is the builder for creating a Organization entity.

func (*OrganizationCreate) AddChildIDs

func (oc *OrganizationCreate) AddChildIDs(ids ...string) *OrganizationCreate

AddChildIDs adds the "children" edge to the Organization entity by IDs.

func (*OrganizationCreate) AddChildren

func (oc *OrganizationCreate) AddChildren(o ...*Organization) *OrganizationCreate

AddChildren adds the "children" edges to the Organization entity.

func (*OrganizationCreate) AddEntitlementIDs

func (oc *OrganizationCreate) AddEntitlementIDs(ids ...string) *OrganizationCreate

AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by IDs.

func (*OrganizationCreate) AddEntitlements

func (oc *OrganizationCreate) AddEntitlements(e ...*Entitlement) *OrganizationCreate

AddEntitlements adds the "entitlements" edges to the Entitlement entity.

func (*OrganizationCreate) AddGroupIDs

func (oc *OrganizationCreate) AddGroupIDs(ids ...string) *OrganizationCreate

AddGroupIDs adds the "groups" edge to the Group entity by IDs.

func (*OrganizationCreate) AddGroups

func (oc *OrganizationCreate) AddGroups(g ...*Group) *OrganizationCreate

AddGroups adds the "groups" edges to the Group entity.

func (*OrganizationCreate) AddIntegrationIDs

func (oc *OrganizationCreate) AddIntegrationIDs(ids ...string) *OrganizationCreate

AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.

func (*OrganizationCreate) AddIntegrations

func (oc *OrganizationCreate) AddIntegrations(i ...*Integration) *OrganizationCreate

AddIntegrations adds the "integrations" edges to the Integration entity.

func (*OrganizationCreate) AddOauthprovider

func (oc *OrganizationCreate) AddOauthprovider(o ...*OauthProvider) *OrganizationCreate

AddOauthprovider adds the "oauthprovider" edges to the OauthProvider entity.

func (*OrganizationCreate) AddOauthproviderIDs

func (oc *OrganizationCreate) AddOauthproviderIDs(ids ...string) *OrganizationCreate

AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by IDs.

func (*OrganizationCreate) AddUserIDs

func (oc *OrganizationCreate) AddUserIDs(ids ...string) *OrganizationCreate

AddUserIDs adds the "users" edge to the User entity by IDs.

func (*OrganizationCreate) AddUsers

func (oc *OrganizationCreate) AddUsers(u ...*User) *OrganizationCreate

AddUsers adds the "users" edges to the User entity.

func (*OrganizationCreate) Exec

func (oc *OrganizationCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*OrganizationCreate) ExecX

func (oc *OrganizationCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationCreate) Mutation

func (oc *OrganizationCreate) Mutation() *OrganizationMutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationCreate) Save

Save creates the Organization in the database.

func (*OrganizationCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OrganizationCreate) SetCreatedAt

func (oc *OrganizationCreate) SetCreatedAt(t time.Time) *OrganizationCreate

SetCreatedAt sets the "created_at" field.

func (*OrganizationCreate) SetCreatedBy

func (oc *OrganizationCreate) SetCreatedBy(s string) *OrganizationCreate

SetCreatedBy sets the "created_by" field.

func (*OrganizationCreate) SetDeletedAt

func (oc *OrganizationCreate) SetDeletedAt(t time.Time) *OrganizationCreate

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationCreate) SetDeletedBy

func (oc *OrganizationCreate) SetDeletedBy(s string) *OrganizationCreate

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationCreate) SetDescription

func (oc *OrganizationCreate) SetDescription(s string) *OrganizationCreate

SetDescription sets the "description" field.

func (*OrganizationCreate) SetDisplayName

func (oc *OrganizationCreate) SetDisplayName(s string) *OrganizationCreate

SetDisplayName sets the "display_name" field.

func (*OrganizationCreate) SetID

SetID sets the "id" field.

func (*OrganizationCreate) SetInput

SetInput applies the change-set in the CreateOrganizationInput on the OrganizationCreate builder.

func (*OrganizationCreate) SetName

SetName sets the "name" field.

func (*OrganizationCreate) SetNillableCreatedAt

func (oc *OrganizationCreate) SetNillableCreatedAt(t *time.Time) *OrganizationCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*OrganizationCreate) SetNillableCreatedBy

func (oc *OrganizationCreate) SetNillableCreatedBy(s *string) *OrganizationCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*OrganizationCreate) SetNillableDeletedAt

func (oc *OrganizationCreate) SetNillableDeletedAt(t *time.Time) *OrganizationCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OrganizationCreate) SetNillableDeletedBy

func (oc *OrganizationCreate) SetNillableDeletedBy(s *string) *OrganizationCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OrganizationCreate) SetNillableDescription

func (oc *OrganizationCreate) SetNillableDescription(s *string) *OrganizationCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*OrganizationCreate) SetNillableDisplayName

func (oc *OrganizationCreate) SetNillableDisplayName(s *string) *OrganizationCreate

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*OrganizationCreate) SetNillableID

func (oc *OrganizationCreate) SetNillableID(s *string) *OrganizationCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*OrganizationCreate) SetNillableParentID

func (oc *OrganizationCreate) SetNillableParentID(id *string) *OrganizationCreate

SetNillableParentID sets the "parent" edge to the Organization entity by ID if the given value is not nil.

func (*OrganizationCreate) SetNillableParentOrganizationID

func (oc *OrganizationCreate) SetNillableParentOrganizationID(s *string) *OrganizationCreate

SetNillableParentOrganizationID sets the "parent_organization_id" field if the given value is not nil.

func (*OrganizationCreate) SetNillablePersonalOrg added in v0.2.2

func (oc *OrganizationCreate) SetNillablePersonalOrg(b *bool) *OrganizationCreate

SetNillablePersonalOrg sets the "personal_org" field if the given value is not nil.

func (*OrganizationCreate) SetNillableSettingID

func (oc *OrganizationCreate) SetNillableSettingID(id *string) *OrganizationCreate

SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil.

func (*OrganizationCreate) SetNillableUpdatedAt

func (oc *OrganizationCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*OrganizationCreate) SetNillableUpdatedBy

func (oc *OrganizationCreate) SetNillableUpdatedBy(s *string) *OrganizationCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OrganizationCreate) SetParent

SetParent sets the "parent" edge to the Organization entity.

func (*OrganizationCreate) SetParentID

func (oc *OrganizationCreate) SetParentID(id string) *OrganizationCreate

SetParentID sets the "parent" edge to the Organization entity by ID.

func (*OrganizationCreate) SetParentOrganizationID

func (oc *OrganizationCreate) SetParentOrganizationID(s string) *OrganizationCreate

SetParentOrganizationID sets the "parent_organization_id" field.

func (*OrganizationCreate) SetPersonalOrg added in v0.2.2

func (oc *OrganizationCreate) SetPersonalOrg(b bool) *OrganizationCreate

SetPersonalOrg sets the "personal_org" field.

func (*OrganizationCreate) SetSetting

SetSetting sets the "setting" edge to the OrganizationSetting entity.

func (*OrganizationCreate) SetSettingID

func (oc *OrganizationCreate) SetSettingID(id string) *OrganizationCreate

SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID.

func (*OrganizationCreate) SetUpdatedAt

func (oc *OrganizationCreate) SetUpdatedAt(t time.Time) *OrganizationCreate

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationCreate) SetUpdatedBy

func (oc *OrganizationCreate) SetUpdatedBy(s string) *OrganizationCreate

SetUpdatedBy sets the "updated_by" field.

type OrganizationCreateBulk

type OrganizationCreateBulk struct {
	// contains filtered or unexported fields
}

OrganizationCreateBulk is the builder for creating many Organization entities in bulk.

func (*OrganizationCreateBulk) Exec

Exec executes the query.

func (*OrganizationCreateBulk) ExecX

func (ocb *OrganizationCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationCreateBulk) Save

Save creates the Organization entities in the database.

func (*OrganizationCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type OrganizationDelete

type OrganizationDelete struct {
	// contains filtered or unexported fields
}

OrganizationDelete is the builder for deleting a Organization entity.

func (*OrganizationDelete) Exec

func (od *OrganizationDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*OrganizationDelete) ExecX

func (od *OrganizationDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationDelete) Where

Where appends a list predicates to the OrganizationDelete builder.

type OrganizationDeleteOne

type OrganizationDeleteOne struct {
	// contains filtered or unexported fields
}

OrganizationDeleteOne is the builder for deleting a single Organization entity.

func (*OrganizationDeleteOne) Exec

func (odo *OrganizationDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*OrganizationDeleteOne) ExecX

func (odo *OrganizationDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationDeleteOne) Where

Where appends a list predicates to the OrganizationDelete builder.

type OrganizationEdge

type OrganizationEdge struct {
	Node   *Organization `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

OrganizationEdge is the edge representation of Organization.

type OrganizationEdges

type OrganizationEdges struct {
	// Parent holds the value of the parent edge.
	Parent *Organization `json:"parent,omitempty"`
	// Children holds the value of the children edge.
	Children []*Organization `json:"children,omitempty"`
	// Users holds the value of the users edge.
	Users []*User `json:"users,omitempty"`
	// Groups holds the value of the groups edge.
	Groups []*Group `json:"groups,omitempty"`
	// Integrations holds the value of the integrations edge.
	Integrations []*Integration `json:"integrations,omitempty"`
	// Setting holds the value of the setting edge.
	Setting *OrganizationSetting `json:"setting,omitempty"`
	// Entitlements holds the value of the entitlements edge.
	Entitlements []*Entitlement `json:"entitlements,omitempty"`
	// Oauthprovider holds the value of the oauthprovider edge.
	Oauthprovider []*OauthProvider `json:"oauthprovider,omitempty"`
	// contains filtered or unexported fields
}

OrganizationEdges holds the relations/edges for other nodes in the graph.

func (OrganizationEdges) ChildrenOrErr

func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error)

ChildrenOrErr returns the Children value or an error if the edge was not loaded in eager-loading.

func (OrganizationEdges) EntitlementsOrErr

func (e OrganizationEdges) EntitlementsOrErr() ([]*Entitlement, error)

EntitlementsOrErr returns the Entitlements value or an error if the edge was not loaded in eager-loading.

func (OrganizationEdges) GroupsOrErr

func (e OrganizationEdges) GroupsOrErr() ([]*Group, error)

GroupsOrErr returns the Groups value or an error if the edge was not loaded in eager-loading.

func (OrganizationEdges) IntegrationsOrErr

func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)

IntegrationsOrErr returns the Integrations value or an error if the edge was not loaded in eager-loading.

func (OrganizationEdges) OauthproviderOrErr

func (e OrganizationEdges) OauthproviderOrErr() ([]*OauthProvider, error)

OauthproviderOrErr returns the Oauthprovider value or an error if the edge was not loaded in eager-loading.

func (OrganizationEdges) ParentOrErr

func (e OrganizationEdges) ParentOrErr() (*Organization, error)

ParentOrErr returns the Parent value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (OrganizationEdges) SettingOrErr

func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error)

SettingOrErr returns the Setting value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (OrganizationEdges) UsersOrErr

func (e OrganizationEdges) UsersOrErr() ([]*User, error)

UsersOrErr returns the Users value or an error if the edge was not loaded in eager-loading.

type OrganizationFilter

type OrganizationFilter struct {
	// contains filtered or unexported fields
}

OrganizationFilter provides a generic filtering capability at runtime for OrganizationQuery.

func (*OrganizationFilter) Where

func (f *OrganizationFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*OrganizationFilter) WhereCreatedAt

func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*OrganizationFilter) WhereCreatedBy

func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*OrganizationFilter) WhereDeletedAt

func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*OrganizationFilter) WhereDeletedBy

func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*OrganizationFilter) WhereDescription

func (f *OrganizationFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*OrganizationFilter) WhereDisplayName

func (f *OrganizationFilter) WhereDisplayName(p entql.StringP)

WhereDisplayName applies the entql string predicate on the display_name field.

func (*OrganizationFilter) WhereHasChildren

func (f *OrganizationFilter) WhereHasChildren()

WhereHasChildren applies a predicate to check if query has an edge children.

func (*OrganizationFilter) WhereHasChildrenWith

func (f *OrganizationFilter) WhereHasChildrenWith(preds ...predicate.Organization)

WhereHasChildrenWith applies a predicate to check if query has an edge children with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasEntitlements

func (f *OrganizationFilter) WhereHasEntitlements()

WhereHasEntitlements applies a predicate to check if query has an edge entitlements.

func (*OrganizationFilter) WhereHasEntitlementsWith

func (f *OrganizationFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement)

WhereHasEntitlementsWith applies a predicate to check if query has an edge entitlements with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasGroups

func (f *OrganizationFilter) WhereHasGroups()

WhereHasGroups applies a predicate to check if query has an edge groups.

func (*OrganizationFilter) WhereHasGroupsWith

func (f *OrganizationFilter) WhereHasGroupsWith(preds ...predicate.Group)

WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasIntegrations

func (f *OrganizationFilter) WhereHasIntegrations()

WhereHasIntegrations applies a predicate to check if query has an edge integrations.

func (*OrganizationFilter) WhereHasIntegrationsWith

func (f *OrganizationFilter) WhereHasIntegrationsWith(preds ...predicate.Integration)

WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasOauthprovider

func (f *OrganizationFilter) WhereHasOauthprovider()

WhereHasOauthprovider applies a predicate to check if query has an edge oauthprovider.

func (*OrganizationFilter) WhereHasOauthproviderWith

func (f *OrganizationFilter) WhereHasOauthproviderWith(preds ...predicate.OauthProvider)

WhereHasOauthproviderWith applies a predicate to check if query has an edge oauthprovider with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasParent

func (f *OrganizationFilter) WhereHasParent()

WhereHasParent applies a predicate to check if query has an edge parent.

func (*OrganizationFilter) WhereHasParentWith

func (f *OrganizationFilter) WhereHasParentWith(preds ...predicate.Organization)

WhereHasParentWith applies a predicate to check if query has an edge parent with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasSetting

func (f *OrganizationFilter) WhereHasSetting()

WhereHasSetting applies a predicate to check if query has an edge setting.

func (*OrganizationFilter) WhereHasSettingWith

func (f *OrganizationFilter) WhereHasSettingWith(preds ...predicate.OrganizationSetting)

WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates).

func (*OrganizationFilter) WhereHasUsers

func (f *OrganizationFilter) WhereHasUsers()

WhereHasUsers applies a predicate to check if query has an edge users.

func (*OrganizationFilter) WhereHasUsersWith

func (f *OrganizationFilter) WhereHasUsersWith(preds ...predicate.User)

WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates).

func (*OrganizationFilter) WhereID

func (f *OrganizationFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*OrganizationFilter) WhereName

func (f *OrganizationFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*OrganizationFilter) WhereParentOrganizationID

func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP)

WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field.

func (*OrganizationFilter) WherePersonalOrg added in v0.2.2

func (f *OrganizationFilter) WherePersonalOrg(p entql.BoolP)

WherePersonalOrg applies the entql bool predicate on the personal_org field.

func (*OrganizationFilter) WhereUpdatedAt

func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*OrganizationFilter) WhereUpdatedBy

func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type OrganizationGroupBy

type OrganizationGroupBy struct {
	// contains filtered or unexported fields
}

OrganizationGroupBy is the group-by builder for Organization entities.

func (*OrganizationGroupBy) Aggregate

func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*OrganizationGroupBy) Bool

func (s *OrganizationGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) BoolX

func (s *OrganizationGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationGroupBy) Bools

func (s *OrganizationGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) BoolsX

func (s *OrganizationGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationGroupBy) Float64

func (s *OrganizationGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) Float64X

func (s *OrganizationGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationGroupBy) Float64s

func (s *OrganizationGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) Float64sX

func (s *OrganizationGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationGroupBy) Int

func (s *OrganizationGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) IntX

func (s *OrganizationGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationGroupBy) Ints

func (s *OrganizationGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) IntsX

func (s *OrganizationGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationGroupBy) Scan

func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OrganizationGroupBy) ScanX

func (s *OrganizationGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationGroupBy) String

func (s *OrganizationGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) StringX

func (s *OrganizationGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationGroupBy) Strings

func (s *OrganizationGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OrganizationGroupBy) StringsX

func (s *OrganizationGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationMutation

type OrganizationMutation struct {
	// contains filtered or unexported fields
}

OrganizationMutation represents an operation that mutates the Organization nodes in the graph.

func (*OrganizationMutation) AddChildIDs

func (m *OrganizationMutation) AddChildIDs(ids ...string)

AddChildIDs adds the "children" edge to the Organization entity by ids.

func (*OrganizationMutation) AddEntitlementIDs

func (m *OrganizationMutation) AddEntitlementIDs(ids ...string)

AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by ids.

func (*OrganizationMutation) AddField

func (m *OrganizationMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OrganizationMutation) AddGroupIDs

func (m *OrganizationMutation) AddGroupIDs(ids ...string)

AddGroupIDs adds the "groups" edge to the Group entity by ids.

func (*OrganizationMutation) AddIntegrationIDs

func (m *OrganizationMutation) AddIntegrationIDs(ids ...string)

AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids.

func (*OrganizationMutation) AddOauthproviderIDs

func (m *OrganizationMutation) AddOauthproviderIDs(ids ...string)

AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by ids.

func (*OrganizationMutation) AddUserIDs

func (m *OrganizationMutation) AddUserIDs(ids ...string)

AddUserIDs adds the "users" edge to the User entity by ids.

func (*OrganizationMutation) AddedEdges

func (m *OrganizationMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*OrganizationMutation) AddedField

func (m *OrganizationMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OrganizationMutation) AddedFields

func (m *OrganizationMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*OrganizationMutation) AddedIDs

func (m *OrganizationMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*OrganizationMutation) ChildrenCleared

func (m *OrganizationMutation) ChildrenCleared() bool

ChildrenCleared reports if the "children" edge to the Organization entity was cleared.

func (*OrganizationMutation) ChildrenIDs

func (m *OrganizationMutation) ChildrenIDs() (ids []string)

ChildrenIDs returns the "children" edge IDs in the mutation.

func (*OrganizationMutation) ClearChildren

func (m *OrganizationMutation) ClearChildren()

ClearChildren clears the "children" edge to the Organization entity.

func (*OrganizationMutation) ClearCreatedBy

func (m *OrganizationMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*OrganizationMutation) ClearDeletedAt

func (m *OrganizationMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OrganizationMutation) ClearDeletedBy

func (m *OrganizationMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OrganizationMutation) ClearDescription

func (m *OrganizationMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*OrganizationMutation) ClearEdge

func (m *OrganizationMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*OrganizationMutation) ClearEntitlements

func (m *OrganizationMutation) ClearEntitlements()

ClearEntitlements clears the "entitlements" edge to the Entitlement entity.

func (*OrganizationMutation) ClearField

func (m *OrganizationMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*OrganizationMutation) ClearGroups

func (m *OrganizationMutation) ClearGroups()

ClearGroups clears the "groups" edge to the Group entity.

func (*OrganizationMutation) ClearIntegrations

func (m *OrganizationMutation) ClearIntegrations()

ClearIntegrations clears the "integrations" edge to the Integration entity.

func (*OrganizationMutation) ClearOauthprovider

func (m *OrganizationMutation) ClearOauthprovider()

ClearOauthprovider clears the "oauthprovider" edge to the OauthProvider entity.

func (*OrganizationMutation) ClearParent

func (m *OrganizationMutation) ClearParent()

ClearParent clears the "parent" edge to the Organization entity.

func (*OrganizationMutation) ClearParentOrganizationID

func (m *OrganizationMutation) ClearParentOrganizationID()

ClearParentOrganizationID clears the value of the "parent_organization_id" field.

func (*OrganizationMutation) ClearSetting

func (m *OrganizationMutation) ClearSetting()

ClearSetting clears the "setting" edge to the OrganizationSetting entity.

func (*OrganizationMutation) ClearUpdatedBy

func (m *OrganizationMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationMutation) ClearUsers

func (m *OrganizationMutation) ClearUsers()

ClearUsers clears the "users" edge to the User entity.

func (*OrganizationMutation) ClearedEdges

func (m *OrganizationMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*OrganizationMutation) ClearedFields

func (m *OrganizationMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (OrganizationMutation) Client

func (m OrganizationMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*OrganizationMutation) CreatedAt

func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*OrganizationMutation) CreatedBy

func (m *OrganizationMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*OrganizationMutation) CreatedByCleared

func (m *OrganizationMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*OrganizationMutation) DeletedAt

func (m *OrganizationMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*OrganizationMutation) DeletedAtCleared

func (m *OrganizationMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*OrganizationMutation) DeletedBy

func (m *OrganizationMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*OrganizationMutation) DeletedByCleared

func (m *OrganizationMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*OrganizationMutation) Description

func (m *OrganizationMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*OrganizationMutation) DescriptionCleared

func (m *OrganizationMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*OrganizationMutation) DisplayName

func (m *OrganizationMutation) DisplayName() (r string, exists bool)

DisplayName returns the value of the "display_name" field in the mutation.

func (*OrganizationMutation) EdgeCleared

func (m *OrganizationMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*OrganizationMutation) EntitlementsCleared

func (m *OrganizationMutation) EntitlementsCleared() bool

EntitlementsCleared reports if the "entitlements" edge to the Entitlement entity was cleared.

func (*OrganizationMutation) EntitlementsIDs

func (m *OrganizationMutation) EntitlementsIDs() (ids []string)

EntitlementsIDs returns the "entitlements" edge IDs in the mutation.

func (*OrganizationMutation) Field

func (m *OrganizationMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OrganizationMutation) FieldCleared

func (m *OrganizationMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*OrganizationMutation) Fields

func (m *OrganizationMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*OrganizationMutation) Filter

Filter returns an entql.Where implementation to apply filters on the OrganizationMutation builder.

func (*OrganizationMutation) GroupsCleared

func (m *OrganizationMutation) GroupsCleared() bool

GroupsCleared reports if the "groups" edge to the Group entity was cleared.

func (*OrganizationMutation) GroupsIDs

func (m *OrganizationMutation) GroupsIDs() (ids []string)

GroupsIDs returns the "groups" edge IDs in the mutation.

func (*OrganizationMutation) ID

func (m *OrganizationMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*OrganizationMutation) IDs

func (m *OrganizationMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*OrganizationMutation) IntegrationsCleared

func (m *OrganizationMutation) IntegrationsCleared() bool

IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared.

func (*OrganizationMutation) IntegrationsIDs

func (m *OrganizationMutation) IntegrationsIDs() (ids []string)

IntegrationsIDs returns the "integrations" edge IDs in the mutation.

func (*OrganizationMutation) Name

func (m *OrganizationMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*OrganizationMutation) OauthproviderCleared

func (m *OrganizationMutation) OauthproviderCleared() bool

OauthproviderCleared reports if the "oauthprovider" edge to the OauthProvider entity was cleared.

func (*OrganizationMutation) OauthproviderIDs

func (m *OrganizationMutation) OauthproviderIDs() (ids []string)

OauthproviderIDs returns the "oauthprovider" edge IDs in the mutation.

func (*OrganizationMutation) OldCreatedAt

func (m *OrganizationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldCreatedBy

func (m *OrganizationMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldDeletedAt

func (m *OrganizationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldDeletedBy

func (m *OrganizationMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldDescription

func (m *OrganizationMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldDisplayName

func (m *OrganizationMutation) OldDisplayName(ctx context.Context) (v string, err error)

OldDisplayName returns the old "display_name" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldField

func (m *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*OrganizationMutation) OldName

func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldParentOrganizationID

func (m *OrganizationMutation) OldParentOrganizationID(ctx context.Context) (v string, err error)

OldParentOrganizationID returns the old "parent_organization_id" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldPersonalOrg added in v0.2.2

func (m *OrganizationMutation) OldPersonalOrg(ctx context.Context) (v bool, err error)

OldPersonalOrg returns the old "personal_org" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldUpdatedAt

func (m *OrganizationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) OldUpdatedBy

func (m *OrganizationMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) Op

func (m *OrganizationMutation) Op() Op

Op returns the operation name.

func (*OrganizationMutation) ParentCleared

func (m *OrganizationMutation) ParentCleared() bool

ParentCleared reports if the "parent" edge to the Organization entity was cleared.

func (*OrganizationMutation) ParentID

func (m *OrganizationMutation) ParentID() (id string, exists bool)

ParentID returns the "parent" edge ID in the mutation.

func (*OrganizationMutation) ParentIDs

func (m *OrganizationMutation) ParentIDs() (ids []string)

ParentIDs returns the "parent" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ParentID instead. It exists only for internal usage by the builders.

func (*OrganizationMutation) ParentOrganizationID

func (m *OrganizationMutation) ParentOrganizationID() (r string, exists bool)

ParentOrganizationID returns the value of the "parent_organization_id" field in the mutation.

func (*OrganizationMutation) ParentOrganizationIDCleared

func (m *OrganizationMutation) ParentOrganizationIDCleared() bool

ParentOrganizationIDCleared returns if the "parent_organization_id" field was cleared in this mutation.

func (*OrganizationMutation) PersonalOrg added in v0.2.2

func (m *OrganizationMutation) PersonalOrg() (r bool, exists bool)

PersonalOrg returns the value of the "personal_org" field in the mutation.

func (*OrganizationMutation) RemoveChildIDs

func (m *OrganizationMutation) RemoveChildIDs(ids ...string)

RemoveChildIDs removes the "children" edge to the Organization entity by IDs.

func (*OrganizationMutation) RemoveEntitlementIDs

func (m *OrganizationMutation) RemoveEntitlementIDs(ids ...string)

RemoveEntitlementIDs removes the "entitlements" edge to the Entitlement entity by IDs.

func (*OrganizationMutation) RemoveGroupIDs

func (m *OrganizationMutation) RemoveGroupIDs(ids ...string)

RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.

func (*OrganizationMutation) RemoveIntegrationIDs

func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...string)

RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs.

func (*OrganizationMutation) RemoveOauthproviderIDs

func (m *OrganizationMutation) RemoveOauthproviderIDs(ids ...string)

RemoveOauthproviderIDs removes the "oauthprovider" edge to the OauthProvider entity by IDs.

func (*OrganizationMutation) RemoveUserIDs

func (m *OrganizationMutation) RemoveUserIDs(ids ...string)

RemoveUserIDs removes the "users" edge to the User entity by IDs.

func (*OrganizationMutation) RemovedChildrenIDs

func (m *OrganizationMutation) RemovedChildrenIDs() (ids []string)

RemovedChildren returns the removed IDs of the "children" edge to the Organization entity.

func (*OrganizationMutation) RemovedEdges

func (m *OrganizationMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*OrganizationMutation) RemovedEntitlementsIDs

func (m *OrganizationMutation) RemovedEntitlementsIDs() (ids []string)

RemovedEntitlements returns the removed IDs of the "entitlements" edge to the Entitlement entity.

func (*OrganizationMutation) RemovedGroupsIDs

func (m *OrganizationMutation) RemovedGroupsIDs() (ids []string)

RemovedGroups returns the removed IDs of the "groups" edge to the Group entity.

func (*OrganizationMutation) RemovedIDs

func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*OrganizationMutation) RemovedIntegrationsIDs

func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []string)

RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity.

func (*OrganizationMutation) RemovedOauthproviderIDs

func (m *OrganizationMutation) RemovedOauthproviderIDs() (ids []string)

RemovedOauthprovider returns the removed IDs of the "oauthprovider" edge to the OauthProvider entity.

func (*OrganizationMutation) RemovedUsersIDs

func (m *OrganizationMutation) RemovedUsersIDs() (ids []string)

RemovedUsers returns the removed IDs of the "users" edge to the User entity.

func (*OrganizationMutation) ResetChildren

func (m *OrganizationMutation) ResetChildren()

ResetChildren resets all changes to the "children" edge.

func (*OrganizationMutation) ResetCreatedAt

func (m *OrganizationMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*OrganizationMutation) ResetCreatedBy

func (m *OrganizationMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*OrganizationMutation) ResetDeletedAt

func (m *OrganizationMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*OrganizationMutation) ResetDeletedBy

func (m *OrganizationMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*OrganizationMutation) ResetDescription

func (m *OrganizationMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*OrganizationMutation) ResetDisplayName

func (m *OrganizationMutation) ResetDisplayName()

ResetDisplayName resets all changes to the "display_name" field.

func (*OrganizationMutation) ResetEdge

func (m *OrganizationMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*OrganizationMutation) ResetEntitlements

func (m *OrganizationMutation) ResetEntitlements()

ResetEntitlements resets all changes to the "entitlements" edge.

func (*OrganizationMutation) ResetField

func (m *OrganizationMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*OrganizationMutation) ResetGroups

func (m *OrganizationMutation) ResetGroups()

ResetGroups resets all changes to the "groups" edge.

func (*OrganizationMutation) ResetIntegrations

func (m *OrganizationMutation) ResetIntegrations()

ResetIntegrations resets all changes to the "integrations" edge.

func (*OrganizationMutation) ResetName

func (m *OrganizationMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*OrganizationMutation) ResetOauthprovider

func (m *OrganizationMutation) ResetOauthprovider()

ResetOauthprovider resets all changes to the "oauthprovider" edge.

func (*OrganizationMutation) ResetParent

func (m *OrganizationMutation) ResetParent()

ResetParent resets all changes to the "parent" edge.

func (*OrganizationMutation) ResetParentOrganizationID

func (m *OrganizationMutation) ResetParentOrganizationID()

ResetParentOrganizationID resets all changes to the "parent_organization_id" field.

func (*OrganizationMutation) ResetPersonalOrg added in v0.2.2

func (m *OrganizationMutation) ResetPersonalOrg()

ResetPersonalOrg resets all changes to the "personal_org" field.

func (*OrganizationMutation) ResetSetting

func (m *OrganizationMutation) ResetSetting()

ResetSetting resets all changes to the "setting" edge.

func (*OrganizationMutation) ResetUpdatedAt

func (m *OrganizationMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*OrganizationMutation) ResetUpdatedBy

func (m *OrganizationMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*OrganizationMutation) ResetUsers

func (m *OrganizationMutation) ResetUsers()

ResetUsers resets all changes to the "users" edge.

func (*OrganizationMutation) SetCreatedAt

func (m *OrganizationMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*OrganizationMutation) SetCreatedBy

func (m *OrganizationMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*OrganizationMutation) SetDeletedAt

func (m *OrganizationMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationMutation) SetDeletedBy

func (m *OrganizationMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationMutation) SetDescription

func (m *OrganizationMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*OrganizationMutation) SetDisplayName

func (m *OrganizationMutation) SetDisplayName(s string)

SetDisplayName sets the "display_name" field.

func (*OrganizationMutation) SetField

func (m *OrganizationMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OrganizationMutation) SetID

func (m *OrganizationMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Organization entities.

func (*OrganizationMutation) SetName

func (m *OrganizationMutation) SetName(s string)

SetName sets the "name" field.

func (*OrganizationMutation) SetOp

func (m *OrganizationMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*OrganizationMutation) SetParentID

func (m *OrganizationMutation) SetParentID(id string)

SetParentID sets the "parent" edge to the Organization entity by id.

func (*OrganizationMutation) SetParentOrganizationID

func (m *OrganizationMutation) SetParentOrganizationID(s string)

SetParentOrganizationID sets the "parent_organization_id" field.

func (*OrganizationMutation) SetPersonalOrg added in v0.2.2

func (m *OrganizationMutation) SetPersonalOrg(b bool)

SetPersonalOrg sets the "personal_org" field.

func (*OrganizationMutation) SetSettingID

func (m *OrganizationMutation) SetSettingID(id string)

SetSettingID sets the "setting" edge to the OrganizationSetting entity by id.

func (*OrganizationMutation) SetUpdatedAt

func (m *OrganizationMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationMutation) SetUpdatedBy

func (m *OrganizationMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationMutation) SettingCleared

func (m *OrganizationMutation) SettingCleared() bool

SettingCleared reports if the "setting" edge to the OrganizationSetting entity was cleared.

func (*OrganizationMutation) SettingID

func (m *OrganizationMutation) SettingID() (id string, exists bool)

SettingID returns the "setting" edge ID in the mutation.

func (*OrganizationMutation) SettingIDs

func (m *OrganizationMutation) SettingIDs() (ids []string)

SettingIDs returns the "setting" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SettingID instead. It exists only for internal usage by the builders.

func (OrganizationMutation) Tx

func (m OrganizationMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*OrganizationMutation) Type

func (m *OrganizationMutation) Type() string

Type returns the node type of this mutation (Organization).

func (*OrganizationMutation) UpdatedAt

func (m *OrganizationMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*OrganizationMutation) UpdatedBy

func (m *OrganizationMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*OrganizationMutation) UpdatedByCleared

func (m *OrganizationMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*OrganizationMutation) UsersCleared

func (m *OrganizationMutation) UsersCleared() bool

UsersCleared reports if the "users" edge to the User entity was cleared.

func (*OrganizationMutation) UsersIDs

func (m *OrganizationMutation) UsersIDs() (ids []string)

UsersIDs returns the "users" edge IDs in the mutation.

func (*OrganizationMutation) Where

Where appends a list predicates to the OrganizationMutation builder.

func (*OrganizationMutation) WhereP

func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type OrganizationOrder

type OrganizationOrder struct {
	Direction OrderDirection          `json:"direction"`
	Field     *OrganizationOrderField `json:"field"`
}

OrganizationOrder defines the ordering of Organization.

type OrganizationOrderField

type OrganizationOrderField struct {
	// Value extracts the ordering value from the given Organization.
	Value func(*Organization) (ent.Value, error)
	// contains filtered or unexported fields
}

OrganizationOrderField defines the ordering field of Organization.

func (OrganizationOrderField) MarshalGQL

func (f OrganizationOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (OrganizationOrderField) String

func (f OrganizationOrderField) String() string

String implement fmt.Stringer interface.

func (*OrganizationOrderField) UnmarshalGQL

func (f *OrganizationOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrganizationPaginateOption

type OrganizationPaginateOption func(*organizationPager) error

OrganizationPaginateOption enables pagination customization.

func WithOrganizationFilter

func WithOrganizationFilter(filter func(*OrganizationQuery) (*OrganizationQuery, error)) OrganizationPaginateOption

WithOrganizationFilter configures pagination filter.

func WithOrganizationOrder

func WithOrganizationOrder(order *OrganizationOrder) OrganizationPaginateOption

WithOrganizationOrder configures pagination ordering.

type OrganizationQuery

type OrganizationQuery struct {
	// contains filtered or unexported fields
}

OrganizationQuery is the builder for querying Organization entities.

func (*OrganizationQuery) Aggregate

func (oq *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect

Aggregate returns a OrganizationSelect configured with the given aggregations.

func (*OrganizationQuery) All

func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)

All executes the query and returns a list of Organizations.

func (*OrganizationQuery) AllX

func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization

AllX is like All, but panics if an error occurs.

func (*OrganizationQuery) Clone

func (oq *OrganizationQuery) Clone() *OrganizationQuery

Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*OrganizationQuery) CollectFields

func (o *OrganizationQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*OrganizationQuery) Count

func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OrganizationQuery) CountX

func (oq *OrganizationQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*OrganizationQuery) Exist

func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*OrganizationQuery) ExistX

func (oq *OrganizationQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*OrganizationQuery) Filter

func (oq *OrganizationQuery) Filter() *OrganizationFilter

Filter returns a Filter implementation to apply filters on the OrganizationQuery builder.

func (*OrganizationQuery) First

func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)

First returns the first Organization entity from the query. Returns a *NotFoundError when no Organization was found.

func (*OrganizationQuery) FirstID

func (oq *OrganizationQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first Organization ID from the query. Returns a *NotFoundError when no Organization ID was found.

func (*OrganizationQuery) FirstIDX

func (oq *OrganizationQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*OrganizationQuery) FirstX

func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization

FirstX is like First, but panics if an error occurs.

func (*OrganizationQuery) GroupBy

func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Organization.Query().
	GroupBy(organization.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*OrganizationQuery) IDs

func (oq *OrganizationQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of Organization IDs.

func (*OrganizationQuery) IDsX

func (oq *OrganizationQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*OrganizationQuery) Limit

func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery

Limit the number of records to be returned by this query.

func (*OrganizationQuery) Offset

func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery

Offset to start from.

func (*OrganizationQuery) Only

Only returns a single Organization entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Organization entity is found. Returns a *NotFoundError when no Organization entities are found.

func (*OrganizationQuery) OnlyID

func (oq *OrganizationQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only Organization ID in the query. Returns a *NotSingularError when more than one Organization ID is found. Returns a *NotFoundError when no entities are found.

func (*OrganizationQuery) OnlyIDX

func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*OrganizationQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*OrganizationQuery) Order

Order specifies how the records should be ordered.

func (*OrganizationQuery) Paginate

func (o *OrganizationQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...OrganizationPaginateOption,
) (*OrganizationConnection, error)

Paginate executes the query and returns a relay based cursor connection to Organization.

func (*OrganizationQuery) QueryChildren

func (oq *OrganizationQuery) QueryChildren() *OrganizationQuery

QueryChildren chains the current query on the "children" edge.

func (*OrganizationQuery) QueryEntitlements

func (oq *OrganizationQuery) QueryEntitlements() *EntitlementQuery

QueryEntitlements chains the current query on the "entitlements" edge.

func (*OrganizationQuery) QueryGroups

func (oq *OrganizationQuery) QueryGroups() *GroupQuery

QueryGroups chains the current query on the "groups" edge.

func (*OrganizationQuery) QueryIntegrations

func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery

QueryIntegrations chains the current query on the "integrations" edge.

func (*OrganizationQuery) QueryOauthprovider

func (oq *OrganizationQuery) QueryOauthprovider() *OauthProviderQuery

QueryOauthprovider chains the current query on the "oauthprovider" edge.

func (*OrganizationQuery) QueryParent

func (oq *OrganizationQuery) QueryParent() *OrganizationQuery

QueryParent chains the current query on the "parent" edge.

func (*OrganizationQuery) QuerySetting

func (oq *OrganizationQuery) QuerySetting() *OrganizationSettingQuery

QuerySetting chains the current query on the "setting" edge.

func (*OrganizationQuery) QueryUsers

func (oq *OrganizationQuery) QueryUsers() *UserQuery

QueryUsers chains the current query on the "users" edge.

func (*OrganizationQuery) Select

func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Organization.Query().
	Select(organization.FieldCreatedAt).
	Scan(ctx, &v)

func (*OrganizationQuery) Unique

func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*OrganizationQuery) Where

Where adds a new predicate for the OrganizationQuery builder.

func (*OrganizationQuery) WithChildren

func (oq *OrganizationQuery) WithChildren(opts ...func(*OrganizationQuery)) *OrganizationQuery

WithChildren tells the query-builder to eager-load the nodes that are connected to the "children" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithEntitlements

func (oq *OrganizationQuery) WithEntitlements(opts ...func(*EntitlementQuery)) *OrganizationQuery

WithEntitlements tells the query-builder to eager-load the nodes that are connected to the "entitlements" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithGroups

func (oq *OrganizationQuery) WithGroups(opts ...func(*GroupQuery)) *OrganizationQuery

WithGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithIntegrations

func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery

WithIntegrations tells the query-builder to eager-load the nodes that are connected to the "integrations" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithNamedChildren

func (oq *OrganizationQuery) WithNamedChildren(name string, opts ...func(*OrganizationQuery)) *OrganizationQuery

WithNamedChildren tells the query-builder to eager-load the nodes that are connected to the "children" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithNamedEntitlements

func (oq *OrganizationQuery) WithNamedEntitlements(name string, opts ...func(*EntitlementQuery)) *OrganizationQuery

WithNamedEntitlements tells the query-builder to eager-load the nodes that are connected to the "entitlements" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithNamedGroups

func (oq *OrganizationQuery) WithNamedGroups(name string, opts ...func(*GroupQuery)) *OrganizationQuery

WithNamedGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithNamedIntegrations

func (oq *OrganizationQuery) WithNamedIntegrations(name string, opts ...func(*IntegrationQuery)) *OrganizationQuery

WithNamedIntegrations tells the query-builder to eager-load the nodes that are connected to the "integrations" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithNamedOauthprovider

func (oq *OrganizationQuery) WithNamedOauthprovider(name string, opts ...func(*OauthProviderQuery)) *OrganizationQuery

WithNamedOauthprovider tells the query-builder to eager-load the nodes that are connected to the "oauthprovider" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithNamedUsers

func (oq *OrganizationQuery) WithNamedUsers(name string, opts ...func(*UserQuery)) *OrganizationQuery

WithNamedUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithOauthprovider

func (oq *OrganizationQuery) WithOauthprovider(opts ...func(*OauthProviderQuery)) *OrganizationQuery

WithOauthprovider tells the query-builder to eager-load the nodes that are connected to the "oauthprovider" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithParent

func (oq *OrganizationQuery) WithParent(opts ...func(*OrganizationQuery)) *OrganizationQuery

WithParent tells the query-builder to eager-load the nodes that are connected to the "parent" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithSetting

func (oq *OrganizationQuery) WithSetting(opts ...func(*OrganizationSettingQuery)) *OrganizationQuery

WithSetting tells the query-builder to eager-load the nodes that are connected to the "setting" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithUsers

func (oq *OrganizationQuery) WithUsers(opts ...func(*UserQuery)) *OrganizationQuery

WithUsers tells the query-builder to eager-load the nodes that are connected to the "users" edge. The optional arguments are used to configure the query builder of the edge.

type OrganizationSelect

type OrganizationSelect struct {
	*OrganizationQuery
	// contains filtered or unexported fields
}

OrganizationSelect is the builder for selecting fields of Organization entities.

func (*OrganizationSelect) Aggregate

func (os *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect

Aggregate adds the given aggregation functions to the selector query.

func (*OrganizationSelect) Bool

func (s *OrganizationSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) BoolX

func (s *OrganizationSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationSelect) Bools

func (s *OrganizationSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) BoolsX

func (s *OrganizationSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationSelect) Float64

func (s *OrganizationSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) Float64X

func (s *OrganizationSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationSelect) Float64s

func (s *OrganizationSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) Float64sX

func (s *OrganizationSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationSelect) Int

func (s *OrganizationSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) IntX

func (s *OrganizationSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationSelect) Ints

func (s *OrganizationSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) IntsX

func (s *OrganizationSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationSelect) Scan

func (os *OrganizationSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OrganizationSelect) ScanX

func (s *OrganizationSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationSelect) String

func (s *OrganizationSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) StringX

func (s *OrganizationSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationSelect) Strings

func (s *OrganizationSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) StringsX

func (s *OrganizationSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationSetting

type OrganizationSetting struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// domains associated with the organization
	Domains []string `json:"domains,omitempty"`
	// SSOCert holds the value of the "sso_cert" field.
	SSOCert string `json:"sso_cert,omitempty"`
	// SSOEntrypoint holds the value of the "sso_entrypoint" field.
	SSOEntrypoint string `json:"sso_entrypoint,omitempty"`
	// SSOIssuer holds the value of the "sso_issuer" field.
	SSOIssuer string `json:"sso_issuer,omitempty"`
	// Name of the person to contact for billing
	BillingContact string `json:"billing_contact,omitempty"`
	// BillingEmail holds the value of the "billing_email" field.
	BillingEmail string `json:"billing_email,omitempty"`
	// BillingPhone holds the value of the "billing_phone" field.
	BillingPhone string `json:"billing_phone,omitempty"`
	// BillingAddress holds the value of the "billing_address" field.
	BillingAddress string `json:"billing_address,omitempty"`
	// Usually government-issued tax ID or business ID such as ABN in Australia
	TaxIdentifier string `json:"tax_identifier,omitempty"`
	// tags associated with the object
	Tags []string `json:"tags,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the OrganizationSettingQuery when eager-loading is set.
	Edges OrganizationSettingEdges `json:"edges"`
	// contains filtered or unexported fields
}

OrganizationSetting is the model entity for the OrganizationSetting schema.

func (*OrganizationSetting) IsNode

func (n *OrganizationSetting) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*OrganizationSetting) Organization

func (os *OrganizationSetting) Organization(ctx context.Context) (*Organization, error)

func (*OrganizationSetting) QueryOrganization

func (os *OrganizationSetting) QueryOrganization() *OrganizationQuery

QueryOrganization queries the "organization" edge of the OrganizationSetting entity.

func (*OrganizationSetting) String

func (os *OrganizationSetting) String() string

String implements the fmt.Stringer.

func (*OrganizationSetting) ToEdge

ToEdge converts OrganizationSetting into OrganizationSettingEdge.

func (*OrganizationSetting) Unwrap

Unwrap unwraps the OrganizationSetting entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*OrganizationSetting) Update

Update returns a builder for updating this OrganizationSetting. Note that you need to call OrganizationSetting.Unwrap() before calling this method if this OrganizationSetting was returned from a transaction, and the transaction was committed or rolled back.

func (*OrganizationSetting) Value

func (os *OrganizationSetting) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the OrganizationSetting. This includes values selected through modifiers, order, etc.

type OrganizationSettingClient

type OrganizationSettingClient struct {
	// contains filtered or unexported fields
}

OrganizationSettingClient is a client for the OrganizationSetting schema.

func NewOrganizationSettingClient

func NewOrganizationSettingClient(c config) *OrganizationSettingClient

NewOrganizationSettingClient returns a client for the OrganizationSetting from the given config.

func (*OrganizationSettingClient) Create

Create returns a builder for creating a OrganizationSetting entity.

func (*OrganizationSettingClient) CreateBulk

CreateBulk returns a builder for creating a bulk of OrganizationSetting entities.

func (*OrganizationSettingClient) Delete

Delete returns a delete builder for OrganizationSetting.

func (*OrganizationSettingClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*OrganizationSettingClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*OrganizationSettingClient) Get

Get returns a OrganizationSetting entity by its id.

func (*OrganizationSettingClient) GetX

GetX is like Get, but panics if an error occurs.

func (*OrganizationSettingClient) Hooks

func (c *OrganizationSettingClient) Hooks() []Hook

Hooks returns the client hooks.

func (*OrganizationSettingClient) Intercept

func (c *OrganizationSettingClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organizationsetting.Intercept(f(g(h())))`.

func (*OrganizationSettingClient) Interceptors

func (c *OrganizationSettingClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*OrganizationSettingClient) MapCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*OrganizationSettingClient) Query

Query returns a query builder for OrganizationSetting.

func (*OrganizationSettingClient) QueryOrganization

QueryOrganization queries the organization edge of a OrganizationSetting.

func (*OrganizationSettingClient) Update

Update returns an update builder for OrganizationSetting.

func (*OrganizationSettingClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OrganizationSettingClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*OrganizationSettingClient) Use

func (c *OrganizationSettingClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organizationsetting.Hooks(f(g(h())))`.

type OrganizationSettingConnection

type OrganizationSettingConnection struct {
	Edges      []*OrganizationSettingEdge `json:"edges"`
	PageInfo   PageInfo                   `json:"pageInfo"`
	TotalCount int                        `json:"totalCount"`
}

OrganizationSettingConnection is the connection containing edges to OrganizationSetting.

type OrganizationSettingCreate

type OrganizationSettingCreate struct {
	// contains filtered or unexported fields
}

OrganizationSettingCreate is the builder for creating a OrganizationSetting entity.

func (*OrganizationSettingCreate) Exec

Exec executes the query.

func (*OrganizationSettingCreate) ExecX

func (osc *OrganizationSettingCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationSettingCreate) Mutation

Mutation returns the OrganizationSettingMutation object of the builder.

func (*OrganizationSettingCreate) Save

Save creates the OrganizationSetting in the database.

func (*OrganizationSettingCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OrganizationSettingCreate) SetBillingAddress

func (osc *OrganizationSettingCreate) SetBillingAddress(s string) *OrganizationSettingCreate

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingCreate) SetBillingContact

func (osc *OrganizationSettingCreate) SetBillingContact(s string) *OrganizationSettingCreate

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingCreate) SetBillingEmail

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingCreate) SetBillingPhone

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*OrganizationSettingCreate) SetCreatedBy

SetCreatedBy sets the "created_by" field.

func (*OrganizationSettingCreate) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationSettingCreate) SetDeletedBy

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationSettingCreate) SetDomains

SetDomains sets the "domains" field.

func (*OrganizationSettingCreate) SetID

SetID sets the "id" field.

func (*OrganizationSettingCreate) SetInput

SetInput applies the change-set in the CreateOrganizationSettingInput on the OrganizationSettingCreate builder.

func (*OrganizationSettingCreate) SetNillableBillingAddress

func (osc *OrganizationSettingCreate) SetNillableBillingAddress(s *string) *OrganizationSettingCreate

SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableBillingContact

func (osc *OrganizationSettingCreate) SetNillableBillingContact(s *string) *OrganizationSettingCreate

SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableBillingEmail

func (osc *OrganizationSettingCreate) SetNillableBillingEmail(s *string) *OrganizationSettingCreate

SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableBillingPhone

func (osc *OrganizationSettingCreate) SetNillableBillingPhone(s *string) *OrganizationSettingCreate

SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableCreatedAt

func (osc *OrganizationSettingCreate) SetNillableCreatedAt(t *time.Time) *OrganizationSettingCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableCreatedBy

func (osc *OrganizationSettingCreate) SetNillableCreatedBy(s *string) *OrganizationSettingCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableDeletedAt

func (osc *OrganizationSettingCreate) SetNillableDeletedAt(t *time.Time) *OrganizationSettingCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableDeletedBy

func (osc *OrganizationSettingCreate) SetNillableDeletedBy(s *string) *OrganizationSettingCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableOrganizationID

func (osc *OrganizationSettingCreate) SetNillableOrganizationID(id *string) *OrganizationSettingCreate

SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableSSOCert

func (osc *OrganizationSettingCreate) SetNillableSSOCert(s *string) *OrganizationSettingCreate

SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableSSOEntrypoint

func (osc *OrganizationSettingCreate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingCreate

SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableSSOIssuer

func (osc *OrganizationSettingCreate) SetNillableSSOIssuer(s *string) *OrganizationSettingCreate

SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableTaxIdentifier

func (osc *OrganizationSettingCreate) SetNillableTaxIdentifier(s *string) *OrganizationSettingCreate

SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableUpdatedAt

func (osc *OrganizationSettingCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationSettingCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*OrganizationSettingCreate) SetNillableUpdatedBy

func (osc *OrganizationSettingCreate) SetNillableUpdatedBy(s *string) *OrganizationSettingCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OrganizationSettingCreate) SetOrganization

SetOrganization sets the "organization" edge to the Organization entity.

func (*OrganizationSettingCreate) SetOrganizationID

func (osc *OrganizationSettingCreate) SetOrganizationID(id string) *OrganizationSettingCreate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*OrganizationSettingCreate) SetSSOCert

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingCreate) SetSSOEntrypoint

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingCreate) SetSSOIssuer

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingCreate) SetTags

SetTags sets the "tags" field.

func (*OrganizationSettingCreate) SetTaxIdentifier

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingCreate) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

type OrganizationSettingCreateBulk

type OrganizationSettingCreateBulk struct {
	// contains filtered or unexported fields
}

OrganizationSettingCreateBulk is the builder for creating many OrganizationSetting entities in bulk.

func (*OrganizationSettingCreateBulk) Exec

Exec executes the query.

func (*OrganizationSettingCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationSettingCreateBulk) Save

Save creates the OrganizationSetting entities in the database.

func (*OrganizationSettingCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type OrganizationSettingDelete

type OrganizationSettingDelete struct {
	// contains filtered or unexported fields
}

OrganizationSettingDelete is the builder for deleting a OrganizationSetting entity.

func (*OrganizationSettingDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*OrganizationSettingDelete) ExecX

func (osd *OrganizationSettingDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationSettingDelete) Where

Where appends a list predicates to the OrganizationSettingDelete builder.

type OrganizationSettingDeleteOne

type OrganizationSettingDeleteOne struct {
	// contains filtered or unexported fields
}

OrganizationSettingDeleteOne is the builder for deleting a single OrganizationSetting entity.

func (*OrganizationSettingDeleteOne) Exec

Exec executes the deletion query.

func (*OrganizationSettingDeleteOne) ExecX

func (osdo *OrganizationSettingDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationSettingDeleteOne) Where

Where appends a list predicates to the OrganizationSettingDelete builder.

type OrganizationSettingEdge

type OrganizationSettingEdge struct {
	Node   *OrganizationSetting `json:"node"`
	Cursor Cursor               `json:"cursor"`
}

OrganizationSettingEdge is the edge representation of OrganizationSetting.

type OrganizationSettingEdges

type OrganizationSettingEdges struct {
	// Organization holds the value of the organization edge.
	Organization *Organization `json:"organization,omitempty"`
	// contains filtered or unexported fields
}

OrganizationSettingEdges holds the relations/edges for other nodes in the graph.

func (OrganizationSettingEdges) OrganizationOrErr

func (e OrganizationSettingEdges) OrganizationOrErr() (*Organization, error)

OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type OrganizationSettingFilter

type OrganizationSettingFilter struct {
	// contains filtered or unexported fields
}

OrganizationSettingFilter provides a generic filtering capability at runtime for OrganizationSettingQuery.

func (*OrganizationSettingFilter) Where

func (f *OrganizationSettingFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*OrganizationSettingFilter) WhereBillingAddress

func (f *OrganizationSettingFilter) WhereBillingAddress(p entql.StringP)

WhereBillingAddress applies the entql string predicate on the billing_address field.

func (*OrganizationSettingFilter) WhereBillingContact

func (f *OrganizationSettingFilter) WhereBillingContact(p entql.StringP)

WhereBillingContact applies the entql string predicate on the billing_contact field.

func (*OrganizationSettingFilter) WhereBillingEmail

func (f *OrganizationSettingFilter) WhereBillingEmail(p entql.StringP)

WhereBillingEmail applies the entql string predicate on the billing_email field.

func (*OrganizationSettingFilter) WhereBillingPhone

func (f *OrganizationSettingFilter) WhereBillingPhone(p entql.StringP)

WhereBillingPhone applies the entql string predicate on the billing_phone field.

func (*OrganizationSettingFilter) WhereCreatedAt

func (f *OrganizationSettingFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*OrganizationSettingFilter) WhereCreatedBy

func (f *OrganizationSettingFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*OrganizationSettingFilter) WhereDeletedAt

func (f *OrganizationSettingFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*OrganizationSettingFilter) WhereDeletedBy

func (f *OrganizationSettingFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*OrganizationSettingFilter) WhereDomains

func (f *OrganizationSettingFilter) WhereDomains(p entql.BytesP)

WhereDomains applies the entql json.RawMessage predicate on the domains field.

func (*OrganizationSettingFilter) WhereHasOrganization

func (f *OrganizationSettingFilter) WhereHasOrganization()

WhereHasOrganization applies a predicate to check if query has an edge organization.

func (*OrganizationSettingFilter) WhereHasOrganizationWith

func (f *OrganizationSettingFilter) WhereHasOrganizationWith(preds ...predicate.Organization)

WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates).

func (*OrganizationSettingFilter) WhereID

func (f *OrganizationSettingFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*OrganizationSettingFilter) WhereSSOCert

func (f *OrganizationSettingFilter) WhereSSOCert(p entql.StringP)

WhereSSOCert applies the entql string predicate on the sso_cert field.

func (*OrganizationSettingFilter) WhereSSOEntrypoint

func (f *OrganizationSettingFilter) WhereSSOEntrypoint(p entql.StringP)

WhereSSOEntrypoint applies the entql string predicate on the sso_entrypoint field.

func (*OrganizationSettingFilter) WhereSSOIssuer

func (f *OrganizationSettingFilter) WhereSSOIssuer(p entql.StringP)

WhereSSOIssuer applies the entql string predicate on the sso_issuer field.

func (*OrganizationSettingFilter) WhereTags

func (f *OrganizationSettingFilter) WhereTags(p entql.BytesP)

WhereTags applies the entql json.RawMessage predicate on the tags field.

func (*OrganizationSettingFilter) WhereTaxIdentifier

func (f *OrganizationSettingFilter) WhereTaxIdentifier(p entql.StringP)

WhereTaxIdentifier applies the entql string predicate on the tax_identifier field.

func (*OrganizationSettingFilter) WhereUpdatedAt

func (f *OrganizationSettingFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*OrganizationSettingFilter) WhereUpdatedBy

func (f *OrganizationSettingFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type OrganizationSettingGroupBy

type OrganizationSettingGroupBy struct {
	// contains filtered or unexported fields
}

OrganizationSettingGroupBy is the group-by builder for OrganizationSetting entities.

func (*OrganizationSettingGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*OrganizationSettingGroupBy) Bool

func (s *OrganizationSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) BoolX

func (s *OrganizationSettingGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Bools

func (s *OrganizationSettingGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) BoolsX

func (s *OrganizationSettingGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Float64

func (s *OrganizationSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) Float64X

func (s *OrganizationSettingGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Float64s

func (s *OrganizationSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) Float64sX

func (s *OrganizationSettingGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Int

func (s *OrganizationSettingGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) IntX

func (s *OrganizationSettingGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Ints

func (s *OrganizationSettingGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) IntsX

func (s *OrganizationSettingGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Scan

func (osgb *OrganizationSettingGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OrganizationSettingGroupBy) ScanX

func (s *OrganizationSettingGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationSettingGroupBy) String

func (s *OrganizationSettingGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) StringX

func (s *OrganizationSettingGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationSettingGroupBy) Strings

func (s *OrganizationSettingGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingGroupBy) StringsX

func (s *OrganizationSettingGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationSettingMutation

type OrganizationSettingMutation struct {
	// contains filtered or unexported fields
}

OrganizationSettingMutation represents an operation that mutates the OrganizationSetting nodes in the graph.

func (*OrganizationSettingMutation) AddField

func (m *OrganizationSettingMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OrganizationSettingMutation) AddedEdges

func (m *OrganizationSettingMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*OrganizationSettingMutation) AddedField

func (m *OrganizationSettingMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OrganizationSettingMutation) AddedFields

func (m *OrganizationSettingMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*OrganizationSettingMutation) AddedIDs

func (m *OrganizationSettingMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*OrganizationSettingMutation) AppendDomains

func (m *OrganizationSettingMutation) AppendDomains(s []string)

AppendDomains adds s to the "domains" field.

func (*OrganizationSettingMutation) AppendTags

func (m *OrganizationSettingMutation) AppendTags(s []string)

AppendTags adds s to the "tags" field.

func (*OrganizationSettingMutation) AppendedDomains

func (m *OrganizationSettingMutation) AppendedDomains() ([]string, bool)

AppendedDomains returns the list of values that were appended to the "domains" field in this mutation.

func (*OrganizationSettingMutation) AppendedTags

func (m *OrganizationSettingMutation) AppendedTags() ([]string, bool)

AppendedTags returns the list of values that were appended to the "tags" field in this mutation.

func (*OrganizationSettingMutation) BillingAddress

func (m *OrganizationSettingMutation) BillingAddress() (r string, exists bool)

BillingAddress returns the value of the "billing_address" field in the mutation.

func (*OrganizationSettingMutation) BillingAddressCleared

func (m *OrganizationSettingMutation) BillingAddressCleared() bool

BillingAddressCleared returns if the "billing_address" field was cleared in this mutation.

func (*OrganizationSettingMutation) BillingContact

func (m *OrganizationSettingMutation) BillingContact() (r string, exists bool)

BillingContact returns the value of the "billing_contact" field in the mutation.

func (*OrganizationSettingMutation) BillingContactCleared

func (m *OrganizationSettingMutation) BillingContactCleared() bool

BillingContactCleared returns if the "billing_contact" field was cleared in this mutation.

func (*OrganizationSettingMutation) BillingEmail

func (m *OrganizationSettingMutation) BillingEmail() (r string, exists bool)

BillingEmail returns the value of the "billing_email" field in the mutation.

func (*OrganizationSettingMutation) BillingEmailCleared

func (m *OrganizationSettingMutation) BillingEmailCleared() bool

BillingEmailCleared returns if the "billing_email" field was cleared in this mutation.

func (*OrganizationSettingMutation) BillingPhone

func (m *OrganizationSettingMutation) BillingPhone() (r string, exists bool)

BillingPhone returns the value of the "billing_phone" field in the mutation.

func (*OrganizationSettingMutation) BillingPhoneCleared

func (m *OrganizationSettingMutation) BillingPhoneCleared() bool

BillingPhoneCleared returns if the "billing_phone" field was cleared in this mutation.

func (*OrganizationSettingMutation) ClearBillingAddress

func (m *OrganizationSettingMutation) ClearBillingAddress()

ClearBillingAddress clears the value of the "billing_address" field.

func (*OrganizationSettingMutation) ClearBillingContact

func (m *OrganizationSettingMutation) ClearBillingContact()

ClearBillingContact clears the value of the "billing_contact" field.

func (*OrganizationSettingMutation) ClearBillingEmail

func (m *OrganizationSettingMutation) ClearBillingEmail()

ClearBillingEmail clears the value of the "billing_email" field.

func (*OrganizationSettingMutation) ClearBillingPhone

func (m *OrganizationSettingMutation) ClearBillingPhone()

ClearBillingPhone clears the value of the "billing_phone" field.

func (*OrganizationSettingMutation) ClearCreatedBy

func (m *OrganizationSettingMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*OrganizationSettingMutation) ClearDeletedAt

func (m *OrganizationSettingMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OrganizationSettingMutation) ClearDeletedBy

func (m *OrganizationSettingMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OrganizationSettingMutation) ClearDomains

func (m *OrganizationSettingMutation) ClearDomains()

ClearDomains clears the value of the "domains" field.

func (*OrganizationSettingMutation) ClearEdge

func (m *OrganizationSettingMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*OrganizationSettingMutation) ClearField

func (m *OrganizationSettingMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*OrganizationSettingMutation) ClearOrganization

func (m *OrganizationSettingMutation) ClearOrganization()

ClearOrganization clears the "organization" edge to the Organization entity.

func (*OrganizationSettingMutation) ClearSSOCert

func (m *OrganizationSettingMutation) ClearSSOCert()

ClearSSOCert clears the value of the "sso_cert" field.

func (*OrganizationSettingMutation) ClearSSOEntrypoint

func (m *OrganizationSettingMutation) ClearSSOEntrypoint()

ClearSSOEntrypoint clears the value of the "sso_entrypoint" field.

func (*OrganizationSettingMutation) ClearSSOIssuer

func (m *OrganizationSettingMutation) ClearSSOIssuer()

ClearSSOIssuer clears the value of the "sso_issuer" field.

func (*OrganizationSettingMutation) ClearTags

func (m *OrganizationSettingMutation) ClearTags()

ClearTags clears the value of the "tags" field.

func (*OrganizationSettingMutation) ClearTaxIdentifier

func (m *OrganizationSettingMutation) ClearTaxIdentifier()

ClearTaxIdentifier clears the value of the "tax_identifier" field.

func (*OrganizationSettingMutation) ClearUpdatedBy

func (m *OrganizationSettingMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationSettingMutation) ClearedEdges

func (m *OrganizationSettingMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*OrganizationSettingMutation) ClearedFields

func (m *OrganizationSettingMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (OrganizationSettingMutation) Client

func (m OrganizationSettingMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*OrganizationSettingMutation) CreatedAt

func (m *OrganizationSettingMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*OrganizationSettingMutation) CreatedBy

func (m *OrganizationSettingMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*OrganizationSettingMutation) CreatedByCleared

func (m *OrganizationSettingMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*OrganizationSettingMutation) DeletedAt

func (m *OrganizationSettingMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*OrganizationSettingMutation) DeletedAtCleared

func (m *OrganizationSettingMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*OrganizationSettingMutation) DeletedBy

func (m *OrganizationSettingMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*OrganizationSettingMutation) DeletedByCleared

func (m *OrganizationSettingMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*OrganizationSettingMutation) Domains

func (m *OrganizationSettingMutation) Domains() (r []string, exists bool)

Domains returns the value of the "domains" field in the mutation.

func (*OrganizationSettingMutation) DomainsCleared

func (m *OrganizationSettingMutation) DomainsCleared() bool

DomainsCleared returns if the "domains" field was cleared in this mutation.

func (*OrganizationSettingMutation) EdgeCleared

func (m *OrganizationSettingMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*OrganizationSettingMutation) Field

func (m *OrganizationSettingMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OrganizationSettingMutation) FieldCleared

func (m *OrganizationSettingMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*OrganizationSettingMutation) Fields

func (m *OrganizationSettingMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*OrganizationSettingMutation) Filter

Filter returns an entql.Where implementation to apply filters on the OrganizationSettingMutation builder.

func (*OrganizationSettingMutation) ID

func (m *OrganizationSettingMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*OrganizationSettingMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*OrganizationSettingMutation) OldBillingAddress

func (m *OrganizationSettingMutation) OldBillingAddress(ctx context.Context) (v string, err error)

OldBillingAddress returns the old "billing_address" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldBillingContact

func (m *OrganizationSettingMutation) OldBillingContact(ctx context.Context) (v string, err error)

OldBillingContact returns the old "billing_contact" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldBillingEmail

func (m *OrganizationSettingMutation) OldBillingEmail(ctx context.Context) (v string, err error)

OldBillingEmail returns the old "billing_email" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldBillingPhone

func (m *OrganizationSettingMutation) OldBillingPhone(ctx context.Context) (v string, err error)

OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldCreatedAt

func (m *OrganizationSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldCreatedBy

func (m *OrganizationSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldDeletedAt

func (m *OrganizationSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldDeletedBy

func (m *OrganizationSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldDomains

func (m *OrganizationSettingMutation) OldDomains(ctx context.Context) (v []string, err error)

OldDomains returns the old "domains" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldField

func (m *OrganizationSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*OrganizationSettingMutation) OldSSOCert

func (m *OrganizationSettingMutation) OldSSOCert(ctx context.Context) (v string, err error)

OldSSOCert returns the old "sso_cert" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldSSOEntrypoint

func (m *OrganizationSettingMutation) OldSSOEntrypoint(ctx context.Context) (v string, err error)

OldSSOEntrypoint returns the old "sso_entrypoint" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldSSOIssuer

func (m *OrganizationSettingMutation) OldSSOIssuer(ctx context.Context) (v string, err error)

OldSSOIssuer returns the old "sso_issuer" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldTags

func (m *OrganizationSettingMutation) OldTags(ctx context.Context) (v []string, err error)

OldTags returns the old "tags" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldTaxIdentifier

func (m *OrganizationSettingMutation) OldTaxIdentifier(ctx context.Context) (v string, err error)

OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldUpdatedAt

func (m *OrganizationSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) OldUpdatedBy

func (m *OrganizationSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSetting entity. If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationSettingMutation) Op

Op returns the operation name.

func (*OrganizationSettingMutation) OrganizationCleared

func (m *OrganizationSettingMutation) OrganizationCleared() bool

OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.

func (*OrganizationSettingMutation) OrganizationID

func (m *OrganizationSettingMutation) OrganizationID() (id string, exists bool)

OrganizationID returns the "organization" edge ID in the mutation.

func (*OrganizationSettingMutation) OrganizationIDs

func (m *OrganizationSettingMutation) OrganizationIDs() (ids []string)

OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.

func (*OrganizationSettingMutation) RemovedEdges

func (m *OrganizationSettingMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*OrganizationSettingMutation) RemovedIDs

func (m *OrganizationSettingMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*OrganizationSettingMutation) ResetBillingAddress

func (m *OrganizationSettingMutation) ResetBillingAddress()

ResetBillingAddress resets all changes to the "billing_address" field.

func (*OrganizationSettingMutation) ResetBillingContact

func (m *OrganizationSettingMutation) ResetBillingContact()

ResetBillingContact resets all changes to the "billing_contact" field.

func (*OrganizationSettingMutation) ResetBillingEmail

func (m *OrganizationSettingMutation) ResetBillingEmail()

ResetBillingEmail resets all changes to the "billing_email" field.

func (*OrganizationSettingMutation) ResetBillingPhone

func (m *OrganizationSettingMutation) ResetBillingPhone()

ResetBillingPhone resets all changes to the "billing_phone" field.

func (*OrganizationSettingMutation) ResetCreatedAt

func (m *OrganizationSettingMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*OrganizationSettingMutation) ResetCreatedBy

func (m *OrganizationSettingMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*OrganizationSettingMutation) ResetDeletedAt

func (m *OrganizationSettingMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*OrganizationSettingMutation) ResetDeletedBy

func (m *OrganizationSettingMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*OrganizationSettingMutation) ResetDomains

func (m *OrganizationSettingMutation) ResetDomains()

ResetDomains resets all changes to the "domains" field.

func (*OrganizationSettingMutation) ResetEdge

func (m *OrganizationSettingMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*OrganizationSettingMutation) ResetField

func (m *OrganizationSettingMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*OrganizationSettingMutation) ResetOrganization

func (m *OrganizationSettingMutation) ResetOrganization()

ResetOrganization resets all changes to the "organization" edge.

func (*OrganizationSettingMutation) ResetSSOCert

func (m *OrganizationSettingMutation) ResetSSOCert()

ResetSSOCert resets all changes to the "sso_cert" field.

func (*OrganizationSettingMutation) ResetSSOEntrypoint

func (m *OrganizationSettingMutation) ResetSSOEntrypoint()

ResetSSOEntrypoint resets all changes to the "sso_entrypoint" field.

func (*OrganizationSettingMutation) ResetSSOIssuer

func (m *OrganizationSettingMutation) ResetSSOIssuer()

ResetSSOIssuer resets all changes to the "sso_issuer" field.

func (*OrganizationSettingMutation) ResetTags

func (m *OrganizationSettingMutation) ResetTags()

ResetTags resets all changes to the "tags" field.

func (*OrganizationSettingMutation) ResetTaxIdentifier

func (m *OrganizationSettingMutation) ResetTaxIdentifier()

ResetTaxIdentifier resets all changes to the "tax_identifier" field.

func (*OrganizationSettingMutation) ResetUpdatedAt

func (m *OrganizationSettingMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*OrganizationSettingMutation) ResetUpdatedBy

func (m *OrganizationSettingMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*OrganizationSettingMutation) SSOCert

func (m *OrganizationSettingMutation) SSOCert() (r string, exists bool)

SSOCert returns the value of the "sso_cert" field in the mutation.

func (*OrganizationSettingMutation) SSOCertCleared

func (m *OrganizationSettingMutation) SSOCertCleared() bool

SSOCertCleared returns if the "sso_cert" field was cleared in this mutation.

func (*OrganizationSettingMutation) SSOEntrypoint

func (m *OrganizationSettingMutation) SSOEntrypoint() (r string, exists bool)

SSOEntrypoint returns the value of the "sso_entrypoint" field in the mutation.

func (*OrganizationSettingMutation) SSOEntrypointCleared

func (m *OrganizationSettingMutation) SSOEntrypointCleared() bool

SSOEntrypointCleared returns if the "sso_entrypoint" field was cleared in this mutation.

func (*OrganizationSettingMutation) SSOIssuer

func (m *OrganizationSettingMutation) SSOIssuer() (r string, exists bool)

SSOIssuer returns the value of the "sso_issuer" field in the mutation.

func (*OrganizationSettingMutation) SSOIssuerCleared

func (m *OrganizationSettingMutation) SSOIssuerCleared() bool

SSOIssuerCleared returns if the "sso_issuer" field was cleared in this mutation.

func (*OrganizationSettingMutation) SetBillingAddress

func (m *OrganizationSettingMutation) SetBillingAddress(s string)

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingMutation) SetBillingContact

func (m *OrganizationSettingMutation) SetBillingContact(s string)

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingMutation) SetBillingEmail

func (m *OrganizationSettingMutation) SetBillingEmail(s string)

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingMutation) SetBillingPhone

func (m *OrganizationSettingMutation) SetBillingPhone(s string)

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingMutation) SetCreatedAt

func (m *OrganizationSettingMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*OrganizationSettingMutation) SetCreatedBy

func (m *OrganizationSettingMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*OrganizationSettingMutation) SetDeletedAt

func (m *OrganizationSettingMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationSettingMutation) SetDeletedBy

func (m *OrganizationSettingMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationSettingMutation) SetDomains

func (m *OrganizationSettingMutation) SetDomains(s []string)

SetDomains sets the "domains" field.

func (*OrganizationSettingMutation) SetField

func (m *OrganizationSettingMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OrganizationSettingMutation) SetID

func (m *OrganizationSettingMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of OrganizationSetting entities.

func (*OrganizationSettingMutation) SetOp

func (m *OrganizationSettingMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*OrganizationSettingMutation) SetOrganizationID

func (m *OrganizationSettingMutation) SetOrganizationID(id string)

SetOrganizationID sets the "organization" edge to the Organization entity by id.

func (*OrganizationSettingMutation) SetSSOCert

func (m *OrganizationSettingMutation) SetSSOCert(s string)

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingMutation) SetSSOEntrypoint

func (m *OrganizationSettingMutation) SetSSOEntrypoint(s string)

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingMutation) SetSSOIssuer

func (m *OrganizationSettingMutation) SetSSOIssuer(s string)

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingMutation) SetTags

func (m *OrganizationSettingMutation) SetTags(s []string)

SetTags sets the "tags" field.

func (*OrganizationSettingMutation) SetTaxIdentifier

func (m *OrganizationSettingMutation) SetTaxIdentifier(s string)

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingMutation) SetUpdatedAt

func (m *OrganizationSettingMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingMutation) SetUpdatedBy

func (m *OrganizationSettingMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationSettingMutation) Tags

func (m *OrganizationSettingMutation) Tags() (r []string, exists bool)

Tags returns the value of the "tags" field in the mutation.

func (*OrganizationSettingMutation) TagsCleared

func (m *OrganizationSettingMutation) TagsCleared() bool

TagsCleared returns if the "tags" field was cleared in this mutation.

func (*OrganizationSettingMutation) TaxIdentifier

func (m *OrganizationSettingMutation) TaxIdentifier() (r string, exists bool)

TaxIdentifier returns the value of the "tax_identifier" field in the mutation.

func (*OrganizationSettingMutation) TaxIdentifierCleared

func (m *OrganizationSettingMutation) TaxIdentifierCleared() bool

TaxIdentifierCleared returns if the "tax_identifier" field was cleared in this mutation.

func (OrganizationSettingMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*OrganizationSettingMutation) Type

Type returns the node type of this mutation (OrganizationSetting).

func (*OrganizationSettingMutation) UpdatedAt

func (m *OrganizationSettingMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*OrganizationSettingMutation) UpdatedBy

func (m *OrganizationSettingMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*OrganizationSettingMutation) UpdatedByCleared

func (m *OrganizationSettingMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*OrganizationSettingMutation) Where

Where appends a list predicates to the OrganizationSettingMutation builder.

func (*OrganizationSettingMutation) WhereP

func (m *OrganizationSettingMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the OrganizationSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type OrganizationSettingOrder

type OrganizationSettingOrder struct {
	Direction OrderDirection                 `json:"direction"`
	Field     *OrganizationSettingOrderField `json:"field"`
}

OrganizationSettingOrder defines the ordering of OrganizationSetting.

type OrganizationSettingOrderField

type OrganizationSettingOrderField struct {
	// Value extracts the ordering value from the given OrganizationSetting.
	Value func(*OrganizationSetting) (ent.Value, error)
	// contains filtered or unexported fields
}

OrganizationSettingOrderField defines the ordering field of OrganizationSetting.

type OrganizationSettingPaginateOption

type OrganizationSettingPaginateOption func(*organizationsettingPager) error

OrganizationSettingPaginateOption enables pagination customization.

func WithOrganizationSettingFilter

func WithOrganizationSettingFilter(filter func(*OrganizationSettingQuery) (*OrganizationSettingQuery, error)) OrganizationSettingPaginateOption

WithOrganizationSettingFilter configures pagination filter.

func WithOrganizationSettingOrder

func WithOrganizationSettingOrder(order *OrganizationSettingOrder) OrganizationSettingPaginateOption

WithOrganizationSettingOrder configures pagination ordering.

type OrganizationSettingQuery

type OrganizationSettingQuery struct {
	// contains filtered or unexported fields
}

OrganizationSettingQuery is the builder for querying OrganizationSetting entities.

func (*OrganizationSettingQuery) Aggregate

Aggregate returns a OrganizationSettingSelect configured with the given aggregations.

func (*OrganizationSettingQuery) All

All executes the query and returns a list of OrganizationSettings.

func (*OrganizationSettingQuery) AllX

AllX is like All, but panics if an error occurs.

func (*OrganizationSettingQuery) Clone

Clone returns a duplicate of the OrganizationSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*OrganizationSettingQuery) CollectFields

func (os *OrganizationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*OrganizationSettingQuery) Count

func (osq *OrganizationSettingQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OrganizationSettingQuery) CountX

func (osq *OrganizationSettingQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*OrganizationSettingQuery) Exist

func (osq *OrganizationSettingQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*OrganizationSettingQuery) ExistX

func (osq *OrganizationSettingQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*OrganizationSettingQuery) Filter

Filter returns a Filter implementation to apply filters on the OrganizationSettingQuery builder.

func (*OrganizationSettingQuery) First

First returns the first OrganizationSetting entity from the query. Returns a *NotFoundError when no OrganizationSetting was found.

func (*OrganizationSettingQuery) FirstID

func (osq *OrganizationSettingQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first OrganizationSetting ID from the query. Returns a *NotFoundError when no OrganizationSetting ID was found.

func (*OrganizationSettingQuery) FirstIDX

func (osq *OrganizationSettingQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*OrganizationSettingQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*OrganizationSettingQuery) GroupBy

func (osq *OrganizationSettingQuery) GroupBy(field string, fields ...string) *OrganizationSettingGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.OrganizationSetting.Query().
	GroupBy(organizationsetting.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*OrganizationSettingQuery) IDs

func (osq *OrganizationSettingQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of OrganizationSetting IDs.

func (*OrganizationSettingQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*OrganizationSettingQuery) Limit

Limit the number of records to be returned by this query.

func (*OrganizationSettingQuery) Offset

Offset to start from.

func (*OrganizationSettingQuery) Only

Only returns a single OrganizationSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one OrganizationSetting entity is found. Returns a *NotFoundError when no OrganizationSetting entities are found.

func (*OrganizationSettingQuery) OnlyID

func (osq *OrganizationSettingQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only OrganizationSetting ID in the query. Returns a *NotSingularError when more than one OrganizationSetting ID is found. Returns a *NotFoundError when no entities are found.

func (*OrganizationSettingQuery) OnlyIDX

func (osq *OrganizationSettingQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*OrganizationSettingQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*OrganizationSettingQuery) Order

Order specifies how the records should be ordered.

func (*OrganizationSettingQuery) Paginate

func (os *OrganizationSettingQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...OrganizationSettingPaginateOption,
) (*OrganizationSettingConnection, error)

Paginate executes the query and returns a relay based cursor connection to OrganizationSetting.

func (*OrganizationSettingQuery) QueryOrganization

func (osq *OrganizationSettingQuery) QueryOrganization() *OrganizationQuery

QueryOrganization chains the current query on the "organization" edge.

func (*OrganizationSettingQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.OrganizationSetting.Query().
	Select(organizationsetting.FieldCreatedAt).
	Scan(ctx, &v)

func (*OrganizationSettingQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*OrganizationSettingQuery) Where

Where adds a new predicate for the OrganizationSettingQuery builder.

func (*OrganizationSettingQuery) WithOrganization

func (osq *OrganizationSettingQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OrganizationSettingQuery

WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.

type OrganizationSettingSelect

type OrganizationSettingSelect struct {
	*OrganizationSettingQuery
	// contains filtered or unexported fields
}

OrganizationSettingSelect is the builder for selecting fields of OrganizationSetting entities.

func (*OrganizationSettingSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*OrganizationSettingSelect) Bool

func (s *OrganizationSettingSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) BoolX

func (s *OrganizationSettingSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationSettingSelect) Bools

func (s *OrganizationSettingSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) BoolsX

func (s *OrganizationSettingSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationSettingSelect) Float64

func (s *OrganizationSettingSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) Float64X

func (s *OrganizationSettingSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationSettingSelect) Float64s

func (s *OrganizationSettingSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) Float64sX

func (s *OrganizationSettingSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationSettingSelect) Int

func (s *OrganizationSettingSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) IntX

func (s *OrganizationSettingSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationSettingSelect) Ints

func (s *OrganizationSettingSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) IntsX

func (s *OrganizationSettingSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationSettingSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*OrganizationSettingSelect) ScanX

func (s *OrganizationSettingSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationSettingSelect) String

func (s *OrganizationSettingSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) StringX

func (s *OrganizationSettingSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationSettingSelect) Strings

func (s *OrganizationSettingSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OrganizationSettingSelect) StringsX

func (s *OrganizationSettingSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationSettingUpdate

type OrganizationSettingUpdate struct {
	// contains filtered or unexported fields
}

OrganizationSettingUpdate is the builder for updating OrganizationSetting entities.

func (*OrganizationSettingUpdate) AppendDomains

AppendDomains appends s to the "domains" field.

func (*OrganizationSettingUpdate) AppendTags

AppendTags appends s to the "tags" field.

func (*OrganizationSettingUpdate) ClearBillingAddress

func (osu *OrganizationSettingUpdate) ClearBillingAddress() *OrganizationSettingUpdate

ClearBillingAddress clears the value of the "billing_address" field.

func (*OrganizationSettingUpdate) ClearBillingContact

func (osu *OrganizationSettingUpdate) ClearBillingContact() *OrganizationSettingUpdate

ClearBillingContact clears the value of the "billing_contact" field.

func (*OrganizationSettingUpdate) ClearBillingEmail

func (osu *OrganizationSettingUpdate) ClearBillingEmail() *OrganizationSettingUpdate

ClearBillingEmail clears the value of the "billing_email" field.

func (*OrganizationSettingUpdate) ClearBillingPhone

func (osu *OrganizationSettingUpdate) ClearBillingPhone() *OrganizationSettingUpdate

ClearBillingPhone clears the value of the "billing_phone" field.

func (*OrganizationSettingUpdate) ClearDeletedAt

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OrganizationSettingUpdate) ClearDeletedBy

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OrganizationSettingUpdate) ClearDomains

ClearDomains clears the value of the "domains" field.

func (*OrganizationSettingUpdate) ClearOrganization

func (osu *OrganizationSettingUpdate) ClearOrganization() *OrganizationSettingUpdate

ClearOrganization clears the "organization" edge to the Organization entity.

func (*OrganizationSettingUpdate) ClearSSOCert

ClearSSOCert clears the value of the "sso_cert" field.

func (*OrganizationSettingUpdate) ClearSSOEntrypoint

func (osu *OrganizationSettingUpdate) ClearSSOEntrypoint() *OrganizationSettingUpdate

ClearSSOEntrypoint clears the value of the "sso_entrypoint" field.

func (*OrganizationSettingUpdate) ClearSSOIssuer

ClearSSOIssuer clears the value of the "sso_issuer" field.

func (*OrganizationSettingUpdate) ClearTags

ClearTags clears the value of the "tags" field.

func (*OrganizationSettingUpdate) ClearTaxIdentifier

func (osu *OrganizationSettingUpdate) ClearTaxIdentifier() *OrganizationSettingUpdate

ClearTaxIdentifier clears the value of the "tax_identifier" field.

func (*OrganizationSettingUpdate) ClearUpdatedBy

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationSettingUpdate) Exec

Exec executes the query.

func (*OrganizationSettingUpdate) ExecX

func (osu *OrganizationSettingUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationSettingUpdate) Mutation

Mutation returns the OrganizationSettingMutation object of the builder.

func (*OrganizationSettingUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*OrganizationSettingUpdate) SaveX

func (osu *OrganizationSettingUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*OrganizationSettingUpdate) SetBillingAddress

func (osu *OrganizationSettingUpdate) SetBillingAddress(s string) *OrganizationSettingUpdate

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingUpdate) SetBillingContact

func (osu *OrganizationSettingUpdate) SetBillingContact(s string) *OrganizationSettingUpdate

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingUpdate) SetBillingEmail

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingUpdate) SetBillingPhone

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingUpdate) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationSettingUpdate) SetDeletedBy

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationSettingUpdate) SetDomains

SetDomains sets the "domains" field.

func (*OrganizationSettingUpdate) SetInput

SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdate builder.

func (*OrganizationSettingUpdate) SetNillableBillingAddress

func (osu *OrganizationSettingUpdate) SetNillableBillingAddress(s *string) *OrganizationSettingUpdate

SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableBillingContact

func (osu *OrganizationSettingUpdate) SetNillableBillingContact(s *string) *OrganizationSettingUpdate

SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableBillingEmail

func (osu *OrganizationSettingUpdate) SetNillableBillingEmail(s *string) *OrganizationSettingUpdate

SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableBillingPhone

func (osu *OrganizationSettingUpdate) SetNillableBillingPhone(s *string) *OrganizationSettingUpdate

SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableDeletedAt

func (osu *OrganizationSettingUpdate) SetNillableDeletedAt(t *time.Time) *OrganizationSettingUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableDeletedBy

func (osu *OrganizationSettingUpdate) SetNillableDeletedBy(s *string) *OrganizationSettingUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableOrganizationID

func (osu *OrganizationSettingUpdate) SetNillableOrganizationID(id *string) *OrganizationSettingUpdate

SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableSSOCert

func (osu *OrganizationSettingUpdate) SetNillableSSOCert(s *string) *OrganizationSettingUpdate

SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableSSOEntrypoint

func (osu *OrganizationSettingUpdate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingUpdate

SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableSSOIssuer

func (osu *OrganizationSettingUpdate) SetNillableSSOIssuer(s *string) *OrganizationSettingUpdate

SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableTaxIdentifier

func (osu *OrganizationSettingUpdate) SetNillableTaxIdentifier(s *string) *OrganizationSettingUpdate

SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetNillableUpdatedBy

func (osu *OrganizationSettingUpdate) SetNillableUpdatedBy(s *string) *OrganizationSettingUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OrganizationSettingUpdate) SetOrganization

SetOrganization sets the "organization" edge to the Organization entity.

func (*OrganizationSettingUpdate) SetOrganizationID

func (osu *OrganizationSettingUpdate) SetOrganizationID(id string) *OrganizationSettingUpdate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*OrganizationSettingUpdate) SetSSOCert

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingUpdate) SetSSOEntrypoint

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingUpdate) SetSSOIssuer

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingUpdate) SetTags

SetTags sets the "tags" field.

func (*OrganizationSettingUpdate) SetTaxIdentifier

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingUpdate) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationSettingUpdate) Where

Where appends a list predicates to the OrganizationSettingUpdate builder.

type OrganizationSettingUpdateOne

type OrganizationSettingUpdateOne struct {
	// contains filtered or unexported fields
}

OrganizationSettingUpdateOne is the builder for updating a single OrganizationSetting entity.

func (*OrganizationSettingUpdateOne) AppendDomains

AppendDomains appends s to the "domains" field.

func (*OrganizationSettingUpdateOne) AppendTags

AppendTags appends s to the "tags" field.

func (*OrganizationSettingUpdateOne) ClearBillingAddress

func (osuo *OrganizationSettingUpdateOne) ClearBillingAddress() *OrganizationSettingUpdateOne

ClearBillingAddress clears the value of the "billing_address" field.

func (*OrganizationSettingUpdateOne) ClearBillingContact

func (osuo *OrganizationSettingUpdateOne) ClearBillingContact() *OrganizationSettingUpdateOne

ClearBillingContact clears the value of the "billing_contact" field.

func (*OrganizationSettingUpdateOne) ClearBillingEmail

ClearBillingEmail clears the value of the "billing_email" field.

func (*OrganizationSettingUpdateOne) ClearBillingPhone

ClearBillingPhone clears the value of the "billing_phone" field.

func (*OrganizationSettingUpdateOne) ClearDeletedAt

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OrganizationSettingUpdateOne) ClearDeletedBy

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OrganizationSettingUpdateOne) ClearDomains

ClearDomains clears the value of the "domains" field.

func (*OrganizationSettingUpdateOne) ClearOrganization

ClearOrganization clears the "organization" edge to the Organization entity.

func (*OrganizationSettingUpdateOne) ClearSSOCert

ClearSSOCert clears the value of the "sso_cert" field.

func (*OrganizationSettingUpdateOne) ClearSSOEntrypoint

func (osuo *OrganizationSettingUpdateOne) ClearSSOEntrypoint() *OrganizationSettingUpdateOne

ClearSSOEntrypoint clears the value of the "sso_entrypoint" field.

func (*OrganizationSettingUpdateOne) ClearSSOIssuer

ClearSSOIssuer clears the value of the "sso_issuer" field.

func (*OrganizationSettingUpdateOne) ClearTags

ClearTags clears the value of the "tags" field.

func (*OrganizationSettingUpdateOne) ClearTaxIdentifier

func (osuo *OrganizationSettingUpdateOne) ClearTaxIdentifier() *OrganizationSettingUpdateOne

ClearTaxIdentifier clears the value of the "tax_identifier" field.

func (*OrganizationSettingUpdateOne) ClearUpdatedBy

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationSettingUpdateOne) Exec

Exec executes the query on the entity.

func (*OrganizationSettingUpdateOne) ExecX

func (osuo *OrganizationSettingUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationSettingUpdateOne) Mutation

Mutation returns the OrganizationSettingMutation object of the builder.

func (*OrganizationSettingUpdateOne) Save

Save executes the query and returns the updated OrganizationSetting entity.

func (*OrganizationSettingUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*OrganizationSettingUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*OrganizationSettingUpdateOne) SetBillingAddress

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingUpdateOne) SetBillingContact

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingUpdateOne) SetBillingEmail

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingUpdateOne) SetBillingPhone

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingUpdateOne) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationSettingUpdateOne) SetDeletedBy

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationSettingUpdateOne) SetDomains

SetDomains sets the "domains" field.

func (*OrganizationSettingUpdateOne) SetInput

SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdateOne builder.

func (*OrganizationSettingUpdateOne) SetNillableBillingAddress

func (osuo *OrganizationSettingUpdateOne) SetNillableBillingAddress(s *string) *OrganizationSettingUpdateOne

SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableBillingContact

func (osuo *OrganizationSettingUpdateOne) SetNillableBillingContact(s *string) *OrganizationSettingUpdateOne

SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableBillingEmail

func (osuo *OrganizationSettingUpdateOne) SetNillableBillingEmail(s *string) *OrganizationSettingUpdateOne

SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableBillingPhone

func (osuo *OrganizationSettingUpdateOne) SetNillableBillingPhone(s *string) *OrganizationSettingUpdateOne

SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableDeletedAt

func (osuo *OrganizationSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *OrganizationSettingUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableDeletedBy

func (osuo *OrganizationSettingUpdateOne) SetNillableDeletedBy(s *string) *OrganizationSettingUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableOrganizationID

func (osuo *OrganizationSettingUpdateOne) SetNillableOrganizationID(id *string) *OrganizationSettingUpdateOne

SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableSSOCert

SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableSSOEntrypoint

func (osuo *OrganizationSettingUpdateOne) SetNillableSSOEntrypoint(s *string) *OrganizationSettingUpdateOne

SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableSSOIssuer

func (osuo *OrganizationSettingUpdateOne) SetNillableSSOIssuer(s *string) *OrganizationSettingUpdateOne

SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableTaxIdentifier

func (osuo *OrganizationSettingUpdateOne) SetNillableTaxIdentifier(s *string) *OrganizationSettingUpdateOne

SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetNillableUpdatedBy

func (osuo *OrganizationSettingUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationSettingUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OrganizationSettingUpdateOne) SetOrganization

SetOrganization sets the "organization" edge to the Organization entity.

func (*OrganizationSettingUpdateOne) SetOrganizationID

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*OrganizationSettingUpdateOne) SetSSOCert

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingUpdateOne) SetSSOEntrypoint

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingUpdateOne) SetSSOIssuer

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingUpdateOne) SetTags

SetTags sets the "tags" field.

func (*OrganizationSettingUpdateOne) SetTaxIdentifier

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingUpdateOne) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationSettingUpdateOne) Where

Where appends a list predicates to the OrganizationSettingUpdate builder.

type OrganizationSettingWhereInput

type OrganizationSettingWhereInput struct {
	Predicates []predicate.OrganizationSetting  `json:"-"`
	Not        *OrganizationSettingWhereInput   `json:"not,omitempty"`
	Or         []*OrganizationSettingWhereInput `json:"or,omitempty"`
	And        []*OrganizationSettingWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "sso_cert" field predicates.
	SSOCert             *string  `json:"ssoCert,omitempty"`
	SSOCertNEQ          *string  `json:"ssoCertNEQ,omitempty"`
	SSOCertIn           []string `json:"ssoCertIn,omitempty"`
	SSOCertNotIn        []string `json:"ssoCertNotIn,omitempty"`
	SSOCertGT           *string  `json:"ssoCertGT,omitempty"`
	SSOCertGTE          *string  `json:"ssoCertGTE,omitempty"`
	SSOCertLT           *string  `json:"ssoCertLT,omitempty"`
	SSOCertLTE          *string  `json:"ssoCertLTE,omitempty"`
	SSOCertContains     *string  `json:"ssoCertContains,omitempty"`
	SSOCertHasPrefix    *string  `json:"ssoCertHasPrefix,omitempty"`
	SSOCertHasSuffix    *string  `json:"ssoCertHasSuffix,omitempty"`
	SSOCertIsNil        bool     `json:"ssoCertIsNil,omitempty"`
	SSOCertNotNil       bool     `json:"ssoCertNotNil,omitempty"`
	SSOCertEqualFold    *string  `json:"ssoCertEqualFold,omitempty"`
	SSOCertContainsFold *string  `json:"ssoCertContainsFold,omitempty"`

	// "sso_entrypoint" field predicates.
	SSOEntrypoint             *string  `json:"ssoEntrypoint,omitempty"`
	SSOEntrypointNEQ          *string  `json:"ssoEntrypointNEQ,omitempty"`
	SSOEntrypointIn           []string `json:"ssoEntrypointIn,omitempty"`
	SSOEntrypointNotIn        []string `json:"ssoEntrypointNotIn,omitempty"`
	SSOEntrypointGT           *string  `json:"ssoEntrypointGT,omitempty"`
	SSOEntrypointGTE          *string  `json:"ssoEntrypointGTE,omitempty"`
	SSOEntrypointLT           *string  `json:"ssoEntrypointLT,omitempty"`
	SSOEntrypointLTE          *string  `json:"ssoEntrypointLTE,omitempty"`
	SSOEntrypointContains     *string  `json:"ssoEntrypointContains,omitempty"`
	SSOEntrypointHasPrefix    *string  `json:"ssoEntrypointHasPrefix,omitempty"`
	SSOEntrypointHasSuffix    *string  `json:"ssoEntrypointHasSuffix,omitempty"`
	SSOEntrypointIsNil        bool     `json:"ssoEntrypointIsNil,omitempty"`
	SSOEntrypointNotNil       bool     `json:"ssoEntrypointNotNil,omitempty"`
	SSOEntrypointEqualFold    *string  `json:"ssoEntrypointEqualFold,omitempty"`
	SSOEntrypointContainsFold *string  `json:"ssoEntrypointContainsFold,omitempty"`

	// "sso_issuer" field predicates.
	SSOIssuer             *string  `json:"ssoIssuer,omitempty"`
	SSOIssuerNEQ          *string  `json:"ssoIssuerNEQ,omitempty"`
	SSOIssuerIn           []string `json:"ssoIssuerIn,omitempty"`
	SSOIssuerNotIn        []string `json:"ssoIssuerNotIn,omitempty"`
	SSOIssuerGT           *string  `json:"ssoIssuerGT,omitempty"`
	SSOIssuerGTE          *string  `json:"ssoIssuerGTE,omitempty"`
	SSOIssuerLT           *string  `json:"ssoIssuerLT,omitempty"`
	SSOIssuerLTE          *string  `json:"ssoIssuerLTE,omitempty"`
	SSOIssuerContains     *string  `json:"ssoIssuerContains,omitempty"`
	SSOIssuerHasPrefix    *string  `json:"ssoIssuerHasPrefix,omitempty"`
	SSOIssuerHasSuffix    *string  `json:"ssoIssuerHasSuffix,omitempty"`
	SSOIssuerIsNil        bool     `json:"ssoIssuerIsNil,omitempty"`
	SSOIssuerNotNil       bool     `json:"ssoIssuerNotNil,omitempty"`
	SSOIssuerEqualFold    *string  `json:"ssoIssuerEqualFold,omitempty"`
	SSOIssuerContainsFold *string  `json:"ssoIssuerContainsFold,omitempty"`

	// "billing_contact" field predicates.
	BillingContact             *string  `json:"billingContact,omitempty"`
	BillingContactNEQ          *string  `json:"billingContactNEQ,omitempty"`
	BillingContactIn           []string `json:"billingContactIn,omitempty"`
	BillingContactNotIn        []string `json:"billingContactNotIn,omitempty"`
	BillingContactGT           *string  `json:"billingContactGT,omitempty"`
	BillingContactGTE          *string  `json:"billingContactGTE,omitempty"`
	BillingContactLT           *string  `json:"billingContactLT,omitempty"`
	BillingContactLTE          *string  `json:"billingContactLTE,omitempty"`
	BillingContactContains     *string  `json:"billingContactContains,omitempty"`
	BillingContactHasPrefix    *string  `json:"billingContactHasPrefix,omitempty"`
	BillingContactHasSuffix    *string  `json:"billingContactHasSuffix,omitempty"`
	BillingContactIsNil        bool     `json:"billingContactIsNil,omitempty"`
	BillingContactNotNil       bool     `json:"billingContactNotNil,omitempty"`
	BillingContactEqualFold    *string  `json:"billingContactEqualFold,omitempty"`
	BillingContactContainsFold *string  `json:"billingContactContainsFold,omitempty"`

	// "billing_email" field predicates.
	BillingEmail             *string  `json:"billingEmail,omitempty"`
	BillingEmailNEQ          *string  `json:"billingEmailNEQ,omitempty"`
	BillingEmailIn           []string `json:"billingEmailIn,omitempty"`
	BillingEmailNotIn        []string `json:"billingEmailNotIn,omitempty"`
	BillingEmailGT           *string  `json:"billingEmailGT,omitempty"`
	BillingEmailGTE          *string  `json:"billingEmailGTE,omitempty"`
	BillingEmailLT           *string  `json:"billingEmailLT,omitempty"`
	BillingEmailLTE          *string  `json:"billingEmailLTE,omitempty"`
	BillingEmailContains     *string  `json:"billingEmailContains,omitempty"`
	BillingEmailHasPrefix    *string  `json:"billingEmailHasPrefix,omitempty"`
	BillingEmailHasSuffix    *string  `json:"billingEmailHasSuffix,omitempty"`
	BillingEmailIsNil        bool     `json:"billingEmailIsNil,omitempty"`
	BillingEmailNotNil       bool     `json:"billingEmailNotNil,omitempty"`
	BillingEmailEqualFold    *string  `json:"billingEmailEqualFold,omitempty"`
	BillingEmailContainsFold *string  `json:"billingEmailContainsFold,omitempty"`

	// "billing_phone" field predicates.
	BillingPhone             *string  `json:"billingPhone,omitempty"`
	BillingPhoneNEQ          *string  `json:"billingPhoneNEQ,omitempty"`
	BillingPhoneIn           []string `json:"billingPhoneIn,omitempty"`
	BillingPhoneNotIn        []string `json:"billingPhoneNotIn,omitempty"`
	BillingPhoneGT           *string  `json:"billingPhoneGT,omitempty"`
	BillingPhoneGTE          *string  `json:"billingPhoneGTE,omitempty"`
	BillingPhoneLT           *string  `json:"billingPhoneLT,omitempty"`
	BillingPhoneLTE          *string  `json:"billingPhoneLTE,omitempty"`
	BillingPhoneContains     *string  `json:"billingPhoneContains,omitempty"`
	BillingPhoneHasPrefix    *string  `json:"billingPhoneHasPrefix,omitempty"`
	BillingPhoneHasSuffix    *string  `json:"billingPhoneHasSuffix,omitempty"`
	BillingPhoneIsNil        bool     `json:"billingPhoneIsNil,omitempty"`
	BillingPhoneNotNil       bool     `json:"billingPhoneNotNil,omitempty"`
	BillingPhoneEqualFold    *string  `json:"billingPhoneEqualFold,omitempty"`
	BillingPhoneContainsFold *string  `json:"billingPhoneContainsFold,omitempty"`

	// "billing_address" field predicates.
	BillingAddress             *string  `json:"billingAddress,omitempty"`
	BillingAddressNEQ          *string  `json:"billingAddressNEQ,omitempty"`
	BillingAddressIn           []string `json:"billingAddressIn,omitempty"`
	BillingAddressNotIn        []string `json:"billingAddressNotIn,omitempty"`
	BillingAddressGT           *string  `json:"billingAddressGT,omitempty"`
	BillingAddressGTE          *string  `json:"billingAddressGTE,omitempty"`
	BillingAddressLT           *string  `json:"billingAddressLT,omitempty"`
	BillingAddressLTE          *string  `json:"billingAddressLTE,omitempty"`
	BillingAddressContains     *string  `json:"billingAddressContains,omitempty"`
	BillingAddressHasPrefix    *string  `json:"billingAddressHasPrefix,omitempty"`
	BillingAddressHasSuffix    *string  `json:"billingAddressHasSuffix,omitempty"`
	BillingAddressIsNil        bool     `json:"billingAddressIsNil,omitempty"`
	BillingAddressNotNil       bool     `json:"billingAddressNotNil,omitempty"`
	BillingAddressEqualFold    *string  `json:"billingAddressEqualFold,omitempty"`
	BillingAddressContainsFold *string  `json:"billingAddressContainsFold,omitempty"`

	// "tax_identifier" field predicates.
	TaxIdentifier             *string  `json:"taxIdentifier,omitempty"`
	TaxIdentifierNEQ          *string  `json:"taxIdentifierNEQ,omitempty"`
	TaxIdentifierIn           []string `json:"taxIdentifierIn,omitempty"`
	TaxIdentifierNotIn        []string `json:"taxIdentifierNotIn,omitempty"`
	TaxIdentifierGT           *string  `json:"taxIdentifierGT,omitempty"`
	TaxIdentifierGTE          *string  `json:"taxIdentifierGTE,omitempty"`
	TaxIdentifierLT           *string  `json:"taxIdentifierLT,omitempty"`
	TaxIdentifierLTE          *string  `json:"taxIdentifierLTE,omitempty"`
	TaxIdentifierContains     *string  `json:"taxIdentifierContains,omitempty"`
	TaxIdentifierHasPrefix    *string  `json:"taxIdentifierHasPrefix,omitempty"`
	TaxIdentifierHasSuffix    *string  `json:"taxIdentifierHasSuffix,omitempty"`
	TaxIdentifierIsNil        bool     `json:"taxIdentifierIsNil,omitempty"`
	TaxIdentifierNotNil       bool     `json:"taxIdentifierNotNil,omitempty"`
	TaxIdentifierEqualFold    *string  `json:"taxIdentifierEqualFold,omitempty"`
	TaxIdentifierContainsFold *string  `json:"taxIdentifierContainsFold,omitempty"`

	// "organization" edge predicates.
	HasOrganization     *bool                     `json:"hasOrganization,omitempty"`
	HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"`
}

OrganizationSettingWhereInput represents a where input for filtering OrganizationSetting queries.

func (*OrganizationSettingWhereInput) AddPredicates

func (i *OrganizationSettingWhereInput) AddPredicates(predicates ...predicate.OrganizationSetting)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*OrganizationSettingWhereInput) Filter

Filter applies the OrganizationSettingWhereInput filter on the OrganizationSettingQuery builder.

func (*OrganizationSettingWhereInput) P

P returns a predicate for filtering organizationsettings. An error is returned if the input is empty or invalid.

type OrganizationSettings

type OrganizationSettings []*OrganizationSetting

OrganizationSettings is a parsable slice of OrganizationSetting.

type OrganizationUpdate

type OrganizationUpdate struct {
	// contains filtered or unexported fields
}

OrganizationUpdate is the builder for updating Organization entities.

func (*OrganizationUpdate) AddChildIDs

func (ou *OrganizationUpdate) AddChildIDs(ids ...string) *OrganizationUpdate

AddChildIDs adds the "children" edge to the Organization entity by IDs.

func (*OrganizationUpdate) AddChildren

func (ou *OrganizationUpdate) AddChildren(o ...*Organization) *OrganizationUpdate

AddChildren adds the "children" edges to the Organization entity.

func (*OrganizationUpdate) AddEntitlementIDs

func (ou *OrganizationUpdate) AddEntitlementIDs(ids ...string) *OrganizationUpdate

AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by IDs.

func (*OrganizationUpdate) AddEntitlements

func (ou *OrganizationUpdate) AddEntitlements(e ...*Entitlement) *OrganizationUpdate

AddEntitlements adds the "entitlements" edges to the Entitlement entity.

func (*OrganizationUpdate) AddGroupIDs

func (ou *OrganizationUpdate) AddGroupIDs(ids ...string) *OrganizationUpdate

AddGroupIDs adds the "groups" edge to the Group entity by IDs.

func (*OrganizationUpdate) AddGroups

func (ou *OrganizationUpdate) AddGroups(g ...*Group) *OrganizationUpdate

AddGroups adds the "groups" edges to the Group entity.

func (*OrganizationUpdate) AddIntegrationIDs

func (ou *OrganizationUpdate) AddIntegrationIDs(ids ...string) *OrganizationUpdate

AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.

func (*OrganizationUpdate) AddIntegrations

func (ou *OrganizationUpdate) AddIntegrations(i ...*Integration) *OrganizationUpdate

AddIntegrations adds the "integrations" edges to the Integration entity.

func (*OrganizationUpdate) AddOauthprovider

func (ou *OrganizationUpdate) AddOauthprovider(o ...*OauthProvider) *OrganizationUpdate

AddOauthprovider adds the "oauthprovider" edges to the OauthProvider entity.

func (*OrganizationUpdate) AddOauthproviderIDs

func (ou *OrganizationUpdate) AddOauthproviderIDs(ids ...string) *OrganizationUpdate

AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by IDs.

func (*OrganizationUpdate) AddUserIDs

func (ou *OrganizationUpdate) AddUserIDs(ids ...string) *OrganizationUpdate

AddUserIDs adds the "users" edge to the User entity by IDs.

func (*OrganizationUpdate) AddUsers

func (ou *OrganizationUpdate) AddUsers(u ...*User) *OrganizationUpdate

AddUsers adds the "users" edges to the User entity.

func (*OrganizationUpdate) ClearChildren

func (ou *OrganizationUpdate) ClearChildren() *OrganizationUpdate

ClearChildren clears all "children" edges to the Organization entity.

func (*OrganizationUpdate) ClearDeletedAt

func (ou *OrganizationUpdate) ClearDeletedAt() *OrganizationUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OrganizationUpdate) ClearDeletedBy

func (ou *OrganizationUpdate) ClearDeletedBy() *OrganizationUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OrganizationUpdate) ClearDescription

func (ou *OrganizationUpdate) ClearDescription() *OrganizationUpdate

ClearDescription clears the value of the "description" field.

func (*OrganizationUpdate) ClearEntitlements

func (ou *OrganizationUpdate) ClearEntitlements() *OrganizationUpdate

ClearEntitlements clears all "entitlements" edges to the Entitlement entity.

func (*OrganizationUpdate) ClearGroups

func (ou *OrganizationUpdate) ClearGroups() *OrganizationUpdate

ClearGroups clears all "groups" edges to the Group entity.

func (*OrganizationUpdate) ClearIntegrations

func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate

ClearIntegrations clears all "integrations" edges to the Integration entity.

func (*OrganizationUpdate) ClearOauthprovider

func (ou *OrganizationUpdate) ClearOauthprovider() *OrganizationUpdate

ClearOauthprovider clears all "oauthprovider" edges to the OauthProvider entity.

func (*OrganizationUpdate) ClearSetting

func (ou *OrganizationUpdate) ClearSetting() *OrganizationUpdate

ClearSetting clears the "setting" edge to the OrganizationSetting entity.

func (*OrganizationUpdate) ClearUpdatedBy

func (ou *OrganizationUpdate) ClearUpdatedBy() *OrganizationUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationUpdate) ClearUsers

func (ou *OrganizationUpdate) ClearUsers() *OrganizationUpdate

ClearUsers clears all "users" edges to the User entity.

func (*OrganizationUpdate) Exec

func (ou *OrganizationUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*OrganizationUpdate) ExecX

func (ou *OrganizationUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationUpdate) Mutation

func (ou *OrganizationUpdate) Mutation() *OrganizationMutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationUpdate) RemoveChildIDs

func (ou *OrganizationUpdate) RemoveChildIDs(ids ...string) *OrganizationUpdate

RemoveChildIDs removes the "children" edge to Organization entities by IDs.

func (*OrganizationUpdate) RemoveChildren

func (ou *OrganizationUpdate) RemoveChildren(o ...*Organization) *OrganizationUpdate

RemoveChildren removes "children" edges to Organization entities.

func (*OrganizationUpdate) RemoveEntitlementIDs

func (ou *OrganizationUpdate) RemoveEntitlementIDs(ids ...string) *OrganizationUpdate

RemoveEntitlementIDs removes the "entitlements" edge to Entitlement entities by IDs.

func (*OrganizationUpdate) RemoveEntitlements

func (ou *OrganizationUpdate) RemoveEntitlements(e ...*Entitlement) *OrganizationUpdate

RemoveEntitlements removes "entitlements" edges to Entitlement entities.

func (*OrganizationUpdate) RemoveGroupIDs

func (ou *OrganizationUpdate) RemoveGroupIDs(ids ...string) *OrganizationUpdate

RemoveGroupIDs removes the "groups" edge to Group entities by IDs.

func (*OrganizationUpdate) RemoveGroups

func (ou *OrganizationUpdate) RemoveGroups(g ...*Group) *OrganizationUpdate

RemoveGroups removes "groups" edges to Group entities.

func (*OrganizationUpdate) RemoveIntegrationIDs

func (ou *OrganizationUpdate) RemoveIntegrationIDs(ids ...string) *OrganizationUpdate

RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.

func (*OrganizationUpdate) RemoveIntegrations

func (ou *OrganizationUpdate) RemoveIntegrations(i ...*Integration) *OrganizationUpdate

RemoveIntegrations removes "integrations" edges to Integration entities.

func (*OrganizationUpdate) RemoveOauthprovider

func (ou *OrganizationUpdate) RemoveOauthprovider(o ...*OauthProvider) *OrganizationUpdate

RemoveOauthprovider removes "oauthprovider" edges to OauthProvider entities.

func (*OrganizationUpdate) RemoveOauthproviderIDs

func (ou *OrganizationUpdate) RemoveOauthproviderIDs(ids ...string) *OrganizationUpdate

RemoveOauthproviderIDs removes the "oauthprovider" edge to OauthProvider entities by IDs.

func (*OrganizationUpdate) RemoveUserIDs

func (ou *OrganizationUpdate) RemoveUserIDs(ids ...string) *OrganizationUpdate

RemoveUserIDs removes the "users" edge to User entities by IDs.

func (*OrganizationUpdate) RemoveUsers

func (ou *OrganizationUpdate) RemoveUsers(u ...*User) *OrganizationUpdate

RemoveUsers removes "users" edges to User entities.

func (*OrganizationUpdate) Save

func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*OrganizationUpdate) SaveX

func (ou *OrganizationUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*OrganizationUpdate) SetDeletedAt

func (ou *OrganizationUpdate) SetDeletedAt(t time.Time) *OrganizationUpdate

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationUpdate) SetDeletedBy

func (ou *OrganizationUpdate) SetDeletedBy(s string) *OrganizationUpdate

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationUpdate) SetDescription

func (ou *OrganizationUpdate) SetDescription(s string) *OrganizationUpdate

SetDescription sets the "description" field.

func (*OrganizationUpdate) SetDisplayName

func (ou *OrganizationUpdate) SetDisplayName(s string) *OrganizationUpdate

SetDisplayName sets the "display_name" field.

func (*OrganizationUpdate) SetInput

SetInput applies the change-set in the UpdateOrganizationInput on the OrganizationUpdate builder.

func (*OrganizationUpdate) SetName

SetName sets the "name" field.

func (*OrganizationUpdate) SetNillableDeletedAt

func (ou *OrganizationUpdate) SetNillableDeletedAt(t *time.Time) *OrganizationUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OrganizationUpdate) SetNillableDeletedBy

func (ou *OrganizationUpdate) SetNillableDeletedBy(s *string) *OrganizationUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OrganizationUpdate) SetNillableDescription

func (ou *OrganizationUpdate) SetNillableDescription(s *string) *OrganizationUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*OrganizationUpdate) SetNillableDisplayName

func (ou *OrganizationUpdate) SetNillableDisplayName(s *string) *OrganizationUpdate

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*OrganizationUpdate) SetNillableName

func (ou *OrganizationUpdate) SetNillableName(s *string) *OrganizationUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*OrganizationUpdate) SetNillableSettingID

func (ou *OrganizationUpdate) SetNillableSettingID(id *string) *OrganizationUpdate

SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil.

func (*OrganizationUpdate) SetNillableUpdatedBy

func (ou *OrganizationUpdate) SetNillableUpdatedBy(s *string) *OrganizationUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OrganizationUpdate) SetSetting

SetSetting sets the "setting" edge to the OrganizationSetting entity.

func (*OrganizationUpdate) SetSettingID

func (ou *OrganizationUpdate) SetSettingID(id string) *OrganizationUpdate

SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID.

func (*OrganizationUpdate) SetUpdatedAt

func (ou *OrganizationUpdate) SetUpdatedAt(t time.Time) *OrganizationUpdate

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationUpdate) SetUpdatedBy

func (ou *OrganizationUpdate) SetUpdatedBy(s string) *OrganizationUpdate

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationUpdate) Where

Where appends a list predicates to the OrganizationUpdate builder.

type OrganizationUpdateOne

type OrganizationUpdateOne struct {
	// contains filtered or unexported fields
}

OrganizationUpdateOne is the builder for updating a single Organization entity.

func (*OrganizationUpdateOne) AddChildIDs

func (ouo *OrganizationUpdateOne) AddChildIDs(ids ...string) *OrganizationUpdateOne

AddChildIDs adds the "children" edge to the Organization entity by IDs.

func (*OrganizationUpdateOne) AddChildren

func (ouo *OrganizationUpdateOne) AddChildren(o ...*Organization) *OrganizationUpdateOne

AddChildren adds the "children" edges to the Organization entity.

func (*OrganizationUpdateOne) AddEntitlementIDs

func (ouo *OrganizationUpdateOne) AddEntitlementIDs(ids ...string) *OrganizationUpdateOne

AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by IDs.

func (*OrganizationUpdateOne) AddEntitlements

func (ouo *OrganizationUpdateOne) AddEntitlements(e ...*Entitlement) *OrganizationUpdateOne

AddEntitlements adds the "entitlements" edges to the Entitlement entity.

func (*OrganizationUpdateOne) AddGroupIDs

func (ouo *OrganizationUpdateOne) AddGroupIDs(ids ...string) *OrganizationUpdateOne

AddGroupIDs adds the "groups" edge to the Group entity by IDs.

func (*OrganizationUpdateOne) AddGroups

func (ouo *OrganizationUpdateOne) AddGroups(g ...*Group) *OrganizationUpdateOne

AddGroups adds the "groups" edges to the Group entity.

func (*OrganizationUpdateOne) AddIntegrationIDs

func (ouo *OrganizationUpdateOne) AddIntegrationIDs(ids ...string) *OrganizationUpdateOne

AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.

func (*OrganizationUpdateOne) AddIntegrations

func (ouo *OrganizationUpdateOne) AddIntegrations(i ...*Integration) *OrganizationUpdateOne

AddIntegrations adds the "integrations" edges to the Integration entity.

func (*OrganizationUpdateOne) AddOauthprovider

func (ouo *OrganizationUpdateOne) AddOauthprovider(o ...*OauthProvider) *OrganizationUpdateOne

AddOauthprovider adds the "oauthprovider" edges to the OauthProvider entity.

func (*OrganizationUpdateOne) AddOauthproviderIDs

func (ouo *OrganizationUpdateOne) AddOauthproviderIDs(ids ...string) *OrganizationUpdateOne

AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by IDs.

func (*OrganizationUpdateOne) AddUserIDs

func (ouo *OrganizationUpdateOne) AddUserIDs(ids ...string) *OrganizationUpdateOne

AddUserIDs adds the "users" edge to the User entity by IDs.

func (*OrganizationUpdateOne) AddUsers

func (ouo *OrganizationUpdateOne) AddUsers(u ...*User) *OrganizationUpdateOne

AddUsers adds the "users" edges to the User entity.

func (*OrganizationUpdateOne) ClearChildren

func (ouo *OrganizationUpdateOne) ClearChildren() *OrganizationUpdateOne

ClearChildren clears all "children" edges to the Organization entity.

func (*OrganizationUpdateOne) ClearDeletedAt

func (ouo *OrganizationUpdateOne) ClearDeletedAt() *OrganizationUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*OrganizationUpdateOne) ClearDeletedBy

func (ouo *OrganizationUpdateOne) ClearDeletedBy() *OrganizationUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*OrganizationUpdateOne) ClearDescription

func (ouo *OrganizationUpdateOne) ClearDescription() *OrganizationUpdateOne

ClearDescription clears the value of the "description" field.

func (*OrganizationUpdateOne) ClearEntitlements

func (ouo *OrganizationUpdateOne) ClearEntitlements() *OrganizationUpdateOne

ClearEntitlements clears all "entitlements" edges to the Entitlement entity.

func (*OrganizationUpdateOne) ClearGroups

func (ouo *OrganizationUpdateOne) ClearGroups() *OrganizationUpdateOne

ClearGroups clears all "groups" edges to the Group entity.

func (*OrganizationUpdateOne) ClearIntegrations

func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne

ClearIntegrations clears all "integrations" edges to the Integration entity.

func (*OrganizationUpdateOne) ClearOauthprovider

func (ouo *OrganizationUpdateOne) ClearOauthprovider() *OrganizationUpdateOne

ClearOauthprovider clears all "oauthprovider" edges to the OauthProvider entity.

func (*OrganizationUpdateOne) ClearSetting

func (ouo *OrganizationUpdateOne) ClearSetting() *OrganizationUpdateOne

ClearSetting clears the "setting" edge to the OrganizationSetting entity.

func (*OrganizationUpdateOne) ClearUpdatedBy

func (ouo *OrganizationUpdateOne) ClearUpdatedBy() *OrganizationUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationUpdateOne) ClearUsers

func (ouo *OrganizationUpdateOne) ClearUsers() *OrganizationUpdateOne

ClearUsers clears all "users" edges to the User entity.

func (*OrganizationUpdateOne) Exec

func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*OrganizationUpdateOne) ExecX

func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationUpdateOne) Mutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationUpdateOne) RemoveChildIDs

func (ouo *OrganizationUpdateOne) RemoveChildIDs(ids ...string) *OrganizationUpdateOne

RemoveChildIDs removes the "children" edge to Organization entities by IDs.

func (*OrganizationUpdateOne) RemoveChildren

func (ouo *OrganizationUpdateOne) RemoveChildren(o ...*Organization) *OrganizationUpdateOne

RemoveChildren removes "children" edges to Organization entities.

func (*OrganizationUpdateOne) RemoveEntitlementIDs

func (ouo *OrganizationUpdateOne) RemoveEntitlementIDs(ids ...string) *OrganizationUpdateOne

RemoveEntitlementIDs removes the "entitlements" edge to Entitlement entities by IDs.

func (*OrganizationUpdateOne) RemoveEntitlements

func (ouo *OrganizationUpdateOne) RemoveEntitlements(e ...*Entitlement) *OrganizationUpdateOne

RemoveEntitlements removes "entitlements" edges to Entitlement entities.

func (*OrganizationUpdateOne) RemoveGroupIDs

func (ouo *OrganizationUpdateOne) RemoveGroupIDs(ids ...string) *OrganizationUpdateOne

RemoveGroupIDs removes the "groups" edge to Group entities by IDs.

func (*OrganizationUpdateOne) RemoveGroups

func (ouo *OrganizationUpdateOne) RemoveGroups(g ...*Group) *OrganizationUpdateOne

RemoveGroups removes "groups" edges to Group entities.

func (*OrganizationUpdateOne) RemoveIntegrationIDs

func (ouo *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...string) *OrganizationUpdateOne

RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.

func (*OrganizationUpdateOne) RemoveIntegrations

func (ouo *OrganizationUpdateOne) RemoveIntegrations(i ...*Integration) *OrganizationUpdateOne

RemoveIntegrations removes "integrations" edges to Integration entities.

func (*OrganizationUpdateOne) RemoveOauthprovider

func (ouo *OrganizationUpdateOne) RemoveOauthprovider(o ...*OauthProvider) *OrganizationUpdateOne

RemoveOauthprovider removes "oauthprovider" edges to OauthProvider entities.

func (*OrganizationUpdateOne) RemoveOauthproviderIDs

func (ouo *OrganizationUpdateOne) RemoveOauthproviderIDs(ids ...string) *OrganizationUpdateOne

RemoveOauthproviderIDs removes the "oauthprovider" edge to OauthProvider entities by IDs.

func (*OrganizationUpdateOne) RemoveUserIDs

func (ouo *OrganizationUpdateOne) RemoveUserIDs(ids ...string) *OrganizationUpdateOne

RemoveUserIDs removes the "users" edge to User entities by IDs.

func (*OrganizationUpdateOne) RemoveUsers

func (ouo *OrganizationUpdateOne) RemoveUsers(u ...*User) *OrganizationUpdateOne

RemoveUsers removes "users" edges to User entities.

func (*OrganizationUpdateOne) Save

Save executes the query and returns the updated Organization entity.

func (*OrganizationUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*OrganizationUpdateOne) Select

func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*OrganizationUpdateOne) SetDeletedAt

func (ouo *OrganizationUpdateOne) SetDeletedAt(t time.Time) *OrganizationUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*OrganizationUpdateOne) SetDeletedBy

func (ouo *OrganizationUpdateOne) SetDeletedBy(s string) *OrganizationUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*OrganizationUpdateOne) SetDescription

func (ouo *OrganizationUpdateOne) SetDescription(s string) *OrganizationUpdateOne

SetDescription sets the "description" field.

func (*OrganizationUpdateOne) SetDisplayName

func (ouo *OrganizationUpdateOne) SetDisplayName(s string) *OrganizationUpdateOne

SetDisplayName sets the "display_name" field.

func (*OrganizationUpdateOne) SetInput

SetInput applies the change-set in the UpdateOrganizationInput on the OrganizationUpdateOne builder.

func (*OrganizationUpdateOne) SetName

SetName sets the "name" field.

func (*OrganizationUpdateOne) SetNillableDeletedAt

func (ouo *OrganizationUpdateOne) SetNillableDeletedAt(t *time.Time) *OrganizationUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*OrganizationUpdateOne) SetNillableDeletedBy

func (ouo *OrganizationUpdateOne) SetNillableDeletedBy(s *string) *OrganizationUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*OrganizationUpdateOne) SetNillableDescription

func (ouo *OrganizationUpdateOne) SetNillableDescription(s *string) *OrganizationUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*OrganizationUpdateOne) SetNillableDisplayName

func (ouo *OrganizationUpdateOne) SetNillableDisplayName(s *string) *OrganizationUpdateOne

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*OrganizationUpdateOne) SetNillableName

func (ouo *OrganizationUpdateOne) SetNillableName(s *string) *OrganizationUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*OrganizationUpdateOne) SetNillableSettingID

func (ouo *OrganizationUpdateOne) SetNillableSettingID(id *string) *OrganizationUpdateOne

SetNillableSettingID sets the "setting" edge to the OrganizationSetting entity by ID if the given value is not nil.

func (*OrganizationUpdateOne) SetNillableUpdatedBy

func (ouo *OrganizationUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*OrganizationUpdateOne) SetSetting

SetSetting sets the "setting" edge to the OrganizationSetting entity.

func (*OrganizationUpdateOne) SetSettingID

func (ouo *OrganizationUpdateOne) SetSettingID(id string) *OrganizationUpdateOne

SetSettingID sets the "setting" edge to the OrganizationSetting entity by ID.

func (*OrganizationUpdateOne) SetUpdatedAt

func (ouo *OrganizationUpdateOne) SetUpdatedAt(t time.Time) *OrganizationUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationUpdateOne) SetUpdatedBy

func (ouo *OrganizationUpdateOne) SetUpdatedBy(s string) *OrganizationUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationUpdateOne) Where

Where appends a list predicates to the OrganizationUpdate builder.

type OrganizationWhereInput

type OrganizationWhereInput struct {
	Predicates []predicate.Organization  `json:"-"`
	Not        *OrganizationWhereInput   `json:"not,omitempty"`
	Or         []*OrganizationWhereInput `json:"or,omitempty"`
	And        []*OrganizationWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "display_name" field predicates.
	DisplayName             *string  `json:"displayName,omitempty"`
	DisplayNameNEQ          *string  `json:"displayNameNEQ,omitempty"`
	DisplayNameIn           []string `json:"displayNameIn,omitempty"`
	DisplayNameNotIn        []string `json:"displayNameNotIn,omitempty"`
	DisplayNameGT           *string  `json:"displayNameGT,omitempty"`
	DisplayNameGTE          *string  `json:"displayNameGTE,omitempty"`
	DisplayNameLT           *string  `json:"displayNameLT,omitempty"`
	DisplayNameLTE          *string  `json:"displayNameLTE,omitempty"`
	DisplayNameContains     *string  `json:"displayNameContains,omitempty"`
	DisplayNameHasPrefix    *string  `json:"displayNameHasPrefix,omitempty"`
	DisplayNameHasSuffix    *string  `json:"displayNameHasSuffix,omitempty"`
	DisplayNameEqualFold    *string  `json:"displayNameEqualFold,omitempty"`
	DisplayNameContainsFold *string  `json:"displayNameContainsFold,omitempty"`

	// "parent_organization_id" field predicates.
	ParentOrganizationID             *string  `json:"parentOrganizationID,omitempty"`
	ParentOrganizationIDNEQ          *string  `json:"parentOrganizationIDNEQ,omitempty"`
	ParentOrganizationIDIn           []string `json:"parentOrganizationIDIn,omitempty"`
	ParentOrganizationIDNotIn        []string `json:"parentOrganizationIDNotIn,omitempty"`
	ParentOrganizationIDGT           *string  `json:"parentOrganizationIDGT,omitempty"`
	ParentOrganizationIDGTE          *string  `json:"parentOrganizationIDGTE,omitempty"`
	ParentOrganizationIDLT           *string  `json:"parentOrganizationIDLT,omitempty"`
	ParentOrganizationIDLTE          *string  `json:"parentOrganizationIDLTE,omitempty"`
	ParentOrganizationIDContains     *string  `json:"parentOrganizationIDContains,omitempty"`
	ParentOrganizationIDHasPrefix    *string  `json:"parentOrganizationIDHasPrefix,omitempty"`
	ParentOrganizationIDHasSuffix    *string  `json:"parentOrganizationIDHasSuffix,omitempty"`
	ParentOrganizationIDIsNil        bool     `json:"parentOrganizationIDIsNil,omitempty"`
	ParentOrganizationIDNotNil       bool     `json:"parentOrganizationIDNotNil,omitempty"`
	ParentOrganizationIDEqualFold    *string  `json:"parentOrganizationIDEqualFold,omitempty"`
	ParentOrganizationIDContainsFold *string  `json:"parentOrganizationIDContainsFold,omitempty"`

	// "personal_org" field predicates.
	PersonalOrg    *bool `json:"personalOrg,omitempty"`
	PersonalOrgNEQ *bool `json:"personalOrgNEQ,omitempty"`

	// "parent" edge predicates.
	HasParent     *bool                     `json:"hasParent,omitempty"`
	HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"`

	// "children" edge predicates.
	HasChildren     *bool                     `json:"hasChildren,omitempty"`
	HasChildrenWith []*OrganizationWhereInput `json:"hasChildrenWith,omitempty"`

	// "users" edge predicates.
	HasUsers     *bool             `json:"hasUsers,omitempty"`
	HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"`

	// "groups" edge predicates.
	HasGroups     *bool              `json:"hasGroups,omitempty"`
	HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"`

	// "integrations" edge predicates.
	HasIntegrations     *bool                    `json:"hasIntegrations,omitempty"`
	HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"`

	// "setting" edge predicates.
	HasSetting     *bool                            `json:"hasSetting,omitempty"`
	HasSettingWith []*OrganizationSettingWhereInput `json:"hasSettingWith,omitempty"`

	// "entitlements" edge predicates.
	HasEntitlements     *bool                    `json:"hasEntitlements,omitempty"`
	HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"`

	// "oauthprovider" edge predicates.
	HasOauthprovider     *bool                      `json:"hasOauthprovider,omitempty"`
	HasOauthproviderWith []*OauthProviderWhereInput `json:"hasOauthproviderWith,omitempty"`
}

OrganizationWhereInput represents a where input for filtering Organization queries.

func (*OrganizationWhereInput) AddPredicates

func (i *OrganizationWhereInput) AddPredicates(predicates ...predicate.Organization)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*OrganizationWhereInput) Filter

Filter applies the OrganizationWhereInput filter on the OrganizationQuery builder.

func (*OrganizationWhereInput) P

P returns a predicate for filtering organizations. An error is returned if the input is empty or invalid.

type Organizations

type Organizations []*Organization

Organizations is a parsable slice of Organization.

type PageInfo

type PageInfo = entgql.PageInfo[string]

Common entgql types.

type PersonalAccessToken

type PersonalAccessToken struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// the name associated with the token
	Name string `json:"name,omitempty"`
	// Token holds the value of the "token" field.
	Token string `json:"-"`
	// what abilites the token should have
	Abilities []string `json:"abilities,omitempty"`
	// when the token expires
	ExpiresAt *time.Time `json:"expires_at,omitempty"`
	// a description of the token's purpose
	Description string `json:"description,omitempty"`
	// LastUsedAt holds the value of the "last_used_at" field.
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the PersonalAccessTokenQuery when eager-loading is set.
	Edges PersonalAccessTokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

PersonalAccessToken is the model entity for the PersonalAccessToken schema.

func (*PersonalAccessToken) IsNode

func (n *PersonalAccessToken) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*PersonalAccessToken) Owner

func (pat *PersonalAccessToken) Owner(ctx context.Context) (*User, error)

func (*PersonalAccessToken) QueryOwner

func (pat *PersonalAccessToken) QueryOwner() *UserQuery

QueryOwner queries the "owner" edge of the PersonalAccessToken entity.

func (*PersonalAccessToken) String

func (pat *PersonalAccessToken) String() string

String implements the fmt.Stringer.

func (*PersonalAccessToken) ToEdge

ToEdge converts PersonalAccessToken into PersonalAccessTokenEdge.

func (*PersonalAccessToken) Unwrap

Unwrap unwraps the PersonalAccessToken entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*PersonalAccessToken) Update

Update returns a builder for updating this PersonalAccessToken. Note that you need to call PersonalAccessToken.Unwrap() before calling this method if this PersonalAccessToken was returned from a transaction, and the transaction was committed or rolled back.

func (*PersonalAccessToken) Value

func (pat *PersonalAccessToken) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the PersonalAccessToken. This includes values selected through modifiers, order, etc.

type PersonalAccessTokenClient

type PersonalAccessTokenClient struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenClient is a client for the PersonalAccessToken schema.

func NewPersonalAccessTokenClient

func NewPersonalAccessTokenClient(c config) *PersonalAccessTokenClient

NewPersonalAccessTokenClient returns a client for the PersonalAccessToken from the given config.

func (*PersonalAccessTokenClient) Create

Create returns a builder for creating a PersonalAccessToken entity.

func (*PersonalAccessTokenClient) CreateBulk

CreateBulk returns a builder for creating a bulk of PersonalAccessToken entities.

func (*PersonalAccessTokenClient) Delete

Delete returns a delete builder for PersonalAccessToken.

func (*PersonalAccessTokenClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*PersonalAccessTokenClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*PersonalAccessTokenClient) Get

Get returns a PersonalAccessToken entity by its id.

func (*PersonalAccessTokenClient) GetX

GetX is like Get, but panics if an error occurs.

func (*PersonalAccessTokenClient) Hooks

func (c *PersonalAccessTokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*PersonalAccessTokenClient) Intercept

func (c *PersonalAccessTokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `personalaccesstoken.Intercept(f(g(h())))`.

func (*PersonalAccessTokenClient) Interceptors

func (c *PersonalAccessTokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*PersonalAccessTokenClient) MapCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*PersonalAccessTokenClient) Query

Query returns a query builder for PersonalAccessToken.

func (*PersonalAccessTokenClient) QueryOwner

QueryOwner queries the owner edge of a PersonalAccessToken.

func (*PersonalAccessTokenClient) Update

Update returns an update builder for PersonalAccessToken.

func (*PersonalAccessTokenClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*PersonalAccessTokenClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*PersonalAccessTokenClient) Use

func (c *PersonalAccessTokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `personalaccesstoken.Hooks(f(g(h())))`.

type PersonalAccessTokenConnection

type PersonalAccessTokenConnection struct {
	Edges      []*PersonalAccessTokenEdge `json:"edges"`
	PageInfo   PageInfo                   `json:"pageInfo"`
	TotalCount int                        `json:"totalCount"`
}

PersonalAccessTokenConnection is the connection containing edges to PersonalAccessToken.

type PersonalAccessTokenCreate

type PersonalAccessTokenCreate struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenCreate is the builder for creating a PersonalAccessToken entity.

func (*PersonalAccessTokenCreate) Exec

Exec executes the query.

func (*PersonalAccessTokenCreate) ExecX

func (patc *PersonalAccessTokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PersonalAccessTokenCreate) Mutation

Mutation returns the PersonalAccessTokenMutation object of the builder.

func (*PersonalAccessTokenCreate) Save

Save creates the PersonalAccessToken in the database.

func (*PersonalAccessTokenCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*PersonalAccessTokenCreate) SetAbilities

SetAbilities sets the "abilities" field.

func (*PersonalAccessTokenCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*PersonalAccessTokenCreate) SetCreatedBy

SetCreatedBy sets the "created_by" field.

func (*PersonalAccessTokenCreate) SetDescription

SetDescription sets the "description" field.

func (*PersonalAccessTokenCreate) SetExpiresAt

SetExpiresAt sets the "expires_at" field.

func (*PersonalAccessTokenCreate) SetID

SetID sets the "id" field.

func (*PersonalAccessTokenCreate) SetInput

SetInput applies the change-set in the CreatePersonalAccessTokenInput on the PersonalAccessTokenCreate builder.

func (*PersonalAccessTokenCreate) SetLastUsedAt

SetLastUsedAt sets the "last_used_at" field.

func (*PersonalAccessTokenCreate) SetName

SetName sets the "name" field.

func (*PersonalAccessTokenCreate) SetNillableCreatedAt

func (patc *PersonalAccessTokenCreate) SetNillableCreatedAt(t *time.Time) *PersonalAccessTokenCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableCreatedBy

func (patc *PersonalAccessTokenCreate) SetNillableCreatedBy(s *string) *PersonalAccessTokenCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableDescription

func (patc *PersonalAccessTokenCreate) SetNillableDescription(s *string) *PersonalAccessTokenCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableLastUsedAt

func (patc *PersonalAccessTokenCreate) SetNillableLastUsedAt(t *time.Time) *PersonalAccessTokenCreate

SetNillableLastUsedAt sets the "last_used_at" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableToken

func (patc *PersonalAccessTokenCreate) SetNillableToken(s *string) *PersonalAccessTokenCreate

SetNillableToken sets the "token" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableUpdatedAt

func (patc *PersonalAccessTokenCreate) SetNillableUpdatedAt(t *time.Time) *PersonalAccessTokenCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetNillableUpdatedBy

func (patc *PersonalAccessTokenCreate) SetNillableUpdatedBy(s *string) *PersonalAccessTokenCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*PersonalAccessTokenCreate) SetOwner

SetOwner sets the "owner" edge to the User entity.

func (*PersonalAccessTokenCreate) SetOwnerID

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*PersonalAccessTokenCreate) SetToken

SetToken sets the "token" field.

func (*PersonalAccessTokenCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenCreate) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

type PersonalAccessTokenCreateBulk

type PersonalAccessTokenCreateBulk struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenCreateBulk is the builder for creating many PersonalAccessToken entities in bulk.

func (*PersonalAccessTokenCreateBulk) Exec

Exec executes the query.

func (*PersonalAccessTokenCreateBulk) ExecX

func (patcb *PersonalAccessTokenCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PersonalAccessTokenCreateBulk) Save

Save creates the PersonalAccessToken entities in the database.

func (*PersonalAccessTokenCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type PersonalAccessTokenDelete

type PersonalAccessTokenDelete struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenDelete is the builder for deleting a PersonalAccessToken entity.

func (*PersonalAccessTokenDelete) Exec

func (patd *PersonalAccessTokenDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*PersonalAccessTokenDelete) ExecX

func (patd *PersonalAccessTokenDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*PersonalAccessTokenDelete) Where

Where appends a list predicates to the PersonalAccessTokenDelete builder.

type PersonalAccessTokenDeleteOne

type PersonalAccessTokenDeleteOne struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenDeleteOne is the builder for deleting a single PersonalAccessToken entity.

func (*PersonalAccessTokenDeleteOne) Exec

Exec executes the deletion query.

func (*PersonalAccessTokenDeleteOne) ExecX

func (patdo *PersonalAccessTokenDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PersonalAccessTokenDeleteOne) Where

Where appends a list predicates to the PersonalAccessTokenDelete builder.

type PersonalAccessTokenEdge

type PersonalAccessTokenEdge struct {
	Node   *PersonalAccessToken `json:"node"`
	Cursor Cursor               `json:"cursor"`
}

PersonalAccessTokenEdge is the edge representation of PersonalAccessToken.

type PersonalAccessTokenEdges

type PersonalAccessTokenEdges struct {
	// Owner holds the value of the owner edge.
	Owner *User `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

PersonalAccessTokenEdges holds the relations/edges for other nodes in the graph.

func (PersonalAccessTokenEdges) OwnerOrErr

func (e PersonalAccessTokenEdges) OwnerOrErr() (*User, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type PersonalAccessTokenFilter

type PersonalAccessTokenFilter struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenFilter provides a generic filtering capability at runtime for PersonalAccessTokenQuery.

func (*PersonalAccessTokenFilter) Where

func (f *PersonalAccessTokenFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*PersonalAccessTokenFilter) WhereAbilities

func (f *PersonalAccessTokenFilter) WhereAbilities(p entql.BytesP)

WhereAbilities applies the entql json.RawMessage predicate on the abilities field.

func (*PersonalAccessTokenFilter) WhereCreatedAt

func (f *PersonalAccessTokenFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*PersonalAccessTokenFilter) WhereCreatedBy

func (f *PersonalAccessTokenFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*PersonalAccessTokenFilter) WhereDescription

func (f *PersonalAccessTokenFilter) WhereDescription(p entql.StringP)

WhereDescription applies the entql string predicate on the description field.

func (*PersonalAccessTokenFilter) WhereExpiresAt

func (f *PersonalAccessTokenFilter) WhereExpiresAt(p entql.TimeP)

WhereExpiresAt applies the entql time.Time predicate on the expires_at field.

func (*PersonalAccessTokenFilter) WhereHasOwner

func (f *PersonalAccessTokenFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*PersonalAccessTokenFilter) WhereHasOwnerWith

func (f *PersonalAccessTokenFilter) WhereHasOwnerWith(preds ...predicate.User)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*PersonalAccessTokenFilter) WhereID

func (f *PersonalAccessTokenFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*PersonalAccessTokenFilter) WhereLastUsedAt

func (f *PersonalAccessTokenFilter) WhereLastUsedAt(p entql.TimeP)

WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field.

func (*PersonalAccessTokenFilter) WhereName

func (f *PersonalAccessTokenFilter) WhereName(p entql.StringP)

WhereName applies the entql string predicate on the name field.

func (*PersonalAccessTokenFilter) WhereToken

func (f *PersonalAccessTokenFilter) WhereToken(p entql.StringP)

WhereToken applies the entql string predicate on the token field.

func (*PersonalAccessTokenFilter) WhereUpdatedAt

func (f *PersonalAccessTokenFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*PersonalAccessTokenFilter) WhereUpdatedBy

func (f *PersonalAccessTokenFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type PersonalAccessTokenGroupBy

type PersonalAccessTokenGroupBy struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenGroupBy is the group-by builder for PersonalAccessToken entities.

func (*PersonalAccessTokenGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*PersonalAccessTokenGroupBy) Bool

func (s *PersonalAccessTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) BoolX

func (s *PersonalAccessTokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Bools

func (s *PersonalAccessTokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) BoolsX

func (s *PersonalAccessTokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Float64

func (s *PersonalAccessTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) Float64X

func (s *PersonalAccessTokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Float64s

func (s *PersonalAccessTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) Float64sX

func (s *PersonalAccessTokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Int

func (s *PersonalAccessTokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) IntX

func (s *PersonalAccessTokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Ints

func (s *PersonalAccessTokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) IntsX

func (s *PersonalAccessTokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Scan

func (patgb *PersonalAccessTokenGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*PersonalAccessTokenGroupBy) ScanX

func (s *PersonalAccessTokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) String

func (s *PersonalAccessTokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) StringX

func (s *PersonalAccessTokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PersonalAccessTokenGroupBy) Strings

func (s *PersonalAccessTokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenGroupBy) StringsX

func (s *PersonalAccessTokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PersonalAccessTokenMutation

type PersonalAccessTokenMutation struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenMutation represents an operation that mutates the PersonalAccessToken nodes in the graph.

func (*PersonalAccessTokenMutation) Abilities

func (m *PersonalAccessTokenMutation) Abilities() (r []string, exists bool)

Abilities returns the value of the "abilities" field in the mutation.

func (*PersonalAccessTokenMutation) AbilitiesCleared

func (m *PersonalAccessTokenMutation) AbilitiesCleared() bool

AbilitiesCleared returns if the "abilities" field was cleared in this mutation.

func (*PersonalAccessTokenMutation) AddField

func (m *PersonalAccessTokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PersonalAccessTokenMutation) AddedEdges

func (m *PersonalAccessTokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*PersonalAccessTokenMutation) AddedField

func (m *PersonalAccessTokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PersonalAccessTokenMutation) AddedFields

func (m *PersonalAccessTokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*PersonalAccessTokenMutation) AddedIDs

func (m *PersonalAccessTokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*PersonalAccessTokenMutation) AppendAbilities

func (m *PersonalAccessTokenMutation) AppendAbilities(s []string)

AppendAbilities adds s to the "abilities" field.

func (*PersonalAccessTokenMutation) AppendedAbilities

func (m *PersonalAccessTokenMutation) AppendedAbilities() ([]string, bool)

AppendedAbilities returns the list of values that were appended to the "abilities" field in this mutation.

func (*PersonalAccessTokenMutation) ClearAbilities

func (m *PersonalAccessTokenMutation) ClearAbilities()

ClearAbilities clears the value of the "abilities" field.

func (*PersonalAccessTokenMutation) ClearCreatedBy

func (m *PersonalAccessTokenMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*PersonalAccessTokenMutation) ClearDescription

func (m *PersonalAccessTokenMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*PersonalAccessTokenMutation) ClearEdge

func (m *PersonalAccessTokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*PersonalAccessTokenMutation) ClearField

func (m *PersonalAccessTokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*PersonalAccessTokenMutation) ClearLastUsedAt

func (m *PersonalAccessTokenMutation) ClearLastUsedAt()

ClearLastUsedAt clears the value of the "last_used_at" field.

func (*PersonalAccessTokenMutation) ClearOwner

func (m *PersonalAccessTokenMutation) ClearOwner()

ClearOwner clears the "owner" edge to the User entity.

func (*PersonalAccessTokenMutation) ClearUpdatedBy

func (m *PersonalAccessTokenMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*PersonalAccessTokenMutation) ClearedEdges

func (m *PersonalAccessTokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*PersonalAccessTokenMutation) ClearedFields

func (m *PersonalAccessTokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (PersonalAccessTokenMutation) Client

func (m PersonalAccessTokenMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*PersonalAccessTokenMutation) CreatedAt

func (m *PersonalAccessTokenMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*PersonalAccessTokenMutation) CreatedBy

func (m *PersonalAccessTokenMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*PersonalAccessTokenMutation) CreatedByCleared

func (m *PersonalAccessTokenMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*PersonalAccessTokenMutation) Description

func (m *PersonalAccessTokenMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*PersonalAccessTokenMutation) DescriptionCleared

func (m *PersonalAccessTokenMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*PersonalAccessTokenMutation) EdgeCleared

func (m *PersonalAccessTokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*PersonalAccessTokenMutation) ExpiresAt

func (m *PersonalAccessTokenMutation) ExpiresAt() (r time.Time, exists bool)

ExpiresAt returns the value of the "expires_at" field in the mutation.

func (*PersonalAccessTokenMutation) Field

func (m *PersonalAccessTokenMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PersonalAccessTokenMutation) FieldCleared

func (m *PersonalAccessTokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*PersonalAccessTokenMutation) Fields

func (m *PersonalAccessTokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*PersonalAccessTokenMutation) Filter

Filter returns an entql.Where implementation to apply filters on the PersonalAccessTokenMutation builder.

func (*PersonalAccessTokenMutation) ID

func (m *PersonalAccessTokenMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*PersonalAccessTokenMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*PersonalAccessTokenMutation) LastUsedAt

func (m *PersonalAccessTokenMutation) LastUsedAt() (r time.Time, exists bool)

LastUsedAt returns the value of the "last_used_at" field in the mutation.

func (*PersonalAccessTokenMutation) LastUsedAtCleared

func (m *PersonalAccessTokenMutation) LastUsedAtCleared() bool

LastUsedAtCleared returns if the "last_used_at" field was cleared in this mutation.

func (*PersonalAccessTokenMutation) Name

func (m *PersonalAccessTokenMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*PersonalAccessTokenMutation) OldAbilities

func (m *PersonalAccessTokenMutation) OldAbilities(ctx context.Context) (v []string, err error)

OldAbilities returns the old "abilities" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldCreatedAt

func (m *PersonalAccessTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldCreatedBy

func (m *PersonalAccessTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldDescription

func (m *PersonalAccessTokenMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldExpiresAt

func (m *PersonalAccessTokenMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error)

OldExpiresAt returns the old "expires_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldField

func (m *PersonalAccessTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*PersonalAccessTokenMutation) OldLastUsedAt

func (m *PersonalAccessTokenMutation) OldLastUsedAt(ctx context.Context) (v *time.Time, err error)

OldLastUsedAt returns the old "last_used_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldName

func (m *PersonalAccessTokenMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldToken

func (m *PersonalAccessTokenMutation) OldToken(ctx context.Context) (v string, err error)

OldToken returns the old "token" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldUpdatedAt

func (m *PersonalAccessTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) OldUpdatedBy

func (m *PersonalAccessTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the PersonalAccessToken entity. If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PersonalAccessTokenMutation) Op

Op returns the operation name.

func (*PersonalAccessTokenMutation) OwnerCleared

func (m *PersonalAccessTokenMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the User entity was cleared.

func (*PersonalAccessTokenMutation) OwnerID

func (m *PersonalAccessTokenMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*PersonalAccessTokenMutation) OwnerIDs

func (m *PersonalAccessTokenMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*PersonalAccessTokenMutation) RemovedEdges

func (m *PersonalAccessTokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*PersonalAccessTokenMutation) RemovedIDs

func (m *PersonalAccessTokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*PersonalAccessTokenMutation) ResetAbilities

func (m *PersonalAccessTokenMutation) ResetAbilities()

ResetAbilities resets all changes to the "abilities" field.

func (*PersonalAccessTokenMutation) ResetCreatedAt

func (m *PersonalAccessTokenMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*PersonalAccessTokenMutation) ResetCreatedBy

func (m *PersonalAccessTokenMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*PersonalAccessTokenMutation) ResetDescription

func (m *PersonalAccessTokenMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*PersonalAccessTokenMutation) ResetEdge

func (m *PersonalAccessTokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*PersonalAccessTokenMutation) ResetExpiresAt

func (m *PersonalAccessTokenMutation) ResetExpiresAt()

ResetExpiresAt resets all changes to the "expires_at" field.

func (*PersonalAccessTokenMutation) ResetField

func (m *PersonalAccessTokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*PersonalAccessTokenMutation) ResetLastUsedAt

func (m *PersonalAccessTokenMutation) ResetLastUsedAt()

ResetLastUsedAt resets all changes to the "last_used_at" field.

func (*PersonalAccessTokenMutation) ResetName

func (m *PersonalAccessTokenMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*PersonalAccessTokenMutation) ResetOwner

func (m *PersonalAccessTokenMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*PersonalAccessTokenMutation) ResetToken

func (m *PersonalAccessTokenMutation) ResetToken()

ResetToken resets all changes to the "token" field.

func (*PersonalAccessTokenMutation) ResetUpdatedAt

func (m *PersonalAccessTokenMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*PersonalAccessTokenMutation) ResetUpdatedBy

func (m *PersonalAccessTokenMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*PersonalAccessTokenMutation) SetAbilities

func (m *PersonalAccessTokenMutation) SetAbilities(s []string)

SetAbilities sets the "abilities" field.

func (*PersonalAccessTokenMutation) SetCreatedAt

func (m *PersonalAccessTokenMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*PersonalAccessTokenMutation) SetCreatedBy

func (m *PersonalAccessTokenMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*PersonalAccessTokenMutation) SetDescription

func (m *PersonalAccessTokenMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*PersonalAccessTokenMutation) SetExpiresAt

func (m *PersonalAccessTokenMutation) SetExpiresAt(t time.Time)

SetExpiresAt sets the "expires_at" field.

func (*PersonalAccessTokenMutation) SetField

func (m *PersonalAccessTokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PersonalAccessTokenMutation) SetID

func (m *PersonalAccessTokenMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of PersonalAccessToken entities.

func (*PersonalAccessTokenMutation) SetLastUsedAt

func (m *PersonalAccessTokenMutation) SetLastUsedAt(t time.Time)

SetLastUsedAt sets the "last_used_at" field.

func (*PersonalAccessTokenMutation) SetName

func (m *PersonalAccessTokenMutation) SetName(s string)

SetName sets the "name" field.

func (*PersonalAccessTokenMutation) SetOp

func (m *PersonalAccessTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*PersonalAccessTokenMutation) SetOwnerID

func (m *PersonalAccessTokenMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the User entity by id.

func (*PersonalAccessTokenMutation) SetToken

func (m *PersonalAccessTokenMutation) SetToken(s string)

SetToken sets the "token" field.

func (*PersonalAccessTokenMutation) SetUpdatedAt

func (m *PersonalAccessTokenMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenMutation) SetUpdatedBy

func (m *PersonalAccessTokenMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*PersonalAccessTokenMutation) Token

func (m *PersonalAccessTokenMutation) Token() (r string, exists bool)

Token returns the value of the "token" field in the mutation.

func (PersonalAccessTokenMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*PersonalAccessTokenMutation) Type

Type returns the node type of this mutation (PersonalAccessToken).

func (*PersonalAccessTokenMutation) UpdatedAt

func (m *PersonalAccessTokenMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*PersonalAccessTokenMutation) UpdatedBy

func (m *PersonalAccessTokenMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*PersonalAccessTokenMutation) UpdatedByCleared

func (m *PersonalAccessTokenMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*PersonalAccessTokenMutation) Where

Where appends a list predicates to the PersonalAccessTokenMutation builder.

func (*PersonalAccessTokenMutation) WhereP

func (m *PersonalAccessTokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the PersonalAccessTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type PersonalAccessTokenOrder

type PersonalAccessTokenOrder struct {
	Direction OrderDirection                 `json:"direction"`
	Field     *PersonalAccessTokenOrderField `json:"field"`
}

PersonalAccessTokenOrder defines the ordering of PersonalAccessToken.

type PersonalAccessTokenOrderField

type PersonalAccessTokenOrderField struct {
	// Value extracts the ordering value from the given PersonalAccessToken.
	Value func(*PersonalAccessToken) (ent.Value, error)
	// contains filtered or unexported fields
}

PersonalAccessTokenOrderField defines the ordering field of PersonalAccessToken.

type PersonalAccessTokenPaginateOption

type PersonalAccessTokenPaginateOption func(*personalaccesstokenPager) error

PersonalAccessTokenPaginateOption enables pagination customization.

func WithPersonalAccessTokenFilter

func WithPersonalAccessTokenFilter(filter func(*PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error)) PersonalAccessTokenPaginateOption

WithPersonalAccessTokenFilter configures pagination filter.

func WithPersonalAccessTokenOrder

func WithPersonalAccessTokenOrder(order *PersonalAccessTokenOrder) PersonalAccessTokenPaginateOption

WithPersonalAccessTokenOrder configures pagination ordering.

type PersonalAccessTokenQuery

type PersonalAccessTokenQuery struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenQuery is the builder for querying PersonalAccessToken entities.

func (*PersonalAccessTokenQuery) Aggregate

Aggregate returns a PersonalAccessTokenSelect configured with the given aggregations.

func (*PersonalAccessTokenQuery) All

All executes the query and returns a list of PersonalAccessTokens.

func (*PersonalAccessTokenQuery) AllX

AllX is like All, but panics if an error occurs.

func (*PersonalAccessTokenQuery) Clone

Clone returns a duplicate of the PersonalAccessTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*PersonalAccessTokenQuery) CollectFields

func (pat *PersonalAccessTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*PersonalAccessTokenQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*PersonalAccessTokenQuery) Count

func (patq *PersonalAccessTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*PersonalAccessTokenQuery) CountX

func (patq *PersonalAccessTokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*PersonalAccessTokenQuery) Exist

func (patq *PersonalAccessTokenQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*PersonalAccessTokenQuery) ExistX

func (patq *PersonalAccessTokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*PersonalAccessTokenQuery) Filter

Filter returns a Filter implementation to apply filters on the PersonalAccessTokenQuery builder.

func (*PersonalAccessTokenQuery) First

First returns the first PersonalAccessToken entity from the query. Returns a *NotFoundError when no PersonalAccessToken was found.

func (*PersonalAccessTokenQuery) FirstID

func (patq *PersonalAccessTokenQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first PersonalAccessToken ID from the query. Returns a *NotFoundError when no PersonalAccessToken ID was found.

func (*PersonalAccessTokenQuery) FirstIDX

func (patq *PersonalAccessTokenQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*PersonalAccessTokenQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*PersonalAccessTokenQuery) GroupBy

func (patq *PersonalAccessTokenQuery) GroupBy(field string, fields ...string) *PersonalAccessTokenGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.PersonalAccessToken.Query().
	GroupBy(personalaccesstoken.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*PersonalAccessTokenQuery) IDs

func (patq *PersonalAccessTokenQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of PersonalAccessToken IDs.

func (*PersonalAccessTokenQuery) IDsX

func (patq *PersonalAccessTokenQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*PersonalAccessTokenQuery) Limit

Limit the number of records to be returned by this query.

func (*PersonalAccessTokenQuery) Offset

Offset to start from.

func (*PersonalAccessTokenQuery) Only

Only returns a single PersonalAccessToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one PersonalAccessToken entity is found. Returns a *NotFoundError when no PersonalAccessToken entities are found.

func (*PersonalAccessTokenQuery) OnlyID

func (patq *PersonalAccessTokenQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only PersonalAccessToken ID in the query. Returns a *NotSingularError when more than one PersonalAccessToken ID is found. Returns a *NotFoundError when no entities are found.

func (*PersonalAccessTokenQuery) OnlyIDX

func (patq *PersonalAccessTokenQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*PersonalAccessTokenQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*PersonalAccessTokenQuery) Order

Order specifies how the records should be ordered.

func (*PersonalAccessTokenQuery) Paginate

func (pat *PersonalAccessTokenQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...PersonalAccessTokenPaginateOption,
) (*PersonalAccessTokenConnection, error)

Paginate executes the query and returns a relay based cursor connection to PersonalAccessToken.

func (*PersonalAccessTokenQuery) QueryOwner

func (patq *PersonalAccessTokenQuery) QueryOwner() *UserQuery

QueryOwner chains the current query on the "owner" edge.

func (*PersonalAccessTokenQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.PersonalAccessToken.Query().
	Select(personalaccesstoken.FieldCreatedAt).
	Scan(ctx, &v)

func (*PersonalAccessTokenQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*PersonalAccessTokenQuery) Where

Where adds a new predicate for the PersonalAccessTokenQuery builder.

func (*PersonalAccessTokenQuery) WithOwner

func (patq *PersonalAccessTokenQuery) WithOwner(opts ...func(*UserQuery)) *PersonalAccessTokenQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type PersonalAccessTokenSelect

type PersonalAccessTokenSelect struct {
	*PersonalAccessTokenQuery
	// contains filtered or unexported fields
}

PersonalAccessTokenSelect is the builder for selecting fields of PersonalAccessToken entities.

func (*PersonalAccessTokenSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*PersonalAccessTokenSelect) Bool

func (s *PersonalAccessTokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) BoolX

func (s *PersonalAccessTokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Bools

func (s *PersonalAccessTokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) BoolsX

func (s *PersonalAccessTokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Float64

func (s *PersonalAccessTokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) Float64X

func (s *PersonalAccessTokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Float64s

func (s *PersonalAccessTokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) Float64sX

func (s *PersonalAccessTokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Int

func (s *PersonalAccessTokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) IntX

func (s *PersonalAccessTokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Ints

func (s *PersonalAccessTokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) IntsX

func (s *PersonalAccessTokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Scan

func (pats *PersonalAccessTokenSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*PersonalAccessTokenSelect) ScanX

func (s *PersonalAccessTokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PersonalAccessTokenSelect) String

func (s *PersonalAccessTokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) StringX

func (s *PersonalAccessTokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PersonalAccessTokenSelect) Strings

func (s *PersonalAccessTokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PersonalAccessTokenSelect) StringsX

func (s *PersonalAccessTokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PersonalAccessTokenUpdate

type PersonalAccessTokenUpdate struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenUpdate is the builder for updating PersonalAccessToken entities.

func (*PersonalAccessTokenUpdate) AppendAbilities

func (patu *PersonalAccessTokenUpdate) AppendAbilities(s []string) *PersonalAccessTokenUpdate

AppendAbilities appends s to the "abilities" field.

func (*PersonalAccessTokenUpdate) ClearAbilities

func (patu *PersonalAccessTokenUpdate) ClearAbilities() *PersonalAccessTokenUpdate

ClearAbilities clears the value of the "abilities" field.

func (*PersonalAccessTokenUpdate) ClearDescription

func (patu *PersonalAccessTokenUpdate) ClearDescription() *PersonalAccessTokenUpdate

ClearDescription clears the value of the "description" field.

func (*PersonalAccessTokenUpdate) ClearLastUsedAt

func (patu *PersonalAccessTokenUpdate) ClearLastUsedAt() *PersonalAccessTokenUpdate

ClearLastUsedAt clears the value of the "last_used_at" field.

func (*PersonalAccessTokenUpdate) ClearOwner

ClearOwner clears the "owner" edge to the User entity.

func (*PersonalAccessTokenUpdate) ClearUpdatedBy

func (patu *PersonalAccessTokenUpdate) ClearUpdatedBy() *PersonalAccessTokenUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*PersonalAccessTokenUpdate) Exec

Exec executes the query.

func (*PersonalAccessTokenUpdate) ExecX

func (patu *PersonalAccessTokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PersonalAccessTokenUpdate) Mutation

Mutation returns the PersonalAccessTokenMutation object of the builder.

func (*PersonalAccessTokenUpdate) Save

func (patu *PersonalAccessTokenUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*PersonalAccessTokenUpdate) SaveX

func (patu *PersonalAccessTokenUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*PersonalAccessTokenUpdate) SetAbilities

SetAbilities sets the "abilities" field.

func (*PersonalAccessTokenUpdate) SetDescription

SetDescription sets the "description" field.

func (*PersonalAccessTokenUpdate) SetExpiresAt

SetExpiresAt sets the "expires_at" field.

func (*PersonalAccessTokenUpdate) SetInput

SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdate builder.

func (*PersonalAccessTokenUpdate) SetLastUsedAt

SetLastUsedAt sets the "last_used_at" field.

func (*PersonalAccessTokenUpdate) SetName

SetName sets the "name" field.

func (*PersonalAccessTokenUpdate) SetNillableDescription

func (patu *PersonalAccessTokenUpdate) SetNillableDescription(s *string) *PersonalAccessTokenUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*PersonalAccessTokenUpdate) SetNillableExpiresAt

func (patu *PersonalAccessTokenUpdate) SetNillableExpiresAt(t *time.Time) *PersonalAccessTokenUpdate

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*PersonalAccessTokenUpdate) SetNillableName

func (patu *PersonalAccessTokenUpdate) SetNillableName(s *string) *PersonalAccessTokenUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*PersonalAccessTokenUpdate) SetNillableUpdatedBy

func (patu *PersonalAccessTokenUpdate) SetNillableUpdatedBy(s *string) *PersonalAccessTokenUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*PersonalAccessTokenUpdate) SetOwner

SetOwner sets the "owner" edge to the User entity.

func (*PersonalAccessTokenUpdate) SetOwnerID

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*PersonalAccessTokenUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenUpdate) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*PersonalAccessTokenUpdate) Where

Where appends a list predicates to the PersonalAccessTokenUpdate builder.

type PersonalAccessTokenUpdateOne

type PersonalAccessTokenUpdateOne struct {
	// contains filtered or unexported fields
}

PersonalAccessTokenUpdateOne is the builder for updating a single PersonalAccessToken entity.

func (*PersonalAccessTokenUpdateOne) AppendAbilities

AppendAbilities appends s to the "abilities" field.

func (*PersonalAccessTokenUpdateOne) ClearAbilities

ClearAbilities clears the value of the "abilities" field.

func (*PersonalAccessTokenUpdateOne) ClearDescription

ClearDescription clears the value of the "description" field.

func (*PersonalAccessTokenUpdateOne) ClearLastUsedAt

ClearLastUsedAt clears the value of the "last_used_at" field.

func (*PersonalAccessTokenUpdateOne) ClearOwner

ClearOwner clears the "owner" edge to the User entity.

func (*PersonalAccessTokenUpdateOne) ClearUpdatedBy

ClearUpdatedBy clears the value of the "updated_by" field.

func (*PersonalAccessTokenUpdateOne) Exec

Exec executes the query on the entity.

func (*PersonalAccessTokenUpdateOne) ExecX

func (patuo *PersonalAccessTokenUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PersonalAccessTokenUpdateOne) Mutation

Mutation returns the PersonalAccessTokenMutation object of the builder.

func (*PersonalAccessTokenUpdateOne) Save

Save executes the query and returns the updated PersonalAccessToken entity.

func (*PersonalAccessTokenUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*PersonalAccessTokenUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*PersonalAccessTokenUpdateOne) SetAbilities

SetAbilities sets the "abilities" field.

func (*PersonalAccessTokenUpdateOne) SetDescription

SetDescription sets the "description" field.

func (*PersonalAccessTokenUpdateOne) SetExpiresAt

SetExpiresAt sets the "expires_at" field.

func (*PersonalAccessTokenUpdateOne) SetInput

SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdateOne builder.

func (*PersonalAccessTokenUpdateOne) SetLastUsedAt

SetLastUsedAt sets the "last_used_at" field.

func (*PersonalAccessTokenUpdateOne) SetName

SetName sets the "name" field.

func (*PersonalAccessTokenUpdateOne) SetNillableDescription

func (patuo *PersonalAccessTokenUpdateOne) SetNillableDescription(s *string) *PersonalAccessTokenUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*PersonalAccessTokenUpdateOne) SetNillableExpiresAt

func (patuo *PersonalAccessTokenUpdateOne) SetNillableExpiresAt(t *time.Time) *PersonalAccessTokenUpdateOne

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*PersonalAccessTokenUpdateOne) SetNillableName

SetNillableName sets the "name" field if the given value is not nil.

func (*PersonalAccessTokenUpdateOne) SetNillableUpdatedBy

func (patuo *PersonalAccessTokenUpdateOne) SetNillableUpdatedBy(s *string) *PersonalAccessTokenUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*PersonalAccessTokenUpdateOne) SetOwner

SetOwner sets the "owner" edge to the User entity.

func (*PersonalAccessTokenUpdateOne) SetOwnerID

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*PersonalAccessTokenUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenUpdateOne) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*PersonalAccessTokenUpdateOne) Where

Where appends a list predicates to the PersonalAccessTokenUpdate builder.

type PersonalAccessTokenWhereInput

type PersonalAccessTokenWhereInput struct {
	Predicates []predicate.PersonalAccessToken  `json:"-"`
	Not        *PersonalAccessTokenWhereInput   `json:"not,omitempty"`
	Or         []*PersonalAccessTokenWhereInput `json:"or,omitempty"`
	And        []*PersonalAccessTokenWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "token" field predicates.
	Token             *string  `json:"token,omitempty"`
	TokenNEQ          *string  `json:"tokenNEQ,omitempty"`
	TokenIn           []string `json:"tokenIn,omitempty"`
	TokenNotIn        []string `json:"tokenNotIn,omitempty"`
	TokenGT           *string  `json:"tokenGT,omitempty"`
	TokenGTE          *string  `json:"tokenGTE,omitempty"`
	TokenLT           *string  `json:"tokenLT,omitempty"`
	TokenLTE          *string  `json:"tokenLTE,omitempty"`
	TokenContains     *string  `json:"tokenContains,omitempty"`
	TokenHasPrefix    *string  `json:"tokenHasPrefix,omitempty"`
	TokenHasSuffix    *string  `json:"tokenHasSuffix,omitempty"`
	TokenEqualFold    *string  `json:"tokenEqualFold,omitempty"`
	TokenContainsFold *string  `json:"tokenContainsFold,omitempty"`

	// "expires_at" field predicates.
	ExpiresAt      *time.Time  `json:"expiresAt,omitempty"`
	ExpiresAtNEQ   *time.Time  `json:"expiresAtNEQ,omitempty"`
	ExpiresAtIn    []time.Time `json:"expiresAtIn,omitempty"`
	ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"`
	ExpiresAtGT    *time.Time  `json:"expiresAtGT,omitempty"`
	ExpiresAtGTE   *time.Time  `json:"expiresAtGTE,omitempty"`
	ExpiresAtLT    *time.Time  `json:"expiresAtLT,omitempty"`
	ExpiresAtLTE   *time.Time  `json:"expiresAtLTE,omitempty"`

	// "last_used_at" field predicates.
	LastUsedAt       *time.Time  `json:"lastUsedAt,omitempty"`
	LastUsedAtNEQ    *time.Time  `json:"lastUsedAtNEQ,omitempty"`
	LastUsedAtIn     []time.Time `json:"lastUsedAtIn,omitempty"`
	LastUsedAtNotIn  []time.Time `json:"lastUsedAtNotIn,omitempty"`
	LastUsedAtGT     *time.Time  `json:"lastUsedAtGT,omitempty"`
	LastUsedAtGTE    *time.Time  `json:"lastUsedAtGTE,omitempty"`
	LastUsedAtLT     *time.Time  `json:"lastUsedAtLT,omitempty"`
	LastUsedAtLTE    *time.Time  `json:"lastUsedAtLTE,omitempty"`
	LastUsedAtIsNil  bool        `json:"lastUsedAtIsNil,omitempty"`
	LastUsedAtNotNil bool        `json:"lastUsedAtNotNil,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool             `json:"hasOwner,omitempty"`
	HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"`
}

PersonalAccessTokenWhereInput represents a where input for filtering PersonalAccessToken queries.

func (*PersonalAccessTokenWhereInput) AddPredicates

func (i *PersonalAccessTokenWhereInput) AddPredicates(predicates ...predicate.PersonalAccessToken)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*PersonalAccessTokenWhereInput) Filter

Filter applies the PersonalAccessTokenWhereInput filter on the PersonalAccessTokenQuery builder.

func (*PersonalAccessTokenWhereInput) P

P returns a predicate for filtering personalaccesstokens. An error is returned if the input is empty or invalid.

type PersonalAccessTokens

type PersonalAccessTokens []*PersonalAccessToken

PersonalAccessTokens is a parsable slice of PersonalAccessToken.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Querier

type Querier = ent.Querier

ent aliases to avoid import conflicts in user's code.

type QuerierFunc

type QuerierFunc = ent.QuerierFunc

ent aliases to avoid import conflicts in user's code.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type QueryContext

type QueryContext = ent.QueryContext

ent aliases to avoid import conflicts in user's code.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

type RollbackHook func(Rollbacker) Rollbacker

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollback method.

type SchemaConfig

type SchemaConfig = internal.SchemaConfig

SchemaConfig represents alternative schema names for all tables that can be passed at runtime.

type Session

type Session struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// token is a string token issued to users that has a limited lifetime
	SessionToken string `json:"session_token,omitempty"`
	// IssuedAt holds the value of the "issued_at" field.
	IssuedAt time.Time `json:"issued_at,omitempty"`
	// ExpiresAt holds the value of the "expires_at" field.
	ExpiresAt time.Time `json:"expires_at,omitempty"`
	// organization ID of the organization the user is accessing
	OrganizationID string `json:"organization_id,omitempty"`
	// the user the session is associated with
	UserID string `json:"user_id,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the SessionQuery when eager-loading is set.
	Edges SessionEdges `json:"edges"`
	// contains filtered or unexported fields
}

Session is the model entity for the Session schema.

func (*Session) IsNode

func (n *Session) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*Session) Owner

func (s *Session) Owner(ctx context.Context) (*User, error)

func (*Session) QueryOwner

func (s *Session) QueryOwner() *UserQuery

QueryOwner queries the "owner" edge of the Session entity.

func (*Session) String

func (s *Session) String() string

String implements the fmt.Stringer.

func (*Session) ToEdge

func (s *Session) ToEdge(order *SessionOrder) *SessionEdge

ToEdge converts Session into SessionEdge.

func (*Session) Unwrap

func (s *Session) Unwrap() *Session

Unwrap unwraps the Session entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Session) Update

func (s *Session) Update() *SessionUpdateOne

Update returns a builder for updating this Session. Note that you need to call Session.Unwrap() before calling this method if this Session was returned from a transaction, and the transaction was committed or rolled back.

func (*Session) Value

func (s *Session) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Session. This includes values selected through modifiers, order, etc.

type SessionClient

type SessionClient struct {
	// contains filtered or unexported fields
}

SessionClient is a client for the Session schema.

func NewSessionClient

func NewSessionClient(c config) *SessionClient

NewSessionClient returns a client for the Session from the given config.

func (*SessionClient) Create

func (c *SessionClient) Create() *SessionCreate

Create returns a builder for creating a Session entity.

func (*SessionClient) CreateBulk

func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk

CreateBulk returns a builder for creating a bulk of Session entities.

func (*SessionClient) Delete

func (c *SessionClient) Delete() *SessionDelete

Delete returns a delete builder for Session.

func (*SessionClient) DeleteOne

func (c *SessionClient) DeleteOne(s *Session) *SessionDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*SessionClient) DeleteOneID

func (c *SessionClient) DeleteOneID(id string) *SessionDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*SessionClient) Get

func (c *SessionClient) Get(ctx context.Context, id string) (*Session, error)

Get returns a Session entity by its id.

func (*SessionClient) GetX

func (c *SessionClient) GetX(ctx context.Context, id string) *Session

GetX is like Get, but panics if an error occurs.

func (*SessionClient) Hooks

func (c *SessionClient) Hooks() []Hook

Hooks returns the client hooks.

func (*SessionClient) Intercept

func (c *SessionClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `session.Intercept(f(g(h())))`.

func (*SessionClient) Interceptors

func (c *SessionClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*SessionClient) MapCreateBulk

func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*SessionClient) Query

func (c *SessionClient) Query() *SessionQuery

Query returns a query builder for Session.

func (*SessionClient) QueryOwner

func (c *SessionClient) QueryOwner(s *Session) *UserQuery

QueryOwner queries the owner edge of a Session.

func (*SessionClient) Update

func (c *SessionClient) Update() *SessionUpdate

Update returns an update builder for Session.

func (*SessionClient) UpdateOne

func (c *SessionClient) UpdateOne(s *Session) *SessionUpdateOne

UpdateOne returns an update builder for the given entity.

func (*SessionClient) UpdateOneID

func (c *SessionClient) UpdateOneID(id string) *SessionUpdateOne

UpdateOneID returns an update builder for the given id.

func (*SessionClient) Use

func (c *SessionClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `session.Hooks(f(g(h())))`.

type SessionConnection

type SessionConnection struct {
	Edges      []*SessionEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

SessionConnection is the connection containing edges to Session.

type SessionCreate

type SessionCreate struct {
	// contains filtered or unexported fields
}

SessionCreate is the builder for creating a Session entity.

func (*SessionCreate) Exec

func (sc *SessionCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*SessionCreate) ExecX

func (sc *SessionCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SessionCreate) Mutation

func (sc *SessionCreate) Mutation() *SessionMutation

Mutation returns the SessionMutation object of the builder.

func (*SessionCreate) Save

func (sc *SessionCreate) Save(ctx context.Context) (*Session, error)

Save creates the Session in the database.

func (*SessionCreate) SaveX

func (sc *SessionCreate) SaveX(ctx context.Context) *Session

SaveX calls Save and panics if Save returns an error.

func (*SessionCreate) SetCreatedAt

func (sc *SessionCreate) SetCreatedAt(t time.Time) *SessionCreate

SetCreatedAt sets the "created_at" field.

func (*SessionCreate) SetCreatedBy

func (sc *SessionCreate) SetCreatedBy(s string) *SessionCreate

SetCreatedBy sets the "created_by" field.

func (*SessionCreate) SetExpiresAt

func (sc *SessionCreate) SetExpiresAt(t time.Time) *SessionCreate

SetExpiresAt sets the "expires_at" field.

func (*SessionCreate) SetID

func (sc *SessionCreate) SetID(s string) *SessionCreate

SetID sets the "id" field.

func (*SessionCreate) SetInput

SetInput applies the change-set in the CreateSessionInput on the SessionCreate builder.

func (*SessionCreate) SetIssuedAt

func (sc *SessionCreate) SetIssuedAt(t time.Time) *SessionCreate

SetIssuedAt sets the "issued_at" field.

func (*SessionCreate) SetNillableCreatedAt

func (sc *SessionCreate) SetNillableCreatedAt(t *time.Time) *SessionCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*SessionCreate) SetNillableCreatedBy

func (sc *SessionCreate) SetNillableCreatedBy(s *string) *SessionCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*SessionCreate) SetNillableID

func (sc *SessionCreate) SetNillableID(s *string) *SessionCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*SessionCreate) SetNillableUpdatedAt

func (sc *SessionCreate) SetNillableUpdatedAt(t *time.Time) *SessionCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*SessionCreate) SetNillableUpdatedBy

func (sc *SessionCreate) SetNillableUpdatedBy(s *string) *SessionCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*SessionCreate) SetOrganizationID

func (sc *SessionCreate) SetOrganizationID(s string) *SessionCreate

SetOrganizationID sets the "organization_id" field.

func (*SessionCreate) SetOwner

func (sc *SessionCreate) SetOwner(u *User) *SessionCreate

SetOwner sets the "owner" edge to the User entity.

func (*SessionCreate) SetOwnerID

func (sc *SessionCreate) SetOwnerID(id string) *SessionCreate

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*SessionCreate) SetSessionToken

func (sc *SessionCreate) SetSessionToken(s string) *SessionCreate

SetSessionToken sets the "session_token" field.

func (*SessionCreate) SetUpdatedAt

func (sc *SessionCreate) SetUpdatedAt(t time.Time) *SessionCreate

SetUpdatedAt sets the "updated_at" field.

func (*SessionCreate) SetUpdatedBy

func (sc *SessionCreate) SetUpdatedBy(s string) *SessionCreate

SetUpdatedBy sets the "updated_by" field.

func (*SessionCreate) SetUserID

func (sc *SessionCreate) SetUserID(s string) *SessionCreate

SetUserID sets the "user_id" field.

type SessionCreateBulk

type SessionCreateBulk struct {
	// contains filtered or unexported fields
}

SessionCreateBulk is the builder for creating many Session entities in bulk.

func (*SessionCreateBulk) Exec

func (scb *SessionCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*SessionCreateBulk) ExecX

func (scb *SessionCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SessionCreateBulk) Save

func (scb *SessionCreateBulk) Save(ctx context.Context) ([]*Session, error)

Save creates the Session entities in the database.

func (*SessionCreateBulk) SaveX

func (scb *SessionCreateBulk) SaveX(ctx context.Context) []*Session

SaveX is like Save, but panics if an error occurs.

type SessionDelete

type SessionDelete struct {
	// contains filtered or unexported fields
}

SessionDelete is the builder for deleting a Session entity.

func (*SessionDelete) Exec

func (sd *SessionDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*SessionDelete) ExecX

func (sd *SessionDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*SessionDelete) Where

func (sd *SessionDelete) Where(ps ...predicate.Session) *SessionDelete

Where appends a list predicates to the SessionDelete builder.

type SessionDeleteOne

type SessionDeleteOne struct {
	// contains filtered or unexported fields
}

SessionDeleteOne is the builder for deleting a single Session entity.

func (*SessionDeleteOne) Exec

func (sdo *SessionDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*SessionDeleteOne) ExecX

func (sdo *SessionDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SessionDeleteOne) Where

Where appends a list predicates to the SessionDelete builder.

type SessionEdge

type SessionEdge struct {
	Node   *Session `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

SessionEdge is the edge representation of Session.

type SessionEdges

type SessionEdges struct {
	// Sessions belong to users
	Owner *User `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

SessionEdges holds the relations/edges for other nodes in the graph.

func (SessionEdges) OwnerOrErr

func (e SessionEdges) OwnerOrErr() (*User, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type SessionFilter

type SessionFilter struct {
	// contains filtered or unexported fields
}

SessionFilter provides a generic filtering capability at runtime for SessionQuery.

func (*SessionFilter) Where

func (f *SessionFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*SessionFilter) WhereCreatedAt

func (f *SessionFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*SessionFilter) WhereCreatedBy

func (f *SessionFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*SessionFilter) WhereExpiresAt

func (f *SessionFilter) WhereExpiresAt(p entql.TimeP)

WhereExpiresAt applies the entql time.Time predicate on the expires_at field.

func (*SessionFilter) WhereHasOwner

func (f *SessionFilter) WhereHasOwner()

WhereHasOwner applies a predicate to check if query has an edge owner.

func (*SessionFilter) WhereHasOwnerWith

func (f *SessionFilter) WhereHasOwnerWith(preds ...predicate.User)

WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates).

func (*SessionFilter) WhereID

func (f *SessionFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*SessionFilter) WhereIssuedAt

func (f *SessionFilter) WhereIssuedAt(p entql.TimeP)

WhereIssuedAt applies the entql time.Time predicate on the issued_at field.

func (*SessionFilter) WhereOrganizationID

func (f *SessionFilter) WhereOrganizationID(p entql.StringP)

WhereOrganizationID applies the entql string predicate on the organization_id field.

func (*SessionFilter) WhereSessionToken

func (f *SessionFilter) WhereSessionToken(p entql.StringP)

WhereSessionToken applies the entql string predicate on the session_token field.

func (*SessionFilter) WhereUpdatedAt

func (f *SessionFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*SessionFilter) WhereUpdatedBy

func (f *SessionFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

func (*SessionFilter) WhereUserID

func (f *SessionFilter) WhereUserID(p entql.StringP)

WhereUserID applies the entql string predicate on the user_id field.

type SessionGroupBy

type SessionGroupBy struct {
	// contains filtered or unexported fields
}

SessionGroupBy is the group-by builder for Session entities.

func (*SessionGroupBy) Aggregate

func (sgb *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*SessionGroupBy) Bool

func (s *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) BoolX

func (s *SessionGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SessionGroupBy) Bools

func (s *SessionGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) BoolsX

func (s *SessionGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SessionGroupBy) Float64

func (s *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) Float64X

func (s *SessionGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SessionGroupBy) Float64s

func (s *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) Float64sX

func (s *SessionGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SessionGroupBy) Int

func (s *SessionGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) IntX

func (s *SessionGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SessionGroupBy) Ints

func (s *SessionGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) IntsX

func (s *SessionGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SessionGroupBy) Scan

func (sgb *SessionGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*SessionGroupBy) ScanX

func (s *SessionGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SessionGroupBy) String

func (s *SessionGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) StringX

func (s *SessionGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SessionGroupBy) Strings

func (s *SessionGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SessionGroupBy) StringsX

func (s *SessionGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SessionMutation

type SessionMutation struct {
	// contains filtered or unexported fields
}

SessionMutation represents an operation that mutates the Session nodes in the graph.

func (*SessionMutation) AddField

func (m *SessionMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SessionMutation) AddedEdges

func (m *SessionMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*SessionMutation) AddedField

func (m *SessionMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SessionMutation) AddedFields

func (m *SessionMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*SessionMutation) AddedIDs

func (m *SessionMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*SessionMutation) ClearCreatedBy

func (m *SessionMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*SessionMutation) ClearEdge

func (m *SessionMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*SessionMutation) ClearField

func (m *SessionMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*SessionMutation) ClearOwner

func (m *SessionMutation) ClearOwner()

ClearOwner clears the "owner" edge to the User entity.

func (*SessionMutation) ClearUpdatedBy

func (m *SessionMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*SessionMutation) ClearedEdges

func (m *SessionMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*SessionMutation) ClearedFields

func (m *SessionMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (SessionMutation) Client

func (m SessionMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*SessionMutation) CreatedAt

func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*SessionMutation) CreatedBy

func (m *SessionMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*SessionMutation) CreatedByCleared

func (m *SessionMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*SessionMutation) EdgeCleared

func (m *SessionMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*SessionMutation) ExpiresAt

func (m *SessionMutation) ExpiresAt() (r time.Time, exists bool)

ExpiresAt returns the value of the "expires_at" field in the mutation.

func (*SessionMutation) Field

func (m *SessionMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SessionMutation) FieldCleared

func (m *SessionMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*SessionMutation) Fields

func (m *SessionMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*SessionMutation) Filter

func (m *SessionMutation) Filter() *SessionFilter

Filter returns an entql.Where implementation to apply filters on the SessionMutation builder.

func (*SessionMutation) ID

func (m *SessionMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*SessionMutation) IDs

func (m *SessionMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*SessionMutation) IssuedAt

func (m *SessionMutation) IssuedAt() (r time.Time, exists bool)

IssuedAt returns the value of the "issued_at" field in the mutation.

func (*SessionMutation) OldCreatedAt

func (m *SessionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldCreatedBy

func (m *SessionMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldExpiresAt

func (m *SessionMutation) OldExpiresAt(ctx context.Context) (v time.Time, err error)

OldExpiresAt returns the old "expires_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldField

func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*SessionMutation) OldIssuedAt

func (m *SessionMutation) OldIssuedAt(ctx context.Context) (v time.Time, err error)

OldIssuedAt returns the old "issued_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldOrganizationID

func (m *SessionMutation) OldOrganizationID(ctx context.Context) (v string, err error)

OldOrganizationID returns the old "organization_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldSessionToken

func (m *SessionMutation) OldSessionToken(ctx context.Context) (v string, err error)

OldSessionToken returns the old "session_token" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldUpdatedAt

func (m *SessionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldUpdatedBy

func (m *SessionMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) OldUserID

func (m *SessionMutation) OldUserID(ctx context.Context) (v string, err error)

OldUserID returns the old "user_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SessionMutation) Op

func (m *SessionMutation) Op() Op

Op returns the operation name.

func (*SessionMutation) OrganizationID

func (m *SessionMutation) OrganizationID() (r string, exists bool)

OrganizationID returns the value of the "organization_id" field in the mutation.

func (*SessionMutation) OwnerCleared

func (m *SessionMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the User entity was cleared.

func (*SessionMutation) OwnerID

func (m *SessionMutation) OwnerID() (id string, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*SessionMutation) OwnerIDs

func (m *SessionMutation) OwnerIDs() (ids []string)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*SessionMutation) RemovedEdges

func (m *SessionMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*SessionMutation) RemovedIDs

func (m *SessionMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*SessionMutation) ResetCreatedAt

func (m *SessionMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*SessionMutation) ResetCreatedBy

func (m *SessionMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*SessionMutation) ResetEdge

func (m *SessionMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*SessionMutation) ResetExpiresAt

func (m *SessionMutation) ResetExpiresAt()

ResetExpiresAt resets all changes to the "expires_at" field.

func (*SessionMutation) ResetField

func (m *SessionMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*SessionMutation) ResetIssuedAt

func (m *SessionMutation) ResetIssuedAt()

ResetIssuedAt resets all changes to the "issued_at" field.

func (*SessionMutation) ResetOrganizationID

func (m *SessionMutation) ResetOrganizationID()

ResetOrganizationID resets all changes to the "organization_id" field.

func (*SessionMutation) ResetOwner

func (m *SessionMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*SessionMutation) ResetSessionToken

func (m *SessionMutation) ResetSessionToken()

ResetSessionToken resets all changes to the "session_token" field.

func (*SessionMutation) ResetUpdatedAt

func (m *SessionMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*SessionMutation) ResetUpdatedBy

func (m *SessionMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*SessionMutation) ResetUserID

func (m *SessionMutation) ResetUserID()

ResetUserID resets all changes to the "user_id" field.

func (*SessionMutation) SessionToken

func (m *SessionMutation) SessionToken() (r string, exists bool)

SessionToken returns the value of the "session_token" field in the mutation.

func (*SessionMutation) SetCreatedAt

func (m *SessionMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*SessionMutation) SetCreatedBy

func (m *SessionMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*SessionMutation) SetExpiresAt

func (m *SessionMutation) SetExpiresAt(t time.Time)

SetExpiresAt sets the "expires_at" field.

func (*SessionMutation) SetField

func (m *SessionMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SessionMutation) SetID

func (m *SessionMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Session entities.

func (*SessionMutation) SetIssuedAt

func (m *SessionMutation) SetIssuedAt(t time.Time)

SetIssuedAt sets the "issued_at" field.

func (*SessionMutation) SetOp

func (m *SessionMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*SessionMutation) SetOrganizationID

func (m *SessionMutation) SetOrganizationID(s string)

SetOrganizationID sets the "organization_id" field.

func (*SessionMutation) SetOwnerID

func (m *SessionMutation) SetOwnerID(id string)

SetOwnerID sets the "owner" edge to the User entity by id.

func (*SessionMutation) SetSessionToken

func (m *SessionMutation) SetSessionToken(s string)

SetSessionToken sets the "session_token" field.

func (*SessionMutation) SetUpdatedAt

func (m *SessionMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*SessionMutation) SetUpdatedBy

func (m *SessionMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*SessionMutation) SetUserID

func (m *SessionMutation) SetUserID(s string)

SetUserID sets the "user_id" field.

func (SessionMutation) Tx

func (m SessionMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*SessionMutation) Type

func (m *SessionMutation) Type() string

Type returns the node type of this mutation (Session).

func (*SessionMutation) UpdatedAt

func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*SessionMutation) UpdatedBy

func (m *SessionMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*SessionMutation) UpdatedByCleared

func (m *SessionMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*SessionMutation) UserID

func (m *SessionMutation) UserID() (r string, exists bool)

UserID returns the value of the "user_id" field in the mutation.

func (*SessionMutation) Where

func (m *SessionMutation) Where(ps ...predicate.Session)

Where appends a list predicates to the SessionMutation builder.

func (*SessionMutation) WhereP

func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the SessionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type SessionOrder

type SessionOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *SessionOrderField `json:"field"`
}

SessionOrder defines the ordering of Session.

type SessionOrderField

type SessionOrderField struct {
	// Value extracts the ordering value from the given Session.
	Value func(*Session) (ent.Value, error)
	// contains filtered or unexported fields
}

SessionOrderField defines the ordering field of Session.

type SessionPaginateOption

type SessionPaginateOption func(*sessionPager) error

SessionPaginateOption enables pagination customization.

func WithSessionFilter

func WithSessionFilter(filter func(*SessionQuery) (*SessionQuery, error)) SessionPaginateOption

WithSessionFilter configures pagination filter.

func WithSessionOrder

func WithSessionOrder(order *SessionOrder) SessionPaginateOption

WithSessionOrder configures pagination ordering.

type SessionQuery

type SessionQuery struct {
	// contains filtered or unexported fields
}

SessionQuery is the builder for querying Session entities.

func (*SessionQuery) Aggregate

func (sq *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect

Aggregate returns a SessionSelect configured with the given aggregations.

func (*SessionQuery) All

func (sq *SessionQuery) All(ctx context.Context) ([]*Session, error)

All executes the query and returns a list of Sessions.

func (*SessionQuery) AllX

func (sq *SessionQuery) AllX(ctx context.Context) []*Session

AllX is like All, but panics if an error occurs.

func (*SessionQuery) Clone

func (sq *SessionQuery) Clone() *SessionQuery

Clone returns a duplicate of the SessionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*SessionQuery) CollectFields

func (s *SessionQuery) CollectFields(ctx context.Context, satisfies ...string) (*SessionQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*SessionQuery) Count

func (sq *SessionQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*SessionQuery) CountX

func (sq *SessionQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*SessionQuery) Exist

func (sq *SessionQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*SessionQuery) ExistX

func (sq *SessionQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*SessionQuery) Filter

func (sq *SessionQuery) Filter() *SessionFilter

Filter returns a Filter implementation to apply filters on the SessionQuery builder.

func (*SessionQuery) First

func (sq *SessionQuery) First(ctx context.Context) (*Session, error)

First returns the first Session entity from the query. Returns a *NotFoundError when no Session was found.

func (*SessionQuery) FirstID

func (sq *SessionQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first Session ID from the query. Returns a *NotFoundError when no Session ID was found.

func (*SessionQuery) FirstIDX

func (sq *SessionQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*SessionQuery) FirstX

func (sq *SessionQuery) FirstX(ctx context.Context) *Session

FirstX is like First, but panics if an error occurs.

func (*SessionQuery) GroupBy

func (sq *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Session.Query().
	GroupBy(session.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*SessionQuery) IDs

func (sq *SessionQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of Session IDs.

func (*SessionQuery) IDsX

func (sq *SessionQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*SessionQuery) Limit

func (sq *SessionQuery) Limit(limit int) *SessionQuery

Limit the number of records to be returned by this query.

func (*SessionQuery) Offset

func (sq *SessionQuery) Offset(offset int) *SessionQuery

Offset to start from.

func (*SessionQuery) Only

func (sq *SessionQuery) Only(ctx context.Context) (*Session, error)

Only returns a single Session entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Session entity is found. Returns a *NotFoundError when no Session entities are found.

func (*SessionQuery) OnlyID

func (sq *SessionQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only Session ID in the query. Returns a *NotSingularError when more than one Session ID is found. Returns a *NotFoundError when no entities are found.

func (*SessionQuery) OnlyIDX

func (sq *SessionQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*SessionQuery) OnlyX

func (sq *SessionQuery) OnlyX(ctx context.Context) *Session

OnlyX is like Only, but panics if an error occurs.

func (*SessionQuery) Order

func (sq *SessionQuery) Order(o ...session.OrderOption) *SessionQuery

Order specifies how the records should be ordered.

func (*SessionQuery) Paginate

func (s *SessionQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...SessionPaginateOption,
) (*SessionConnection, error)

Paginate executes the query and returns a relay based cursor connection to Session.

func (*SessionQuery) QueryOwner

func (sq *SessionQuery) QueryOwner() *UserQuery

QueryOwner chains the current query on the "owner" edge.

func (*SessionQuery) Select

func (sq *SessionQuery) Select(fields ...string) *SessionSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Session.Query().
	Select(session.FieldCreatedAt).
	Scan(ctx, &v)

func (*SessionQuery) Unique

func (sq *SessionQuery) Unique(unique bool) *SessionQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*SessionQuery) Where

func (sq *SessionQuery) Where(ps ...predicate.Session) *SessionQuery

Where adds a new predicate for the SessionQuery builder.

func (*SessionQuery) WithOwner

func (sq *SessionQuery) WithOwner(opts ...func(*UserQuery)) *SessionQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type SessionSelect

type SessionSelect struct {
	*SessionQuery
	// contains filtered or unexported fields
}

SessionSelect is the builder for selecting fields of Session entities.

func (*SessionSelect) Aggregate

func (ss *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect

Aggregate adds the given aggregation functions to the selector query.

func (*SessionSelect) Bool

func (s *SessionSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SessionSelect) BoolX

func (s *SessionSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SessionSelect) Bools

func (s *SessionSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SessionSelect) BoolsX

func (s *SessionSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SessionSelect) Float64

func (s *SessionSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SessionSelect) Float64X

func (s *SessionSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SessionSelect) Float64s

func (s *SessionSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SessionSelect) Float64sX

func (s *SessionSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SessionSelect) Int

func (s *SessionSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SessionSelect) IntX

func (s *SessionSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SessionSelect) Ints

func (s *SessionSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SessionSelect) IntsX

func (s *SessionSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SessionSelect) Scan

func (ss *SessionSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*SessionSelect) ScanX

func (s *SessionSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SessionSelect) String

func (s *SessionSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SessionSelect) StringX

func (s *SessionSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SessionSelect) Strings

func (s *SessionSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SessionSelect) StringsX

func (s *SessionSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SessionUpdate

type SessionUpdate struct {
	// contains filtered or unexported fields
}

SessionUpdate is the builder for updating Session entities.

func (*SessionUpdate) ClearOwner

func (su *SessionUpdate) ClearOwner() *SessionUpdate

ClearOwner clears the "owner" edge to the User entity.

func (*SessionUpdate) ClearUpdatedBy

func (su *SessionUpdate) ClearUpdatedBy() *SessionUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*SessionUpdate) Exec

func (su *SessionUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*SessionUpdate) ExecX

func (su *SessionUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SessionUpdate) Mutation

func (su *SessionUpdate) Mutation() *SessionMutation

Mutation returns the SessionMutation object of the builder.

func (*SessionUpdate) Save

func (su *SessionUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*SessionUpdate) SaveX

func (su *SessionUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*SessionUpdate) SetExpiresAt

func (su *SessionUpdate) SetExpiresAt(t time.Time) *SessionUpdate

SetExpiresAt sets the "expires_at" field.

func (*SessionUpdate) SetInput

SetInput applies the change-set in the UpdateSessionInput on the SessionUpdate builder.

func (*SessionUpdate) SetIssuedAt

func (su *SessionUpdate) SetIssuedAt(t time.Time) *SessionUpdate

SetIssuedAt sets the "issued_at" field.

func (*SessionUpdate) SetNillableExpiresAt

func (su *SessionUpdate) SetNillableExpiresAt(t *time.Time) *SessionUpdate

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*SessionUpdate) SetNillableOrganizationID

func (su *SessionUpdate) SetNillableOrganizationID(s *string) *SessionUpdate

SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.

func (*SessionUpdate) SetNillableUpdatedBy

func (su *SessionUpdate) SetNillableUpdatedBy(s *string) *SessionUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*SessionUpdate) SetNillableUserID

func (su *SessionUpdate) SetNillableUserID(s *string) *SessionUpdate

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*SessionUpdate) SetOrganizationID

func (su *SessionUpdate) SetOrganizationID(s string) *SessionUpdate

SetOrganizationID sets the "organization_id" field.

func (*SessionUpdate) SetOwner

func (su *SessionUpdate) SetOwner(u *User) *SessionUpdate

SetOwner sets the "owner" edge to the User entity.

func (*SessionUpdate) SetOwnerID

func (su *SessionUpdate) SetOwnerID(id string) *SessionUpdate

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*SessionUpdate) SetUpdatedAt

func (su *SessionUpdate) SetUpdatedAt(t time.Time) *SessionUpdate

SetUpdatedAt sets the "updated_at" field.

func (*SessionUpdate) SetUpdatedBy

func (su *SessionUpdate) SetUpdatedBy(s string) *SessionUpdate

SetUpdatedBy sets the "updated_by" field.

func (*SessionUpdate) SetUserID

func (su *SessionUpdate) SetUserID(s string) *SessionUpdate

SetUserID sets the "user_id" field.

func (*SessionUpdate) Where

func (su *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate

Where appends a list predicates to the SessionUpdate builder.

type SessionUpdateOne

type SessionUpdateOne struct {
	// contains filtered or unexported fields
}

SessionUpdateOne is the builder for updating a single Session entity.

func (*SessionUpdateOne) ClearOwner

func (suo *SessionUpdateOne) ClearOwner() *SessionUpdateOne

ClearOwner clears the "owner" edge to the User entity.

func (*SessionUpdateOne) ClearUpdatedBy

func (suo *SessionUpdateOne) ClearUpdatedBy() *SessionUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*SessionUpdateOne) Exec

func (suo *SessionUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*SessionUpdateOne) ExecX

func (suo *SessionUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SessionUpdateOne) Mutation

func (suo *SessionUpdateOne) Mutation() *SessionMutation

Mutation returns the SessionMutation object of the builder.

func (*SessionUpdateOne) Save

func (suo *SessionUpdateOne) Save(ctx context.Context) (*Session, error)

Save executes the query and returns the updated Session entity.

func (*SessionUpdateOne) SaveX

func (suo *SessionUpdateOne) SaveX(ctx context.Context) *Session

SaveX is like Save, but panics if an error occurs.

func (*SessionUpdateOne) Select

func (suo *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*SessionUpdateOne) SetExpiresAt

func (suo *SessionUpdateOne) SetExpiresAt(t time.Time) *SessionUpdateOne

SetExpiresAt sets the "expires_at" field.

func (*SessionUpdateOne) SetInput

SetInput applies the change-set in the UpdateSessionInput on the SessionUpdateOne builder.

func (*SessionUpdateOne) SetIssuedAt

func (suo *SessionUpdateOne) SetIssuedAt(t time.Time) *SessionUpdateOne

SetIssuedAt sets the "issued_at" field.

func (*SessionUpdateOne) SetNillableExpiresAt

func (suo *SessionUpdateOne) SetNillableExpiresAt(t *time.Time) *SessionUpdateOne

SetNillableExpiresAt sets the "expires_at" field if the given value is not nil.

func (*SessionUpdateOne) SetNillableOrganizationID

func (suo *SessionUpdateOne) SetNillableOrganizationID(s *string) *SessionUpdateOne

SetNillableOrganizationID sets the "organization_id" field if the given value is not nil.

func (*SessionUpdateOne) SetNillableUpdatedBy

func (suo *SessionUpdateOne) SetNillableUpdatedBy(s *string) *SessionUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*SessionUpdateOne) SetNillableUserID

func (suo *SessionUpdateOne) SetNillableUserID(s *string) *SessionUpdateOne

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*SessionUpdateOne) SetOrganizationID

func (suo *SessionUpdateOne) SetOrganizationID(s string) *SessionUpdateOne

SetOrganizationID sets the "organization_id" field.

func (*SessionUpdateOne) SetOwner

func (suo *SessionUpdateOne) SetOwner(u *User) *SessionUpdateOne

SetOwner sets the "owner" edge to the User entity.

func (*SessionUpdateOne) SetOwnerID

func (suo *SessionUpdateOne) SetOwnerID(id string) *SessionUpdateOne

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*SessionUpdateOne) SetUpdatedAt

func (suo *SessionUpdateOne) SetUpdatedAt(t time.Time) *SessionUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*SessionUpdateOne) SetUpdatedBy

func (suo *SessionUpdateOne) SetUpdatedBy(s string) *SessionUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*SessionUpdateOne) SetUserID

func (suo *SessionUpdateOne) SetUserID(s string) *SessionUpdateOne

SetUserID sets the "user_id" field.

func (*SessionUpdateOne) Where

Where appends a list predicates to the SessionUpdate builder.

type SessionWhereInput

type SessionWhereInput struct {
	Predicates []predicate.Session  `json:"-"`
	Not        *SessionWhereInput   `json:"not,omitempty"`
	Or         []*SessionWhereInput `json:"or,omitempty"`
	And        []*SessionWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "session_token" field predicates.
	SessionToken             *string  `json:"sessionToken,omitempty"`
	SessionTokenNEQ          *string  `json:"sessionTokenNEQ,omitempty"`
	SessionTokenIn           []string `json:"sessionTokenIn,omitempty"`
	SessionTokenNotIn        []string `json:"sessionTokenNotIn,omitempty"`
	SessionTokenGT           *string  `json:"sessionTokenGT,omitempty"`
	SessionTokenGTE          *string  `json:"sessionTokenGTE,omitempty"`
	SessionTokenLT           *string  `json:"sessionTokenLT,omitempty"`
	SessionTokenLTE          *string  `json:"sessionTokenLTE,omitempty"`
	SessionTokenContains     *string  `json:"sessionTokenContains,omitempty"`
	SessionTokenHasPrefix    *string  `json:"sessionTokenHasPrefix,omitempty"`
	SessionTokenHasSuffix    *string  `json:"sessionTokenHasSuffix,omitempty"`
	SessionTokenEqualFold    *string  `json:"sessionTokenEqualFold,omitempty"`
	SessionTokenContainsFold *string  `json:"sessionTokenContainsFold,omitempty"`

	// "issued_at" field predicates.
	IssuedAt      *time.Time  `json:"issuedAt,omitempty"`
	IssuedAtNEQ   *time.Time  `json:"issuedAtNEQ,omitempty"`
	IssuedAtIn    []time.Time `json:"issuedAtIn,omitempty"`
	IssuedAtNotIn []time.Time `json:"issuedAtNotIn,omitempty"`
	IssuedAtGT    *time.Time  `json:"issuedAtGT,omitempty"`
	IssuedAtGTE   *time.Time  `json:"issuedAtGTE,omitempty"`
	IssuedAtLT    *time.Time  `json:"issuedAtLT,omitempty"`
	IssuedAtLTE   *time.Time  `json:"issuedAtLTE,omitempty"`

	// "expires_at" field predicates.
	ExpiresAt      *time.Time  `json:"expiresAt,omitempty"`
	ExpiresAtNEQ   *time.Time  `json:"expiresAtNEQ,omitempty"`
	ExpiresAtIn    []time.Time `json:"expiresAtIn,omitempty"`
	ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"`
	ExpiresAtGT    *time.Time  `json:"expiresAtGT,omitempty"`
	ExpiresAtGTE   *time.Time  `json:"expiresAtGTE,omitempty"`
	ExpiresAtLT    *time.Time  `json:"expiresAtLT,omitempty"`
	ExpiresAtLTE   *time.Time  `json:"expiresAtLTE,omitempty"`

	// "organization_id" field predicates.
	OrganizationID             *string  `json:"organizationID,omitempty"`
	OrganizationIDNEQ          *string  `json:"organizationIDNEQ,omitempty"`
	OrganizationIDIn           []string `json:"organizationIDIn,omitempty"`
	OrganizationIDNotIn        []string `json:"organizationIDNotIn,omitempty"`
	OrganizationIDGT           *string  `json:"organizationIDGT,omitempty"`
	OrganizationIDGTE          *string  `json:"organizationIDGTE,omitempty"`
	OrganizationIDLT           *string  `json:"organizationIDLT,omitempty"`
	OrganizationIDLTE          *string  `json:"organizationIDLTE,omitempty"`
	OrganizationIDContains     *string  `json:"organizationIDContains,omitempty"`
	OrganizationIDHasPrefix    *string  `json:"organizationIDHasPrefix,omitempty"`
	OrganizationIDHasSuffix    *string  `json:"organizationIDHasSuffix,omitempty"`
	OrganizationIDEqualFold    *string  `json:"organizationIDEqualFold,omitempty"`
	OrganizationIDContainsFold *string  `json:"organizationIDContainsFold,omitempty"`

	// "user_id" field predicates.
	UserID             *string  `json:"userID,omitempty"`
	UserIDNEQ          *string  `json:"userIDNEQ,omitempty"`
	UserIDIn           []string `json:"userIDIn,omitempty"`
	UserIDNotIn        []string `json:"userIDNotIn,omitempty"`
	UserIDGT           *string  `json:"userIDGT,omitempty"`
	UserIDGTE          *string  `json:"userIDGTE,omitempty"`
	UserIDLT           *string  `json:"userIDLT,omitempty"`
	UserIDLTE          *string  `json:"userIDLTE,omitempty"`
	UserIDContains     *string  `json:"userIDContains,omitempty"`
	UserIDHasPrefix    *string  `json:"userIDHasPrefix,omitempty"`
	UserIDHasSuffix    *string  `json:"userIDHasSuffix,omitempty"`
	UserIDEqualFold    *string  `json:"userIDEqualFold,omitempty"`
	UserIDContainsFold *string  `json:"userIDContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool             `json:"hasOwner,omitempty"`
	HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"`
}

SessionWhereInput represents a where input for filtering Session queries.

func (*SessionWhereInput) AddPredicates

func (i *SessionWhereInput) AddPredicates(predicates ...predicate.Session)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*SessionWhereInput) Filter

Filter applies the SessionWhereInput filter on the SessionQuery builder.

func (*SessionWhereInput) P

P returns a predicate for filtering sessions. An error is returned if the input is empty or invalid.

type Sessions

type Sessions []*Session

Sessions is a parsable slice of Session.

type TraverseFunc

type TraverseFunc = ent.TraverseFunc

ent aliases to avoid import conflicts in user's code.

type Traverser

type Traverser = ent.Traverser

ent aliases to avoid import conflicts in user's code.

type Tx

type Tx struct {

	// EmailVerificationToken is the client for interacting with the EmailVerificationToken builders.
	EmailVerificationToken *EmailVerificationTokenClient
	// Entitlement is the client for interacting with the Entitlement builders.
	Entitlement *EntitlementClient
	// Group is the client for interacting with the Group builders.
	Group *GroupClient
	// GroupSetting is the client for interacting with the GroupSetting builders.
	GroupSetting *GroupSettingClient
	// Integration is the client for interacting with the Integration builders.
	Integration *IntegrationClient
	// OauthProvider is the client for interacting with the OauthProvider builders.
	OauthProvider *OauthProviderClient
	// OhAuthTooToken is the client for interacting with the OhAuthTooToken builders.
	OhAuthTooToken *OhAuthTooTokenClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// OrganizationSetting is the client for interacting with the OrganizationSetting builders.
	OrganizationSetting *OrganizationSettingClient
	// PersonalAccessToken is the client for interacting with the PersonalAccessToken builders.
	PersonalAccessToken *PersonalAccessTokenClient
	// Session is the client for interacting with the Session builders.
	Session *SessionClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// UserSetting is the client for interacting with the UserSetting builders.
	UserSetting *UserSettingClient
	// contains filtered or unexported fields
}

Tx is a transactional client that is created by calling Client.Tx().

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type UpdateEntitlementInput

type UpdateEntitlementInput struct {
	UpdatedAt                   *time.Time
	ClearUpdatedBy              bool
	UpdatedBy                   *string
	Tier                        *entitlement.Tier
	ClearExternalCustomerID     bool
	ExternalCustomerID          *string
	ClearExternalSubscriptionID bool
	ExternalSubscriptionID      *string
	Expires                     *bool
	ClearExpiresAt              bool
	ExpiresAt                   *time.Time
	Cancelled                   *bool
	ClearOwner                  bool
	OwnerID                     *string
}

UpdateEntitlementInput represents a mutation input for updating entitlements.

func (*UpdateEntitlementInput) Mutate

Mutate applies the UpdateEntitlementInput on the EntitlementMutation builder.

type UpdateGroupInput

type UpdateGroupInput struct {
	UpdatedAt            *time.Time
	ClearUpdatedBy       bool
	UpdatedBy            *string
	Name                 *string
	ClearDescription     bool
	Description          *string
	ClearGravatarLogoURL bool
	GravatarLogoURL      *string
	ClearLogoURL         bool
	LogoURL              *string
	DisplayName          *string
	SettingID            *string
	ClearUsers           bool
	AddUserIDs           []string
	RemoveUserIDs        []string
	OwnerID              *string
}

UpdateGroupInput represents a mutation input for updating groups.

func (*UpdateGroupInput) Mutate

func (i *UpdateGroupInput) Mutate(m *GroupMutation)

Mutate applies the UpdateGroupInput on the GroupMutation builder.

type UpdateGroupSettingInput

type UpdateGroupSettingInput struct {
	UpdatedAt      *time.Time
	ClearUpdatedBy bool
	UpdatedBy      *string
	Visibility     *groupsetting.Visibility
	JoinPolicy     *groupsetting.JoinPolicy
	Tags           []string
	AppendTags     []string
	SyncToSlack    *bool
	SyncToGithub   *bool
	ClearGroup     bool
	GroupID        *string
}

UpdateGroupSettingInput represents a mutation input for updating groupsettings.

func (*UpdateGroupSettingInput) Mutate

Mutate applies the UpdateGroupSettingInput on the GroupSettingMutation builder.

type UpdateIntegrationInput

type UpdateIntegrationInput struct {
	UpdatedAt        *time.Time
	ClearUpdatedBy   bool
	UpdatedBy        *string
	Name             *string
	ClearDescription bool
	Description      *string
	ClearKind        bool
	Kind             *string
	ClearOwner       bool
	OwnerID          *string
}

UpdateIntegrationInput represents a mutation input for updating integrations.

func (*UpdateIntegrationInput) Mutate

Mutate applies the UpdateIntegrationInput on the IntegrationMutation builder.

type UpdateOauthProviderInput

type UpdateOauthProviderInput struct {
	UpdatedAt      *time.Time
	ClearUpdatedBy bool
	UpdatedBy      *string
	Name           *string
	ClientID       *string
	ClientSecret   *string
	RedirectURL    *string
	Scopes         *string
	AuthURL        *string
	TokenURL       *string
	AuthStyle      *uint8
	InfoURL        *string
	ClearOwner     bool
	OwnerID        *string
}

UpdateOauthProviderInput represents a mutation input for updating oauthproviders.

func (*UpdateOauthProviderInput) Mutate

Mutate applies the UpdateOauthProviderInput on the OauthProviderMutation builder.

type UpdateOhAuthTooTokenInput

type UpdateOhAuthTooTokenInput struct {
	ClientID                *string
	ClearScopes             bool
	Scopes                  []string
	AppendScopes            []string
	Nonce                   *string
	ClaimsUserID            *string
	ClaimsUsername          *string
	ClaimsEmail             *string
	ClaimsEmailVerified     *bool
	ClearClaimsGroups       bool
	ClaimsGroups            []string
	AppendClaimsGroups      []string
	ClaimsPreferredUsername *string
	ConnectorID             *string
	ClearConnectorData      bool
	ConnectorData           []string
	AppendConnectorData     []string
	LastUsed                *time.Time
}

UpdateOhAuthTooTokenInput represents a mutation input for updating ohauthtootokens.

func (*UpdateOhAuthTooTokenInput) Mutate

Mutate applies the UpdateOhAuthTooTokenInput on the OhAuthTooTokenMutation builder.

type UpdateOrganizationInput

type UpdateOrganizationInput struct {
	UpdatedAt              *time.Time
	ClearUpdatedBy         bool
	UpdatedBy              *string
	Name                   *string
	DisplayName            *string
	ClearDescription       bool
	Description            *string
	ClearUsers             bool
	AddUserIDs             []string
	RemoveUserIDs          []string
	ClearGroups            bool
	AddGroupIDs            []string
	RemoveGroupIDs         []string
	ClearIntegrations      bool
	AddIntegrationIDs      []string
	RemoveIntegrationIDs   []string
	ClearSetting           bool
	SettingID              *string
	ClearEntitlements      bool
	AddEntitlementIDs      []string
	RemoveEntitlementIDs   []string
	ClearOauthprovider     bool
	AddOauthproviderIDs    []string
	RemoveOauthproviderIDs []string
}

UpdateOrganizationInput represents a mutation input for updating organizations.

func (*UpdateOrganizationInput) Mutate

Mutate applies the UpdateOrganizationInput on the OrganizationMutation builder.

type UpdateOrganizationSettingInput

type UpdateOrganizationSettingInput struct {
	UpdatedAt           *time.Time
	ClearUpdatedBy      bool
	UpdatedBy           *string
	ClearDomains        bool
	Domains             []string
	AppendDomains       []string
	ClearSSOCert        bool
	SSOCert             *string
	ClearSSOEntrypoint  bool
	SSOEntrypoint       *string
	ClearSSOIssuer      bool
	SSOIssuer           *string
	ClearBillingContact bool
	BillingContact      *string
	ClearBillingEmail   bool
	BillingEmail        *string
	ClearBillingPhone   bool
	BillingPhone        *string
	ClearBillingAddress bool
	BillingAddress      *string
	ClearTaxIdentifier  bool
	TaxIdentifier       *string
	ClearTags           bool
	Tags                []string
	AppendTags          []string
	ClearOrganization   bool
	OrganizationID      *string
}

UpdateOrganizationSettingInput represents a mutation input for updating organizationsettings.

func (*UpdateOrganizationSettingInput) Mutate

Mutate applies the UpdateOrganizationSettingInput on the OrganizationSettingMutation builder.

type UpdatePersonalAccessTokenInput

type UpdatePersonalAccessTokenInput struct {
	UpdatedAt        *time.Time
	ClearUpdatedBy   bool
	UpdatedBy        *string
	Name             *string
	ClearAbilities   bool
	Abilities        []string
	AppendAbilities  []string
	ExpiresAt        *time.Time
	ClearDescription bool
	Description      *string
	ClearLastUsedAt  bool
	LastUsedAt       *time.Time
	OwnerID          *string
}

UpdatePersonalAccessTokenInput represents a mutation input for updating personalaccesstokens.

func (*UpdatePersonalAccessTokenInput) Mutate

Mutate applies the UpdatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder.

type UpdateSessionInput

type UpdateSessionInput struct {
	UpdatedAt      *time.Time
	ClearUpdatedBy bool
	UpdatedBy      *string
	IssuedAt       *time.Time
	ExpiresAt      *time.Time
	OrganizationID *string
	OwnerID        *string
}

UpdateSessionInput represents a mutation input for updating sessions.

func (*UpdateSessionInput) Mutate

func (i *UpdateSessionInput) Mutate(m *SessionMutation)

Mutate applies the UpdateSessionInput on the SessionMutation builder.

type UpdateUserInput

type UpdateUserInput struct {
	UpdatedAt                       *time.Time
	ClearUpdatedBy                  bool
	UpdatedBy                       *string
	Email                           *string
	FirstName                       *string
	LastName                        *string
	DisplayName                     *string
	ClearAvatarRemoteURL            bool
	AvatarRemoteURL                 *string
	ClearAvatarLocalFile            bool
	AvatarLocalFile                 *string
	ClearAvatarUpdatedAt            bool
	AvatarUpdatedAt                 *time.Time
	ClearLastSeen                   bool
	LastSeen                        *time.Time
	ClearPassword                   bool
	Password                        *string
	ClearSub                        bool
	Sub                             *string
	Oauth                           *bool
	ClearOrganizations              bool
	AddOrganizationIDs              []string
	RemoveOrganizationIDs           []string
	ClearSessions                   bool
	AddSessionIDs                   []string
	RemoveSessionIDs                []string
	ClearGroups                     bool
	AddGroupIDs                     []string
	RemoveGroupIDs                  []string
	ClearPersonalAccessTokens       bool
	AddPersonalAccessTokenIDs       []string
	RemovePersonalAccessTokenIDs    []string
	SettingID                       *string
	ClearEmailVerificationTokens    bool
	AddEmailVerificationTokenIDs    []string
	RemoveEmailVerificationTokenIDs []string
}

UpdateUserInput represents a mutation input for updating users.

func (*UpdateUserInput) Mutate

func (i *UpdateUserInput) Mutate(m *UserMutation)

Mutate applies the UpdateUserInput on the UserMutation builder.

type UpdateUserSettingInput

type UpdateUserSettingInput struct {
	UpdatedAt         *time.Time
	ClearUpdatedBy    bool
	UpdatedBy         *string
	Locked            *bool
	ClearSilencedAt   bool
	SilencedAt        *time.Time
	ClearSuspendedAt  bool
	SuspendedAt       *time.Time
	ClearRecoveryCode bool
	RecoveryCode      *string
	Status            *usersetting.Status
	Role              *usersetting.Role
	Permissions       []string
	AppendPermissions []string
	EmailConfirmed    *bool
	Tags              []string
	AppendTags        []string
	ClearUser         bool
	UserID            *string
}

UpdateUserSettingInput represents a mutation input for updating usersettings.

func (*UpdateUserSettingInput) Mutate

Mutate applies the UpdateUserSettingInput on the UserSettingMutation builder.

type User

type User struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// Email holds the value of the "email" field.
	Email string `json:"email,omitempty"`
	// FirstName holds the value of the "first_name" field.
	FirstName string `json:"first_name,omitempty"`
	// LastName holds the value of the "last_name" field.
	LastName string `json:"last_name,omitempty"`
	// The user's displayed 'friendly' name
	DisplayName string `json:"display_name,omitempty"`
	// URL of the user's remote avatar
	AvatarRemoteURL *string `json:"avatar_remote_url,omitempty"`
	// The user's local avatar file
	AvatarLocalFile *string `json:"avatar_local_file,omitempty"`
	// The time the user's (local) avatar was last updated
	AvatarUpdatedAt *time.Time `json:"avatar_updated_at,omitempty"`
	// the time the user was last seen
	LastSeen *time.Time `json:"last_seen,omitempty"`
	// user password hash
	Password *string `json:"password,omitempty"`
	// the Subject of the user JWT
	Sub string `json:"sub,omitempty"`
	// whether the user uses oauth for login or not
	Oauth bool `json:"oauth,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the UserQuery when eager-loading is set.
	Edges UserEdges `json:"edges"`
	// contains filtered or unexported fields
}

User is the model entity for the User schema.

func (*User) Groups

func (u *User) Groups(ctx context.Context) (result []*Group, err error)

func (*User) IsNode

func (n *User) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*User) NamedEmailVerificationTokens added in v0.2.2

func (u *User) NamedEmailVerificationTokens(name string) ([]*EmailVerificationToken, error)

NamedEmailVerificationTokens returns the EmailVerificationTokens named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedGroups

func (u *User) NamedGroups(name string) ([]*Group, error)

NamedGroups returns the Groups named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedOrganizations

func (u *User) NamedOrganizations(name string) ([]*Organization, error)

NamedOrganizations returns the Organizations named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedPersonalAccessTokens

func (u *User) NamedPersonalAccessTokens(name string) ([]*PersonalAccessToken, error)

NamedPersonalAccessTokens returns the PersonalAccessTokens named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) NamedSessions

func (u *User) NamedSessions(name string) ([]*Session, error)

NamedSessions returns the Sessions named value or an error if the edge was not loaded in eager-loading with this name.

func (*User) Organizations

func (u *User) Organizations(ctx context.Context) (result []*Organization, err error)

func (*User) PersonalAccessTokens

func (u *User) PersonalAccessTokens(ctx context.Context) (result []*PersonalAccessToken, err error)

func (*User) QueryEmailVerificationTokens added in v0.2.2

func (u *User) QueryEmailVerificationTokens() *EmailVerificationTokenQuery

QueryEmailVerificationTokens queries the "email_verification_tokens" edge of the User entity.

func (*User) QueryGroups

func (u *User) QueryGroups() *GroupQuery

QueryGroups queries the "groups" edge of the User entity.

func (*User) QueryOrganizations

func (u *User) QueryOrganizations() *OrganizationQuery

QueryOrganizations queries the "organizations" edge of the User entity.

func (*User) QueryPersonalAccessTokens

func (u *User) QueryPersonalAccessTokens() *PersonalAccessTokenQuery

QueryPersonalAccessTokens queries the "personal_access_tokens" edge of the User entity.

func (*User) QuerySessions

func (u *User) QuerySessions() *SessionQuery

QuerySessions queries the "sessions" edge of the User entity.

func (*User) QuerySetting

func (u *User) QuerySetting() *UserSettingQuery

QuerySetting queries the "setting" edge of the User entity.

func (*User) Sessions

func (u *User) Sessions(ctx context.Context) (result []*Session, err error)

func (*User) Setting

func (u *User) Setting(ctx context.Context) (*UserSetting, error)

func (*User) String

func (u *User) String() string

String implements the fmt.Stringer.

func (*User) ToEdge

func (u *User) ToEdge(order *UserOrder) *UserEdge

ToEdge converts User into UserEdge.

func (*User) Unwrap

func (u *User) Unwrap() *User

Unwrap unwraps the User entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*User) Update

func (u *User) Update() *UserUpdateOne

Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.

func (*User) Value

func (u *User) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the User. This includes values selected through modifiers, order, etc.

type UserClient

type UserClient struct {
	// contains filtered or unexported fields
}

UserClient is a client for the User schema.

func NewUserClient

func NewUserClient(c config) *UserClient

NewUserClient returns a client for the User from the given config.

func (*UserClient) Create

func (c *UserClient) Create() *UserCreate

Create returns a builder for creating a User entity.

func (*UserClient) CreateBulk

func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk

CreateBulk returns a builder for creating a bulk of User entities.

func (*UserClient) Delete

func (c *UserClient) Delete() *UserDelete

Delete returns a delete builder for User.

func (*UserClient) DeleteOne

func (c *UserClient) DeleteOne(u *User) *UserDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserClient) DeleteOneID

func (c *UserClient) DeleteOneID(id string) *UserDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserClient) Get

func (c *UserClient) Get(ctx context.Context, id string) (*User, error)

Get returns a User entity by its id.

func (*UserClient) GetX

func (c *UserClient) GetX(ctx context.Context, id string) *User

GetX is like Get, but panics if an error occurs.

func (*UserClient) Hooks

func (c *UserClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserClient) Intercept

func (c *UserClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.

func (*UserClient) Interceptors

func (c *UserClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserClient) MapCreateBulk

func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*UserClient) Query

func (c *UserClient) Query() *UserQuery

Query returns a query builder for User.

func (*UserClient) QueryEmailVerificationTokens added in v0.2.2

func (c *UserClient) QueryEmailVerificationTokens(u *User) *EmailVerificationTokenQuery

QueryEmailVerificationTokens queries the email_verification_tokens edge of a User.

func (*UserClient) QueryGroups

func (c *UserClient) QueryGroups(u *User) *GroupQuery

QueryGroups queries the groups edge of a User.

func (*UserClient) QueryOrganizations

func (c *UserClient) QueryOrganizations(u *User) *OrganizationQuery

QueryOrganizations queries the organizations edge of a User.

func (*UserClient) QueryPersonalAccessTokens

func (c *UserClient) QueryPersonalAccessTokens(u *User) *PersonalAccessTokenQuery

QueryPersonalAccessTokens queries the personal_access_tokens edge of a User.

func (*UserClient) QuerySessions

func (c *UserClient) QuerySessions(u *User) *SessionQuery

QuerySessions queries the sessions edge of a User.

func (*UserClient) QuerySetting

func (c *UserClient) QuerySetting(u *User) *UserSettingQuery

QuerySetting queries the setting edge of a User.

func (*UserClient) Update

func (c *UserClient) Update() *UserUpdate

Update returns an update builder for User.

func (*UserClient) UpdateOne

func (c *UserClient) UpdateOne(u *User) *UserUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserClient) UpdateOneID

func (c *UserClient) UpdateOneID(id string) *UserUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserClient) Use

func (c *UserClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.

type UserConnection

type UserConnection struct {
	Edges      []*UserEdge `json:"edges"`
	PageInfo   PageInfo    `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

UserConnection is the connection containing edges to User.

type UserCreate

type UserCreate struct {
	// contains filtered or unexported fields
}

UserCreate is the builder for creating a User entity.

func (*UserCreate) AddEmailVerificationTokenIDs added in v0.2.2

func (uc *UserCreate) AddEmailVerificationTokenIDs(ids ...string) *UserCreate

AddEmailVerificationTokenIDs adds the "email_verification_tokens" edge to the EmailVerificationToken entity by IDs.

func (*UserCreate) AddEmailVerificationTokens added in v0.2.2

func (uc *UserCreate) AddEmailVerificationTokens(e ...*EmailVerificationToken) *UserCreate

AddEmailVerificationTokens adds the "email_verification_tokens" edges to the EmailVerificationToken entity.

func (*UserCreate) AddGroupIDs

func (uc *UserCreate) AddGroupIDs(ids ...string) *UserCreate

AddGroupIDs adds the "groups" edge to the Group entity by IDs.

func (*UserCreate) AddGroups

func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate

AddGroups adds the "groups" edges to the Group entity.

func (*UserCreate) AddOrganizationIDs

func (uc *UserCreate) AddOrganizationIDs(ids ...string) *UserCreate

AddOrganizationIDs adds the "organizations" edge to the Organization entity by IDs.

func (*UserCreate) AddOrganizations

func (uc *UserCreate) AddOrganizations(o ...*Organization) *UserCreate

AddOrganizations adds the "organizations" edges to the Organization entity.

func (*UserCreate) AddPersonalAccessTokenIDs

func (uc *UserCreate) AddPersonalAccessTokenIDs(ids ...string) *UserCreate

AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.

func (*UserCreate) AddPersonalAccessTokens

func (uc *UserCreate) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserCreate

AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserCreate) AddSessionIDs

func (uc *UserCreate) AddSessionIDs(ids ...string) *UserCreate

AddSessionIDs adds the "sessions" edge to the Session entity by IDs.

func (*UserCreate) AddSessions

func (uc *UserCreate) AddSessions(s ...*Session) *UserCreate

AddSessions adds the "sessions" edges to the Session entity.

func (*UserCreate) Exec

func (uc *UserCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreate) ExecX

func (uc *UserCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreate) Mutation

func (uc *UserCreate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserCreate) Save

func (uc *UserCreate) Save(ctx context.Context) (*User, error)

Save creates the User in the database.

func (*UserCreate) SaveX

func (uc *UserCreate) SaveX(ctx context.Context) *User

SaveX calls Save and panics if Save returns an error.

func (*UserCreate) SetAvatarLocalFile

func (uc *UserCreate) SetAvatarLocalFile(s string) *UserCreate

SetAvatarLocalFile sets the "avatar_local_file" field.

func (*UserCreate) SetAvatarRemoteURL

func (uc *UserCreate) SetAvatarRemoteURL(s string) *UserCreate

SetAvatarRemoteURL sets the "avatar_remote_url" field.

func (*UserCreate) SetAvatarUpdatedAt

func (uc *UserCreate) SetAvatarUpdatedAt(t time.Time) *UserCreate

SetAvatarUpdatedAt sets the "avatar_updated_at" field.

func (*UserCreate) SetCreatedAt

func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate

SetCreatedAt sets the "created_at" field.

func (*UserCreate) SetCreatedBy

func (uc *UserCreate) SetCreatedBy(s string) *UserCreate

SetCreatedBy sets the "created_by" field.

func (*UserCreate) SetDeletedAt

func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate

SetDeletedAt sets the "deleted_at" field.

func (*UserCreate) SetDeletedBy

func (uc *UserCreate) SetDeletedBy(s string) *UserCreate

SetDeletedBy sets the "deleted_by" field.

func (*UserCreate) SetDisplayName

func (uc *UserCreate) SetDisplayName(s string) *UserCreate

SetDisplayName sets the "display_name" field.

func (*UserCreate) SetEmail

func (uc *UserCreate) SetEmail(s string) *UserCreate

SetEmail sets the "email" field.

func (*UserCreate) SetFirstName

func (uc *UserCreate) SetFirstName(s string) *UserCreate

SetFirstName sets the "first_name" field.

func (*UserCreate) SetID

func (uc *UserCreate) SetID(s string) *UserCreate

SetID sets the "id" field.

func (*UserCreate) SetInput

func (c *UserCreate) SetInput(i CreateUserInput) *UserCreate

SetInput applies the change-set in the CreateUserInput on the UserCreate builder.

func (*UserCreate) SetLastName

func (uc *UserCreate) SetLastName(s string) *UserCreate

SetLastName sets the "last_name" field.

func (*UserCreate) SetLastSeen

func (uc *UserCreate) SetLastSeen(t time.Time) *UserCreate

SetLastSeen sets the "last_seen" field.

func (*UserCreate) SetNillableAvatarLocalFile

func (uc *UserCreate) SetNillableAvatarLocalFile(s *string) *UserCreate

SetNillableAvatarLocalFile sets the "avatar_local_file" field if the given value is not nil.

func (*UserCreate) SetNillableAvatarRemoteURL

func (uc *UserCreate) SetNillableAvatarRemoteURL(s *string) *UserCreate

SetNillableAvatarRemoteURL sets the "avatar_remote_url" field if the given value is not nil.

func (*UserCreate) SetNillableAvatarUpdatedAt

func (uc *UserCreate) SetNillableAvatarUpdatedAt(t *time.Time) *UserCreate

SetNillableAvatarUpdatedAt sets the "avatar_updated_at" field if the given value is not nil.

func (*UserCreate) SetNillableCreatedAt

func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserCreate) SetNillableCreatedBy

func (uc *UserCreate) SetNillableCreatedBy(s *string) *UserCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*UserCreate) SetNillableDeletedAt

func (uc *UserCreate) SetNillableDeletedAt(t *time.Time) *UserCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*UserCreate) SetNillableDeletedBy

func (uc *UserCreate) SetNillableDeletedBy(s *string) *UserCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*UserCreate) SetNillableDisplayName

func (uc *UserCreate) SetNillableDisplayName(s *string) *UserCreate

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*UserCreate) SetNillableID

func (uc *UserCreate) SetNillableID(s *string) *UserCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*UserCreate) SetNillableLastSeen

func (uc *UserCreate) SetNillableLastSeen(t *time.Time) *UserCreate

SetNillableLastSeen sets the "last_seen" field if the given value is not nil.

func (*UserCreate) SetNillableOauth

func (uc *UserCreate) SetNillableOauth(b *bool) *UserCreate

SetNillableOauth sets the "oauth" field if the given value is not nil.

func (*UserCreate) SetNillablePassword

func (uc *UserCreate) SetNillablePassword(s *string) *UserCreate

SetNillablePassword sets the "password" field if the given value is not nil.

func (*UserCreate) SetNillableSub

func (uc *UserCreate) SetNillableSub(s *string) *UserCreate

SetNillableSub sets the "sub" field if the given value is not nil.

func (*UserCreate) SetNillableUpdatedAt

func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserCreate) SetNillableUpdatedBy

func (uc *UserCreate) SetNillableUpdatedBy(s *string) *UserCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*UserCreate) SetOauth

func (uc *UserCreate) SetOauth(b bool) *UserCreate

SetOauth sets the "oauth" field.

func (*UserCreate) SetPassword

func (uc *UserCreate) SetPassword(s string) *UserCreate

SetPassword sets the "password" field.

func (*UserCreate) SetSetting

func (uc *UserCreate) SetSetting(u *UserSetting) *UserCreate

SetSetting sets the "setting" edge to the UserSetting entity.

func (*UserCreate) SetSettingID

func (uc *UserCreate) SetSettingID(id string) *UserCreate

SetSettingID sets the "setting" edge to the UserSetting entity by ID.

func (*UserCreate) SetSub

func (uc *UserCreate) SetSub(s string) *UserCreate

SetSub sets the "sub" field.

func (*UserCreate) SetUpdatedAt

func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate

SetUpdatedAt sets the "updated_at" field.

func (*UserCreate) SetUpdatedBy

func (uc *UserCreate) SetUpdatedBy(s string) *UserCreate

SetUpdatedBy sets the "updated_by" field.

type UserCreateBulk

type UserCreateBulk struct {
	// contains filtered or unexported fields
}

UserCreateBulk is the builder for creating many User entities in bulk.

func (*UserCreateBulk) Exec

func (ucb *UserCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreateBulk) ExecX

func (ucb *UserCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreateBulk) Save

func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)

Save creates the User entities in the database.

func (*UserCreateBulk) SaveX

func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User

SaveX is like Save, but panics if an error occurs.

type UserDelete

type UserDelete struct {
	// contains filtered or unexported fields
}

UserDelete is the builder for deleting a User entity.

func (*UserDelete) Exec

func (ud *UserDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserDelete) ExecX

func (ud *UserDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserDelete) Where

func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete

Where appends a list predicates to the UserDelete builder.

type UserDeleteOne

type UserDeleteOne struct {
	// contains filtered or unexported fields
}

UserDeleteOne is the builder for deleting a single User entity.

func (*UserDeleteOne) Exec

func (udo *UserDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserDeleteOne) ExecX

func (udo *UserDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserDeleteOne) Where

func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne

Where appends a list predicates to the UserDelete builder.

type UserEdge

type UserEdge struct {
	Node   *User  `json:"node"`
	Cursor Cursor `json:"cursor"`
}

UserEdge is the edge representation of User.

type UserEdges

type UserEdges struct {
	// Organizations holds the value of the organizations edge.
	Organizations []*Organization `json:"organizations,omitempty"`
	// Sessions holds the value of the sessions edge.
	Sessions []*Session `json:"sessions,omitempty"`
	// Groups holds the value of the groups edge.
	Groups []*Group `json:"groups,omitempty"`
	// PersonalAccessTokens holds the value of the personal_access_tokens edge.
	PersonalAccessTokens []*PersonalAccessToken `json:"personal_access_tokens,omitempty"`
	// Setting holds the value of the setting edge.
	Setting *UserSetting `json:"setting,omitempty"`
	// EmailVerificationTokens holds the value of the email_verification_tokens edge.
	EmailVerificationTokens []*EmailVerificationToken `json:"email_verification_tokens,omitempty"`
	// contains filtered or unexported fields
}

UserEdges holds the relations/edges for other nodes in the graph.

func (UserEdges) EmailVerificationTokensOrErr added in v0.2.2

func (e UserEdges) EmailVerificationTokensOrErr() ([]*EmailVerificationToken, error)

EmailVerificationTokensOrErr returns the EmailVerificationTokens value or an error if the edge was not loaded in eager-loading.

func (UserEdges) GroupsOrErr

func (e UserEdges) GroupsOrErr() ([]*Group, error)

GroupsOrErr returns the Groups value or an error if the edge was not loaded in eager-loading.

func (UserEdges) OrganizationsOrErr

func (e UserEdges) OrganizationsOrErr() ([]*Organization, error)

OrganizationsOrErr returns the Organizations value or an error if the edge was not loaded in eager-loading.

func (UserEdges) PersonalAccessTokensOrErr

func (e UserEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, error)

PersonalAccessTokensOrErr returns the PersonalAccessTokens value or an error if the edge was not loaded in eager-loading.

func (UserEdges) SessionsOrErr

func (e UserEdges) SessionsOrErr() ([]*Session, error)

SessionsOrErr returns the Sessions value or an error if the edge was not loaded in eager-loading.

func (UserEdges) SettingOrErr

func (e UserEdges) SettingOrErr() (*UserSetting, error)

SettingOrErr returns the Setting value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type UserFilter

type UserFilter struct {
	// contains filtered or unexported fields
}

UserFilter provides a generic filtering capability at runtime for UserQuery.

func (*UserFilter) Where

func (f *UserFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*UserFilter) WhereAvatarLocalFile

func (f *UserFilter) WhereAvatarLocalFile(p entql.StringP)

WhereAvatarLocalFile applies the entql string predicate on the avatar_local_file field.

func (*UserFilter) WhereAvatarRemoteURL

func (f *UserFilter) WhereAvatarRemoteURL(p entql.StringP)

WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field.

func (*UserFilter) WhereAvatarUpdatedAt

func (f *UserFilter) WhereAvatarUpdatedAt(p entql.TimeP)

WhereAvatarUpdatedAt applies the entql time.Time predicate on the avatar_updated_at field.

func (*UserFilter) WhereCreatedAt

func (f *UserFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*UserFilter) WhereCreatedBy

func (f *UserFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*UserFilter) WhereDeletedAt

func (f *UserFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*UserFilter) WhereDeletedBy

func (f *UserFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*UserFilter) WhereDisplayName

func (f *UserFilter) WhereDisplayName(p entql.StringP)

WhereDisplayName applies the entql string predicate on the display_name field.

func (*UserFilter) WhereEmail

func (f *UserFilter) WhereEmail(p entql.StringP)

WhereEmail applies the entql string predicate on the email field.

func (*UserFilter) WhereFirstName

func (f *UserFilter) WhereFirstName(p entql.StringP)

WhereFirstName applies the entql string predicate on the first_name field.

func (*UserFilter) WhereHasEmailVerificationTokens added in v0.2.2

func (f *UserFilter) WhereHasEmailVerificationTokens()

WhereHasEmailVerificationTokens applies a predicate to check if query has an edge email_verification_tokens.

func (*UserFilter) WhereHasEmailVerificationTokensWith added in v0.2.2

func (f *UserFilter) WhereHasEmailVerificationTokensWith(preds ...predicate.EmailVerificationToken)

WhereHasEmailVerificationTokensWith applies a predicate to check if query has an edge email_verification_tokens with a given conditions (other predicates).

func (*UserFilter) WhereHasGroups

func (f *UserFilter) WhereHasGroups()

WhereHasGroups applies a predicate to check if query has an edge groups.

func (*UserFilter) WhereHasGroupsWith

func (f *UserFilter) WhereHasGroupsWith(preds ...predicate.Group)

WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates).

func (*UserFilter) WhereHasOrganizations

func (f *UserFilter) WhereHasOrganizations()

WhereHasOrganizations applies a predicate to check if query has an edge organizations.

func (*UserFilter) WhereHasOrganizationsWith

func (f *UserFilter) WhereHasOrganizationsWith(preds ...predicate.Organization)

WhereHasOrganizationsWith applies a predicate to check if query has an edge organizations with a given conditions (other predicates).

func (*UserFilter) WhereHasPersonalAccessTokens

func (f *UserFilter) WhereHasPersonalAccessTokens()

WhereHasPersonalAccessTokens applies a predicate to check if query has an edge personal_access_tokens.

func (*UserFilter) WhereHasPersonalAccessTokensWith

func (f *UserFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken)

WhereHasPersonalAccessTokensWith applies a predicate to check if query has an edge personal_access_tokens with a given conditions (other predicates).

func (*UserFilter) WhereHasSessions

func (f *UserFilter) WhereHasSessions()

WhereHasSessions applies a predicate to check if query has an edge sessions.

func (*UserFilter) WhereHasSessionsWith

func (f *UserFilter) WhereHasSessionsWith(preds ...predicate.Session)

WhereHasSessionsWith applies a predicate to check if query has an edge sessions with a given conditions (other predicates).

func (*UserFilter) WhereHasSetting

func (f *UserFilter) WhereHasSetting()

WhereHasSetting applies a predicate to check if query has an edge setting.

func (*UserFilter) WhereHasSettingWith

func (f *UserFilter) WhereHasSettingWith(preds ...predicate.UserSetting)

WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates).

func (*UserFilter) WhereID

func (f *UserFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*UserFilter) WhereLastName

func (f *UserFilter) WhereLastName(p entql.StringP)

WhereLastName applies the entql string predicate on the last_name field.

func (*UserFilter) WhereLastSeen

func (f *UserFilter) WhereLastSeen(p entql.TimeP)

WhereLastSeen applies the entql time.Time predicate on the last_seen field.

func (*UserFilter) WhereOauth

func (f *UserFilter) WhereOauth(p entql.BoolP)

WhereOauth applies the entql bool predicate on the oauth field.

func (*UserFilter) WherePassword

func (f *UserFilter) WherePassword(p entql.StringP)

WherePassword applies the entql string predicate on the password field.

func (*UserFilter) WhereSub

func (f *UserFilter) WhereSub(p entql.StringP)

WhereSub applies the entql string predicate on the sub field.

func (*UserFilter) WhereUpdatedAt

func (f *UserFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*UserFilter) WhereUpdatedBy

func (f *UserFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type UserGroupBy

type UserGroupBy struct {
	// contains filtered or unexported fields
}

UserGroupBy is the group-by builder for User entities.

func (*UserGroupBy) Aggregate

func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserGroupBy) Bool

func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolX

func (s *UserGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserGroupBy) Bools

func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolsX

func (s *UserGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserGroupBy) Float64

func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64X

func (s *UserGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserGroupBy) Float64s

func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64sX

func (s *UserGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserGroupBy) Int

func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntX

func (s *UserGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserGroupBy) Ints

func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntsX

func (s *UserGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserGroupBy) Scan

func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserGroupBy) ScanX

func (s *UserGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserGroupBy) String

func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringX

func (s *UserGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserGroupBy) Strings

func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringsX

func (s *UserGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserMutation

type UserMutation struct {
	// contains filtered or unexported fields
}

UserMutation represents an operation that mutates the User nodes in the graph.

func (*UserMutation) AddEmailVerificationTokenIDs added in v0.2.2

func (m *UserMutation) AddEmailVerificationTokenIDs(ids ...string)

AddEmailVerificationTokenIDs adds the "email_verification_tokens" edge to the EmailVerificationToken entity by ids.

func (*UserMutation) AddField

func (m *UserMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserMutation) AddGroupIDs

func (m *UserMutation) AddGroupIDs(ids ...string)

AddGroupIDs adds the "groups" edge to the Group entity by ids.

func (*UserMutation) AddOrganizationIDs

func (m *UserMutation) AddOrganizationIDs(ids ...string)

AddOrganizationIDs adds the "organizations" edge to the Organization entity by ids.

func (*UserMutation) AddPersonalAccessTokenIDs

func (m *UserMutation) AddPersonalAccessTokenIDs(ids ...string)

AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by ids.

func (*UserMutation) AddSessionIDs

func (m *UserMutation) AddSessionIDs(ids ...string)

AddSessionIDs adds the "sessions" edge to the Session entity by ids.

func (*UserMutation) AddedEdges

func (m *UserMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserMutation) AddedField

func (m *UserMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserMutation) AddedFields

func (m *UserMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserMutation) AddedIDs

func (m *UserMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserMutation) AvatarLocalFile

func (m *UserMutation) AvatarLocalFile() (r string, exists bool)

AvatarLocalFile returns the value of the "avatar_local_file" field in the mutation.

func (*UserMutation) AvatarLocalFileCleared

func (m *UserMutation) AvatarLocalFileCleared() bool

AvatarLocalFileCleared returns if the "avatar_local_file" field was cleared in this mutation.

func (*UserMutation) AvatarRemoteURL

func (m *UserMutation) AvatarRemoteURL() (r string, exists bool)

AvatarRemoteURL returns the value of the "avatar_remote_url" field in the mutation.

func (*UserMutation) AvatarRemoteURLCleared

func (m *UserMutation) AvatarRemoteURLCleared() bool

AvatarRemoteURLCleared returns if the "avatar_remote_url" field was cleared in this mutation.

func (*UserMutation) AvatarUpdatedAt

func (m *UserMutation) AvatarUpdatedAt() (r time.Time, exists bool)

AvatarUpdatedAt returns the value of the "avatar_updated_at" field in the mutation.

func (*UserMutation) AvatarUpdatedAtCleared

func (m *UserMutation) AvatarUpdatedAtCleared() bool

AvatarUpdatedAtCleared returns if the "avatar_updated_at" field was cleared in this mutation.

func (*UserMutation) ClearAvatarLocalFile

func (m *UserMutation) ClearAvatarLocalFile()

ClearAvatarLocalFile clears the value of the "avatar_local_file" field.

func (*UserMutation) ClearAvatarRemoteURL

func (m *UserMutation) ClearAvatarRemoteURL()

ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field.

func (*UserMutation) ClearAvatarUpdatedAt

func (m *UserMutation) ClearAvatarUpdatedAt()

ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field.

func (*UserMutation) ClearCreatedBy

func (m *UserMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*UserMutation) ClearDeletedAt

func (m *UserMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*UserMutation) ClearDeletedBy

func (m *UserMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*UserMutation) ClearEdge

func (m *UserMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*UserMutation) ClearEmailVerificationTokens added in v0.2.2

func (m *UserMutation) ClearEmailVerificationTokens()

ClearEmailVerificationTokens clears the "email_verification_tokens" edge to the EmailVerificationToken entity.

func (*UserMutation) ClearField

func (m *UserMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserMutation) ClearGroups

func (m *UserMutation) ClearGroups()

ClearGroups clears the "groups" edge to the Group entity.

func (*UserMutation) ClearLastSeen

func (m *UserMutation) ClearLastSeen()

ClearLastSeen clears the value of the "last_seen" field.

func (*UserMutation) ClearOrganizations

func (m *UserMutation) ClearOrganizations()

ClearOrganizations clears the "organizations" edge to the Organization entity.

func (*UserMutation) ClearPassword

func (m *UserMutation) ClearPassword()

ClearPassword clears the value of the "password" field.

func (*UserMutation) ClearPersonalAccessTokens

func (m *UserMutation) ClearPersonalAccessTokens()

ClearPersonalAccessTokens clears the "personal_access_tokens" edge to the PersonalAccessToken entity.

func (*UserMutation) ClearSessions

func (m *UserMutation) ClearSessions()

ClearSessions clears the "sessions" edge to the Session entity.

func (*UserMutation) ClearSetting

func (m *UserMutation) ClearSetting()

ClearSetting clears the "setting" edge to the UserSetting entity.

func (*UserMutation) ClearSub

func (m *UserMutation) ClearSub()

ClearSub clears the value of the "sub" field.

func (*UserMutation) ClearUpdatedBy

func (m *UserMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserMutation) ClearedEdges

func (m *UserMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserMutation) ClearedFields

func (m *UserMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserMutation) Client

func (m UserMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*UserMutation) CreatedAt

func (m *UserMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserMutation) CreatedBy

func (m *UserMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*UserMutation) CreatedByCleared

func (m *UserMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*UserMutation) DeletedAt

func (m *UserMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*UserMutation) DeletedAtCleared

func (m *UserMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*UserMutation) DeletedBy

func (m *UserMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*UserMutation) DeletedByCleared

func (m *UserMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*UserMutation) DisplayName

func (m *UserMutation) DisplayName() (r string, exists bool)

DisplayName returns the value of the "display_name" field in the mutation.

func (*UserMutation) EdgeCleared

func (m *UserMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserMutation) Email

func (m *UserMutation) Email() (r string, exists bool)

Email returns the value of the "email" field in the mutation.

func (*UserMutation) EmailVerificationTokensCleared added in v0.2.2

func (m *UserMutation) EmailVerificationTokensCleared() bool

EmailVerificationTokensCleared reports if the "email_verification_tokens" edge to the EmailVerificationToken entity was cleared.

func (*UserMutation) EmailVerificationTokensIDs added in v0.2.2

func (m *UserMutation) EmailVerificationTokensIDs() (ids []string)

EmailVerificationTokensIDs returns the "email_verification_tokens" edge IDs in the mutation.

func (*UserMutation) Field

func (m *UserMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserMutation) FieldCleared

func (m *UserMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserMutation) Fields

func (m *UserMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*UserMutation) Filter

func (m *UserMutation) Filter() *UserFilter

Filter returns an entql.Where implementation to apply filters on the UserMutation builder.

func (*UserMutation) FirstName

func (m *UserMutation) FirstName() (r string, exists bool)

FirstName returns the value of the "first_name" field in the mutation.

func (*UserMutation) GroupsCleared

func (m *UserMutation) GroupsCleared() bool

GroupsCleared reports if the "groups" edge to the Group entity was cleared.

func (*UserMutation) GroupsIDs

func (m *UserMutation) GroupsIDs() (ids []string)

GroupsIDs returns the "groups" edge IDs in the mutation.

func (*UserMutation) ID

func (m *UserMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*UserMutation) IDs

func (m *UserMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserMutation) LastName

func (m *UserMutation) LastName() (r string, exists bool)

LastName returns the value of the "last_name" field in the mutation.

func (*UserMutation) LastSeen

func (m *UserMutation) LastSeen() (r time.Time, exists bool)

LastSeen returns the value of the "last_seen" field in the mutation.

func (*UserMutation) LastSeenCleared

func (m *UserMutation) LastSeenCleared() bool

LastSeenCleared returns if the "last_seen" field was cleared in this mutation.

func (*UserMutation) Oauth

func (m *UserMutation) Oauth() (r bool, exists bool)

Oauth returns the value of the "oauth" field in the mutation.

func (*UserMutation) OldAvatarLocalFile

func (m *UserMutation) OldAvatarLocalFile(ctx context.Context) (v *string, err error)

OldAvatarLocalFile returns the old "avatar_local_file" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldAvatarRemoteURL

func (m *UserMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error)

OldAvatarRemoteURL returns the old "avatar_remote_url" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldAvatarUpdatedAt

func (m *UserMutation) OldAvatarUpdatedAt(ctx context.Context) (v *time.Time, err error)

OldAvatarUpdatedAt returns the old "avatar_updated_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldCreatedAt

func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldCreatedBy

func (m *UserMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldDeletedAt

func (m *UserMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldDeletedBy

func (m *UserMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldDisplayName

func (m *UserMutation) OldDisplayName(ctx context.Context) (v string, err error)

OldDisplayName returns the old "display_name" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldEmail

func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)

OldEmail returns the old "email" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldField

func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*UserMutation) OldFirstName

func (m *UserMutation) OldFirstName(ctx context.Context) (v string, err error)

OldFirstName returns the old "first_name" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldLastName

func (m *UserMutation) OldLastName(ctx context.Context) (v string, err error)

OldLastName returns the old "last_name" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldLastSeen

func (m *UserMutation) OldLastSeen(ctx context.Context) (v *time.Time, err error)

OldLastSeen returns the old "last_seen" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldOauth

func (m *UserMutation) OldOauth(ctx context.Context) (v bool, err error)

OldOauth returns the old "oauth" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldPassword

func (m *UserMutation) OldPassword(ctx context.Context) (v *string, err error)

OldPassword returns the old "password" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldSub

func (m *UserMutation) OldSub(ctx context.Context) (v string, err error)

OldSub returns the old "sub" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldUpdatedAt

func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldUpdatedBy

func (m *UserMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) Op

func (m *UserMutation) Op() Op

Op returns the operation name.

func (*UserMutation) OrganizationsCleared

func (m *UserMutation) OrganizationsCleared() bool

OrganizationsCleared reports if the "organizations" edge to the Organization entity was cleared.

func (*UserMutation) OrganizationsIDs

func (m *UserMutation) OrganizationsIDs() (ids []string)

OrganizationsIDs returns the "organizations" edge IDs in the mutation.

func (*UserMutation) Password

func (m *UserMutation) Password() (r string, exists bool)

Password returns the value of the "password" field in the mutation.

func (*UserMutation) PasswordCleared

func (m *UserMutation) PasswordCleared() bool

PasswordCleared returns if the "password" field was cleared in this mutation.

func (*UserMutation) PersonalAccessTokensCleared

func (m *UserMutation) PersonalAccessTokensCleared() bool

PersonalAccessTokensCleared reports if the "personal_access_tokens" edge to the PersonalAccessToken entity was cleared.

func (*UserMutation) PersonalAccessTokensIDs

func (m *UserMutation) PersonalAccessTokensIDs() (ids []string)

PersonalAccessTokensIDs returns the "personal_access_tokens" edge IDs in the mutation.

func (*UserMutation) RemoveEmailVerificationTokenIDs added in v0.2.2

func (m *UserMutation) RemoveEmailVerificationTokenIDs(ids ...string)

RemoveEmailVerificationTokenIDs removes the "email_verification_tokens" edge to the EmailVerificationToken entity by IDs.

func (*UserMutation) RemoveGroupIDs

func (m *UserMutation) RemoveGroupIDs(ids ...string)

RemoveGroupIDs removes the "groups" edge to the Group entity by IDs.

func (*UserMutation) RemoveOrganizationIDs

func (m *UserMutation) RemoveOrganizationIDs(ids ...string)

RemoveOrganizationIDs removes the "organizations" edge to the Organization entity by IDs.

func (*UserMutation) RemovePersonalAccessTokenIDs

func (m *UserMutation) RemovePersonalAccessTokenIDs(ids ...string)

RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.

func (*UserMutation) RemoveSessionIDs

func (m *UserMutation) RemoveSessionIDs(ids ...string)

RemoveSessionIDs removes the "sessions" edge to the Session entity by IDs.

func (*UserMutation) RemovedEdges

func (m *UserMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserMutation) RemovedEmailVerificationTokensIDs added in v0.2.2

func (m *UserMutation) RemovedEmailVerificationTokensIDs() (ids []string)

RemovedEmailVerificationTokens returns the removed IDs of the "email_verification_tokens" edge to the EmailVerificationToken entity.

func (*UserMutation) RemovedGroupsIDs

func (m *UserMutation) RemovedGroupsIDs() (ids []string)

RemovedGroups returns the removed IDs of the "groups" edge to the Group entity.

func (*UserMutation) RemovedIDs

func (m *UserMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*UserMutation) RemovedOrganizationsIDs

func (m *UserMutation) RemovedOrganizationsIDs() (ids []string)

RemovedOrganizations returns the removed IDs of the "organizations" edge to the Organization entity.

func (*UserMutation) RemovedPersonalAccessTokensIDs

func (m *UserMutation) RemovedPersonalAccessTokensIDs() (ids []string)

RemovedPersonalAccessTokens returns the removed IDs of the "personal_access_tokens" edge to the PersonalAccessToken entity.

func (*UserMutation) RemovedSessionsIDs

func (m *UserMutation) RemovedSessionsIDs() (ids []string)

RemovedSessions returns the removed IDs of the "sessions" edge to the Session entity.

func (*UserMutation) ResetAvatarLocalFile

func (m *UserMutation) ResetAvatarLocalFile()

ResetAvatarLocalFile resets all changes to the "avatar_local_file" field.

func (*UserMutation) ResetAvatarRemoteURL

func (m *UserMutation) ResetAvatarRemoteURL()

ResetAvatarRemoteURL resets all changes to the "avatar_remote_url" field.

func (*UserMutation) ResetAvatarUpdatedAt

func (m *UserMutation) ResetAvatarUpdatedAt()

ResetAvatarUpdatedAt resets all changes to the "avatar_updated_at" field.

func (*UserMutation) ResetCreatedAt

func (m *UserMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserMutation) ResetCreatedBy

func (m *UserMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*UserMutation) ResetDeletedAt

func (m *UserMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*UserMutation) ResetDeletedBy

func (m *UserMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*UserMutation) ResetDisplayName

func (m *UserMutation) ResetDisplayName()

ResetDisplayName resets all changes to the "display_name" field.

func (*UserMutation) ResetEdge

func (m *UserMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*UserMutation) ResetEmail

func (m *UserMutation) ResetEmail()

ResetEmail resets all changes to the "email" field.

func (*UserMutation) ResetEmailVerificationTokens added in v0.2.2

func (m *UserMutation) ResetEmailVerificationTokens()

ResetEmailVerificationTokens resets all changes to the "email_verification_tokens" edge.

func (*UserMutation) ResetField

func (m *UserMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserMutation) ResetFirstName

func (m *UserMutation) ResetFirstName()

ResetFirstName resets all changes to the "first_name" field.

func (*UserMutation) ResetGroups

func (m *UserMutation) ResetGroups()

ResetGroups resets all changes to the "groups" edge.

func (*UserMutation) ResetLastName

func (m *UserMutation) ResetLastName()

ResetLastName resets all changes to the "last_name" field.

func (*UserMutation) ResetLastSeen

func (m *UserMutation) ResetLastSeen()

ResetLastSeen resets all changes to the "last_seen" field.

func (*UserMutation) ResetOauth

func (m *UserMutation) ResetOauth()

ResetOauth resets all changes to the "oauth" field.

func (*UserMutation) ResetOrganizations

func (m *UserMutation) ResetOrganizations()

ResetOrganizations resets all changes to the "organizations" edge.

func (*UserMutation) ResetPassword

func (m *UserMutation) ResetPassword()

ResetPassword resets all changes to the "password" field.

func (*UserMutation) ResetPersonalAccessTokens

func (m *UserMutation) ResetPersonalAccessTokens()

ResetPersonalAccessTokens resets all changes to the "personal_access_tokens" edge.

func (*UserMutation) ResetSessions

func (m *UserMutation) ResetSessions()

ResetSessions resets all changes to the "sessions" edge.

func (*UserMutation) ResetSetting

func (m *UserMutation) ResetSetting()

ResetSetting resets all changes to the "setting" edge.

func (*UserMutation) ResetSub

func (m *UserMutation) ResetSub()

ResetSub resets all changes to the "sub" field.

func (*UserMutation) ResetUpdatedAt

func (m *UserMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserMutation) ResetUpdatedBy

func (m *UserMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*UserMutation) SessionsCleared

func (m *UserMutation) SessionsCleared() bool

SessionsCleared reports if the "sessions" edge to the Session entity was cleared.

func (*UserMutation) SessionsIDs

func (m *UserMutation) SessionsIDs() (ids []string)

SessionsIDs returns the "sessions" edge IDs in the mutation.

func (*UserMutation) SetAvatarLocalFile

func (m *UserMutation) SetAvatarLocalFile(s string)

SetAvatarLocalFile sets the "avatar_local_file" field.

func (*UserMutation) SetAvatarRemoteURL

func (m *UserMutation) SetAvatarRemoteURL(s string)

SetAvatarRemoteURL sets the "avatar_remote_url" field.

func (*UserMutation) SetAvatarUpdatedAt

func (m *UserMutation) SetAvatarUpdatedAt(t time.Time)

SetAvatarUpdatedAt sets the "avatar_updated_at" field.

func (*UserMutation) SetCreatedAt

func (m *UserMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserMutation) SetCreatedBy

func (m *UserMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*UserMutation) SetDeletedAt

func (m *UserMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*UserMutation) SetDeletedBy

func (m *UserMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*UserMutation) SetDisplayName

func (m *UserMutation) SetDisplayName(s string)

SetDisplayName sets the "display_name" field.

func (*UserMutation) SetEmail

func (m *UserMutation) SetEmail(s string)

SetEmail sets the "email" field.

func (*UserMutation) SetField

func (m *UserMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserMutation) SetFirstName

func (m *UserMutation) SetFirstName(s string)

SetFirstName sets the "first_name" field.

func (*UserMutation) SetID

func (m *UserMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.

func (*UserMutation) SetLastName

func (m *UserMutation) SetLastName(s string)

SetLastName sets the "last_name" field.

func (*UserMutation) SetLastSeen

func (m *UserMutation) SetLastSeen(t time.Time)

SetLastSeen sets the "last_seen" field.

func (*UserMutation) SetOauth

func (m *UserMutation) SetOauth(b bool)

SetOauth sets the "oauth" field.

func (*UserMutation) SetOp

func (m *UserMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserMutation) SetPassword

func (m *UserMutation) SetPassword(s string)

SetPassword sets the "password" field.

func (*UserMutation) SetSettingID

func (m *UserMutation) SetSettingID(id string)

SetSettingID sets the "setting" edge to the UserSetting entity by id.

func (*UserMutation) SetSub

func (m *UserMutation) SetSub(s string)

SetSub sets the "sub" field.

func (*UserMutation) SetUpdatedAt

func (m *UserMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*UserMutation) SetUpdatedBy

func (m *UserMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*UserMutation) SettingCleared

func (m *UserMutation) SettingCleared() bool

SettingCleared reports if the "setting" edge to the UserSetting entity was cleared.

func (*UserMutation) SettingID

func (m *UserMutation) SettingID() (id string, exists bool)

SettingID returns the "setting" edge ID in the mutation.

func (*UserMutation) SettingIDs

func (m *UserMutation) SettingIDs() (ids []string)

SettingIDs returns the "setting" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SettingID instead. It exists only for internal usage by the builders.

func (*UserMutation) Sub

func (m *UserMutation) Sub() (r string, exists bool)

Sub returns the value of the "sub" field in the mutation.

func (*UserMutation) SubCleared

func (m *UserMutation) SubCleared() bool

SubCleared returns if the "sub" field was cleared in this mutation.

func (UserMutation) Tx

func (m UserMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserMutation) Type

func (m *UserMutation) Type() string

Type returns the node type of this mutation (User).

func (*UserMutation) UpdatedAt

func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserMutation) UpdatedBy

func (m *UserMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*UserMutation) UpdatedByCleared

func (m *UserMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*UserMutation) Where

func (m *UserMutation) Where(ps ...predicate.User)

Where appends a list predicates to the UserMutation builder.

func (*UserMutation) WhereP

func (m *UserMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserOrder

type UserOrder struct {
	Direction OrderDirection  `json:"direction"`
	Field     *UserOrderField `json:"field"`
}

UserOrder defines the ordering of User.

type UserOrderField

type UserOrderField struct {
	// Value extracts the ordering value from the given User.
	Value func(*User) (ent.Value, error)
	// contains filtered or unexported fields
}

UserOrderField defines the ordering field of User.

func (UserOrderField) MarshalGQL

func (f UserOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (UserOrderField) String

func (f UserOrderField) String() string

String implement fmt.Stringer interface.

func (*UserOrderField) UnmarshalGQL

func (f *UserOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type UserPaginateOption

type UserPaginateOption func(*userPager) error

UserPaginateOption enables pagination customization.

func WithUserFilter

func WithUserFilter(filter func(*UserQuery) (*UserQuery, error)) UserPaginateOption

WithUserFilter configures pagination filter.

func WithUserOrder

func WithUserOrder(order *UserOrder) UserPaginateOption

WithUserOrder configures pagination ordering.

type UserQuery

type UserQuery struct {
	// contains filtered or unexported fields
}

UserQuery is the builder for querying User entities.

func (*UserQuery) Aggregate

func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate returns a UserSelect configured with the given aggregations.

func (*UserQuery) All

func (uq *UserQuery) All(ctx context.Context) ([]*User, error)

All executes the query and returns a list of Users.

func (*UserQuery) AllX

func (uq *UserQuery) AllX(ctx context.Context) []*User

AllX is like All, but panics if an error occurs.

func (*UserQuery) Clone

func (uq *UserQuery) Clone() *UserQuery

Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserQuery) CollectFields

func (u *UserQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*UserQuery) Count

func (uq *UserQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserQuery) CountX

func (uq *UserQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserQuery) Exist

func (uq *UserQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserQuery) ExistX

func (uq *UserQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserQuery) Filter

func (uq *UserQuery) Filter() *UserFilter

Filter returns a Filter implementation to apply filters on the UserQuery builder.

func (*UserQuery) First

func (uq *UserQuery) First(ctx context.Context) (*User, error)

First returns the first User entity from the query. Returns a *NotFoundError when no User was found.

func (*UserQuery) FirstID

func (uq *UserQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.

func (*UserQuery) FirstIDX

func (uq *UserQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserQuery) FirstX

func (uq *UserQuery) FirstX(ctx context.Context) *User

FirstX is like First, but panics if an error occurs.

func (*UserQuery) GroupBy

func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.User.Query().
	GroupBy(user.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*UserQuery) IDs

func (uq *UserQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of User IDs.

func (*UserQuery) IDsX

func (uq *UserQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*UserQuery) Limit

func (uq *UserQuery) Limit(limit int) *UserQuery

Limit the number of records to be returned by this query.

func (*UserQuery) Offset

func (uq *UserQuery) Offset(offset int) *UserQuery

Offset to start from.

func (*UserQuery) Only

func (uq *UserQuery) Only(ctx context.Context) (*User, error)

Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.

func (*UserQuery) OnlyID

func (uq *UserQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.

func (*UserQuery) OnlyIDX

func (uq *UserQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserQuery) OnlyX

func (uq *UserQuery) OnlyX(ctx context.Context) *User

OnlyX is like Only, but panics if an error occurs.

func (*UserQuery) Order

func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery

Order specifies how the records should be ordered.

func (*UserQuery) Paginate

func (u *UserQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...UserPaginateOption,
) (*UserConnection, error)

Paginate executes the query and returns a relay based cursor connection to User.

func (*UserQuery) QueryEmailVerificationTokens added in v0.2.2

func (uq *UserQuery) QueryEmailVerificationTokens() *EmailVerificationTokenQuery

QueryEmailVerificationTokens chains the current query on the "email_verification_tokens" edge.

func (*UserQuery) QueryGroups

func (uq *UserQuery) QueryGroups() *GroupQuery

QueryGroups chains the current query on the "groups" edge.

func (*UserQuery) QueryOrganizations

func (uq *UserQuery) QueryOrganizations() *OrganizationQuery

QueryOrganizations chains the current query on the "organizations" edge.

func (*UserQuery) QueryPersonalAccessTokens

func (uq *UserQuery) QueryPersonalAccessTokens() *PersonalAccessTokenQuery

QueryPersonalAccessTokens chains the current query on the "personal_access_tokens" edge.

func (*UserQuery) QuerySessions

func (uq *UserQuery) QuerySessions() *SessionQuery

QuerySessions chains the current query on the "sessions" edge.

func (*UserQuery) QuerySetting

func (uq *UserQuery) QuerySetting() *UserSettingQuery

QuerySetting chains the current query on the "setting" edge.

func (*UserQuery) Select

func (uq *UserQuery) Select(fields ...string) *UserSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.User.Query().
	Select(user.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserQuery) Unique

func (uq *UserQuery) Unique(unique bool) *UserQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*UserQuery) Where

func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery

Where adds a new predicate for the UserQuery builder.

func (*UserQuery) WithEmailVerificationTokens added in v0.2.2

func (uq *UserQuery) WithEmailVerificationTokens(opts ...func(*EmailVerificationTokenQuery)) *UserQuery

WithEmailVerificationTokens tells the query-builder to eager-load the nodes that are connected to the "email_verification_tokens" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithGroups

func (uq *UserQuery) WithGroups(opts ...func(*GroupQuery)) *UserQuery

WithGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedEmailVerificationTokens added in v0.2.2

func (uq *UserQuery) WithNamedEmailVerificationTokens(name string, opts ...func(*EmailVerificationTokenQuery)) *UserQuery

WithNamedEmailVerificationTokens tells the query-builder to eager-load the nodes that are connected to the "email_verification_tokens" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedGroups

func (uq *UserQuery) WithNamedGroups(name string, opts ...func(*GroupQuery)) *UserQuery

WithNamedGroups tells the query-builder to eager-load the nodes that are connected to the "groups" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedOrganizations

func (uq *UserQuery) WithNamedOrganizations(name string, opts ...func(*OrganizationQuery)) *UserQuery

WithNamedOrganizations tells the query-builder to eager-load the nodes that are connected to the "organizations" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedPersonalAccessTokens

func (uq *UserQuery) WithNamedPersonalAccessTokens(name string, opts ...func(*PersonalAccessTokenQuery)) *UserQuery

WithNamedPersonalAccessTokens tells the query-builder to eager-load the nodes that are connected to the "personal_access_tokens" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithNamedSessions

func (uq *UserQuery) WithNamedSessions(name string, opts ...func(*SessionQuery)) *UserQuery

WithNamedSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge with the given name. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithOrganizations

func (uq *UserQuery) WithOrganizations(opts ...func(*OrganizationQuery)) *UserQuery

WithOrganizations tells the query-builder to eager-load the nodes that are connected to the "organizations" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithPersonalAccessTokens

func (uq *UserQuery) WithPersonalAccessTokens(opts ...func(*PersonalAccessTokenQuery)) *UserQuery

WithPersonalAccessTokens tells the query-builder to eager-load the nodes that are connected to the "personal_access_tokens" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithSessions

func (uq *UserQuery) WithSessions(opts ...func(*SessionQuery)) *UserQuery

WithSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithSetting

func (uq *UserQuery) WithSetting(opts ...func(*UserSettingQuery)) *UserQuery

WithSetting tells the query-builder to eager-load the nodes that are connected to the "setting" edge. The optional arguments are used to configure the query builder of the edge.

type UserSelect

type UserSelect struct {
	*UserQuery
	// contains filtered or unexported fields
}

UserSelect is the builder for selecting fields of User entities.

func (*UserSelect) Aggregate

func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSelect) Bool

func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolX

func (s *UserSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserSelect) Bools

func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolsX

func (s *UserSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserSelect) Float64

func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64X

func (s *UserSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserSelect) Float64s

func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64sX

func (s *UserSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserSelect) Int

func (s *UserSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntX

func (s *UserSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserSelect) Ints

func (s *UserSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntsX

func (s *UserSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserSelect) Scan

func (us *UserSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserSelect) ScanX

func (s *UserSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserSelect) String

func (s *UserSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringX

func (s *UserSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserSelect) Strings

func (s *UserSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringsX

func (s *UserSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserSetting

type UserSetting struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// CreatedBy holds the value of the "created_by" field.
	CreatedBy string `json:"created_by,omitempty"`
	// UpdatedBy holds the value of the "updated_by" field.
	UpdatedBy string `json:"updated_by,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// DeletedBy holds the value of the "deleted_by" field.
	DeletedBy string `json:"deleted_by,omitempty"`
	// user account is locked if unconfirmed or explicitly locked
	Locked bool `json:"locked,omitempty"`
	// The time notifications regarding the user were silenced
	SilencedAt *time.Time `json:"silenced_at,omitempty"`
	// The time the user was suspended
	SuspendedAt *time.Time `json:"suspended_at,omitempty"`
	// local user password recovery code generated during account creation - does not exist for oauth'd users
	RecoveryCode *string `json:"-"`
	// Status holds the value of the "status" field.
	Status usersetting.Status `json:"status,omitempty"`
	// Role holds the value of the "role" field.
	Role usersetting.Role `json:"role,omitempty"`
	// Permissions holds the value of the "permissions" field.
	Permissions []string `json:"permissions,omitempty"`
	// EmailConfirmed holds the value of the "email_confirmed" field.
	EmailConfirmed bool `json:"email_confirmed,omitempty"`
	// tags associated with the object
	Tags []string `json:"tags,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the UserSettingQuery when eager-loading is set.
	Edges UserSettingEdges `json:"edges"`
	// contains filtered or unexported fields
}

UserSetting is the model entity for the UserSetting schema.

func (*UserSetting) IsNode

func (n *UserSetting) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*UserSetting) QueryUser

func (us *UserSetting) QueryUser() *UserQuery

QueryUser queries the "user" edge of the UserSetting entity.

func (*UserSetting) String

func (us *UserSetting) String() string

String implements the fmt.Stringer.

func (*UserSetting) ToEdge

func (us *UserSetting) ToEdge(order *UserSettingOrder) *UserSettingEdge

ToEdge converts UserSetting into UserSettingEdge.

func (*UserSetting) Unwrap

func (us *UserSetting) Unwrap() *UserSetting

Unwrap unwraps the UserSetting entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*UserSetting) Update

func (us *UserSetting) Update() *UserSettingUpdateOne

Update returns a builder for updating this UserSetting. Note that you need to call UserSetting.Unwrap() before calling this method if this UserSetting was returned from a transaction, and the transaction was committed or rolled back.

func (*UserSetting) User

func (us *UserSetting) User(ctx context.Context) (*User, error)

func (*UserSetting) Value

func (us *UserSetting) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the UserSetting. This includes values selected through modifiers, order, etc.

type UserSettingClient

type UserSettingClient struct {
	// contains filtered or unexported fields
}

UserSettingClient is a client for the UserSetting schema.

func NewUserSettingClient

func NewUserSettingClient(c config) *UserSettingClient

NewUserSettingClient returns a client for the UserSetting from the given config.

func (*UserSettingClient) Create

func (c *UserSettingClient) Create() *UserSettingCreate

Create returns a builder for creating a UserSetting entity.

func (*UserSettingClient) CreateBulk

func (c *UserSettingClient) CreateBulk(builders ...*UserSettingCreate) *UserSettingCreateBulk

CreateBulk returns a builder for creating a bulk of UserSetting entities.

func (*UserSettingClient) Delete

func (c *UserSettingClient) Delete() *UserSettingDelete

Delete returns a delete builder for UserSetting.

func (*UserSettingClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserSettingClient) DeleteOneID

func (c *UserSettingClient) DeleteOneID(id string) *UserSettingDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserSettingClient) Get

Get returns a UserSetting entity by its id.

func (*UserSettingClient) GetX

GetX is like Get, but panics if an error occurs.

func (*UserSettingClient) Hooks

func (c *UserSettingClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserSettingClient) Intercept

func (c *UserSettingClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usersetting.Intercept(f(g(h())))`.

func (*UserSettingClient) Interceptors

func (c *UserSettingClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserSettingClient) MapCreateBulk

func (c *UserSettingClient) MapCreateBulk(slice any, setFunc func(*UserSettingCreate, int)) *UserSettingCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*UserSettingClient) Query

func (c *UserSettingClient) Query() *UserSettingQuery

Query returns a query builder for UserSetting.

func (*UserSettingClient) QueryUser

func (c *UserSettingClient) QueryUser(us *UserSetting) *UserQuery

QueryUser queries the user edge of a UserSetting.

func (*UserSettingClient) Update

func (c *UserSettingClient) Update() *UserSettingUpdate

Update returns an update builder for UserSetting.

func (*UserSettingClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserSettingClient) UpdateOneID

func (c *UserSettingClient) UpdateOneID(id string) *UserSettingUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserSettingClient) Use

func (c *UserSettingClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usersetting.Hooks(f(g(h())))`.

type UserSettingConnection

type UserSettingConnection struct {
	Edges      []*UserSettingEdge `json:"edges"`
	PageInfo   PageInfo           `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

UserSettingConnection is the connection containing edges to UserSetting.

type UserSettingCreate

type UserSettingCreate struct {
	// contains filtered or unexported fields
}

UserSettingCreate is the builder for creating a UserSetting entity.

func (*UserSettingCreate) Exec

func (usc *UserSettingCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserSettingCreate) ExecX

func (usc *UserSettingCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserSettingCreate) Mutation

func (usc *UserSettingCreate) Mutation() *UserSettingMutation

Mutation returns the UserSettingMutation object of the builder.

func (*UserSettingCreate) Save

func (usc *UserSettingCreate) Save(ctx context.Context) (*UserSetting, error)

Save creates the UserSetting in the database.

func (*UserSettingCreate) SaveX

func (usc *UserSettingCreate) SaveX(ctx context.Context) *UserSetting

SaveX calls Save and panics if Save returns an error.

func (*UserSettingCreate) SetCreatedAt

func (usc *UserSettingCreate) SetCreatedAt(t time.Time) *UserSettingCreate

SetCreatedAt sets the "created_at" field.

func (*UserSettingCreate) SetCreatedBy

func (usc *UserSettingCreate) SetCreatedBy(s string) *UserSettingCreate

SetCreatedBy sets the "created_by" field.

func (*UserSettingCreate) SetDeletedAt

func (usc *UserSettingCreate) SetDeletedAt(t time.Time) *UserSettingCreate

SetDeletedAt sets the "deleted_at" field.

func (*UserSettingCreate) SetDeletedBy

func (usc *UserSettingCreate) SetDeletedBy(s string) *UserSettingCreate

SetDeletedBy sets the "deleted_by" field.

func (*UserSettingCreate) SetEmailConfirmed

func (usc *UserSettingCreate) SetEmailConfirmed(b bool) *UserSettingCreate

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingCreate) SetID

SetID sets the "id" field.

func (*UserSettingCreate) SetInput

SetInput applies the change-set in the CreateUserSettingInput on the UserSettingCreate builder.

func (*UserSettingCreate) SetLocked

func (usc *UserSettingCreate) SetLocked(b bool) *UserSettingCreate

SetLocked sets the "locked" field.

func (*UserSettingCreate) SetNillableCreatedAt

func (usc *UserSettingCreate) SetNillableCreatedAt(t *time.Time) *UserSettingCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserSettingCreate) SetNillableCreatedBy

func (usc *UserSettingCreate) SetNillableCreatedBy(s *string) *UserSettingCreate

SetNillableCreatedBy sets the "created_by" field if the given value is not nil.

func (*UserSettingCreate) SetNillableDeletedAt

func (usc *UserSettingCreate) SetNillableDeletedAt(t *time.Time) *UserSettingCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*UserSettingCreate) SetNillableDeletedBy

func (usc *UserSettingCreate) SetNillableDeletedBy(s *string) *UserSettingCreate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*UserSettingCreate) SetNillableEmailConfirmed

func (usc *UserSettingCreate) SetNillableEmailConfirmed(b *bool) *UserSettingCreate

SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.

func (*UserSettingCreate) SetNillableID

func (usc *UserSettingCreate) SetNillableID(s *string) *UserSettingCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*UserSettingCreate) SetNillableLocked

func (usc *UserSettingCreate) SetNillableLocked(b *bool) *UserSettingCreate

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*UserSettingCreate) SetNillableRecoveryCode

func (usc *UserSettingCreate) SetNillableRecoveryCode(s *string) *UserSettingCreate

SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.

func (*UserSettingCreate) SetNillableRole

func (usc *UserSettingCreate) SetNillableRole(u *usersetting.Role) *UserSettingCreate

SetNillableRole sets the "role" field if the given value is not nil.

func (*UserSettingCreate) SetNillableSilencedAt

func (usc *UserSettingCreate) SetNillableSilencedAt(t *time.Time) *UserSettingCreate

SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.

func (*UserSettingCreate) SetNillableStatus

func (usc *UserSettingCreate) SetNillableStatus(u *usersetting.Status) *UserSettingCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserSettingCreate) SetNillableSuspendedAt

func (usc *UserSettingCreate) SetNillableSuspendedAt(t *time.Time) *UserSettingCreate

SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.

func (*UserSettingCreate) SetNillableUpdatedAt

func (usc *UserSettingCreate) SetNillableUpdatedAt(t *time.Time) *UserSettingCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserSettingCreate) SetNillableUpdatedBy

func (usc *UserSettingCreate) SetNillableUpdatedBy(s *string) *UserSettingCreate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*UserSettingCreate) SetNillableUserID

func (usc *UserSettingCreate) SetNillableUserID(id *string) *UserSettingCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserSettingCreate) SetPermissions

func (usc *UserSettingCreate) SetPermissions(s []string) *UserSettingCreate

SetPermissions sets the "permissions" field.

func (*UserSettingCreate) SetRecoveryCode

func (usc *UserSettingCreate) SetRecoveryCode(s string) *UserSettingCreate

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingCreate) SetRole

SetRole sets the "role" field.

func (*UserSettingCreate) SetSilencedAt

func (usc *UserSettingCreate) SetSilencedAt(t time.Time) *UserSettingCreate

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingCreate) SetStatus

SetStatus sets the "status" field.

func (*UserSettingCreate) SetSuspendedAt

func (usc *UserSettingCreate) SetSuspendedAt(t time.Time) *UserSettingCreate

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingCreate) SetTags

func (usc *UserSettingCreate) SetTags(s []string) *UserSettingCreate

SetTags sets the "tags" field.

func (*UserSettingCreate) SetUpdatedAt

func (usc *UserSettingCreate) SetUpdatedAt(t time.Time) *UserSettingCreate

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingCreate) SetUpdatedBy

func (usc *UserSettingCreate) SetUpdatedBy(s string) *UserSettingCreate

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingCreate) SetUser

func (usc *UserSettingCreate) SetUser(u *User) *UserSettingCreate

SetUser sets the "user" edge to the User entity.

func (*UserSettingCreate) SetUserID

func (usc *UserSettingCreate) SetUserID(id string) *UserSettingCreate

SetUserID sets the "user" edge to the User entity by ID.

type UserSettingCreateBulk

type UserSettingCreateBulk struct {
	// contains filtered or unexported fields
}

UserSettingCreateBulk is the builder for creating many UserSetting entities in bulk.

func (*UserSettingCreateBulk) Exec

func (uscb *UserSettingCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserSettingCreateBulk) ExecX

func (uscb *UserSettingCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserSettingCreateBulk) Save

func (uscb *UserSettingCreateBulk) Save(ctx context.Context) ([]*UserSetting, error)

Save creates the UserSetting entities in the database.

func (*UserSettingCreateBulk) SaveX

func (uscb *UserSettingCreateBulk) SaveX(ctx context.Context) []*UserSetting

SaveX is like Save, but panics if an error occurs.

type UserSettingDelete

type UserSettingDelete struct {
	// contains filtered or unexported fields
}

UserSettingDelete is the builder for deleting a UserSetting entity.

func (*UserSettingDelete) Exec

func (usd *UserSettingDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserSettingDelete) ExecX

func (usd *UserSettingDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserSettingDelete) Where

Where appends a list predicates to the UserSettingDelete builder.

type UserSettingDeleteOne

type UserSettingDeleteOne struct {
	// contains filtered or unexported fields
}

UserSettingDeleteOne is the builder for deleting a single UserSetting entity.

func (*UserSettingDeleteOne) Exec

func (usdo *UserSettingDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserSettingDeleteOne) ExecX

func (usdo *UserSettingDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserSettingDeleteOne) Where

Where appends a list predicates to the UserSettingDelete builder.

type UserSettingEdge

type UserSettingEdge struct {
	Node   *UserSetting `json:"node"`
	Cursor Cursor       `json:"cursor"`
}

UserSettingEdge is the edge representation of UserSetting.

type UserSettingEdges

type UserSettingEdges struct {
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// contains filtered or unexported fields
}

UserSettingEdges holds the relations/edges for other nodes in the graph.

func (UserSettingEdges) UserOrErr

func (e UserSettingEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type UserSettingFilter

type UserSettingFilter struct {
	// contains filtered or unexported fields
}

UserSettingFilter provides a generic filtering capability at runtime for UserSettingQuery.

func (*UserSettingFilter) Where

func (f *UserSettingFilter) Where(p entql.P)

Where applies the entql predicate on the query filter.

func (*UserSettingFilter) WhereCreatedAt

func (f *UserSettingFilter) WhereCreatedAt(p entql.TimeP)

WhereCreatedAt applies the entql time.Time predicate on the created_at field.

func (*UserSettingFilter) WhereCreatedBy

func (f *UserSettingFilter) WhereCreatedBy(p entql.StringP)

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*UserSettingFilter) WhereDeletedAt

func (f *UserSettingFilter) WhereDeletedAt(p entql.TimeP)

WhereDeletedAt applies the entql time.Time predicate on the deleted_at field.

func (*UserSettingFilter) WhereDeletedBy

func (f *UserSettingFilter) WhereDeletedBy(p entql.StringP)

WhereDeletedBy applies the entql string predicate on the deleted_by field.

func (*UserSettingFilter) WhereEmailConfirmed

func (f *UserSettingFilter) WhereEmailConfirmed(p entql.BoolP)

WhereEmailConfirmed applies the entql bool predicate on the email_confirmed field.

func (*UserSettingFilter) WhereHasUser

func (f *UserSettingFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*UserSettingFilter) WhereHasUserWith

func (f *UserSettingFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates).

func (*UserSettingFilter) WhereID

func (f *UserSettingFilter) WhereID(p entql.StringP)

WhereID applies the entql string predicate on the id field.

func (*UserSettingFilter) WhereLocked

func (f *UserSettingFilter) WhereLocked(p entql.BoolP)

WhereLocked applies the entql bool predicate on the locked field.

func (*UserSettingFilter) WherePermissions

func (f *UserSettingFilter) WherePermissions(p entql.BytesP)

WherePermissions applies the entql json.RawMessage predicate on the permissions field.

func (*UserSettingFilter) WhereRecoveryCode

func (f *UserSettingFilter) WhereRecoveryCode(p entql.StringP)

WhereRecoveryCode applies the entql string predicate on the recovery_code field.

func (*UserSettingFilter) WhereRole

func (f *UserSettingFilter) WhereRole(p entql.StringP)

WhereRole applies the entql string predicate on the role field.

func (*UserSettingFilter) WhereSilencedAt

func (f *UserSettingFilter) WhereSilencedAt(p entql.TimeP)

WhereSilencedAt applies the entql time.Time predicate on the silenced_at field.

func (*UserSettingFilter) WhereStatus

func (f *UserSettingFilter) WhereStatus(p entql.StringP)

WhereStatus applies the entql string predicate on the status field.

func (*UserSettingFilter) WhereSuspendedAt

func (f *UserSettingFilter) WhereSuspendedAt(p entql.TimeP)

WhereSuspendedAt applies the entql time.Time predicate on the suspended_at field.

func (*UserSettingFilter) WhereTags

func (f *UserSettingFilter) WhereTags(p entql.BytesP)

WhereTags applies the entql json.RawMessage predicate on the tags field.

func (*UserSettingFilter) WhereUpdatedAt

func (f *UserSettingFilter) WhereUpdatedAt(p entql.TimeP)

WhereUpdatedAt applies the entql time.Time predicate on the updated_at field.

func (*UserSettingFilter) WhereUpdatedBy

func (f *UserSettingFilter) WhereUpdatedBy(p entql.StringP)

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type UserSettingGroupBy

type UserSettingGroupBy struct {
	// contains filtered or unexported fields
}

UserSettingGroupBy is the group-by builder for UserSetting entities.

func (*UserSettingGroupBy) Aggregate

func (usgb *UserSettingGroupBy) Aggregate(fns ...AggregateFunc) *UserSettingGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserSettingGroupBy) Bool

func (s *UserSettingGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) BoolX

func (s *UserSettingGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserSettingGroupBy) Bools

func (s *UserSettingGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) BoolsX

func (s *UserSettingGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserSettingGroupBy) Float64

func (s *UserSettingGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) Float64X

func (s *UserSettingGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserSettingGroupBy) Float64s

func (s *UserSettingGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) Float64sX

func (s *UserSettingGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserSettingGroupBy) Int

func (s *UserSettingGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) IntX

func (s *UserSettingGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserSettingGroupBy) Ints

func (s *UserSettingGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) IntsX

func (s *UserSettingGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserSettingGroupBy) Scan

func (usgb *UserSettingGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserSettingGroupBy) ScanX

func (s *UserSettingGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserSettingGroupBy) String

func (s *UserSettingGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) StringX

func (s *UserSettingGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserSettingGroupBy) Strings

func (s *UserSettingGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserSettingGroupBy) StringsX

func (s *UserSettingGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserSettingMutation

type UserSettingMutation struct {
	// contains filtered or unexported fields
}

UserSettingMutation represents an operation that mutates the UserSetting nodes in the graph.

func (*UserSettingMutation) AddField

func (m *UserSettingMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserSettingMutation) AddedEdges

func (m *UserSettingMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserSettingMutation) AddedField

func (m *UserSettingMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserSettingMutation) AddedFields

func (m *UserSettingMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserSettingMutation) AddedIDs

func (m *UserSettingMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserSettingMutation) AppendPermissions

func (m *UserSettingMutation) AppendPermissions(s []string)

AppendPermissions adds s to the "permissions" field.

func (*UserSettingMutation) AppendTags

func (m *UserSettingMutation) AppendTags(s []string)

AppendTags adds s to the "tags" field.

func (*UserSettingMutation) AppendedPermissions

func (m *UserSettingMutation) AppendedPermissions() ([]string, bool)

AppendedPermissions returns the list of values that were appended to the "permissions" field in this mutation.

func (*UserSettingMutation) AppendedTags

func (m *UserSettingMutation) AppendedTags() ([]string, bool)

AppendedTags returns the list of values that were appended to the "tags" field in this mutation.

func (*UserSettingMutation) ClearCreatedBy

func (m *UserSettingMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*UserSettingMutation) ClearDeletedAt

func (m *UserSettingMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*UserSettingMutation) ClearDeletedBy

func (m *UserSettingMutation) ClearDeletedBy()

ClearDeletedBy clears the value of the "deleted_by" field.

func (*UserSettingMutation) ClearEdge

func (m *UserSettingMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*UserSettingMutation) ClearField

func (m *UserSettingMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserSettingMutation) ClearRecoveryCode

func (m *UserSettingMutation) ClearRecoveryCode()

ClearRecoveryCode clears the value of the "recovery_code" field.

func (*UserSettingMutation) ClearSilencedAt

func (m *UserSettingMutation) ClearSilencedAt()

ClearSilencedAt clears the value of the "silenced_at" field.

func (*UserSettingMutation) ClearSuspendedAt

func (m *UserSettingMutation) ClearSuspendedAt()

ClearSuspendedAt clears the value of the "suspended_at" field.

func (*UserSettingMutation) ClearUpdatedBy

func (m *UserSettingMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserSettingMutation) ClearUser

func (m *UserSettingMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*UserSettingMutation) ClearedEdges

func (m *UserSettingMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserSettingMutation) ClearedFields

func (m *UserSettingMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserSettingMutation) Client

func (m UserSettingMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*UserSettingMutation) CreatedAt

func (m *UserSettingMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserSettingMutation) CreatedBy

func (m *UserSettingMutation) CreatedBy() (r string, exists bool)

CreatedBy returns the value of the "created_by" field in the mutation.

func (*UserSettingMutation) CreatedByCleared

func (m *UserSettingMutation) CreatedByCleared() bool

CreatedByCleared returns if the "created_by" field was cleared in this mutation.

func (*UserSettingMutation) DeletedAt

func (m *UserSettingMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*UserSettingMutation) DeletedAtCleared

func (m *UserSettingMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*UserSettingMutation) DeletedBy

func (m *UserSettingMutation) DeletedBy() (r string, exists bool)

DeletedBy returns the value of the "deleted_by" field in the mutation.

func (*UserSettingMutation) DeletedByCleared

func (m *UserSettingMutation) DeletedByCleared() bool

DeletedByCleared returns if the "deleted_by" field was cleared in this mutation.

func (*UserSettingMutation) EdgeCleared

func (m *UserSettingMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserSettingMutation) EmailConfirmed

func (m *UserSettingMutation) EmailConfirmed() (r bool, exists bool)

EmailConfirmed returns the value of the "email_confirmed" field in the mutation.

func (*UserSettingMutation) Field

func (m *UserSettingMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserSettingMutation) FieldCleared

func (m *UserSettingMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserSettingMutation) Fields

func (m *UserSettingMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*UserSettingMutation) Filter

Filter returns an entql.Where implementation to apply filters on the UserSettingMutation builder.

func (*UserSettingMutation) ID

func (m *UserSettingMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*UserSettingMutation) IDs

func (m *UserSettingMutation) IDs(ctx context.Context) ([]string, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserSettingMutation) Locked

func (m *UserSettingMutation) Locked() (r bool, exists bool)

Locked returns the value of the "locked" field in the mutation.

func (*UserSettingMutation) OldCreatedAt

func (m *UserSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldCreatedBy

func (m *UserSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error)

OldCreatedBy returns the old "created_by" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldDeletedAt

func (m *UserSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldDeletedBy

func (m *UserSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error)

OldDeletedBy returns the old "deleted_by" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldEmailConfirmed

func (m *UserSettingMutation) OldEmailConfirmed(ctx context.Context) (v bool, err error)

OldEmailConfirmed returns the old "email_confirmed" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldField

func (m *UserSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*UserSettingMutation) OldLocked

func (m *UserSettingMutation) OldLocked(ctx context.Context) (v bool, err error)

OldLocked returns the old "locked" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldPermissions

func (m *UserSettingMutation) OldPermissions(ctx context.Context) (v []string, err error)

OldPermissions returns the old "permissions" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldRecoveryCode

func (m *UserSettingMutation) OldRecoveryCode(ctx context.Context) (v *string, err error)

OldRecoveryCode returns the old "recovery_code" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldRole

func (m *UserSettingMutation) OldRole(ctx context.Context) (v usersetting.Role, err error)

OldRole returns the old "role" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldSilencedAt

func (m *UserSettingMutation) OldSilencedAt(ctx context.Context) (v *time.Time, err error)

OldSilencedAt returns the old "silenced_at" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldStatus

func (m *UserSettingMutation) OldStatus(ctx context.Context) (v usersetting.Status, err error)

OldStatus returns the old "status" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldSuspendedAt

func (m *UserSettingMutation) OldSuspendedAt(ctx context.Context) (v *time.Time, err error)

OldSuspendedAt returns the old "suspended_at" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldTags

func (m *UserSettingMutation) OldTags(ctx context.Context) (v []string, err error)

OldTags returns the old "tags" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldUpdatedAt

func (m *UserSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) OldUpdatedBy

func (m *UserSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error)

OldUpdatedBy returns the old "updated_by" field's value of the UserSetting entity. If the UserSetting object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserSettingMutation) Op

func (m *UserSettingMutation) Op() Op

Op returns the operation name.

func (*UserSettingMutation) Permissions

func (m *UserSettingMutation) Permissions() (r []string, exists bool)

Permissions returns the value of the "permissions" field in the mutation.

func (*UserSettingMutation) RecoveryCode

func (m *UserSettingMutation) RecoveryCode() (r string, exists bool)

RecoveryCode returns the value of the "recovery_code" field in the mutation.

func (*UserSettingMutation) RecoveryCodeCleared

func (m *UserSettingMutation) RecoveryCodeCleared() bool

RecoveryCodeCleared returns if the "recovery_code" field was cleared in this mutation.

func (*UserSettingMutation) RemovedEdges

func (m *UserSettingMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserSettingMutation) RemovedIDs

func (m *UserSettingMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*UserSettingMutation) ResetCreatedAt

func (m *UserSettingMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserSettingMutation) ResetCreatedBy

func (m *UserSettingMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*UserSettingMutation) ResetDeletedAt

func (m *UserSettingMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*UserSettingMutation) ResetDeletedBy

func (m *UserSettingMutation) ResetDeletedBy()

ResetDeletedBy resets all changes to the "deleted_by" field.

func (*UserSettingMutation) ResetEdge

func (m *UserSettingMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*UserSettingMutation) ResetEmailConfirmed

func (m *UserSettingMutation) ResetEmailConfirmed()

ResetEmailConfirmed resets all changes to the "email_confirmed" field.

func (*UserSettingMutation) ResetField

func (m *UserSettingMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserSettingMutation) ResetLocked

func (m *UserSettingMutation) ResetLocked()

ResetLocked resets all changes to the "locked" field.

func (*UserSettingMutation) ResetPermissions

func (m *UserSettingMutation) ResetPermissions()

ResetPermissions resets all changes to the "permissions" field.

func (*UserSettingMutation) ResetRecoveryCode

func (m *UserSettingMutation) ResetRecoveryCode()

ResetRecoveryCode resets all changes to the "recovery_code" field.

func (*UserSettingMutation) ResetRole

func (m *UserSettingMutation) ResetRole()

ResetRole resets all changes to the "role" field.

func (*UserSettingMutation) ResetSilencedAt

func (m *UserSettingMutation) ResetSilencedAt()

ResetSilencedAt resets all changes to the "silenced_at" field.

func (*UserSettingMutation) ResetStatus

func (m *UserSettingMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*UserSettingMutation) ResetSuspendedAt

func (m *UserSettingMutation) ResetSuspendedAt()

ResetSuspendedAt resets all changes to the "suspended_at" field.

func (*UserSettingMutation) ResetTags

func (m *UserSettingMutation) ResetTags()

ResetTags resets all changes to the "tags" field.

func (*UserSettingMutation) ResetUpdatedAt

func (m *UserSettingMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserSettingMutation) ResetUpdatedBy

func (m *UserSettingMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*UserSettingMutation) ResetUser

func (m *UserSettingMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*UserSettingMutation) Role

func (m *UserSettingMutation) Role() (r usersetting.Role, exists bool)

Role returns the value of the "role" field in the mutation.

func (*UserSettingMutation) SetCreatedAt

func (m *UserSettingMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserSettingMutation) SetCreatedBy

func (m *UserSettingMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*UserSettingMutation) SetDeletedAt

func (m *UserSettingMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*UserSettingMutation) SetDeletedBy

func (m *UserSettingMutation) SetDeletedBy(s string)

SetDeletedBy sets the "deleted_by" field.

func (*UserSettingMutation) SetEmailConfirmed

func (m *UserSettingMutation) SetEmailConfirmed(b bool)

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingMutation) SetField

func (m *UserSettingMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserSettingMutation) SetID

func (m *UserSettingMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of UserSetting entities.

func (*UserSettingMutation) SetLocked

func (m *UserSettingMutation) SetLocked(b bool)

SetLocked sets the "locked" field.

func (*UserSettingMutation) SetOp

func (m *UserSettingMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserSettingMutation) SetPermissions

func (m *UserSettingMutation) SetPermissions(s []string)

SetPermissions sets the "permissions" field.

func (*UserSettingMutation) SetRecoveryCode

func (m *UserSettingMutation) SetRecoveryCode(s string)

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingMutation) SetRole

func (m *UserSettingMutation) SetRole(u usersetting.Role)

SetRole sets the "role" field.

func (*UserSettingMutation) SetSilencedAt

func (m *UserSettingMutation) SetSilencedAt(t time.Time)

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingMutation) SetStatus

func (m *UserSettingMutation) SetStatus(u usersetting.Status)

SetStatus sets the "status" field.

func (*UserSettingMutation) SetSuspendedAt

func (m *UserSettingMutation) SetSuspendedAt(t time.Time)

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingMutation) SetTags

func (m *UserSettingMutation) SetTags(s []string)

SetTags sets the "tags" field.

func (*UserSettingMutation) SetUpdatedAt

func (m *UserSettingMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingMutation) SetUpdatedBy

func (m *UserSettingMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingMutation) SetUserID

func (m *UserSettingMutation) SetUserID(id string)

SetUserID sets the "user" edge to the User entity by id.

func (*UserSettingMutation) SilencedAt

func (m *UserSettingMutation) SilencedAt() (r time.Time, exists bool)

SilencedAt returns the value of the "silenced_at" field in the mutation.

func (*UserSettingMutation) SilencedAtCleared

func (m *UserSettingMutation) SilencedAtCleared() bool

SilencedAtCleared returns if the "silenced_at" field was cleared in this mutation.

func (*UserSettingMutation) Status

func (m *UserSettingMutation) Status() (r usersetting.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (*UserSettingMutation) SuspendedAt

func (m *UserSettingMutation) SuspendedAt() (r time.Time, exists bool)

SuspendedAt returns the value of the "suspended_at" field in the mutation.

func (*UserSettingMutation) SuspendedAtCleared

func (m *UserSettingMutation) SuspendedAtCleared() bool

SuspendedAtCleared returns if the "suspended_at" field was cleared in this mutation.

func (*UserSettingMutation) Tags

func (m *UserSettingMutation) Tags() (r []string, exists bool)

Tags returns the value of the "tags" field in the mutation.

func (UserSettingMutation) Tx

func (m UserSettingMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserSettingMutation) Type

func (m *UserSettingMutation) Type() string

Type returns the node type of this mutation (UserSetting).

func (*UserSettingMutation) UpdatedAt

func (m *UserSettingMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserSettingMutation) UpdatedBy

func (m *UserSettingMutation) UpdatedBy() (r string, exists bool)

UpdatedBy returns the value of the "updated_by" field in the mutation.

func (*UserSettingMutation) UpdatedByCleared

func (m *UserSettingMutation) UpdatedByCleared() bool

UpdatedByCleared returns if the "updated_by" field was cleared in this mutation.

func (*UserSettingMutation) UserCleared

func (m *UserSettingMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*UserSettingMutation) UserID

func (m *UserSettingMutation) UserID() (id string, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*UserSettingMutation) UserIDs

func (m *UserSettingMutation) UserIDs() (ids []string)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*UserSettingMutation) Where

func (m *UserSettingMutation) Where(ps ...predicate.UserSetting)

Where appends a list predicates to the UserSettingMutation builder.

func (*UserSettingMutation) WhereP

func (m *UserSettingMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserSettingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserSettingOrder

type UserSettingOrder struct {
	Direction OrderDirection         `json:"direction"`
	Field     *UserSettingOrderField `json:"field"`
}

UserSettingOrder defines the ordering of UserSetting.

type UserSettingOrderField

type UserSettingOrderField struct {
	// Value extracts the ordering value from the given UserSetting.
	Value func(*UserSetting) (ent.Value, error)
	// contains filtered or unexported fields
}

UserSettingOrderField defines the ordering field of UserSetting.

type UserSettingPaginateOption

type UserSettingPaginateOption func(*usersettingPager) error

UserSettingPaginateOption enables pagination customization.

func WithUserSettingFilter

func WithUserSettingFilter(filter func(*UserSettingQuery) (*UserSettingQuery, error)) UserSettingPaginateOption

WithUserSettingFilter configures pagination filter.

func WithUserSettingOrder

func WithUserSettingOrder(order *UserSettingOrder) UserSettingPaginateOption

WithUserSettingOrder configures pagination ordering.

type UserSettingQuery

type UserSettingQuery struct {
	// contains filtered or unexported fields
}

UserSettingQuery is the builder for querying UserSetting entities.

func (*UserSettingQuery) Aggregate

func (usq *UserSettingQuery) Aggregate(fns ...AggregateFunc) *UserSettingSelect

Aggregate returns a UserSettingSelect configured with the given aggregations.

func (*UserSettingQuery) All

func (usq *UserSettingQuery) All(ctx context.Context) ([]*UserSetting, error)

All executes the query and returns a list of UserSettings.

func (*UserSettingQuery) AllX

func (usq *UserSettingQuery) AllX(ctx context.Context) []*UserSetting

AllX is like All, but panics if an error occurs.

func (*UserSettingQuery) Clone

func (usq *UserSettingQuery) Clone() *UserSettingQuery

Clone returns a duplicate of the UserSettingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserSettingQuery) CollectFields

func (us *UserSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserSettingQuery, error)

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*UserSettingQuery) Count

func (usq *UserSettingQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserSettingQuery) CountX

func (usq *UserSettingQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserSettingQuery) Exist

func (usq *UserSettingQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserSettingQuery) ExistX

func (usq *UserSettingQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserSettingQuery) Filter

func (usq *UserSettingQuery) Filter() *UserSettingFilter

Filter returns a Filter implementation to apply filters on the UserSettingQuery builder.

func (*UserSettingQuery) First

func (usq *UserSettingQuery) First(ctx context.Context) (*UserSetting, error)

First returns the first UserSetting entity from the query. Returns a *NotFoundError when no UserSetting was found.

func (*UserSettingQuery) FirstID

func (usq *UserSettingQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first UserSetting ID from the query. Returns a *NotFoundError when no UserSetting ID was found.

func (*UserSettingQuery) FirstIDX

func (usq *UserSettingQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserSettingQuery) FirstX

func (usq *UserSettingQuery) FirstX(ctx context.Context) *UserSetting

FirstX is like First, but panics if an error occurs.

func (*UserSettingQuery) GroupBy

func (usq *UserSettingQuery) GroupBy(field string, fields ...string) *UserSettingGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.UserSetting.Query().
	GroupBy(usersetting.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*UserSettingQuery) IDs

func (usq *UserSettingQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of UserSetting IDs.

func (*UserSettingQuery) IDsX

func (usq *UserSettingQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*UserSettingQuery) Limit

func (usq *UserSettingQuery) Limit(limit int) *UserSettingQuery

Limit the number of records to be returned by this query.

func (*UserSettingQuery) Offset

func (usq *UserSettingQuery) Offset(offset int) *UserSettingQuery

Offset to start from.

func (*UserSettingQuery) Only

func (usq *UserSettingQuery) Only(ctx context.Context) (*UserSetting, error)

Only returns a single UserSetting entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserSetting entity is found. Returns a *NotFoundError when no UserSetting entities are found.

func (*UserSettingQuery) OnlyID

func (usq *UserSettingQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only UserSetting ID in the query. Returns a *NotSingularError when more than one UserSetting ID is found. Returns a *NotFoundError when no entities are found.

func (*UserSettingQuery) OnlyIDX

func (usq *UserSettingQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserSettingQuery) OnlyX

func (usq *UserSettingQuery) OnlyX(ctx context.Context) *UserSetting

OnlyX is like Only, but panics if an error occurs.

func (*UserSettingQuery) Order

Order specifies how the records should be ordered.

func (*UserSettingQuery) Paginate

func (us *UserSettingQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...UserSettingPaginateOption,
) (*UserSettingConnection, error)

Paginate executes the query and returns a relay based cursor connection to UserSetting.

func (*UserSettingQuery) QueryUser

func (usq *UserSettingQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*UserSettingQuery) Select

func (usq *UserSettingQuery) Select(fields ...string) *UserSettingSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.UserSetting.Query().
	Select(usersetting.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserSettingQuery) Unique

func (usq *UserSettingQuery) Unique(unique bool) *UserSettingQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*UserSettingQuery) Where

Where adds a new predicate for the UserSettingQuery builder.

func (*UserSettingQuery) WithUser

func (usq *UserSettingQuery) WithUser(opts ...func(*UserQuery)) *UserSettingQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type UserSettingSelect

type UserSettingSelect struct {
	*UserSettingQuery
	// contains filtered or unexported fields
}

UserSettingSelect is the builder for selecting fields of UserSetting entities.

func (*UserSettingSelect) Aggregate

func (uss *UserSettingSelect) Aggregate(fns ...AggregateFunc) *UserSettingSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSettingSelect) Bool

func (s *UserSettingSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) BoolX

func (s *UserSettingSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserSettingSelect) Bools

func (s *UserSettingSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) BoolsX

func (s *UserSettingSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserSettingSelect) Float64

func (s *UserSettingSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) Float64X

func (s *UserSettingSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserSettingSelect) Float64s

func (s *UserSettingSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) Float64sX

func (s *UserSettingSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserSettingSelect) Int

func (s *UserSettingSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) IntX

func (s *UserSettingSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserSettingSelect) Ints

func (s *UserSettingSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) IntsX

func (s *UserSettingSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserSettingSelect) Scan

func (uss *UserSettingSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserSettingSelect) ScanX

func (s *UserSettingSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserSettingSelect) String

func (s *UserSettingSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) StringX

func (s *UserSettingSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserSettingSelect) Strings

func (s *UserSettingSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserSettingSelect) StringsX

func (s *UserSettingSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserSettingUpdate

type UserSettingUpdate struct {
	// contains filtered or unexported fields
}

UserSettingUpdate is the builder for updating UserSetting entities.

func (*UserSettingUpdate) AppendPermissions

func (usu *UserSettingUpdate) AppendPermissions(s []string) *UserSettingUpdate

AppendPermissions appends s to the "permissions" field.

func (*UserSettingUpdate) AppendTags

func (usu *UserSettingUpdate) AppendTags(s []string) *UserSettingUpdate

AppendTags appends s to the "tags" field.

func (*UserSettingUpdate) ClearDeletedAt

func (usu *UserSettingUpdate) ClearDeletedAt() *UserSettingUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*UserSettingUpdate) ClearDeletedBy

func (usu *UserSettingUpdate) ClearDeletedBy() *UserSettingUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*UserSettingUpdate) ClearRecoveryCode

func (usu *UserSettingUpdate) ClearRecoveryCode() *UserSettingUpdate

ClearRecoveryCode clears the value of the "recovery_code" field.

func (*UserSettingUpdate) ClearSilencedAt

func (usu *UserSettingUpdate) ClearSilencedAt() *UserSettingUpdate

ClearSilencedAt clears the value of the "silenced_at" field.

func (*UserSettingUpdate) ClearSuspendedAt

func (usu *UserSettingUpdate) ClearSuspendedAt() *UserSettingUpdate

ClearSuspendedAt clears the value of the "suspended_at" field.

func (*UserSettingUpdate) ClearUpdatedBy

func (usu *UserSettingUpdate) ClearUpdatedBy() *UserSettingUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserSettingUpdate) ClearUser

func (usu *UserSettingUpdate) ClearUser() *UserSettingUpdate

ClearUser clears the "user" edge to the User entity.

func (*UserSettingUpdate) Exec

func (usu *UserSettingUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserSettingUpdate) ExecX

func (usu *UserSettingUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserSettingUpdate) Mutation

func (usu *UserSettingUpdate) Mutation() *UserSettingMutation

Mutation returns the UserSettingMutation object of the builder.

func (*UserSettingUpdate) Save

func (usu *UserSettingUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserSettingUpdate) SaveX

func (usu *UserSettingUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserSettingUpdate) SetDeletedAt

func (usu *UserSettingUpdate) SetDeletedAt(t time.Time) *UserSettingUpdate

SetDeletedAt sets the "deleted_at" field.

func (*UserSettingUpdate) SetDeletedBy

func (usu *UserSettingUpdate) SetDeletedBy(s string) *UserSettingUpdate

SetDeletedBy sets the "deleted_by" field.

func (*UserSettingUpdate) SetEmailConfirmed

func (usu *UserSettingUpdate) SetEmailConfirmed(b bool) *UserSettingUpdate

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingUpdate) SetInput

SetInput applies the change-set in the UpdateUserSettingInput on the UserSettingUpdate builder.

func (*UserSettingUpdate) SetLocked

func (usu *UserSettingUpdate) SetLocked(b bool) *UserSettingUpdate

SetLocked sets the "locked" field.

func (*UserSettingUpdate) SetNillableDeletedAt

func (usu *UserSettingUpdate) SetNillableDeletedAt(t *time.Time) *UserSettingUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableDeletedBy

func (usu *UserSettingUpdate) SetNillableDeletedBy(s *string) *UserSettingUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableEmailConfirmed

func (usu *UserSettingUpdate) SetNillableEmailConfirmed(b *bool) *UserSettingUpdate

SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableLocked

func (usu *UserSettingUpdate) SetNillableLocked(b *bool) *UserSettingUpdate

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableRecoveryCode

func (usu *UserSettingUpdate) SetNillableRecoveryCode(s *string) *UserSettingUpdate

SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableRole

func (usu *UserSettingUpdate) SetNillableRole(u *usersetting.Role) *UserSettingUpdate

SetNillableRole sets the "role" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableSilencedAt

func (usu *UserSettingUpdate) SetNillableSilencedAt(t *time.Time) *UserSettingUpdate

SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableStatus

func (usu *UserSettingUpdate) SetNillableStatus(u *usersetting.Status) *UserSettingUpdate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableSuspendedAt

func (usu *UserSettingUpdate) SetNillableSuspendedAt(t *time.Time) *UserSettingUpdate

SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableUpdatedBy

func (usu *UserSettingUpdate) SetNillableUpdatedBy(s *string) *UserSettingUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*UserSettingUpdate) SetNillableUserID

func (usu *UserSettingUpdate) SetNillableUserID(id *string) *UserSettingUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserSettingUpdate) SetPermissions

func (usu *UserSettingUpdate) SetPermissions(s []string) *UserSettingUpdate

SetPermissions sets the "permissions" field.

func (*UserSettingUpdate) SetRecoveryCode

func (usu *UserSettingUpdate) SetRecoveryCode(s string) *UserSettingUpdate

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingUpdate) SetRole

SetRole sets the "role" field.

func (*UserSettingUpdate) SetSilencedAt

func (usu *UserSettingUpdate) SetSilencedAt(t time.Time) *UserSettingUpdate

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingUpdate) SetStatus

SetStatus sets the "status" field.

func (*UserSettingUpdate) SetSuspendedAt

func (usu *UserSettingUpdate) SetSuspendedAt(t time.Time) *UserSettingUpdate

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingUpdate) SetTags

func (usu *UserSettingUpdate) SetTags(s []string) *UserSettingUpdate

SetTags sets the "tags" field.

func (*UserSettingUpdate) SetUpdatedAt

func (usu *UserSettingUpdate) SetUpdatedAt(t time.Time) *UserSettingUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingUpdate) SetUpdatedBy

func (usu *UserSettingUpdate) SetUpdatedBy(s string) *UserSettingUpdate

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingUpdate) SetUser

func (usu *UserSettingUpdate) SetUser(u *User) *UserSettingUpdate

SetUser sets the "user" edge to the User entity.

func (*UserSettingUpdate) SetUserID

func (usu *UserSettingUpdate) SetUserID(id string) *UserSettingUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*UserSettingUpdate) Where

Where appends a list predicates to the UserSettingUpdate builder.

type UserSettingUpdateOne

type UserSettingUpdateOne struct {
	// contains filtered or unexported fields
}

UserSettingUpdateOne is the builder for updating a single UserSetting entity.

func (*UserSettingUpdateOne) AppendPermissions

func (usuo *UserSettingUpdateOne) AppendPermissions(s []string) *UserSettingUpdateOne

AppendPermissions appends s to the "permissions" field.

func (*UserSettingUpdateOne) AppendTags

func (usuo *UserSettingUpdateOne) AppendTags(s []string) *UserSettingUpdateOne

AppendTags appends s to the "tags" field.

func (*UserSettingUpdateOne) ClearDeletedAt

func (usuo *UserSettingUpdateOne) ClearDeletedAt() *UserSettingUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*UserSettingUpdateOne) ClearDeletedBy

func (usuo *UserSettingUpdateOne) ClearDeletedBy() *UserSettingUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*UserSettingUpdateOne) ClearRecoveryCode

func (usuo *UserSettingUpdateOne) ClearRecoveryCode() *UserSettingUpdateOne

ClearRecoveryCode clears the value of the "recovery_code" field.

func (*UserSettingUpdateOne) ClearSilencedAt

func (usuo *UserSettingUpdateOne) ClearSilencedAt() *UserSettingUpdateOne

ClearSilencedAt clears the value of the "silenced_at" field.

func (*UserSettingUpdateOne) ClearSuspendedAt

func (usuo *UserSettingUpdateOne) ClearSuspendedAt() *UserSettingUpdateOne

ClearSuspendedAt clears the value of the "suspended_at" field.

func (*UserSettingUpdateOne) ClearUpdatedBy

func (usuo *UserSettingUpdateOne) ClearUpdatedBy() *UserSettingUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserSettingUpdateOne) ClearUser

func (usuo *UserSettingUpdateOne) ClearUser() *UserSettingUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*UserSettingUpdateOne) Exec

func (usuo *UserSettingUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserSettingUpdateOne) ExecX

func (usuo *UserSettingUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserSettingUpdateOne) Mutation

func (usuo *UserSettingUpdateOne) Mutation() *UserSettingMutation

Mutation returns the UserSettingMutation object of the builder.

func (*UserSettingUpdateOne) Save

Save executes the query and returns the updated UserSetting entity.

func (*UserSettingUpdateOne) SaveX

func (usuo *UserSettingUpdateOne) SaveX(ctx context.Context) *UserSetting

SaveX is like Save, but panics if an error occurs.

func (*UserSettingUpdateOne) Select

func (usuo *UserSettingUpdateOne) Select(field string, fields ...string) *UserSettingUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserSettingUpdateOne) SetDeletedAt

func (usuo *UserSettingUpdateOne) SetDeletedAt(t time.Time) *UserSettingUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*UserSettingUpdateOne) SetDeletedBy

func (usuo *UserSettingUpdateOne) SetDeletedBy(s string) *UserSettingUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*UserSettingUpdateOne) SetEmailConfirmed

func (usuo *UserSettingUpdateOne) SetEmailConfirmed(b bool) *UserSettingUpdateOne

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingUpdateOne) SetInput

SetInput applies the change-set in the UpdateUserSettingInput on the UserSettingUpdateOne builder.

func (*UserSettingUpdateOne) SetLocked

func (usuo *UserSettingUpdateOne) SetLocked(b bool) *UserSettingUpdateOne

SetLocked sets the "locked" field.

func (*UserSettingUpdateOne) SetNillableDeletedAt

func (usuo *UserSettingUpdateOne) SetNillableDeletedAt(t *time.Time) *UserSettingUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableDeletedBy

func (usuo *UserSettingUpdateOne) SetNillableDeletedBy(s *string) *UserSettingUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableEmailConfirmed

func (usuo *UserSettingUpdateOne) SetNillableEmailConfirmed(b *bool) *UserSettingUpdateOne

SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableLocked

func (usuo *UserSettingUpdateOne) SetNillableLocked(b *bool) *UserSettingUpdateOne

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableRecoveryCode

func (usuo *UserSettingUpdateOne) SetNillableRecoveryCode(s *string) *UserSettingUpdateOne

SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableRole

func (usuo *UserSettingUpdateOne) SetNillableRole(u *usersetting.Role) *UserSettingUpdateOne

SetNillableRole sets the "role" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableSilencedAt

func (usuo *UserSettingUpdateOne) SetNillableSilencedAt(t *time.Time) *UserSettingUpdateOne

SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableStatus

func (usuo *UserSettingUpdateOne) SetNillableStatus(u *usersetting.Status) *UserSettingUpdateOne

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableSuspendedAt

func (usuo *UserSettingUpdateOne) SetNillableSuspendedAt(t *time.Time) *UserSettingUpdateOne

SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableUpdatedBy

func (usuo *UserSettingUpdateOne) SetNillableUpdatedBy(s *string) *UserSettingUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*UserSettingUpdateOne) SetNillableUserID

func (usuo *UserSettingUpdateOne) SetNillableUserID(id *string) *UserSettingUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserSettingUpdateOne) SetPermissions

func (usuo *UserSettingUpdateOne) SetPermissions(s []string) *UserSettingUpdateOne

SetPermissions sets the "permissions" field.

func (*UserSettingUpdateOne) SetRecoveryCode

func (usuo *UserSettingUpdateOne) SetRecoveryCode(s string) *UserSettingUpdateOne

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingUpdateOne) SetRole

SetRole sets the "role" field.

func (*UserSettingUpdateOne) SetSilencedAt

func (usuo *UserSettingUpdateOne) SetSilencedAt(t time.Time) *UserSettingUpdateOne

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*UserSettingUpdateOne) SetSuspendedAt

func (usuo *UserSettingUpdateOne) SetSuspendedAt(t time.Time) *UserSettingUpdateOne

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingUpdateOne) SetTags

func (usuo *UserSettingUpdateOne) SetTags(s []string) *UserSettingUpdateOne

SetTags sets the "tags" field.

func (*UserSettingUpdateOne) SetUpdatedAt

func (usuo *UserSettingUpdateOne) SetUpdatedAt(t time.Time) *UserSettingUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingUpdateOne) SetUpdatedBy

func (usuo *UserSettingUpdateOne) SetUpdatedBy(s string) *UserSettingUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingUpdateOne) SetUser

func (usuo *UserSettingUpdateOne) SetUser(u *User) *UserSettingUpdateOne

SetUser sets the "user" edge to the User entity.

func (*UserSettingUpdateOne) SetUserID

func (usuo *UserSettingUpdateOne) SetUserID(id string) *UserSettingUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*UserSettingUpdateOne) Where

Where appends a list predicates to the UserSettingUpdate builder.

type UserSettingWhereInput

type UserSettingWhereInput struct {
	Predicates []predicate.UserSetting  `json:"-"`
	Not        *UserSettingWhereInput   `json:"not,omitempty"`
	Or         []*UserSettingWhereInput `json:"or,omitempty"`
	And        []*UserSettingWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "locked" field predicates.
	Locked    *bool `json:"locked,omitempty"`
	LockedNEQ *bool `json:"lockedNEQ,omitempty"`

	// "silenced_at" field predicates.
	SilencedAt       *time.Time  `json:"silencedAt,omitempty"`
	SilencedAtNEQ    *time.Time  `json:"silencedAtNEQ,omitempty"`
	SilencedAtIn     []time.Time `json:"silencedAtIn,omitempty"`
	SilencedAtNotIn  []time.Time `json:"silencedAtNotIn,omitempty"`
	SilencedAtGT     *time.Time  `json:"silencedAtGT,omitempty"`
	SilencedAtGTE    *time.Time  `json:"silencedAtGTE,omitempty"`
	SilencedAtLT     *time.Time  `json:"silencedAtLT,omitempty"`
	SilencedAtLTE    *time.Time  `json:"silencedAtLTE,omitempty"`
	SilencedAtIsNil  bool        `json:"silencedAtIsNil,omitempty"`
	SilencedAtNotNil bool        `json:"silencedAtNotNil,omitempty"`

	// "suspended_at" field predicates.
	SuspendedAt       *time.Time  `json:"suspendedAt,omitempty"`
	SuspendedAtNEQ    *time.Time  `json:"suspendedAtNEQ,omitempty"`
	SuspendedAtIn     []time.Time `json:"suspendedAtIn,omitempty"`
	SuspendedAtNotIn  []time.Time `json:"suspendedAtNotIn,omitempty"`
	SuspendedAtGT     *time.Time  `json:"suspendedAtGT,omitempty"`
	SuspendedAtGTE    *time.Time  `json:"suspendedAtGTE,omitempty"`
	SuspendedAtLT     *time.Time  `json:"suspendedAtLT,omitempty"`
	SuspendedAtLTE    *time.Time  `json:"suspendedAtLTE,omitempty"`
	SuspendedAtIsNil  bool        `json:"suspendedAtIsNil,omitempty"`
	SuspendedAtNotNil bool        `json:"suspendedAtNotNil,omitempty"`

	// "recovery_code" field predicates.
	RecoveryCode             *string  `json:"recoveryCode,omitempty"`
	RecoveryCodeNEQ          *string  `json:"recoveryCodeNEQ,omitempty"`
	RecoveryCodeIn           []string `json:"recoveryCodeIn,omitempty"`
	RecoveryCodeNotIn        []string `json:"recoveryCodeNotIn,omitempty"`
	RecoveryCodeGT           *string  `json:"recoveryCodeGT,omitempty"`
	RecoveryCodeGTE          *string  `json:"recoveryCodeGTE,omitempty"`
	RecoveryCodeLT           *string  `json:"recoveryCodeLT,omitempty"`
	RecoveryCodeLTE          *string  `json:"recoveryCodeLTE,omitempty"`
	RecoveryCodeContains     *string  `json:"recoveryCodeContains,omitempty"`
	RecoveryCodeHasPrefix    *string  `json:"recoveryCodeHasPrefix,omitempty"`
	RecoveryCodeHasSuffix    *string  `json:"recoveryCodeHasSuffix,omitempty"`
	RecoveryCodeIsNil        bool     `json:"recoveryCodeIsNil,omitempty"`
	RecoveryCodeNotNil       bool     `json:"recoveryCodeNotNil,omitempty"`
	RecoveryCodeEqualFold    *string  `json:"recoveryCodeEqualFold,omitempty"`
	RecoveryCodeContainsFold *string  `json:"recoveryCodeContainsFold,omitempty"`

	// "status" field predicates.
	Status      *usersetting.Status  `json:"status,omitempty"`
	StatusNEQ   *usersetting.Status  `json:"statusNEQ,omitempty"`
	StatusIn    []usersetting.Status `json:"statusIn,omitempty"`
	StatusNotIn []usersetting.Status `json:"statusNotIn,omitempty"`

	// "role" field predicates.
	Role      *usersetting.Role  `json:"role,omitempty"`
	RoleNEQ   *usersetting.Role  `json:"roleNEQ,omitempty"`
	RoleIn    []usersetting.Role `json:"roleIn,omitempty"`
	RoleNotIn []usersetting.Role `json:"roleNotIn,omitempty"`

	// "email_confirmed" field predicates.
	EmailConfirmed    *bool `json:"emailConfirmed,omitempty"`
	EmailConfirmedNEQ *bool `json:"emailConfirmedNEQ,omitempty"`

	// "user" edge predicates.
	HasUser     *bool             `json:"hasUser,omitempty"`
	HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"`
}

UserSettingWhereInput represents a where input for filtering UserSetting queries.

func (*UserSettingWhereInput) AddPredicates

func (i *UserSettingWhereInput) AddPredicates(predicates ...predicate.UserSetting)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*UserSettingWhereInput) Filter

Filter applies the UserSettingWhereInput filter on the UserSettingQuery builder.

func (*UserSettingWhereInput) P

P returns a predicate for filtering usersettings. An error is returned if the input is empty or invalid.

type UserSettings

type UserSettings []*UserSetting

UserSettings is a parsable slice of UserSetting.

type UserUpdate

type UserUpdate struct {
	// contains filtered or unexported fields
}

UserUpdate is the builder for updating User entities.

func (*UserUpdate) AddEmailVerificationTokenIDs added in v0.2.2

func (uu *UserUpdate) AddEmailVerificationTokenIDs(ids ...string) *UserUpdate

AddEmailVerificationTokenIDs adds the "email_verification_tokens" edge to the EmailVerificationToken entity by IDs.

func (*UserUpdate) AddEmailVerificationTokens added in v0.2.2

func (uu *UserUpdate) AddEmailVerificationTokens(e ...*EmailVerificationToken) *UserUpdate

AddEmailVerificationTokens adds the "email_verification_tokens" edges to the EmailVerificationToken entity.

func (*UserUpdate) AddGroupIDs

func (uu *UserUpdate) AddGroupIDs(ids ...string) *UserUpdate

AddGroupIDs adds the "groups" edge to the Group entity by IDs.

func (*UserUpdate) AddGroups

func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate

AddGroups adds the "groups" edges to the Group entity.

func (*UserUpdate) AddOrganizationIDs

func (uu *UserUpdate) AddOrganizationIDs(ids ...string) *UserUpdate

AddOrganizationIDs adds the "organizations" edge to the Organization entity by IDs.

func (*UserUpdate) AddOrganizations

func (uu *UserUpdate) AddOrganizations(o ...*Organization) *UserUpdate

AddOrganizations adds the "organizations" edges to the Organization entity.

func (*UserUpdate) AddPersonalAccessTokenIDs

func (uu *UserUpdate) AddPersonalAccessTokenIDs(ids ...string) *UserUpdate

AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.

func (*UserUpdate) AddPersonalAccessTokens

func (uu *UserUpdate) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdate

AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserUpdate) AddSessionIDs

func (uu *UserUpdate) AddSessionIDs(ids ...string) *UserUpdate

AddSessionIDs adds the "sessions" edge to the Session entity by IDs.

func (*UserUpdate) AddSessions

func (uu *UserUpdate) AddSessions(s ...*Session) *UserUpdate

AddSessions adds the "sessions" edges to the Session entity.

func (*UserUpdate) ClearAvatarLocalFile

func (uu *UserUpdate) ClearAvatarLocalFile() *UserUpdate

ClearAvatarLocalFile clears the value of the "avatar_local_file" field.

func (*UserUpdate) ClearAvatarRemoteURL

func (uu *UserUpdate) ClearAvatarRemoteURL() *UserUpdate

ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field.

func (*UserUpdate) ClearAvatarUpdatedAt

func (uu *UserUpdate) ClearAvatarUpdatedAt() *UserUpdate

ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field.

func (*UserUpdate) ClearDeletedAt

func (uu *UserUpdate) ClearDeletedAt() *UserUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*UserUpdate) ClearDeletedBy

func (uu *UserUpdate) ClearDeletedBy() *UserUpdate

ClearDeletedBy clears the value of the "deleted_by" field.

func (*UserUpdate) ClearEmailVerificationTokens added in v0.2.2

func (uu *UserUpdate) ClearEmailVerificationTokens() *UserUpdate

ClearEmailVerificationTokens clears all "email_verification_tokens" edges to the EmailVerificationToken entity.

func (*UserUpdate) ClearGroups

func (uu *UserUpdate) ClearGroups() *UserUpdate

ClearGroups clears all "groups" edges to the Group entity.

func (*UserUpdate) ClearLastSeen

func (uu *UserUpdate) ClearLastSeen() *UserUpdate

ClearLastSeen clears the value of the "last_seen" field.

func (*UserUpdate) ClearOrganizations

func (uu *UserUpdate) ClearOrganizations() *UserUpdate

ClearOrganizations clears all "organizations" edges to the Organization entity.

func (*UserUpdate) ClearPassword

func (uu *UserUpdate) ClearPassword() *UserUpdate

ClearPassword clears the value of the "password" field.

func (*UserUpdate) ClearPersonalAccessTokens

func (uu *UserUpdate) ClearPersonalAccessTokens() *UserUpdate

ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserUpdate) ClearSessions

func (uu *UserUpdate) ClearSessions() *UserUpdate

ClearSessions clears all "sessions" edges to the Session entity.

func (*UserUpdate) ClearSetting

func (uu *UserUpdate) ClearSetting() *UserUpdate

ClearSetting clears the "setting" edge to the UserSetting entity.

func (*UserUpdate) ClearSub

func (uu *UserUpdate) ClearSub() *UserUpdate

ClearSub clears the value of the "sub" field.

func (*UserUpdate) ClearUpdatedBy

func (uu *UserUpdate) ClearUpdatedBy() *UserUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserUpdate) Exec

func (uu *UserUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpdate) ExecX

func (uu *UserUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdate) Mutation

func (uu *UserUpdate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdate) RemoveEmailVerificationTokenIDs added in v0.2.2

func (uu *UserUpdate) RemoveEmailVerificationTokenIDs(ids ...string) *UserUpdate

RemoveEmailVerificationTokenIDs removes the "email_verification_tokens" edge to EmailVerificationToken entities by IDs.

func (*UserUpdate) RemoveEmailVerificationTokens added in v0.2.2

func (uu *UserUpdate) RemoveEmailVerificationTokens(e ...*EmailVerificationToken) *UserUpdate

RemoveEmailVerificationTokens removes "email_verification_tokens" edges to EmailVerificationToken entities.

func (*UserUpdate) RemoveGroupIDs

func (uu *UserUpdate) RemoveGroupIDs(ids ...string) *UserUpdate

RemoveGroupIDs removes the "groups" edge to Group entities by IDs.

func (*UserUpdate) RemoveGroups

func (uu *UserUpdate) RemoveGroups(g ...*Group) *UserUpdate

RemoveGroups removes "groups" edges to Group entities.

func (*UserUpdate) RemoveOrganizationIDs

func (uu *UserUpdate) RemoveOrganizationIDs(ids ...string) *UserUpdate

RemoveOrganizationIDs removes the "organizations" edge to Organization entities by IDs.

func (*UserUpdate) RemoveOrganizations

func (uu *UserUpdate) RemoveOrganizations(o ...*Organization) *UserUpdate

RemoveOrganizations removes "organizations" edges to Organization entities.

func (*UserUpdate) RemovePersonalAccessTokenIDs

func (uu *UserUpdate) RemovePersonalAccessTokenIDs(ids ...string) *UserUpdate

RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs.

func (*UserUpdate) RemovePersonalAccessTokens

func (uu *UserUpdate) RemovePersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdate

RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities.

func (*UserUpdate) RemoveSessionIDs

func (uu *UserUpdate) RemoveSessionIDs(ids ...string) *UserUpdate

RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.

func (*UserUpdate) RemoveSessions

func (uu *UserUpdate) RemoveSessions(s ...*Session) *UserUpdate

RemoveSessions removes "sessions" edges to Session entities.

func (*UserUpdate) Save

func (uu *UserUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserUpdate) SaveX

func (uu *UserUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserUpdate) SetAvatarLocalFile

func (uu *UserUpdate) SetAvatarLocalFile(s string) *UserUpdate

SetAvatarLocalFile sets the "avatar_local_file" field.

func (*UserUpdate) SetAvatarRemoteURL

func (uu *UserUpdate) SetAvatarRemoteURL(s string) *UserUpdate

SetAvatarRemoteURL sets the "avatar_remote_url" field.

func (*UserUpdate) SetAvatarUpdatedAt

func (uu *UserUpdate) SetAvatarUpdatedAt(t time.Time) *UserUpdate

SetAvatarUpdatedAt sets the "avatar_updated_at" field.

func (*UserUpdate) SetDeletedAt

func (uu *UserUpdate) SetDeletedAt(t time.Time) *UserUpdate

SetDeletedAt sets the "deleted_at" field.

func (*UserUpdate) SetDeletedBy

func (uu *UserUpdate) SetDeletedBy(s string) *UserUpdate

SetDeletedBy sets the "deleted_by" field.

func (*UserUpdate) SetDisplayName

func (uu *UserUpdate) SetDisplayName(s string) *UserUpdate

SetDisplayName sets the "display_name" field.

func (*UserUpdate) SetEmail

func (uu *UserUpdate) SetEmail(s string) *UserUpdate

SetEmail sets the "email" field.

func (*UserUpdate) SetFirstName

func (uu *UserUpdate) SetFirstName(s string) *UserUpdate

SetFirstName sets the "first_name" field.

func (*UserUpdate) SetInput

func (c *UserUpdate) SetInput(i UpdateUserInput) *UserUpdate

SetInput applies the change-set in the UpdateUserInput on the UserUpdate builder.

func (*UserUpdate) SetLastName

func (uu *UserUpdate) SetLastName(s string) *UserUpdate

SetLastName sets the "last_name" field.

func (*UserUpdate) SetLastSeen

func (uu *UserUpdate) SetLastSeen(t time.Time) *UserUpdate

SetLastSeen sets the "last_seen" field.

func (*UserUpdate) SetNillableAvatarLocalFile

func (uu *UserUpdate) SetNillableAvatarLocalFile(s *string) *UserUpdate

SetNillableAvatarLocalFile sets the "avatar_local_file" field if the given value is not nil.

func (*UserUpdate) SetNillableAvatarRemoteURL

func (uu *UserUpdate) SetNillableAvatarRemoteURL(s *string) *UserUpdate

SetNillableAvatarRemoteURL sets the "avatar_remote_url" field if the given value is not nil.

func (*UserUpdate) SetNillableDeletedAt

func (uu *UserUpdate) SetNillableDeletedAt(t *time.Time) *UserUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*UserUpdate) SetNillableDeletedBy

func (uu *UserUpdate) SetNillableDeletedBy(s *string) *UserUpdate

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*UserUpdate) SetNillableDisplayName

func (uu *UserUpdate) SetNillableDisplayName(s *string) *UserUpdate

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*UserUpdate) SetNillableEmail

func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserUpdate) SetNillableFirstName

func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate

SetNillableFirstName sets the "first_name" field if the given value is not nil.

func (*UserUpdate) SetNillableLastName

func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate

SetNillableLastName sets the "last_name" field if the given value is not nil.

func (*UserUpdate) SetNillableOauth

func (uu *UserUpdate) SetNillableOauth(b *bool) *UserUpdate

SetNillableOauth sets the "oauth" field if the given value is not nil.

func (*UserUpdate) SetNillablePassword

func (uu *UserUpdate) SetNillablePassword(s *string) *UserUpdate

SetNillablePassword sets the "password" field if the given value is not nil.

func (*UserUpdate) SetNillableSub

func (uu *UserUpdate) SetNillableSub(s *string) *UserUpdate

SetNillableSub sets the "sub" field if the given value is not nil.

func (*UserUpdate) SetNillableUpdatedBy

func (uu *UserUpdate) SetNillableUpdatedBy(s *string) *UserUpdate

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*UserUpdate) SetOauth

func (uu *UserUpdate) SetOauth(b bool) *UserUpdate

SetOauth sets the "oauth" field.

func (*UserUpdate) SetPassword

func (uu *UserUpdate) SetPassword(s string) *UserUpdate

SetPassword sets the "password" field.

func (*UserUpdate) SetSetting

func (uu *UserUpdate) SetSetting(u *UserSetting) *UserUpdate

SetSetting sets the "setting" edge to the UserSetting entity.

func (*UserUpdate) SetSettingID

func (uu *UserUpdate) SetSettingID(id string) *UserUpdate

SetSettingID sets the "setting" edge to the UserSetting entity by ID.

func (*UserUpdate) SetSub

func (uu *UserUpdate) SetSub(s string) *UserUpdate

SetSub sets the "sub" field.

func (*UserUpdate) SetUpdatedAt

func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdate) SetUpdatedBy

func (uu *UserUpdate) SetUpdatedBy(s string) *UserUpdate

SetUpdatedBy sets the "updated_by" field.

func (*UserUpdate) Where

func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate

Where appends a list predicates to the UserUpdate builder.

type UserUpdateOne

type UserUpdateOne struct {
	// contains filtered or unexported fields
}

UserUpdateOne is the builder for updating a single User entity.

func (*UserUpdateOne) AddEmailVerificationTokenIDs added in v0.2.2

func (uuo *UserUpdateOne) AddEmailVerificationTokenIDs(ids ...string) *UserUpdateOne

AddEmailVerificationTokenIDs adds the "email_verification_tokens" edge to the EmailVerificationToken entity by IDs.

func (*UserUpdateOne) AddEmailVerificationTokens added in v0.2.2

func (uuo *UserUpdateOne) AddEmailVerificationTokens(e ...*EmailVerificationToken) *UserUpdateOne

AddEmailVerificationTokens adds the "email_verification_tokens" edges to the EmailVerificationToken entity.

func (*UserUpdateOne) AddGroupIDs

func (uuo *UserUpdateOne) AddGroupIDs(ids ...string) *UserUpdateOne

AddGroupIDs adds the "groups" edge to the Group entity by IDs.

func (*UserUpdateOne) AddGroups

func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne

AddGroups adds the "groups" edges to the Group entity.

func (*UserUpdateOne) AddOrganizationIDs

func (uuo *UserUpdateOne) AddOrganizationIDs(ids ...string) *UserUpdateOne

AddOrganizationIDs adds the "organizations" edge to the Organization entity by IDs.

func (*UserUpdateOne) AddOrganizations

func (uuo *UserUpdateOne) AddOrganizations(o ...*Organization) *UserUpdateOne

AddOrganizations adds the "organizations" edges to the Organization entity.

func (*UserUpdateOne) AddPersonalAccessTokenIDs

func (uuo *UserUpdateOne) AddPersonalAccessTokenIDs(ids ...string) *UserUpdateOne

AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs.

func (*UserUpdateOne) AddPersonalAccessTokens

func (uuo *UserUpdateOne) AddPersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdateOne

AddPersonalAccessTokens adds the "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserUpdateOne) AddSessionIDs

func (uuo *UserUpdateOne) AddSessionIDs(ids ...string) *UserUpdateOne

AddSessionIDs adds the "sessions" edge to the Session entity by IDs.

func (*UserUpdateOne) AddSessions

func (uuo *UserUpdateOne) AddSessions(s ...*Session) *UserUpdateOne

AddSessions adds the "sessions" edges to the Session entity.

func (*UserUpdateOne) ClearAvatarLocalFile

func (uuo *UserUpdateOne) ClearAvatarLocalFile() *UserUpdateOne

ClearAvatarLocalFile clears the value of the "avatar_local_file" field.

func (*UserUpdateOne) ClearAvatarRemoteURL

func (uuo *UserUpdateOne) ClearAvatarRemoteURL() *UserUpdateOne

ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field.

func (*UserUpdateOne) ClearAvatarUpdatedAt

func (uuo *UserUpdateOne) ClearAvatarUpdatedAt() *UserUpdateOne

ClearAvatarUpdatedAt clears the value of the "avatar_updated_at" field.

func (*UserUpdateOne) ClearDeletedAt

func (uuo *UserUpdateOne) ClearDeletedAt() *UserUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*UserUpdateOne) ClearDeletedBy

func (uuo *UserUpdateOne) ClearDeletedBy() *UserUpdateOne

ClearDeletedBy clears the value of the "deleted_by" field.

func (*UserUpdateOne) ClearEmailVerificationTokens added in v0.2.2

func (uuo *UserUpdateOne) ClearEmailVerificationTokens() *UserUpdateOne

ClearEmailVerificationTokens clears all "email_verification_tokens" edges to the EmailVerificationToken entity.

func (*UserUpdateOne) ClearGroups

func (uuo *UserUpdateOne) ClearGroups() *UserUpdateOne

ClearGroups clears all "groups" edges to the Group entity.

func (*UserUpdateOne) ClearLastSeen

func (uuo *UserUpdateOne) ClearLastSeen() *UserUpdateOne

ClearLastSeen clears the value of the "last_seen" field.

func (*UserUpdateOne) ClearOrganizations

func (uuo *UserUpdateOne) ClearOrganizations() *UserUpdateOne

ClearOrganizations clears all "organizations" edges to the Organization entity.

func (*UserUpdateOne) ClearPassword

func (uuo *UserUpdateOne) ClearPassword() *UserUpdateOne

ClearPassword clears the value of the "password" field.

func (*UserUpdateOne) ClearPersonalAccessTokens

func (uuo *UserUpdateOne) ClearPersonalAccessTokens() *UserUpdateOne

ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserUpdateOne) ClearSessions

func (uuo *UserUpdateOne) ClearSessions() *UserUpdateOne

ClearSessions clears all "sessions" edges to the Session entity.

func (*UserUpdateOne) ClearSetting

func (uuo *UserUpdateOne) ClearSetting() *UserUpdateOne

ClearSetting clears the "setting" edge to the UserSetting entity.

func (*UserUpdateOne) ClearSub

func (uuo *UserUpdateOne) ClearSub() *UserUpdateOne

ClearSub clears the value of the "sub" field.

func (*UserUpdateOne) ClearUpdatedBy

func (uuo *UserUpdateOne) ClearUpdatedBy() *UserUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserUpdateOne) Exec

func (uuo *UserUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserUpdateOne) ExecX

func (uuo *UserUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdateOne) Mutation

func (uuo *UserUpdateOne) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdateOne) RemoveEmailVerificationTokenIDs added in v0.2.2

func (uuo *UserUpdateOne) RemoveEmailVerificationTokenIDs(ids ...string) *UserUpdateOne

RemoveEmailVerificationTokenIDs removes the "email_verification_tokens" edge to EmailVerificationToken entities by IDs.

func (*UserUpdateOne) RemoveEmailVerificationTokens added in v0.2.2

func (uuo *UserUpdateOne) RemoveEmailVerificationTokens(e ...*EmailVerificationToken) *UserUpdateOne

RemoveEmailVerificationTokens removes "email_verification_tokens" edges to EmailVerificationToken entities.

func (*UserUpdateOne) RemoveGroupIDs

func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...string) *UserUpdateOne

RemoveGroupIDs removes the "groups" edge to Group entities by IDs.

func (*UserUpdateOne) RemoveGroups

func (uuo *UserUpdateOne) RemoveGroups(g ...*Group) *UserUpdateOne

RemoveGroups removes "groups" edges to Group entities.

func (*UserUpdateOne) RemoveOrganizationIDs

func (uuo *UserUpdateOne) RemoveOrganizationIDs(ids ...string) *UserUpdateOne

RemoveOrganizationIDs removes the "organizations" edge to Organization entities by IDs.

func (*UserUpdateOne) RemoveOrganizations

func (uuo *UserUpdateOne) RemoveOrganizations(o ...*Organization) *UserUpdateOne

RemoveOrganizations removes "organizations" edges to Organization entities.

func (*UserUpdateOne) RemovePersonalAccessTokenIDs

func (uuo *UserUpdateOne) RemovePersonalAccessTokenIDs(ids ...string) *UserUpdateOne

RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to PersonalAccessToken entities by IDs.

func (*UserUpdateOne) RemovePersonalAccessTokens

func (uuo *UserUpdateOne) RemovePersonalAccessTokens(p ...*PersonalAccessToken) *UserUpdateOne

RemovePersonalAccessTokens removes "personal_access_tokens" edges to PersonalAccessToken entities.

func (*UserUpdateOne) RemoveSessionIDs

func (uuo *UserUpdateOne) RemoveSessionIDs(ids ...string) *UserUpdateOne

RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.

func (*UserUpdateOne) RemoveSessions

func (uuo *UserUpdateOne) RemoveSessions(s ...*Session) *UserUpdateOne

RemoveSessions removes "sessions" edges to Session entities.

func (*UserUpdateOne) Save

func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)

Save executes the query and returns the updated User entity.

func (*UserUpdateOne) SaveX

func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User

SaveX is like Save, but panics if an error occurs.

func (*UserUpdateOne) Select

func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserUpdateOne) SetAvatarLocalFile

func (uuo *UserUpdateOne) SetAvatarLocalFile(s string) *UserUpdateOne

SetAvatarLocalFile sets the "avatar_local_file" field.

func (*UserUpdateOne) SetAvatarRemoteURL

func (uuo *UserUpdateOne) SetAvatarRemoteURL(s string) *UserUpdateOne

SetAvatarRemoteURL sets the "avatar_remote_url" field.

func (*UserUpdateOne) SetAvatarUpdatedAt

func (uuo *UserUpdateOne) SetAvatarUpdatedAt(t time.Time) *UserUpdateOne

SetAvatarUpdatedAt sets the "avatar_updated_at" field.

func (*UserUpdateOne) SetDeletedAt

func (uuo *UserUpdateOne) SetDeletedAt(t time.Time) *UserUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*UserUpdateOne) SetDeletedBy

func (uuo *UserUpdateOne) SetDeletedBy(s string) *UserUpdateOne

SetDeletedBy sets the "deleted_by" field.

func (*UserUpdateOne) SetDisplayName

func (uuo *UserUpdateOne) SetDisplayName(s string) *UserUpdateOne

SetDisplayName sets the "display_name" field.

func (*UserUpdateOne) SetEmail

func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne

SetEmail sets the "email" field.

func (*UserUpdateOne) SetFirstName

func (uuo *UserUpdateOne) SetFirstName(s string) *UserUpdateOne

SetFirstName sets the "first_name" field.

func (*UserUpdateOne) SetInput

SetInput applies the change-set in the UpdateUserInput on the UserUpdateOne builder.

func (*UserUpdateOne) SetLastName

func (uuo *UserUpdateOne) SetLastName(s string) *UserUpdateOne

SetLastName sets the "last_name" field.

func (*UserUpdateOne) SetLastSeen

func (uuo *UserUpdateOne) SetLastSeen(t time.Time) *UserUpdateOne

SetLastSeen sets the "last_seen" field.

func (*UserUpdateOne) SetNillableAvatarLocalFile

func (uuo *UserUpdateOne) SetNillableAvatarLocalFile(s *string) *UserUpdateOne

SetNillableAvatarLocalFile sets the "avatar_local_file" field if the given value is not nil.

func (*UserUpdateOne) SetNillableAvatarRemoteURL

func (uuo *UserUpdateOne) SetNillableAvatarRemoteURL(s *string) *UserUpdateOne

SetNillableAvatarRemoteURL sets the "avatar_remote_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableDeletedAt

func (uuo *UserUpdateOne) SetNillableDeletedAt(t *time.Time) *UserUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*UserUpdateOne) SetNillableDeletedBy

func (uuo *UserUpdateOne) SetNillableDeletedBy(s *string) *UserUpdateOne

SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil.

func (*UserUpdateOne) SetNillableDisplayName

func (uuo *UserUpdateOne) SetNillableDisplayName(s *string) *UserUpdateOne

SetNillableDisplayName sets the "display_name" field if the given value is not nil.

func (*UserUpdateOne) SetNillableEmail

func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserUpdateOne) SetNillableFirstName

func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne

SetNillableFirstName sets the "first_name" field if the given value is not nil.

func (*UserUpdateOne) SetNillableLastName

func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne

SetNillableLastName sets the "last_name" field if the given value is not nil.

func (*UserUpdateOne) SetNillableOauth

func (uuo *UserUpdateOne) SetNillableOauth(b *bool) *UserUpdateOne

SetNillableOauth sets the "oauth" field if the given value is not nil.

func (*UserUpdateOne) SetNillablePassword

func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne

SetNillablePassword sets the "password" field if the given value is not nil.

func (*UserUpdateOne) SetNillableSub

func (uuo *UserUpdateOne) SetNillableSub(s *string) *UserUpdateOne

SetNillableSub sets the "sub" field if the given value is not nil.

func (*UserUpdateOne) SetNillableUpdatedBy

func (uuo *UserUpdateOne) SetNillableUpdatedBy(s *string) *UserUpdateOne

SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil.

func (*UserUpdateOne) SetOauth

func (uuo *UserUpdateOne) SetOauth(b bool) *UserUpdateOne

SetOauth sets the "oauth" field.

func (*UserUpdateOne) SetPassword

func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne

SetPassword sets the "password" field.

func (*UserUpdateOne) SetSetting

func (uuo *UserUpdateOne) SetSetting(u *UserSetting) *UserUpdateOne

SetSetting sets the "setting" edge to the UserSetting entity.

func (*UserUpdateOne) SetSettingID

func (uuo *UserUpdateOne) SetSettingID(id string) *UserUpdateOne

SetSettingID sets the "setting" edge to the UserSetting entity by ID.

func (*UserUpdateOne) SetSub

func (uuo *UserUpdateOne) SetSub(s string) *UserUpdateOne

SetSub sets the "sub" field.

func (*UserUpdateOne) SetUpdatedAt

func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdateOne) SetUpdatedBy

func (uuo *UserUpdateOne) SetUpdatedBy(s string) *UserUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*UserUpdateOne) Where

func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne

Where appends a list predicates to the UserUpdate builder.

type UserWhereInput

type UserWhereInput struct {
	Predicates []predicate.User  `json:"-"`
	Not        *UserWhereInput   `json:"not,omitempty"`
	Or         []*UserWhereInput `json:"or,omitempty"`
	And        []*UserWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID             *string  `json:"id,omitempty"`
	IDNEQ          *string  `json:"idNEQ,omitempty"`
	IDIn           []string `json:"idIn,omitempty"`
	IDNotIn        []string `json:"idNotIn,omitempty"`
	IDGT           *string  `json:"idGT,omitempty"`
	IDGTE          *string  `json:"idGTE,omitempty"`
	IDLT           *string  `json:"idLT,omitempty"`
	IDLTE          *string  `json:"idLTE,omitempty"`
	IDEqualFold    *string  `json:"idEqualFold,omitempty"`
	IDContainsFold *string  `json:"idContainsFold,omitempty"`

	// "created_at" field predicates.
	CreatedAt      *time.Time  `json:"createdAt,omitempty"`
	CreatedAtNEQ   *time.Time  `json:"createdAtNEQ,omitempty"`
	CreatedAtIn    []time.Time `json:"createdAtIn,omitempty"`
	CreatedAtNotIn []time.Time `json:"createdAtNotIn,omitempty"`
	CreatedAtGT    *time.Time  `json:"createdAtGT,omitempty"`
	CreatedAtGTE   *time.Time  `json:"createdAtGTE,omitempty"`
	CreatedAtLT    *time.Time  `json:"createdAtLT,omitempty"`
	CreatedAtLTE   *time.Time  `json:"createdAtLTE,omitempty"`

	// "updated_at" field predicates.
	UpdatedAt      *time.Time  `json:"updatedAt,omitempty"`
	UpdatedAtNEQ   *time.Time  `json:"updatedAtNEQ,omitempty"`
	UpdatedAtIn    []time.Time `json:"updatedAtIn,omitempty"`
	UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,omitempty"`
	UpdatedAtGT    *time.Time  `json:"updatedAtGT,omitempty"`
	UpdatedAtGTE   *time.Time  `json:"updatedAtGTE,omitempty"`
	UpdatedAtLT    *time.Time  `json:"updatedAtLT,omitempty"`
	UpdatedAtLTE   *time.Time  `json:"updatedAtLTE,omitempty"`

	// "created_by" field predicates.
	CreatedBy             *string  `json:"createdBy,omitempty"`
	CreatedByNEQ          *string  `json:"createdByNEQ,omitempty"`
	CreatedByIn           []string `json:"createdByIn,omitempty"`
	CreatedByNotIn        []string `json:"createdByNotIn,omitempty"`
	CreatedByGT           *string  `json:"createdByGT,omitempty"`
	CreatedByGTE          *string  `json:"createdByGTE,omitempty"`
	CreatedByLT           *string  `json:"createdByLT,omitempty"`
	CreatedByLTE          *string  `json:"createdByLTE,omitempty"`
	CreatedByContains     *string  `json:"createdByContains,omitempty"`
	CreatedByHasPrefix    *string  `json:"createdByHasPrefix,omitempty"`
	CreatedByHasSuffix    *string  `json:"createdByHasSuffix,omitempty"`
	CreatedByIsNil        bool     `json:"createdByIsNil,omitempty"`
	CreatedByNotNil       bool     `json:"createdByNotNil,omitempty"`
	CreatedByEqualFold    *string  `json:"createdByEqualFold,omitempty"`
	CreatedByContainsFold *string  `json:"createdByContainsFold,omitempty"`

	// "updated_by" field predicates.
	UpdatedBy             *string  `json:"updatedBy,omitempty"`
	UpdatedByNEQ          *string  `json:"updatedByNEQ,omitempty"`
	UpdatedByIn           []string `json:"updatedByIn,omitempty"`
	UpdatedByNotIn        []string `json:"updatedByNotIn,omitempty"`
	UpdatedByGT           *string  `json:"updatedByGT,omitempty"`
	UpdatedByGTE          *string  `json:"updatedByGTE,omitempty"`
	UpdatedByLT           *string  `json:"updatedByLT,omitempty"`
	UpdatedByLTE          *string  `json:"updatedByLTE,omitempty"`
	UpdatedByContains     *string  `json:"updatedByContains,omitempty"`
	UpdatedByHasPrefix    *string  `json:"updatedByHasPrefix,omitempty"`
	UpdatedByHasSuffix    *string  `json:"updatedByHasSuffix,omitempty"`
	UpdatedByIsNil        bool     `json:"updatedByIsNil,omitempty"`
	UpdatedByNotNil       bool     `json:"updatedByNotNil,omitempty"`
	UpdatedByEqualFold    *string  `json:"updatedByEqualFold,omitempty"`
	UpdatedByContainsFold *string  `json:"updatedByContainsFold,omitempty"`

	// "deleted_at" field predicates.
	DeletedAt       *time.Time  `json:"deletedAt,omitempty"`
	DeletedAtNEQ    *time.Time  `json:"deletedAtNEQ,omitempty"`
	DeletedAtIn     []time.Time `json:"deletedAtIn,omitempty"`
	DeletedAtNotIn  []time.Time `json:"deletedAtNotIn,omitempty"`
	DeletedAtGT     *time.Time  `json:"deletedAtGT,omitempty"`
	DeletedAtGTE    *time.Time  `json:"deletedAtGTE,omitempty"`
	DeletedAtLT     *time.Time  `json:"deletedAtLT,omitempty"`
	DeletedAtLTE    *time.Time  `json:"deletedAtLTE,omitempty"`
	DeletedAtIsNil  bool        `json:"deletedAtIsNil,omitempty"`
	DeletedAtNotNil bool        `json:"deletedAtNotNil,omitempty"`

	// "deleted_by" field predicates.
	DeletedBy             *string  `json:"deletedBy,omitempty"`
	DeletedByNEQ          *string  `json:"deletedByNEQ,omitempty"`
	DeletedByIn           []string `json:"deletedByIn,omitempty"`
	DeletedByNotIn        []string `json:"deletedByNotIn,omitempty"`
	DeletedByGT           *string  `json:"deletedByGT,omitempty"`
	DeletedByGTE          *string  `json:"deletedByGTE,omitempty"`
	DeletedByLT           *string  `json:"deletedByLT,omitempty"`
	DeletedByLTE          *string  `json:"deletedByLTE,omitempty"`
	DeletedByContains     *string  `json:"deletedByContains,omitempty"`
	DeletedByHasPrefix    *string  `json:"deletedByHasPrefix,omitempty"`
	DeletedByHasSuffix    *string  `json:"deletedByHasSuffix,omitempty"`
	DeletedByIsNil        bool     `json:"deletedByIsNil,omitempty"`
	DeletedByNotNil       bool     `json:"deletedByNotNil,omitempty"`
	DeletedByEqualFold    *string  `json:"deletedByEqualFold,omitempty"`
	DeletedByContainsFold *string  `json:"deletedByContainsFold,omitempty"`

	// "email" field predicates.
	Email             *string  `json:"email,omitempty"`
	EmailNEQ          *string  `json:"emailNEQ,omitempty"`
	EmailIn           []string `json:"emailIn,omitempty"`
	EmailNotIn        []string `json:"emailNotIn,omitempty"`
	EmailGT           *string  `json:"emailGT,omitempty"`
	EmailGTE          *string  `json:"emailGTE,omitempty"`
	EmailLT           *string  `json:"emailLT,omitempty"`
	EmailLTE          *string  `json:"emailLTE,omitempty"`
	EmailContains     *string  `json:"emailContains,omitempty"`
	EmailHasPrefix    *string  `json:"emailHasPrefix,omitempty"`
	EmailHasSuffix    *string  `json:"emailHasSuffix,omitempty"`
	EmailEqualFold    *string  `json:"emailEqualFold,omitempty"`
	EmailContainsFold *string  `json:"emailContainsFold,omitempty"`

	// "first_name" field predicates.
	FirstName             *string  `json:"firstName,omitempty"`
	FirstNameNEQ          *string  `json:"firstNameNEQ,omitempty"`
	FirstNameIn           []string `json:"firstNameIn,omitempty"`
	FirstNameNotIn        []string `json:"firstNameNotIn,omitempty"`
	FirstNameGT           *string  `json:"firstNameGT,omitempty"`
	FirstNameGTE          *string  `json:"firstNameGTE,omitempty"`
	FirstNameLT           *string  `json:"firstNameLT,omitempty"`
	FirstNameLTE          *string  `json:"firstNameLTE,omitempty"`
	FirstNameContains     *string  `json:"firstNameContains,omitempty"`
	FirstNameHasPrefix    *string  `json:"firstNameHasPrefix,omitempty"`
	FirstNameHasSuffix    *string  `json:"firstNameHasSuffix,omitempty"`
	FirstNameEqualFold    *string  `json:"firstNameEqualFold,omitempty"`
	FirstNameContainsFold *string  `json:"firstNameContainsFold,omitempty"`

	// "last_name" field predicates.
	LastName             *string  `json:"lastName,omitempty"`
	LastNameNEQ          *string  `json:"lastNameNEQ,omitempty"`
	LastNameIn           []string `json:"lastNameIn,omitempty"`
	LastNameNotIn        []string `json:"lastNameNotIn,omitempty"`
	LastNameGT           *string  `json:"lastNameGT,omitempty"`
	LastNameGTE          *string  `json:"lastNameGTE,omitempty"`
	LastNameLT           *string  `json:"lastNameLT,omitempty"`
	LastNameLTE          *string  `json:"lastNameLTE,omitempty"`
	LastNameContains     *string  `json:"lastNameContains,omitempty"`
	LastNameHasPrefix    *string  `json:"lastNameHasPrefix,omitempty"`
	LastNameHasSuffix    *string  `json:"lastNameHasSuffix,omitempty"`
	LastNameEqualFold    *string  `json:"lastNameEqualFold,omitempty"`
	LastNameContainsFold *string  `json:"lastNameContainsFold,omitempty"`

	// "display_name" field predicates.
	DisplayName             *string  `json:"displayName,omitempty"`
	DisplayNameNEQ          *string  `json:"displayNameNEQ,omitempty"`
	DisplayNameIn           []string `json:"displayNameIn,omitempty"`
	DisplayNameNotIn        []string `json:"displayNameNotIn,omitempty"`
	DisplayNameGT           *string  `json:"displayNameGT,omitempty"`
	DisplayNameGTE          *string  `json:"displayNameGTE,omitempty"`
	DisplayNameLT           *string  `json:"displayNameLT,omitempty"`
	DisplayNameLTE          *string  `json:"displayNameLTE,omitempty"`
	DisplayNameContains     *string  `json:"displayNameContains,omitempty"`
	DisplayNameHasPrefix    *string  `json:"displayNameHasPrefix,omitempty"`
	DisplayNameHasSuffix    *string  `json:"displayNameHasSuffix,omitempty"`
	DisplayNameEqualFold    *string  `json:"displayNameEqualFold,omitempty"`
	DisplayNameContainsFold *string  `json:"displayNameContainsFold,omitempty"`

	// "avatar_remote_url" field predicates.
	AvatarRemoteURL             *string  `json:"avatarRemoteURL,omitempty"`
	AvatarRemoteURLNEQ          *string  `json:"avatarRemoteURLNEQ,omitempty"`
	AvatarRemoteURLIn           []string `json:"avatarRemoteURLIn,omitempty"`
	AvatarRemoteURLNotIn        []string `json:"avatarRemoteURLNotIn,omitempty"`
	AvatarRemoteURLGT           *string  `json:"avatarRemoteURLGT,omitempty"`
	AvatarRemoteURLGTE          *string  `json:"avatarRemoteURLGTE,omitempty"`
	AvatarRemoteURLLT           *string  `json:"avatarRemoteURLLT,omitempty"`
	AvatarRemoteURLLTE          *string  `json:"avatarRemoteURLLTE,omitempty"`
	AvatarRemoteURLContains     *string  `json:"avatarRemoteURLContains,omitempty"`
	AvatarRemoteURLHasPrefix    *string  `json:"avatarRemoteURLHasPrefix,omitempty"`
	AvatarRemoteURLHasSuffix    *string  `json:"avatarRemoteURLHasSuffix,omitempty"`
	AvatarRemoteURLIsNil        bool     `json:"avatarRemoteURLIsNil,omitempty"`
	AvatarRemoteURLNotNil       bool     `json:"avatarRemoteURLNotNil,omitempty"`
	AvatarRemoteURLEqualFold    *string  `json:"avatarRemoteURLEqualFold,omitempty"`
	AvatarRemoteURLContainsFold *string  `json:"avatarRemoteURLContainsFold,omitempty"`

	// "avatar_local_file" field predicates.
	AvatarLocalFile             *string  `json:"avatarLocalFile,omitempty"`
	AvatarLocalFileNEQ          *string  `json:"avatarLocalFileNEQ,omitempty"`
	AvatarLocalFileIn           []string `json:"avatarLocalFileIn,omitempty"`
	AvatarLocalFileNotIn        []string `json:"avatarLocalFileNotIn,omitempty"`
	AvatarLocalFileGT           *string  `json:"avatarLocalFileGT,omitempty"`
	AvatarLocalFileGTE          *string  `json:"avatarLocalFileGTE,omitempty"`
	AvatarLocalFileLT           *string  `json:"avatarLocalFileLT,omitempty"`
	AvatarLocalFileLTE          *string  `json:"avatarLocalFileLTE,omitempty"`
	AvatarLocalFileContains     *string  `json:"avatarLocalFileContains,omitempty"`
	AvatarLocalFileHasPrefix    *string  `json:"avatarLocalFileHasPrefix,omitempty"`
	AvatarLocalFileHasSuffix    *string  `json:"avatarLocalFileHasSuffix,omitempty"`
	AvatarLocalFileIsNil        bool     `json:"avatarLocalFileIsNil,omitempty"`
	AvatarLocalFileNotNil       bool     `json:"avatarLocalFileNotNil,omitempty"`
	AvatarLocalFileEqualFold    *string  `json:"avatarLocalFileEqualFold,omitempty"`
	AvatarLocalFileContainsFold *string  `json:"avatarLocalFileContainsFold,omitempty"`

	// "avatar_updated_at" field predicates.
	AvatarUpdatedAt       *time.Time  `json:"avatarUpdatedAt,omitempty"`
	AvatarUpdatedAtNEQ    *time.Time  `json:"avatarUpdatedAtNEQ,omitempty"`
	AvatarUpdatedAtIn     []time.Time `json:"avatarUpdatedAtIn,omitempty"`
	AvatarUpdatedAtNotIn  []time.Time `json:"avatarUpdatedAtNotIn,omitempty"`
	AvatarUpdatedAtGT     *time.Time  `json:"avatarUpdatedAtGT,omitempty"`
	AvatarUpdatedAtGTE    *time.Time  `json:"avatarUpdatedAtGTE,omitempty"`
	AvatarUpdatedAtLT     *time.Time  `json:"avatarUpdatedAtLT,omitempty"`
	AvatarUpdatedAtLTE    *time.Time  `json:"avatarUpdatedAtLTE,omitempty"`
	AvatarUpdatedAtIsNil  bool        `json:"avatarUpdatedAtIsNil,omitempty"`
	AvatarUpdatedAtNotNil bool        `json:"avatarUpdatedAtNotNil,omitempty"`

	// "last_seen" field predicates.
	LastSeen       *time.Time  `json:"lastSeen,omitempty"`
	LastSeenNEQ    *time.Time  `json:"lastSeenNEQ,omitempty"`
	LastSeenIn     []time.Time `json:"lastSeenIn,omitempty"`
	LastSeenNotIn  []time.Time `json:"lastSeenNotIn,omitempty"`
	LastSeenGT     *time.Time  `json:"lastSeenGT,omitempty"`
	LastSeenGTE    *time.Time  `json:"lastSeenGTE,omitempty"`
	LastSeenLT     *time.Time  `json:"lastSeenLT,omitempty"`
	LastSeenLTE    *time.Time  `json:"lastSeenLTE,omitempty"`
	LastSeenIsNil  bool        `json:"lastSeenIsNil,omitempty"`
	LastSeenNotNil bool        `json:"lastSeenNotNil,omitempty"`

	// "password" field predicates.
	Password             *string  `json:"password,omitempty"`
	PasswordNEQ          *string  `json:"passwordNEQ,omitempty"`
	PasswordIn           []string `json:"passwordIn,omitempty"`
	PasswordNotIn        []string `json:"passwordNotIn,omitempty"`
	PasswordGT           *string  `json:"passwordGT,omitempty"`
	PasswordGTE          *string  `json:"passwordGTE,omitempty"`
	PasswordLT           *string  `json:"passwordLT,omitempty"`
	PasswordLTE          *string  `json:"passwordLTE,omitempty"`
	PasswordContains     *string  `json:"passwordContains,omitempty"`
	PasswordHasPrefix    *string  `json:"passwordHasPrefix,omitempty"`
	PasswordHasSuffix    *string  `json:"passwordHasSuffix,omitempty"`
	PasswordIsNil        bool     `json:"passwordIsNil,omitempty"`
	PasswordNotNil       bool     `json:"passwordNotNil,omitempty"`
	PasswordEqualFold    *string  `json:"passwordEqualFold,omitempty"`
	PasswordContainsFold *string  `json:"passwordContainsFold,omitempty"`

	// "sub" field predicates.
	Sub             *string  `json:"sub,omitempty"`
	SubNEQ          *string  `json:"subNEQ,omitempty"`
	SubIn           []string `json:"subIn,omitempty"`
	SubNotIn        []string `json:"subNotIn,omitempty"`
	SubGT           *string  `json:"subGT,omitempty"`
	SubGTE          *string  `json:"subGTE,omitempty"`
	SubLT           *string  `json:"subLT,omitempty"`
	SubLTE          *string  `json:"subLTE,omitempty"`
	SubContains     *string  `json:"subContains,omitempty"`
	SubHasPrefix    *string  `json:"subHasPrefix,omitempty"`
	SubHasSuffix    *string  `json:"subHasSuffix,omitempty"`
	SubIsNil        bool     `json:"subIsNil,omitempty"`
	SubNotNil       bool     `json:"subNotNil,omitempty"`
	SubEqualFold    *string  `json:"subEqualFold,omitempty"`
	SubContainsFold *string  `json:"subContainsFold,omitempty"`

	// "oauth" field predicates.
	Oauth    *bool `json:"oauth,omitempty"`
	OauthNEQ *bool `json:"oauthNEQ,omitempty"`

	// "organizations" edge predicates.
	HasOrganizations     *bool                     `json:"hasOrganizations,omitempty"`
	HasOrganizationsWith []*OrganizationWhereInput `json:"hasOrganizationsWith,omitempty"`

	// "sessions" edge predicates.
	HasSessions     *bool                `json:"hasSessions,omitempty"`
	HasSessionsWith []*SessionWhereInput `json:"hasSessionsWith,omitempty"`

	// "groups" edge predicates.
	HasGroups     *bool              `json:"hasGroups,omitempty"`
	HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"`

	// "personal_access_tokens" edge predicates.
	HasPersonalAccessTokens     *bool                            `json:"hasPersonalAccessTokens,omitempty"`
	HasPersonalAccessTokensWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokensWith,omitempty"`

	// "setting" edge predicates.
	HasSetting     *bool                    `json:"hasSetting,omitempty"`
	HasSettingWith []*UserSettingWhereInput `json:"hasSettingWith,omitempty"`
}

UserWhereInput represents a where input for filtering User queries.

func (*UserWhereInput) AddPredicates

func (i *UserWhereInput) AddPredicates(predicates ...predicate.User)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*UserWhereInput) Filter

func (i *UserWhereInput) Filter(q *UserQuery) (*UserQuery, error)

Filter applies the UserWhereInput filter on the UserQuery builder.

func (*UserWhereInput) P

func (i *UserWhereInput) P() (predicate.User, error)

P returns a predicate for filtering users. An error is returned if the input is empty or invalid.

type Users

type Users []*User

Users is a parsable slice of User.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field or edge fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

Source Files

Jump to

Keyboard shortcuts

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