generated

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 43 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.
	TypeEntitlement          = "Entitlement"
	TypeGroup                = "Group"
	TypeGroupSettings        = "GroupSettings"
	TypeIntegration          = "Integration"
	TypeOauthProvider        = "OauthProvider"
	TypeOrganization         = "Organization"
	TypeOrganizationSettings = "OrganizationSettings"
	TypePersonalAccessToken  = "PersonalAccessToken"
	TypeRefreshToken         = "RefreshToken"
	TypeSession              = "Session"
	TypeUser                 = "User"
	TypeUserSettings         = "UserSettings"
)

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 DefaultGroupSettingsOrder = &GroupSettingsOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &GroupSettingsOrderField{
		Value: func(gs *GroupSettings) (ent.Value, error) {
			return gs.ID, nil
		},
		column: groupsettings.FieldID,
		toTerm: groupsettings.ByID,
		toCursor: func(gs *GroupSettings) Cursor {
			return Cursor{ID: gs.ID}
		},
	},
}

DefaultGroupSettingsOrder is the default ordering of GroupSettings.

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 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 DefaultOrganizationSettingsOrder = &OrganizationSettingsOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &OrganizationSettingsOrderField{
		Value: func(os *OrganizationSettings) (ent.Value, error) {
			return os.ID, nil
		},
		column: organizationsettings.FieldID,
		toTerm: organizationsettings.ByID,
		toCursor: func(os *OrganizationSettings) Cursor {
			return Cursor{ID: os.ID}
		},
	},
}

DefaultOrganizationSettingsOrder is the default ordering of OrganizationSettings.

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 DefaultRefreshTokenOrder = &RefreshTokenOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &RefreshTokenOrderField{
		Value: func(rt *RefreshToken) (ent.Value, error) {
			return rt.ID, nil
		},
		column: refreshtoken.FieldID,
		toTerm: refreshtoken.ByID,
		toCursor: func(rt *RefreshToken) Cursor {
			return Cursor{ID: rt.ID}
		},
	},
}

DefaultRefreshTokenOrder is the default ordering of RefreshToken.

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 DefaultUserSettingsOrder = &UserSettingsOrder{
	Direction: entgql.OrderDirectionAsc,
	Field: &UserSettingsOrderField{
		Value: func(us *UserSettings) (ent.Value, error) {
			return us.ID, nil
		},
		column: usersettings.FieldID,
		toTerm: usersettings.ByID,
		toCursor: func(us *UserSettings) Cursor {
			return Cursor{ID: us.ID}
		},
	},
}

DefaultUserSettingsOrder is the default ordering of UserSettings.

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

ErrEmptyEntitlementWhereInput is returned in case the EntitlementWhereInput is empty.

View Source
var ErrEmptyGroupSettingsWhereInput = errors.New("generated: empty predicate GroupSettingsWhereInput")

ErrEmptyGroupSettingsWhereInput is returned in case the GroupSettingsWhereInput 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 ErrEmptyOrganizationSettingsWhereInput = errors.New("generated: empty predicate OrganizationSettingsWhereInput")

ErrEmptyOrganizationSettingsWhereInput is returned in case the OrganizationSettingsWhereInput 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 ErrEmptyRefreshTokenWhereInput = errors.New("generated: empty predicate RefreshTokenWhereInput")

ErrEmptyRefreshTokenWhereInput is returned in case the RefreshTokenWhereInput is empty.

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

ErrEmptySessionWhereInput is returned in case the SessionWhereInput is empty.

View Source
var ErrEmptyUserSettingsWhereInput = errors.New("generated: empty predicate UserSettingsWhereInput")

ErrEmptyUserSettingsWhereInput is returned in case the UserSettingsWhereInput 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 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 OpenTxFromContext

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

OpenTxFromContext open transactions from client stored in context.

func ServeEntviz added in v0.1.1

func ServeEntviz() http.Handler

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
	// Entitlement is the client for interacting with the Entitlement builders.
	Entitlement *EntitlementClient
	// Group is the client for interacting with the Group builders.
	Group *GroupClient
	// GroupSettings is the client for interacting with the GroupSettings builders.
	GroupSettings *GroupSettingsClient
	// Integration is the client for interacting with the Integration builders.
	Integration *IntegrationClient
	// OauthProvider is the client for interacting with the OauthProvider builders.
	OauthProvider *OauthProviderClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// OrganizationSettings is the client for interacting with the OrganizationSettings builders.
	OrganizationSettings *OrganizationSettingsClient
	// PersonalAccessToken is the client for interacting with the PersonalAccessToken builders.
	PersonalAccessToken *PersonalAccessTokenClient
	// RefreshToken is the client for interacting with the RefreshToken builders.
	RefreshToken *RefreshTokenClient
	// Session is the client for interacting with the Session builders.
	Session *SessionClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// UserSettings is the client for interacting with the UserSettings builders.
	UserSettings *UserSettingsClient
	// 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().
	Entitlement.
	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
	ExpiresAt              *time.Time
	UpgradedAt             *time.Time
	UpgradedTier           *string
	DowngradedAt           *time.Time
	DowngradedTier         *string
	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
	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 CreateGroupSettingsInput added in v0.1.1

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

CreateGroupSettingsInput represents a mutation input for creating groupsettingsslice.

func (*CreateGroupSettingsInput) Mutate added in v0.1.1

Mutate applies the CreateGroupSettingsInput on the GroupSettingsMutation builder.

type CreateIntegrationInput

type CreateIntegrationInput struct {
	CreatedAt   *time.Time
	UpdatedAt   *time.Time
	CreatedBy   *string
	UpdatedBy   *string
	Name        string
	Kind        string
	Description *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 CreateOrganizationInput

type CreateOrganizationInput struct {
	CreatedAt        *time.Time
	UpdatedAt        *time.Time
	CreatedBy        *string
	UpdatedBy        *string
	Name             string
	DisplayName      *string
	Description      *string
	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 CreateOrganizationSettingsInput added in v0.1.1

type CreateOrganizationSettingsInput 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
}

CreateOrganizationSettingsInput represents a mutation input for creating organizationsettingsslice.

func (*CreateOrganizationSettingsInput) Mutate added in v0.1.1

Mutate applies the CreateOrganizationSettingsInput on the OrganizationSettingsMutation builder.

type CreatePersonalAccessTokenInput

type CreatePersonalAccessTokenInput struct {
	CreatedAt    *time.Time
	UpdatedAt    *time.Time
	CreatedBy    *string
	UpdatedBy    *string
	Name         string
	Token        string
	Abilities    []string
	ExpirationAt time.Time
	LastUsedAt   *time.Time
	UserID       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
	Type      session.Type
	Disabled  bool
	Token     *string
	UserAgent *string
	Ips       string
	UsersID   *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
	PasswordHash           *string
	OrganizationIDs        []string
	SessionIDs             []string
	GroupIDs               []string
	PersonalAccessTokenIDs []string
	SettingID              string
	RefreshtokenIDs        []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 CreateUserSettingsInput added in v0.1.1

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

CreateUserSettingsInput represents a mutation input for creating usersettingsslice.

func (*CreateUserSettingsInput) Mutate added in v0.1.1

Mutate applies the CreateUserSettingsInput on the UserSettingsMutation builder.

type Cursor

type Cursor = entgql.Cursor[string]

Common entgql types.

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"`
	// 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"`
	// ExpiresAt holds the value of the "expires_at" field.
	ExpiresAt time.Time `json:"expires_at,omitempty"`
	// UpgradedAt holds the value of the "upgraded_at" field.
	UpgradedAt time.Time `json:"upgraded_at,omitempty"`
	// the tier the customer upgraded from
	UpgradedTier string `json:"upgraded_tier,omitempty"`
	// DowngradedAt holds the value of the "downgraded_at" field.
	DowngradedAt time.Time `json:"downgraded_at,omitempty"`
	// the tier the customer downgraded from
	DowngradedTier string `json:"downgraded_tier,omitempty"`
	// Cancelled holds the value of the "cancelled" field.
	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) SetDowngradedAt added in v0.1.1

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

SetDowngradedAt sets the "downgraded_at" field.

func (*EntitlementCreate) SetDowngradedTier added in v0.1.1

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

SetDowngradedTier sets the "downgraded_tier" 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) SetNillableDowngradedAt added in v0.1.1

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

SetNillableDowngradedAt sets the "downgraded_at" field if the given value is not nil.

func (*EntitlementCreate) SetNillableDowngradedTier added in v0.1.1

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

SetNillableDowngradedTier sets the "downgraded_tier" 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) SetNillableUpgradedAt added in v0.1.1

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

SetNillableUpgradedAt sets the "upgraded_at" field if the given value is not nil.

func (*EntitlementCreate) SetNillableUpgradedTier added in v0.1.1

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

SetNillableUpgradedTier sets the "upgraded_tier" 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.

func (*EntitlementCreate) SetUpgradedAt added in v0.1.1

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

SetUpgradedAt sets the "upgraded_at" field.

func (*EntitlementCreate) SetUpgradedTier added in v0.1.1

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

SetUpgradedTier sets the "upgraded_tier" 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) WhereDowngradedAt added in v0.1.1

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

WhereDowngradedAt applies the entql time.Time predicate on the downgraded_at field.

func (*EntitlementFilter) WhereDowngradedTier added in v0.1.1

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

WhereDowngradedTier applies the entql string predicate on the downgraded_tier 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.

func (*EntitlementFilter) WhereUpgradedAt added in v0.1.1

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

WhereUpgradedAt applies the entql time.Time predicate on the upgraded_at field.

func (*EntitlementFilter) WhereUpgradedTier added in v0.1.1

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

WhereUpgradedTier applies the entql string predicate on the upgraded_tier 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) ClearDowngradedAt added in v0.1.1

func (m *EntitlementMutation) ClearDowngradedAt()

ClearDowngradedAt clears the value of the "downgraded_at" field.

func (*EntitlementMutation) ClearDowngradedTier added in v0.1.1

func (m *EntitlementMutation) ClearDowngradedTier()

ClearDowngradedTier clears the value of the "downgraded_tier" 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) ClearUpgradedAt added in v0.1.1

func (m *EntitlementMutation) ClearUpgradedAt()

ClearUpgradedAt clears the value of the "upgraded_at" field.

func (*EntitlementMutation) ClearUpgradedTier added in v0.1.1

func (m *EntitlementMutation) ClearUpgradedTier()

ClearUpgradedTier clears the value of the "upgraded_tier" 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) DowngradedAt added in v0.1.1

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

DowngradedAt returns the value of the "downgraded_at" field in the mutation.

func (*EntitlementMutation) DowngradedAtCleared added in v0.1.1

func (m *EntitlementMutation) DowngradedAtCleared() bool

DowngradedAtCleared returns if the "downgraded_at" field was cleared in this mutation.

func (*EntitlementMutation) DowngradedTier added in v0.1.1

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

DowngradedTier returns the value of the "downgraded_tier" field in the mutation.

func (*EntitlementMutation) DowngradedTierCleared added in v0.1.1

func (m *EntitlementMutation) DowngradedTierCleared() bool

DowngradedTierCleared returns if the "downgraded_tier" 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) 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) OldDowngradedAt added in v0.1.1

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

OldDowngradedAt returns the old "downgraded_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) OldDowngradedTier added in v0.1.1

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

OldDowngradedTier returns the old "downgraded_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) 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) OldUpgradedAt added in v0.1.1

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

OldUpgradedAt returns the old "upgraded_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) OldUpgradedTier added in v0.1.1

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

OldUpgradedTier returns the old "upgraded_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) 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) ResetDowngradedAt added in v0.1.1

func (m *EntitlementMutation) ResetDowngradedAt()

ResetDowngradedAt resets all changes to the "downgraded_at" field.

func (*EntitlementMutation) ResetDowngradedTier added in v0.1.1

func (m *EntitlementMutation) ResetDowngradedTier()

ResetDowngradedTier resets all changes to the "downgraded_tier" 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) 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) ResetUpgradedAt added in v0.1.1

func (m *EntitlementMutation) ResetUpgradedAt()

ResetUpgradedAt resets all changes to the "upgraded_at" field.

func (*EntitlementMutation) ResetUpgradedTier added in v0.1.1

func (m *EntitlementMutation) ResetUpgradedTier()

ResetUpgradedTier resets all changes to the "upgraded_tier" 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) SetDowngradedAt added in v0.1.1

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

SetDowngradedAt sets the "downgraded_at" field.

func (*EntitlementMutation) SetDowngradedTier added in v0.1.1

func (m *EntitlementMutation) SetDowngradedTier(s string)

SetDowngradedTier sets the "downgraded_tier" 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) SetUpgradedAt added in v0.1.1

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

SetUpgradedAt sets the "upgraded_at" field.

func (*EntitlementMutation) SetUpgradedTier added in v0.1.1

func (m *EntitlementMutation) SetUpgradedTier(s string)

SetUpgradedTier sets the "upgraded_tier" 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) UpgradedAt added in v0.1.1

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

UpgradedAt returns the value of the "upgraded_at" field in the mutation.

func (*EntitlementMutation) UpgradedAtCleared added in v0.1.1

func (m *EntitlementMutation) UpgradedAtCleared() bool

UpgradedAtCleared returns if the "upgraded_at" field was cleared in this mutation.

func (*EntitlementMutation) UpgradedTier added in v0.1.1

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

UpgradedTier returns the value of the "upgraded_tier" field in the mutation.

func (*EntitlementMutation) UpgradedTierCleared added in v0.1.1

func (m *EntitlementMutation) UpgradedTierCleared() bool

UpgradedTierCleared returns if the "upgraded_tier" 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) ClearCreatedBy added in v0.1.1

func (eu *EntitlementUpdate) ClearCreatedBy() *EntitlementUpdate

ClearCreatedBy clears the value of the "created_by" field.

func (*EntitlementUpdate) ClearDowngradedAt added in v0.1.1

func (eu *EntitlementUpdate) ClearDowngradedAt() *EntitlementUpdate

ClearDowngradedAt clears the value of the "downgraded_at" field.

func (*EntitlementUpdate) ClearDowngradedTier added in v0.1.1

func (eu *EntitlementUpdate) ClearDowngradedTier() *EntitlementUpdate

ClearDowngradedTier clears the value of the "downgraded_tier" 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) ClearUpgradedAt added in v0.1.1

func (eu *EntitlementUpdate) ClearUpgradedAt() *EntitlementUpdate

ClearUpgradedAt clears the value of the "upgraded_at" field.

func (*EntitlementUpdate) ClearUpgradedTier added in v0.1.1

func (eu *EntitlementUpdate) ClearUpgradedTier() *EntitlementUpdate

ClearUpgradedTier clears the value of the "upgraded_tier" 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) SetCreatedBy added in v0.1.1

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

SetCreatedBy sets the "created_by" field.

func (*EntitlementUpdate) SetDowngradedAt added in v0.1.1

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

SetDowngradedAt sets the "downgraded_at" field.

func (*EntitlementUpdate) SetDowngradedTier added in v0.1.1

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

SetDowngradedTier sets the "downgraded_tier" 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) SetNillableCreatedBy added in v0.1.1

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

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

func (*EntitlementUpdate) SetNillableDowngradedAt added in v0.1.1

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

SetNillableDowngradedAt sets the "downgraded_at" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableDowngradedTier added in v0.1.1

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

SetNillableDowngradedTier sets the "downgraded_tier" 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) SetNillableUpgradedAt added in v0.1.1

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

SetNillableUpgradedAt sets the "upgraded_at" field if the given value is not nil.

func (*EntitlementUpdate) SetNillableUpgradedTier added in v0.1.1

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

SetNillableUpgradedTier sets the "upgraded_tier" 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) SetUpgradedAt added in v0.1.1

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

SetUpgradedAt sets the "upgraded_at" field.

func (*EntitlementUpdate) SetUpgradedTier added in v0.1.1

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

SetUpgradedTier sets the "upgraded_tier" 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) ClearCreatedBy added in v0.1.1

func (euo *EntitlementUpdateOne) ClearCreatedBy() *EntitlementUpdateOne

ClearCreatedBy clears the value of the "created_by" field.

func (*EntitlementUpdateOne) ClearDowngradedAt added in v0.1.1

func (euo *EntitlementUpdateOne) ClearDowngradedAt() *EntitlementUpdateOne

ClearDowngradedAt clears the value of the "downgraded_at" field.

func (*EntitlementUpdateOne) ClearDowngradedTier added in v0.1.1

func (euo *EntitlementUpdateOne) ClearDowngradedTier() *EntitlementUpdateOne

ClearDowngradedTier clears the value of the "downgraded_tier" 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) ClearUpgradedAt added in v0.1.1

func (euo *EntitlementUpdateOne) ClearUpgradedAt() *EntitlementUpdateOne

ClearUpgradedAt clears the value of the "upgraded_at" field.

func (*EntitlementUpdateOne) ClearUpgradedTier added in v0.1.1

func (euo *EntitlementUpdateOne) ClearUpgradedTier() *EntitlementUpdateOne

ClearUpgradedTier clears the value of the "upgraded_tier" 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) SetCreatedBy added in v0.1.1

func (euo *EntitlementUpdateOne) SetCreatedBy(s string) *EntitlementUpdateOne

SetCreatedBy sets the "created_by" field.

func (*EntitlementUpdateOne) SetDowngradedAt added in v0.1.1

func (euo *EntitlementUpdateOne) SetDowngradedAt(t time.Time) *EntitlementUpdateOne

SetDowngradedAt sets the "downgraded_at" field.

func (*EntitlementUpdateOne) SetDowngradedTier added in v0.1.1

func (euo *EntitlementUpdateOne) SetDowngradedTier(s string) *EntitlementUpdateOne

SetDowngradedTier sets the "downgraded_tier" 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) SetNillableCreatedBy added in v0.1.1

func (euo *EntitlementUpdateOne) SetNillableCreatedBy(s *string) *EntitlementUpdateOne

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

func (*EntitlementUpdateOne) SetNillableDowngradedAt added in v0.1.1

func (euo *EntitlementUpdateOne) SetNillableDowngradedAt(t *time.Time) *EntitlementUpdateOne

SetNillableDowngradedAt sets the "downgraded_at" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableDowngradedTier added in v0.1.1

func (euo *EntitlementUpdateOne) SetNillableDowngradedTier(s *string) *EntitlementUpdateOne

SetNillableDowngradedTier sets the "downgraded_tier" 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) SetNillableUpgradedAt added in v0.1.1

func (euo *EntitlementUpdateOne) SetNillableUpgradedAt(t *time.Time) *EntitlementUpdateOne

SetNillableUpgradedAt sets the "upgraded_at" field if the given value is not nil.

func (*EntitlementUpdateOne) SetNillableUpgradedTier added in v0.1.1

func (euo *EntitlementUpdateOne) SetNillableUpgradedTier(s *string) *EntitlementUpdateOne

SetNillableUpgradedTier sets the "upgraded_tier" 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) SetUpgradedAt added in v0.1.1

func (euo *EntitlementUpdateOne) SetUpgradedAt(t time.Time) *EntitlementUpdateOne

SetUpgradedAt sets the "upgraded_at" field.

func (*EntitlementUpdateOne) SetUpgradedTier added in v0.1.1

func (euo *EntitlementUpdateOne) SetUpgradedTier(s string) *EntitlementUpdateOne

SetUpgradedTier sets the "upgraded_tier" 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"`

	// "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_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"`

	// "upgraded_at" field predicates.
	UpgradedAt       *time.Time  `json:"upgradedAt,omitempty"`
	UpgradedAtNEQ    *time.Time  `json:"upgradedAtNEQ,omitempty"`
	UpgradedAtIn     []time.Time `json:"upgradedAtIn,omitempty"`
	UpgradedAtNotIn  []time.Time `json:"upgradedAtNotIn,omitempty"`
	UpgradedAtGT     *time.Time  `json:"upgradedAtGT,omitempty"`
	UpgradedAtGTE    *time.Time  `json:"upgradedAtGTE,omitempty"`
	UpgradedAtLT     *time.Time  `json:"upgradedAtLT,omitempty"`
	UpgradedAtLTE    *time.Time  `json:"upgradedAtLTE,omitempty"`
	UpgradedAtIsNil  bool        `json:"upgradedAtIsNil,omitempty"`
	UpgradedAtNotNil bool        `json:"upgradedAtNotNil,omitempty"`

	// "upgraded_tier" field predicates.
	UpgradedTier             *string  `json:"upgradedTier,omitempty"`
	UpgradedTierNEQ          *string  `json:"upgradedTierNEQ,omitempty"`
	UpgradedTierIn           []string `json:"upgradedTierIn,omitempty"`
	UpgradedTierNotIn        []string `json:"upgradedTierNotIn,omitempty"`
	UpgradedTierGT           *string  `json:"upgradedTierGT,omitempty"`
	UpgradedTierGTE          *string  `json:"upgradedTierGTE,omitempty"`
	UpgradedTierLT           *string  `json:"upgradedTierLT,omitempty"`
	UpgradedTierLTE          *string  `json:"upgradedTierLTE,omitempty"`
	UpgradedTierContains     *string  `json:"upgradedTierContains,omitempty"`
	UpgradedTierHasPrefix    *string  `json:"upgradedTierHasPrefix,omitempty"`
	UpgradedTierHasSuffix    *string  `json:"upgradedTierHasSuffix,omitempty"`
	UpgradedTierIsNil        bool     `json:"upgradedTierIsNil,omitempty"`
	UpgradedTierNotNil       bool     `json:"upgradedTierNotNil,omitempty"`
	UpgradedTierEqualFold    *string  `json:"upgradedTierEqualFold,omitempty"`
	UpgradedTierContainsFold *string  `json:"upgradedTierContainsFold,omitempty"`

	// "downgraded_at" field predicates.
	DowngradedAt       *time.Time  `json:"downgradedAt,omitempty"`
	DowngradedAtNEQ    *time.Time  `json:"downgradedAtNEQ,omitempty"`
	DowngradedAtIn     []time.Time `json:"downgradedAtIn,omitempty"`
	DowngradedAtNotIn  []time.Time `json:"downgradedAtNotIn,omitempty"`
	DowngradedAtGT     *time.Time  `json:"downgradedAtGT,omitempty"`
	DowngradedAtGTE    *time.Time  `json:"downgradedAtGTE,omitempty"`
	DowngradedAtLT     *time.Time  `json:"downgradedAtLT,omitempty"`
	DowngradedAtLTE    *time.Time  `json:"downgradedAtLTE,omitempty"`
	DowngradedAtIsNil  bool        `json:"downgradedAtIsNil,omitempty"`
	DowngradedAtNotNil bool        `json:"downgradedAtNotNil,omitempty"`

	// "downgraded_tier" field predicates.
	DowngradedTier             *string  `json:"downgradedTier,omitempty"`
	DowngradedTierNEQ          *string  `json:"downgradedTierNEQ,omitempty"`
	DowngradedTierIn           []string `json:"downgradedTierIn,omitempty"`
	DowngradedTierNotIn        []string `json:"downgradedTierNotIn,omitempty"`
	DowngradedTierGT           *string  `json:"downgradedTierGT,omitempty"`
	DowngradedTierGTE          *string  `json:"downgradedTierGTE,omitempty"`
	DowngradedTierLT           *string  `json:"downgradedTierLT,omitempty"`
	DowngradedTierLTE          *string  `json:"downgradedTierLTE,omitempty"`
	DowngradedTierContains     *string  `json:"downgradedTierContains,omitempty"`
	DowngradedTierHasPrefix    *string  `json:"downgradedTierHasPrefix,omitempty"`
	DowngradedTierHasSuffix    *string  `json:"downgradedTierHasSuffix,omitempty"`
	DowngradedTierIsNil        bool     `json:"downgradedTierIsNil,omitempty"`
	DowngradedTierNotNil       bool     `json:"downgradedTierNotNil,omitempty"`
	DowngradedTierEqualFold    *string  `json:"downgradedTierEqualFold,omitempty"`
	DowngradedTierContainsFold *string  `json:"downgradedTierContainsFold,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"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// LogoURL holds the value of the "logo_url" field.
	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() *GroupSettingsQuery

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) (*GroupSettings, 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) *GroupSettingsQuery

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

func (gc *GroupCreate) SetNillableID(s *string) *GroupCreate

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

func (*GroupCreate) SetNillableOwnerID added in v0.1.1

func (gc *GroupCreate) SetNillableOwnerID(id *string) *GroupCreate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID 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 *GroupSettings) *GroupCreate

SetSetting sets the "setting" edge to the GroupSettings entity.

func (*GroupCreate) SetSettingID

func (gc *GroupCreate) SetSettingID(id string) *GroupCreate

SetSettingID sets the "setting" edge to the GroupSettings 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 *GroupSettings `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() (*GroupSettings, 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) 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) 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.GroupSettings)

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) 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) 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 GroupSettings 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) Description

func (m *GroupMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the 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) 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) 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) 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) 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) 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) 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) 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) 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 GroupSettings 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 GroupSettings 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() *GroupSettingsQuery

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(*GroupSettingsQuery)) *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 GroupSettings

type GroupSettings 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"`
	// Visibility holds the value of the "visibility" field.
	Visibility groupsettings.Visibility `json:"visibility,omitempty"`
	// JoinPolicy holds the value of the "join_policy" field.
	JoinPolicy groupsettings.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 GroupSettingsQuery when eager-loading is set.
	Edges GroupSettingsEdges `json:"edges"`
	// contains filtered or unexported fields
}

GroupSettings is the model entity for the GroupSettings schema.

func (*GroupSettings) IsNode added in v0.1.1

func (n *GroupSettings) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*GroupSettings) QueryGroup added in v0.1.1

func (gs *GroupSettings) QueryGroup() *GroupQuery

QueryGroup queries the "group" edge of the GroupSettings entity.

func (*GroupSettings) String added in v0.1.1

func (gs *GroupSettings) String() string

String implements the fmt.Stringer.

func (*GroupSettings) ToEdge added in v0.1.1

ToEdge converts GroupSettings into GroupSettingsEdge.

func (*GroupSettings) Unwrap added in v0.1.1

func (gs *GroupSettings) Unwrap() *GroupSettings

Unwrap unwraps the GroupSettings 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 (*GroupSettings) Update added in v0.1.1

func (gs *GroupSettings) Update() *GroupSettingsUpdateOne

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

func (*GroupSettings) Value added in v0.1.1

func (gs *GroupSettings) Value(name string) (ent.Value, error)

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

type GroupSettingsClient added in v0.1.1

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

GroupSettingsClient is a client for the GroupSettings schema.

func NewGroupSettingsClient added in v0.1.1

func NewGroupSettingsClient(c config) *GroupSettingsClient

NewGroupSettingsClient returns a client for the GroupSettings from the given config.

func (*GroupSettingsClient) Create added in v0.1.1

Create returns a builder for creating a GroupSettings entity.

func (*GroupSettingsClient) CreateBulk added in v0.1.1

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

func (*GroupSettingsClient) Delete added in v0.1.1

Delete returns a delete builder for GroupSettings.

func (*GroupSettingsClient) DeleteOne added in v0.1.1

DeleteOne returns a builder for deleting the given entity.

func (*GroupSettingsClient) DeleteOneID added in v0.1.1

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

func (*GroupSettingsClient) Get added in v0.1.1

Get returns a GroupSettings entity by its id.

func (*GroupSettingsClient) GetX added in v0.1.1

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

func (*GroupSettingsClient) Hooks added in v0.1.1

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

Hooks returns the client hooks.

func (*GroupSettingsClient) Intercept added in v0.1.1

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

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

func (*GroupSettingsClient) Interceptors added in v0.1.1

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

Interceptors returns the client interceptors.

func (*GroupSettingsClient) MapCreateBulk added in v0.1.1

func (c *GroupSettingsClient) MapCreateBulk(slice any, setFunc func(*GroupSettingsCreate, int)) *GroupSettingsCreateBulk

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 (*GroupSettingsClient) Query added in v0.1.1

Query returns a query builder for GroupSettings.

func (*GroupSettingsClient) QueryGroup added in v0.1.1

func (c *GroupSettingsClient) QueryGroup(gs *GroupSettings) *GroupQuery

QueryGroup queries the group edge of a GroupSettings.

func (*GroupSettingsClient) Update added in v0.1.1

Update returns an update builder for GroupSettings.

func (*GroupSettingsClient) UpdateOne added in v0.1.1

UpdateOne returns an update builder for the given entity.

func (*GroupSettingsClient) UpdateOneID added in v0.1.1

UpdateOneID returns an update builder for the given id.

func (*GroupSettingsClient) Use added in v0.1.1

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

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

type GroupSettingsConnection added in v0.1.1

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

GroupSettingsConnection is the connection containing edges to GroupSettings.

type GroupSettingsCreate added in v0.1.1

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

GroupSettingsCreate is the builder for creating a GroupSettings entity.

func (*GroupSettingsCreate) Exec added in v0.1.1

func (gsc *GroupSettingsCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupSettingsCreate) ExecX added in v0.1.1

func (gsc *GroupSettingsCreate) ExecX(ctx context.Context)

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

func (*GroupSettingsCreate) Mutation added in v0.1.1

func (gsc *GroupSettingsCreate) Mutation() *GroupSettingsMutation

Mutation returns the GroupSettingsMutation object of the builder.

func (*GroupSettingsCreate) Save added in v0.1.1

Save creates the GroupSettings in the database.

func (*GroupSettingsCreate) SaveX added in v0.1.1

SaveX calls Save and panics if Save returns an error.

func (*GroupSettingsCreate) SetCreatedAt added in v0.1.1

func (gsc *GroupSettingsCreate) SetCreatedAt(t time.Time) *GroupSettingsCreate

SetCreatedAt sets the "created_at" field.

func (*GroupSettingsCreate) SetCreatedBy added in v0.1.1

func (gsc *GroupSettingsCreate) SetCreatedBy(s string) *GroupSettingsCreate

SetCreatedBy sets the "created_by" field.

func (*GroupSettingsCreate) SetGroup added in v0.1.1

func (gsc *GroupSettingsCreate) SetGroup(g *Group) *GroupSettingsCreate

SetGroup sets the "group" edge to the Group entity.

func (*GroupSettingsCreate) SetGroupID added in v0.1.1

func (gsc *GroupSettingsCreate) SetGroupID(id string) *GroupSettingsCreate

SetGroupID sets the "group" edge to the Group entity by ID.

func (*GroupSettingsCreate) SetID added in v0.1.1

SetID sets the "id" field.

func (*GroupSettingsCreate) SetInput added in v0.1.1

SetInput applies the change-set in the CreateGroupSettingsInput on the GroupSettingsCreate builder.

func (*GroupSettingsCreate) SetJoinPolicy added in v0.1.1

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingsCreate) SetNillableCreatedAt added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableCreatedAt(t *time.Time) *GroupSettingsCreate

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

func (*GroupSettingsCreate) SetNillableCreatedBy added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableCreatedBy(s *string) *GroupSettingsCreate

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

func (*GroupSettingsCreate) SetNillableGroupID added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableGroupID(id *string) *GroupSettingsCreate

SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.

func (*GroupSettingsCreate) SetNillableID added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableID(s *string) *GroupSettingsCreate

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

func (*GroupSettingsCreate) SetNillableJoinPolicy added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableJoinPolicy(gp *groupsettings.JoinPolicy) *GroupSettingsCreate

SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.

func (*GroupSettingsCreate) SetNillableSyncToGithub added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableSyncToGithub(b *bool) *GroupSettingsCreate

SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.

func (*GroupSettingsCreate) SetNillableSyncToSlack added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableSyncToSlack(b *bool) *GroupSettingsCreate

SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.

func (*GroupSettingsCreate) SetNillableUpdatedAt added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableUpdatedAt(t *time.Time) *GroupSettingsCreate

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

func (*GroupSettingsCreate) SetNillableUpdatedBy added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableUpdatedBy(s *string) *GroupSettingsCreate

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

func (*GroupSettingsCreate) SetNillableVisibility added in v0.1.1

func (gsc *GroupSettingsCreate) SetNillableVisibility(gr *groupsettings.Visibility) *GroupSettingsCreate

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*GroupSettingsCreate) SetSyncToGithub added in v0.1.1

func (gsc *GroupSettingsCreate) SetSyncToGithub(b bool) *GroupSettingsCreate

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingsCreate) SetSyncToSlack added in v0.1.1

func (gsc *GroupSettingsCreate) SetSyncToSlack(b bool) *GroupSettingsCreate

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingsCreate) SetTags added in v0.1.1

func (gsc *GroupSettingsCreate) SetTags(s []string) *GroupSettingsCreate

SetTags sets the "tags" field.

func (*GroupSettingsCreate) SetUpdatedAt added in v0.1.1

func (gsc *GroupSettingsCreate) SetUpdatedAt(t time.Time) *GroupSettingsCreate

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingsCreate) SetUpdatedBy added in v0.1.1

func (gsc *GroupSettingsCreate) SetUpdatedBy(s string) *GroupSettingsCreate

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingsCreate) SetVisibility added in v0.1.1

SetVisibility sets the "visibility" field.

type GroupSettingsCreateBulk added in v0.1.1

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

GroupSettingsCreateBulk is the builder for creating many GroupSettings entities in bulk.

func (*GroupSettingsCreateBulk) Exec added in v0.1.1

func (gscb *GroupSettingsCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupSettingsCreateBulk) ExecX added in v0.1.1

func (gscb *GroupSettingsCreateBulk) ExecX(ctx context.Context)

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

func (*GroupSettingsCreateBulk) Save added in v0.1.1

Save creates the GroupSettings entities in the database.

func (*GroupSettingsCreateBulk) SaveX added in v0.1.1

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

type GroupSettingsDelete added in v0.1.1

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

GroupSettingsDelete is the builder for deleting a GroupSettings entity.

func (*GroupSettingsDelete) Exec added in v0.1.1

func (gsd *GroupSettingsDelete) Exec(ctx context.Context) (int, error)

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

func (*GroupSettingsDelete) ExecX added in v0.1.1

func (gsd *GroupSettingsDelete) ExecX(ctx context.Context) int

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

func (*GroupSettingsDelete) Where added in v0.1.1

Where appends a list predicates to the GroupSettingsDelete builder.

type GroupSettingsDeleteOne added in v0.1.1

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

GroupSettingsDeleteOne is the builder for deleting a single GroupSettings entity.

func (*GroupSettingsDeleteOne) Exec added in v0.1.1

func (gsdo *GroupSettingsDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*GroupSettingsDeleteOne) ExecX added in v0.1.1

func (gsdo *GroupSettingsDeleteOne) ExecX(ctx context.Context)

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

func (*GroupSettingsDeleteOne) Where added in v0.1.1

Where appends a list predicates to the GroupSettingsDelete builder.

type GroupSettingsEdge added in v0.1.1

type GroupSettingsEdge struct {
	Node   *GroupSettings `json:"node"`
	Cursor Cursor         `json:"cursor"`
}

GroupSettingsEdge is the edge representation of GroupSettings.

type GroupSettingsEdges added in v0.1.1

type GroupSettingsEdges struct {
	// Group holds the value of the group edge.
	Group *Group `json:"group,omitempty"`
	// contains filtered or unexported fields
}

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

func (GroupSettingsEdges) GroupOrErr added in v0.1.1

func (e GroupSettingsEdges) 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 GroupSettingsFilter added in v0.1.1

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

GroupSettingsFilter provides a generic filtering capability at runtime for GroupSettingsQuery.

func (*GroupSettingsFilter) Where added in v0.1.1

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

Where applies the entql predicate on the query filter.

func (*GroupSettingsFilter) WhereCreatedAt added in v0.1.1

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

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

func (*GroupSettingsFilter) WhereCreatedBy added in v0.1.1

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

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*GroupSettingsFilter) WhereHasGroup added in v0.1.1

func (f *GroupSettingsFilter) WhereHasGroup()

WhereHasGroup applies a predicate to check if query has an edge group.

func (*GroupSettingsFilter) WhereHasGroupWith added in v0.1.1

func (f *GroupSettingsFilter) WhereHasGroupWith(preds ...predicate.Group)

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

func (*GroupSettingsFilter) WhereID added in v0.1.1

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

WhereID applies the entql string predicate on the id field.

func (*GroupSettingsFilter) WhereJoinPolicy added in v0.1.1

func (f *GroupSettingsFilter) WhereJoinPolicy(p entql.StringP)

WhereJoinPolicy applies the entql string predicate on the join_policy field.

func (*GroupSettingsFilter) WhereSyncToGithub added in v0.1.1

func (f *GroupSettingsFilter) WhereSyncToGithub(p entql.BoolP)

WhereSyncToGithub applies the entql bool predicate on the sync_to_github field.

func (*GroupSettingsFilter) WhereSyncToSlack added in v0.1.1

func (f *GroupSettingsFilter) WhereSyncToSlack(p entql.BoolP)

WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field.

func (*GroupSettingsFilter) WhereTags added in v0.1.1

func (f *GroupSettingsFilter) WhereTags(p entql.BytesP)

WhereTags applies the entql json.RawMessage predicate on the tags field.

func (*GroupSettingsFilter) WhereUpdatedAt added in v0.1.1

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

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

func (*GroupSettingsFilter) WhereUpdatedBy added in v0.1.1

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

WhereUpdatedBy applies the entql string predicate on the updated_by field.

func (*GroupSettingsFilter) WhereVisibility added in v0.1.1

func (f *GroupSettingsFilter) WhereVisibility(p entql.StringP)

WhereVisibility applies the entql string predicate on the visibility field.

type GroupSettingsGroupBy added in v0.1.1

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

GroupSettingsGroupBy is the group-by builder for GroupSettings entities.

func (*GroupSettingsGroupBy) Aggregate added in v0.1.1

func (gsgb *GroupSettingsGroupBy) Aggregate(fns ...AggregateFunc) *GroupSettingsGroupBy

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

func (*GroupSettingsGroupBy) Bool added in v0.1.1

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

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

func (*GroupSettingsGroupBy) BoolX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Bools added in v0.1.1

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

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

func (*GroupSettingsGroupBy) BoolsX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Float64 added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Float64X added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Float64s added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Float64sX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Int added in v0.1.1

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

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

func (*GroupSettingsGroupBy) IntX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Ints added in v0.1.1

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

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

func (*GroupSettingsGroupBy) IntsX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Scan added in v0.1.1

func (gsgb *GroupSettingsGroupBy) Scan(ctx context.Context, v any) error

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

func (*GroupSettingsGroupBy) ScanX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) String added in v0.1.1

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

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

func (*GroupSettingsGroupBy) StringX added in v0.1.1

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

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

func (*GroupSettingsGroupBy) Strings added in v0.1.1

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

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

func (*GroupSettingsGroupBy) StringsX added in v0.1.1

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

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

type GroupSettingsMutation added in v0.1.1

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

GroupSettingsMutation represents an operation that mutates the GroupSettings nodes in the graph.

func (*GroupSettingsMutation) AddField added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) AddedEdges added in v0.1.1

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

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

func (*GroupSettingsMutation) AddedField added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) AddedFields added in v0.1.1

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

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

func (*GroupSettingsMutation) AddedIDs added in v0.1.1

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

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

func (*GroupSettingsMutation) AppendTags added in v0.1.1

func (m *GroupSettingsMutation) AppendTags(s []string)

AppendTags adds s to the "tags" field.

func (*GroupSettingsMutation) AppendedTags added in v0.1.1

func (m *GroupSettingsMutation) AppendedTags() ([]string, bool)

AppendedTags returns the list of values that were appended to the "tags" field in this mutation.

func (*GroupSettingsMutation) ClearCreatedBy added in v0.1.1

func (m *GroupSettingsMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*GroupSettingsMutation) ClearEdge added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) ClearField added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) ClearGroup added in v0.1.1

func (m *GroupSettingsMutation) ClearGroup()

ClearGroup clears the "group" edge to the Group entity.

func (*GroupSettingsMutation) ClearUpdatedBy added in v0.1.1

func (m *GroupSettingsMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupSettingsMutation) ClearedEdges added in v0.1.1

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

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

func (*GroupSettingsMutation) ClearedFields added in v0.1.1

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

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

func (GroupSettingsMutation) Client added in v0.1.1

func (m GroupSettingsMutation) 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 (*GroupSettingsMutation) CreatedAt added in v0.1.1

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

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

func (*GroupSettingsMutation) CreatedBy added in v0.1.1

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

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

func (*GroupSettingsMutation) CreatedByCleared added in v0.1.1

func (m *GroupSettingsMutation) CreatedByCleared() bool

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

func (*GroupSettingsMutation) EdgeCleared added in v0.1.1

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

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

func (*GroupSettingsMutation) Field added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) FieldCleared added in v0.1.1

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

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

func (*GroupSettingsMutation) Fields added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) Filter added in v0.1.1

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

func (*GroupSettingsMutation) GroupCleared added in v0.1.1

func (m *GroupSettingsMutation) GroupCleared() bool

GroupCleared reports if the "group" edge to the Group entity was cleared.

func (*GroupSettingsMutation) GroupID added in v0.1.1

func (m *GroupSettingsMutation) GroupID() (id string, exists bool)

GroupID returns the "group" edge ID in the mutation.

func (*GroupSettingsMutation) GroupIDs added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) ID added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) IDs added in v0.1.1

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 (*GroupSettingsMutation) JoinPolicy added in v0.1.1

func (m *GroupSettingsMutation) JoinPolicy() (r groupsettings.JoinPolicy, exists bool)

JoinPolicy returns the value of the "join_policy" field in the mutation.

func (*GroupSettingsMutation) OldCreatedAt added in v0.1.1

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

OldCreatedAt returns the old "created_at" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldCreatedBy added in v0.1.1

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

OldCreatedBy returns the old "created_by" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldField added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) OldJoinPolicy added in v0.1.1

func (m *GroupSettingsMutation) OldJoinPolicy(ctx context.Context) (v groupsettings.JoinPolicy, err error)

OldJoinPolicy returns the old "join_policy" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldSyncToGithub added in v0.1.1

func (m *GroupSettingsMutation) OldSyncToGithub(ctx context.Context) (v bool, err error)

OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldSyncToSlack added in v0.1.1

func (m *GroupSettingsMutation) OldSyncToSlack(ctx context.Context) (v bool, err error)

OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldTags added in v0.1.1

func (m *GroupSettingsMutation) OldTags(ctx context.Context) (v []string, err error)

OldTags returns the old "tags" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldUpdatedAt added in v0.1.1

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

OldUpdatedAt returns the old "updated_at" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldUpdatedBy added in v0.1.1

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

OldUpdatedBy returns the old "updated_by" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) OldVisibility added in v0.1.1

func (m *GroupSettingsMutation) OldVisibility(ctx context.Context) (v groupsettings.Visibility, err error)

OldVisibility returns the old "visibility" field's value of the GroupSettings entity. If the GroupSettings 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 (*GroupSettingsMutation) Op added in v0.1.1

func (m *GroupSettingsMutation) Op() Op

Op returns the operation name.

func (*GroupSettingsMutation) RemovedEdges added in v0.1.1

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

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

func (*GroupSettingsMutation) RemovedIDs added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) ResetCreatedAt added in v0.1.1

func (m *GroupSettingsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*GroupSettingsMutation) ResetCreatedBy added in v0.1.1

func (m *GroupSettingsMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*GroupSettingsMutation) ResetEdge added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) ResetField added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) ResetGroup added in v0.1.1

func (m *GroupSettingsMutation) ResetGroup()

ResetGroup resets all changes to the "group" edge.

func (*GroupSettingsMutation) ResetJoinPolicy added in v0.1.1

func (m *GroupSettingsMutation) ResetJoinPolicy()

ResetJoinPolicy resets all changes to the "join_policy" field.

func (*GroupSettingsMutation) ResetSyncToGithub added in v0.1.1

func (m *GroupSettingsMutation) ResetSyncToGithub()

ResetSyncToGithub resets all changes to the "sync_to_github" field.

func (*GroupSettingsMutation) ResetSyncToSlack added in v0.1.1

func (m *GroupSettingsMutation) ResetSyncToSlack()

ResetSyncToSlack resets all changes to the "sync_to_slack" field.

func (*GroupSettingsMutation) ResetTags added in v0.1.1

func (m *GroupSettingsMutation) ResetTags()

ResetTags resets all changes to the "tags" field.

func (*GroupSettingsMutation) ResetUpdatedAt added in v0.1.1

func (m *GroupSettingsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*GroupSettingsMutation) ResetUpdatedBy added in v0.1.1

func (m *GroupSettingsMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*GroupSettingsMutation) ResetVisibility added in v0.1.1

func (m *GroupSettingsMutation) ResetVisibility()

ResetVisibility resets all changes to the "visibility" field.

func (*GroupSettingsMutation) SetCreatedAt added in v0.1.1

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

SetCreatedAt sets the "created_at" field.

func (*GroupSettingsMutation) SetCreatedBy added in v0.1.1

func (m *GroupSettingsMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*GroupSettingsMutation) SetField added in v0.1.1

func (m *GroupSettingsMutation) 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 (*GroupSettingsMutation) SetGroupID added in v0.1.1

func (m *GroupSettingsMutation) SetGroupID(id string)

SetGroupID sets the "group" edge to the Group entity by id.

func (*GroupSettingsMutation) SetID added in v0.1.1

func (m *GroupSettingsMutation) SetID(id string)

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

func (*GroupSettingsMutation) SetJoinPolicy added in v0.1.1

func (m *GroupSettingsMutation) SetJoinPolicy(gp groupsettings.JoinPolicy)

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingsMutation) SetOp added in v0.1.1

func (m *GroupSettingsMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*GroupSettingsMutation) SetSyncToGithub added in v0.1.1

func (m *GroupSettingsMutation) SetSyncToGithub(b bool)

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingsMutation) SetSyncToSlack added in v0.1.1

func (m *GroupSettingsMutation) SetSyncToSlack(b bool)

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingsMutation) SetTags added in v0.1.1

func (m *GroupSettingsMutation) SetTags(s []string)

SetTags sets the "tags" field.

func (*GroupSettingsMutation) SetUpdatedAt added in v0.1.1

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

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingsMutation) SetUpdatedBy added in v0.1.1

func (m *GroupSettingsMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingsMutation) SetVisibility added in v0.1.1

func (m *GroupSettingsMutation) SetVisibility(gr groupsettings.Visibility)

SetVisibility sets the "visibility" field.

func (*GroupSettingsMutation) SyncToGithub added in v0.1.1

func (m *GroupSettingsMutation) SyncToGithub() (r bool, exists bool)

SyncToGithub returns the value of the "sync_to_github" field in the mutation.

func (*GroupSettingsMutation) SyncToSlack added in v0.1.1

func (m *GroupSettingsMutation) SyncToSlack() (r bool, exists bool)

SyncToSlack returns the value of the "sync_to_slack" field in the mutation.

func (*GroupSettingsMutation) Tags added in v0.1.1

func (m *GroupSettingsMutation) Tags() (r []string, exists bool)

Tags returns the value of the "tags" field in the mutation.

func (GroupSettingsMutation) Tx added in v0.1.1

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

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

func (*GroupSettingsMutation) Type added in v0.1.1

func (m *GroupSettingsMutation) Type() string

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

func (*GroupSettingsMutation) UpdatedAt added in v0.1.1

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

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

func (*GroupSettingsMutation) UpdatedBy added in v0.1.1

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

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

func (*GroupSettingsMutation) UpdatedByCleared added in v0.1.1

func (m *GroupSettingsMutation) UpdatedByCleared() bool

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

func (*GroupSettingsMutation) Visibility added in v0.1.1

func (m *GroupSettingsMutation) Visibility() (r groupsettings.Visibility, exists bool)

Visibility returns the value of the "visibility" field in the mutation.

func (*GroupSettingsMutation) Where added in v0.1.1

Where appends a list predicates to the GroupSettingsMutation builder.

func (*GroupSettingsMutation) WhereP added in v0.1.1

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

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

type GroupSettingsOrder added in v0.1.1

type GroupSettingsOrder struct {
	Direction OrderDirection           `json:"direction"`
	Field     *GroupSettingsOrderField `json:"field"`
}

GroupSettingsOrder defines the ordering of GroupSettings.

type GroupSettingsOrderField added in v0.1.1

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

GroupSettingsOrderField defines the ordering field of GroupSettings.

type GroupSettingsPaginateOption added in v0.1.1

type GroupSettingsPaginateOption func(*groupsettingsPager) error

GroupSettingsPaginateOption enables pagination customization.

func WithGroupSettingsFilter added in v0.1.1

func WithGroupSettingsFilter(filter func(*GroupSettingsQuery) (*GroupSettingsQuery, error)) GroupSettingsPaginateOption

WithGroupSettingsFilter configures pagination filter.

func WithGroupSettingsOrder added in v0.1.1

func WithGroupSettingsOrder(order *GroupSettingsOrder) GroupSettingsPaginateOption

WithGroupSettingsOrder configures pagination ordering.

type GroupSettingsQuery added in v0.1.1

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

GroupSettingsQuery is the builder for querying GroupSettings entities.

func (*GroupSettingsQuery) Aggregate added in v0.1.1

func (gsq *GroupSettingsQuery) Aggregate(fns ...AggregateFunc) *GroupSettingsSelect

Aggregate returns a GroupSettingsSelect configured with the given aggregations.

func (*GroupSettingsQuery) All added in v0.1.1

All executes the query and returns a list of GroupSettingsSlice.

func (*GroupSettingsQuery) AllX added in v0.1.1

func (gsq *GroupSettingsQuery) AllX(ctx context.Context) []*GroupSettings

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

func (*GroupSettingsQuery) Clone added in v0.1.1

func (gsq *GroupSettingsQuery) Clone() *GroupSettingsQuery

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

func (*GroupSettingsQuery) CollectFields added in v0.1.1

func (gs *GroupSettingsQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingsQuery, error)

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

func (*GroupSettingsQuery) Count added in v0.1.1

func (gsq *GroupSettingsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*GroupSettingsQuery) CountX added in v0.1.1

func (gsq *GroupSettingsQuery) CountX(ctx context.Context) int

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

func (*GroupSettingsQuery) Exist added in v0.1.1

func (gsq *GroupSettingsQuery) Exist(ctx context.Context) (bool, error)

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

func (*GroupSettingsQuery) ExistX added in v0.1.1

func (gsq *GroupSettingsQuery) ExistX(ctx context.Context) bool

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

func (*GroupSettingsQuery) Filter added in v0.1.1

func (gsq *GroupSettingsQuery) Filter() *GroupSettingsFilter

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

func (*GroupSettingsQuery) First added in v0.1.1

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

func (*GroupSettingsQuery) FirstID added in v0.1.1

func (gsq *GroupSettingsQuery) FirstID(ctx context.Context) (id string, err error)

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

func (*GroupSettingsQuery) FirstIDX added in v0.1.1

func (gsq *GroupSettingsQuery) FirstIDX(ctx context.Context) string

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

func (*GroupSettingsQuery) FirstX added in v0.1.1

func (gsq *GroupSettingsQuery) FirstX(ctx context.Context) *GroupSettings

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

func (*GroupSettingsQuery) GroupBy added in v0.1.1

func (gsq *GroupSettingsQuery) GroupBy(field string, fields ...string) *GroupSettingsGroupBy

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.GroupSettings.Query().
	GroupBy(groupsettings.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*GroupSettingsQuery) IDs added in v0.1.1

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

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

func (*GroupSettingsQuery) IDsX added in v0.1.1

func (gsq *GroupSettingsQuery) IDsX(ctx context.Context) []string

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

func (*GroupSettingsQuery) Limit added in v0.1.1

func (gsq *GroupSettingsQuery) Limit(limit int) *GroupSettingsQuery

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

func (*GroupSettingsQuery) Offset added in v0.1.1

func (gsq *GroupSettingsQuery) Offset(offset int) *GroupSettingsQuery

Offset to start from.

func (*GroupSettingsQuery) Only added in v0.1.1

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

func (*GroupSettingsQuery) OnlyID added in v0.1.1

func (gsq *GroupSettingsQuery) OnlyID(ctx context.Context) (id string, err error)

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

func (*GroupSettingsQuery) OnlyIDX added in v0.1.1

func (gsq *GroupSettingsQuery) OnlyIDX(ctx context.Context) string

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

func (*GroupSettingsQuery) OnlyX added in v0.1.1

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

func (*GroupSettingsQuery) Order added in v0.1.1

Order specifies how the records should be ordered.

func (*GroupSettingsQuery) Paginate added in v0.1.1

func (gs *GroupSettingsQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...GroupSettingsPaginateOption,
) (*GroupSettingsConnection, error)

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

func (*GroupSettingsQuery) QueryGroup added in v0.1.1

func (gsq *GroupSettingsQuery) QueryGroup() *GroupQuery

QueryGroup chains the current query on the "group" edge.

func (*GroupSettingsQuery) Select added in v0.1.1

func (gsq *GroupSettingsQuery) Select(fields ...string) *GroupSettingsSelect

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.GroupSettings.Query().
	Select(groupsettings.FieldCreatedAt).
	Scan(ctx, &v)

func (*GroupSettingsQuery) Unique added in v0.1.1

func (gsq *GroupSettingsQuery) Unique(unique bool) *GroupSettingsQuery

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 (*GroupSettingsQuery) Where added in v0.1.1

Where adds a new predicate for the GroupSettingsQuery builder.

func (*GroupSettingsQuery) WithGroup added in v0.1.1

func (gsq *GroupSettingsQuery) WithGroup(opts ...func(*GroupQuery)) *GroupSettingsQuery

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

type GroupSettingsSelect struct {
	*GroupSettingsQuery
	// contains filtered or unexported fields
}

GroupSettingsSelect is the builder for selecting fields of GroupSettings entities.

func (*GroupSettingsSelect) Aggregate added in v0.1.1

func (gss *GroupSettingsSelect) Aggregate(fns ...AggregateFunc) *GroupSettingsSelect

Aggregate adds the given aggregation functions to the selector query.

func (*GroupSettingsSelect) Bool added in v0.1.1

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

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

func (*GroupSettingsSelect) BoolX added in v0.1.1

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

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

func (*GroupSettingsSelect) Bools added in v0.1.1

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

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

func (*GroupSettingsSelect) BoolsX added in v0.1.1

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

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

func (*GroupSettingsSelect) Float64 added in v0.1.1

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

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

func (*GroupSettingsSelect) Float64X added in v0.1.1

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

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

func (*GroupSettingsSelect) Float64s added in v0.1.1

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

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

func (*GroupSettingsSelect) Float64sX added in v0.1.1

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

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

func (*GroupSettingsSelect) Int added in v0.1.1

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

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

func (*GroupSettingsSelect) IntX added in v0.1.1

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

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

func (*GroupSettingsSelect) Ints added in v0.1.1

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

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

func (*GroupSettingsSelect) IntsX added in v0.1.1

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

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

func (*GroupSettingsSelect) Scan added in v0.1.1

func (gss *GroupSettingsSelect) Scan(ctx context.Context, v any) error

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

func (*GroupSettingsSelect) ScanX added in v0.1.1

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

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

func (*GroupSettingsSelect) String added in v0.1.1

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

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

func (*GroupSettingsSelect) StringX added in v0.1.1

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

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

func (*GroupSettingsSelect) Strings added in v0.1.1

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

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

func (*GroupSettingsSelect) StringsX added in v0.1.1

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

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

type GroupSettingsSlice added in v0.1.1

type GroupSettingsSlice []*GroupSettings

GroupSettingsSlice is a parsable slice of GroupSettings.

type GroupSettingsUpdate added in v0.1.1

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

GroupSettingsUpdate is the builder for updating GroupSettings entities.

func (*GroupSettingsUpdate) AppendTags added in v0.1.1

func (gsu *GroupSettingsUpdate) AppendTags(s []string) *GroupSettingsUpdate

AppendTags appends s to the "tags" field.

func (*GroupSettingsUpdate) ClearCreatedBy added in v0.1.1

func (gsu *GroupSettingsUpdate) ClearCreatedBy() *GroupSettingsUpdate

ClearCreatedBy clears the value of the "created_by" field.

func (*GroupSettingsUpdate) ClearGroup added in v0.1.1

func (gsu *GroupSettingsUpdate) ClearGroup() *GroupSettingsUpdate

ClearGroup clears the "group" edge to the Group entity.

func (*GroupSettingsUpdate) ClearUpdatedBy added in v0.1.1

func (gsu *GroupSettingsUpdate) ClearUpdatedBy() *GroupSettingsUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupSettingsUpdate) Exec added in v0.1.1

func (gsu *GroupSettingsUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*GroupSettingsUpdate) ExecX added in v0.1.1

func (gsu *GroupSettingsUpdate) ExecX(ctx context.Context)

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

func (*GroupSettingsUpdate) Mutation added in v0.1.1

func (gsu *GroupSettingsUpdate) Mutation() *GroupSettingsMutation

Mutation returns the GroupSettingsMutation object of the builder.

func (*GroupSettingsUpdate) Save added in v0.1.1

func (gsu *GroupSettingsUpdate) Save(ctx context.Context) (int, error)

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

func (*GroupSettingsUpdate) SaveX added in v0.1.1

func (gsu *GroupSettingsUpdate) SaveX(ctx context.Context) int

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

func (*GroupSettingsUpdate) SetCreatedBy added in v0.1.1

func (gsu *GroupSettingsUpdate) SetCreatedBy(s string) *GroupSettingsUpdate

SetCreatedBy sets the "created_by" field.

func (*GroupSettingsUpdate) SetGroup added in v0.1.1

func (gsu *GroupSettingsUpdate) SetGroup(g *Group) *GroupSettingsUpdate

SetGroup sets the "group" edge to the Group entity.

func (*GroupSettingsUpdate) SetGroupID added in v0.1.1

func (gsu *GroupSettingsUpdate) SetGroupID(id string) *GroupSettingsUpdate

SetGroupID sets the "group" edge to the Group entity by ID.

func (*GroupSettingsUpdate) SetInput added in v0.1.1

SetInput applies the change-set in the UpdateGroupSettingsInput on the GroupSettingsUpdate builder.

func (*GroupSettingsUpdate) SetJoinPolicy added in v0.1.1

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingsUpdate) SetNillableCreatedBy added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableCreatedBy(s *string) *GroupSettingsUpdate

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

func (*GroupSettingsUpdate) SetNillableGroupID added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableGroupID(id *string) *GroupSettingsUpdate

SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.

func (*GroupSettingsUpdate) SetNillableJoinPolicy added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableJoinPolicy(gp *groupsettings.JoinPolicy) *GroupSettingsUpdate

SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.

func (*GroupSettingsUpdate) SetNillableSyncToGithub added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableSyncToGithub(b *bool) *GroupSettingsUpdate

SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.

func (*GroupSettingsUpdate) SetNillableSyncToSlack added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableSyncToSlack(b *bool) *GroupSettingsUpdate

SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.

func (*GroupSettingsUpdate) SetNillableUpdatedBy added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableUpdatedBy(s *string) *GroupSettingsUpdate

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

func (*GroupSettingsUpdate) SetNillableVisibility added in v0.1.1

func (gsu *GroupSettingsUpdate) SetNillableVisibility(gr *groupsettings.Visibility) *GroupSettingsUpdate

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*GroupSettingsUpdate) SetSyncToGithub added in v0.1.1

func (gsu *GroupSettingsUpdate) SetSyncToGithub(b bool) *GroupSettingsUpdate

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingsUpdate) SetSyncToSlack added in v0.1.1

func (gsu *GroupSettingsUpdate) SetSyncToSlack(b bool) *GroupSettingsUpdate

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingsUpdate) SetTags added in v0.1.1

func (gsu *GroupSettingsUpdate) SetTags(s []string) *GroupSettingsUpdate

SetTags sets the "tags" field.

func (*GroupSettingsUpdate) SetUpdatedAt added in v0.1.1

func (gsu *GroupSettingsUpdate) SetUpdatedAt(t time.Time) *GroupSettingsUpdate

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingsUpdate) SetUpdatedBy added in v0.1.1

func (gsu *GroupSettingsUpdate) SetUpdatedBy(s string) *GroupSettingsUpdate

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingsUpdate) SetVisibility added in v0.1.1

SetVisibility sets the "visibility" field.

func (*GroupSettingsUpdate) Where added in v0.1.1

Where appends a list predicates to the GroupSettingsUpdate builder.

type GroupSettingsUpdateOne added in v0.1.1

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

GroupSettingsUpdateOne is the builder for updating a single GroupSettings entity.

func (*GroupSettingsUpdateOne) AppendTags added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) AppendTags(s []string) *GroupSettingsUpdateOne

AppendTags appends s to the "tags" field.

func (*GroupSettingsUpdateOne) ClearCreatedBy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) ClearCreatedBy() *GroupSettingsUpdateOne

ClearCreatedBy clears the value of the "created_by" field.

func (*GroupSettingsUpdateOne) ClearGroup added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) ClearGroup() *GroupSettingsUpdateOne

ClearGroup clears the "group" edge to the Group entity.

func (*GroupSettingsUpdateOne) ClearUpdatedBy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) ClearUpdatedBy() *GroupSettingsUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*GroupSettingsUpdateOne) Exec added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*GroupSettingsUpdateOne) ExecX added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) ExecX(ctx context.Context)

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

func (*GroupSettingsUpdateOne) Mutation added in v0.1.1

Mutation returns the GroupSettingsMutation object of the builder.

func (*GroupSettingsUpdateOne) Save added in v0.1.1

Save executes the query and returns the updated GroupSettings entity.

func (*GroupSettingsUpdateOne) SaveX added in v0.1.1

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

func (*GroupSettingsUpdateOne) Select added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) Select(field string, fields ...string) *GroupSettingsUpdateOne

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

func (*GroupSettingsUpdateOne) SetCreatedBy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetCreatedBy(s string) *GroupSettingsUpdateOne

SetCreatedBy sets the "created_by" field.

func (*GroupSettingsUpdateOne) SetGroup added in v0.1.1

SetGroup sets the "group" edge to the Group entity.

func (*GroupSettingsUpdateOne) SetGroupID added in v0.1.1

SetGroupID sets the "group" edge to the Group entity by ID.

func (*GroupSettingsUpdateOne) SetInput added in v0.1.1

SetInput applies the change-set in the UpdateGroupSettingsInput on the GroupSettingsUpdateOne builder.

func (*GroupSettingsUpdateOne) SetJoinPolicy added in v0.1.1

SetJoinPolicy sets the "join_policy" field.

func (*GroupSettingsUpdateOne) SetNillableCreatedBy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableCreatedBy(s *string) *GroupSettingsUpdateOne

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

func (*GroupSettingsUpdateOne) SetNillableGroupID added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableGroupID(id *string) *GroupSettingsUpdateOne

SetNillableGroupID sets the "group" edge to the Group entity by ID if the given value is not nil.

func (*GroupSettingsUpdateOne) SetNillableJoinPolicy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableJoinPolicy(gp *groupsettings.JoinPolicy) *GroupSettingsUpdateOne

SetNillableJoinPolicy sets the "join_policy" field if the given value is not nil.

func (*GroupSettingsUpdateOne) SetNillableSyncToGithub added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableSyncToGithub(b *bool) *GroupSettingsUpdateOne

SetNillableSyncToGithub sets the "sync_to_github" field if the given value is not nil.

func (*GroupSettingsUpdateOne) SetNillableSyncToSlack added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableSyncToSlack(b *bool) *GroupSettingsUpdateOne

SetNillableSyncToSlack sets the "sync_to_slack" field if the given value is not nil.

func (*GroupSettingsUpdateOne) SetNillableUpdatedBy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableUpdatedBy(s *string) *GroupSettingsUpdateOne

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

func (*GroupSettingsUpdateOne) SetNillableVisibility added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetNillableVisibility(gr *groupsettings.Visibility) *GroupSettingsUpdateOne

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*GroupSettingsUpdateOne) SetSyncToGithub added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetSyncToGithub(b bool) *GroupSettingsUpdateOne

SetSyncToGithub sets the "sync_to_github" field.

func (*GroupSettingsUpdateOne) SetSyncToSlack added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetSyncToSlack(b bool) *GroupSettingsUpdateOne

SetSyncToSlack sets the "sync_to_slack" field.

func (*GroupSettingsUpdateOne) SetTags added in v0.1.1

SetTags sets the "tags" field.

func (*GroupSettingsUpdateOne) SetUpdatedAt added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetUpdatedAt(t time.Time) *GroupSettingsUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*GroupSettingsUpdateOne) SetUpdatedBy added in v0.1.1

func (gsuo *GroupSettingsUpdateOne) SetUpdatedBy(s string) *GroupSettingsUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*GroupSettingsUpdateOne) SetVisibility added in v0.1.1

SetVisibility sets the "visibility" field.

func (*GroupSettingsUpdateOne) Where added in v0.1.1

Where appends a list predicates to the GroupSettingsUpdate builder.

type GroupSettingsWhereInput added in v0.1.1

type GroupSettingsWhereInput struct {
	Predicates []predicate.GroupSettings  `json:"-"`
	Not        *GroupSettingsWhereInput   `json:"not,omitempty"`
	Or         []*GroupSettingsWhereInput `json:"or,omitempty"`
	And        []*GroupSettingsWhereInput `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"`

	// "visibility" field predicates.
	Visibility      *groupsettings.Visibility  `json:"visibility,omitempty"`
	VisibilityNEQ   *groupsettings.Visibility  `json:"visibilityNEQ,omitempty"`
	VisibilityIn    []groupsettings.Visibility `json:"visibilityIn,omitempty"`
	VisibilityNotIn []groupsettings.Visibility `json:"visibilityNotIn,omitempty"`

	// "join_policy" field predicates.
	JoinPolicy      *groupsettings.JoinPolicy  `json:"joinPolicy,omitempty"`
	JoinPolicyNEQ   *groupsettings.JoinPolicy  `json:"joinPolicyNEQ,omitempty"`
	JoinPolicyIn    []groupsettings.JoinPolicy `json:"joinPolicyIn,omitempty"`
	JoinPolicyNotIn []groupsettings.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"`
}

GroupSettingsWhereInput represents a where input for filtering GroupSettings queries.

func (*GroupSettingsWhereInput) AddPredicates added in v0.1.1

func (i *GroupSettingsWhereInput) AddPredicates(predicates ...predicate.GroupSettings)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*GroupSettingsWhereInput) Filter added in v0.1.1

Filter applies the GroupSettingsWhereInput filter on the GroupSettingsQuery builder.

func (*GroupSettingsWhereInput) P added in v0.1.1

P returns a predicate for filtering groupsettingsslice. An error is returned if the input is empty or invalid.

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) ClearCreatedBy added in v0.1.1

func (gu *GroupUpdate) ClearCreatedBy() *GroupUpdate

ClearCreatedBy clears the value of the "created_by" 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 GroupSettings 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) SetCreatedBy added in v0.1.1

func (gu *GroupUpdate) SetCreatedBy(s string) *GroupUpdate

SetCreatedBy sets the "created_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) 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) SetNillableCreatedBy added in v0.1.1

func (gu *GroupUpdate) SetNillableCreatedBy(s *string) *GroupUpdate

SetNillableCreatedBy sets the "created_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) 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) SetNillableOwnerID added in v0.1.1

func (gu *GroupUpdate) SetNillableOwnerID(id *string) *GroupUpdate

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID 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 *GroupSettings) *GroupUpdate

SetSetting sets the "setting" edge to the GroupSettings entity.

func (*GroupUpdate) SetSettingID

func (gu *GroupUpdate) SetSettingID(id string) *GroupUpdate

SetSettingID sets the "setting" edge to the GroupSettings 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) ClearCreatedBy added in v0.1.1

func (guo *GroupUpdateOne) ClearCreatedBy() *GroupUpdateOne

ClearCreatedBy clears the value of the "created_by" 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 GroupSettings 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) SetCreatedBy added in v0.1.1

func (guo *GroupUpdateOne) SetCreatedBy(s string) *GroupUpdateOne

SetCreatedBy sets the "created_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) 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) SetNillableCreatedBy added in v0.1.1

func (guo *GroupUpdateOne) SetNillableCreatedBy(s *string) *GroupUpdateOne

SetNillableCreatedBy sets the "created_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) 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) SetNillableOwnerID added in v0.1.1

func (guo *GroupUpdateOne) SetNillableOwnerID(id *string) *GroupUpdateOne

SetNillableOwnerID sets the "owner" edge to the Organization entity by ID 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 *GroupSettings) *GroupUpdateOne

SetSetting sets the "setting" edge to the GroupSettings entity.

func (*GroupUpdateOne) SetSettingID

func (guo *GroupUpdateOne) SetSettingID(id string) *GroupUpdateOne

SetSettingID sets the "setting" edge to the GroupSettings 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"`

	// "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 []*GroupSettingsWhereInput `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"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Kind holds the value of the "kind" field.
	Kind string `json:"kind,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) ClearCreatedBy added in v0.1.1

func (iu *IntegrationUpdate) ClearCreatedBy() *IntegrationUpdate

ClearCreatedBy clears the value of the "created_by" field.

func (*IntegrationUpdate) ClearDescription

func (iu *IntegrationUpdate) ClearDescription() *IntegrationUpdate

ClearDescription clears the value of the "description" 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) SetCreatedBy added in v0.1.1

func (iu *IntegrationUpdate) SetCreatedBy(s string) *IntegrationUpdate

SetCreatedBy sets the "created_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) SetName

func (iu *IntegrationUpdate) SetName(s string) *IntegrationUpdate

SetName sets the "name" field.

func (*IntegrationUpdate) SetNillableCreatedBy added in v0.1.1

func (iu *IntegrationUpdate) SetNillableCreatedBy(s *string) *IntegrationUpdate

SetNillableCreatedBy sets the "created_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) 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) ClearCreatedBy added in v0.1.1

func (iuo *IntegrationUpdateOne) ClearCreatedBy() *IntegrationUpdateOne

ClearCreatedBy clears the value of the "created_by" field.

func (*IntegrationUpdateOne) ClearDescription

func (iuo *IntegrationUpdateOne) ClearDescription() *IntegrationUpdateOne

ClearDescription clears the value of the "description" 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) SetCreatedBy added in v0.1.1

func (iuo *IntegrationUpdateOne) SetCreatedBy(s string) *IntegrationUpdateOne

SetCreatedBy sets the "created_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) SetName

SetName sets the "name" field.

func (*IntegrationUpdateOne) SetNillableCreatedBy added in v0.1.1

func (iuo *IntegrationUpdateOne) SetNillableCreatedBy(s *string) *IntegrationUpdateOne

SetNillableCreatedBy sets the "created_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) 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"`

	// "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"`
	KindEqualFold    *string  `json:"kindEqualFold,omitempty"`
	KindContainsFold *string  `json:"kindContainsFold,omitempty"`

	// "description" field predicates.
	Description             *string  `json:"description,omitempty"`
	DescriptionNEQ          *string  `json:"descriptionNEQ,omitempty"`
	DescriptionIn           []string `json:"descriptionIn,omitempty"`
	DescriptionNotIn        []string `json:"descriptionNotIn,omitempty"`
	DescriptionGT           *string  `json:"descriptionGT,omitempty"`
	DescriptionGTE          *string  `json:"descriptionGTE,omitempty"`
	DescriptionLT           *string  `json:"descriptionLT,omitempty"`
	DescriptionLTE          *string  `json:"descriptionLTE,omitempty"`
	DescriptionContains     *string  `json:"descriptionContains,omitempty"`
	DescriptionHasPrefix    *string  `json:"descriptionHasPrefix,omitempty"`
	DescriptionHasSuffix    *string  `json:"descriptionHasSuffix,omitempty"`
	DescriptionIsNil        bool     `json:"descriptionIsNil,omitempty"`
	DescriptionNotNil       bool     `json:"descriptionNotNil,omitempty"`
	DescriptionEqualFold    *string  `json:"descriptionEqualFold,omitempty"`
	DescriptionContainsFold *string  `json:"descriptionContainsFold,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"`
	// the provider's name
	Name string `json:"name,omitempty"`
	// the client id
	ClientID string `json:"client_id,omitempty"`
	// the client secret
	ClientSecret string `json:"-"`
	// 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) 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) 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) 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) 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) 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) 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) 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) 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) ClearCreatedBy added in v0.1.1

func (opu *OauthProviderUpdate) ClearCreatedBy() *OauthProviderUpdate

ClearCreatedBy clears the value of the "created_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) SetCreatedBy added in v0.1.1

func (opu *OauthProviderUpdate) SetCreatedBy(s string) *OauthProviderUpdate

SetCreatedBy sets the "created_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) SetNillableCreatedBy added in v0.1.1

func (opu *OauthProviderUpdate) SetNillableCreatedBy(s *string) *OauthProviderUpdate

SetNillableCreatedBy sets the "created_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) ClearCreatedBy added in v0.1.1

func (opuo *OauthProviderUpdateOne) ClearCreatedBy() *OauthProviderUpdateOne

ClearCreatedBy clears the value of the "created_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) SetCreatedBy added in v0.1.1

func (opuo *OauthProviderUpdateOne) SetCreatedBy(s string) *OauthProviderUpdateOne

SetCreatedBy sets the "created_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) SetNillableCreatedBy added in v0.1.1

func (opuo *OauthProviderUpdateOne) SetNillableCreatedBy(s *string) *OauthProviderUpdateOne

SetNillableCreatedBy sets the "created_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"`

	// "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 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 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 Log

func Log(fn func(...any)) Option

Log sets the logging function for debug mode.

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"`
	// Name holds the value of the "name" field.
	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"`
	// 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() *OrganizationSettingsQuery

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

func (oc *OrganizationCreate) SetNillableSettingID(id *string) *OrganizationCreate

SetNillableSettingID sets the "setting" edge to the OrganizationSettings 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) SetSetting

SetSetting sets the "setting" edge to the OrganizationSettings entity.

func (*OrganizationCreate) SetSettingID

func (oc *OrganizationCreate) SetSettingID(id string) *OrganizationCreate

SetSettingID sets the "setting" edge to the OrganizationSettings 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 *OrganizationSettings `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() (*OrganizationSettings, 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) 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.OrganizationSettings)

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) 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) 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 OrganizationSettings 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) 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) 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) 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) 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) 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) 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) 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) SetSettingID

func (m *OrganizationMutation) SetSettingID(id string)

SetSettingID sets the "setting" edge to the OrganizationSettings 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 OrganizationSettings 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() *OrganizationSettingsQuery

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(*OrganizationSettingsQuery)) *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 OrganizationSettings

type OrganizationSettings 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"`
	// 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 OrganizationSettingsQuery when eager-loading is set.
	Edges OrganizationSettingsEdges `json:"edges"`
	// contains filtered or unexported fields
}

OrganizationSettings is the model entity for the OrganizationSettings schema.

func (*OrganizationSettings) IsNode added in v0.1.1

func (n *OrganizationSettings) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*OrganizationSettings) QueryOrgnaization added in v0.1.1

func (os *OrganizationSettings) QueryOrgnaization() *OrganizationQuery

QueryOrgnaization queries the "orgnaization" edge of the OrganizationSettings entity.

func (*OrganizationSettings) String added in v0.1.1

func (os *OrganizationSettings) String() string

String implements the fmt.Stringer.

func (*OrganizationSettings) ToEdge added in v0.1.1

ToEdge converts OrganizationSettings into OrganizationSettingsEdge.

func (*OrganizationSettings) Unwrap added in v0.1.1

Unwrap unwraps the OrganizationSettings 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 (*OrganizationSettings) Update added in v0.1.1

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

func (*OrganizationSettings) Value added in v0.1.1

func (os *OrganizationSettings) Value(name string) (ent.Value, error)

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

type OrganizationSettingsClient added in v0.1.1

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

OrganizationSettingsClient is a client for the OrganizationSettings schema.

func NewOrganizationSettingsClient added in v0.1.1

func NewOrganizationSettingsClient(c config) *OrganizationSettingsClient

NewOrganizationSettingsClient returns a client for the OrganizationSettings from the given config.

func (*OrganizationSettingsClient) Create added in v0.1.1

Create returns a builder for creating a OrganizationSettings entity.

func (*OrganizationSettingsClient) CreateBulk added in v0.1.1

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

func (*OrganizationSettingsClient) Delete added in v0.1.1

Delete returns a delete builder for OrganizationSettings.

func (*OrganizationSettingsClient) DeleteOne added in v0.1.1

DeleteOne returns a builder for deleting the given entity.

func (*OrganizationSettingsClient) DeleteOneID added in v0.1.1

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

func (*OrganizationSettingsClient) Get added in v0.1.1

Get returns a OrganizationSettings entity by its id.

func (*OrganizationSettingsClient) GetX added in v0.1.1

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

func (*OrganizationSettingsClient) Hooks added in v0.1.1

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

Hooks returns the client hooks.

func (*OrganizationSettingsClient) Intercept added in v0.1.1

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

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

func (*OrganizationSettingsClient) Interceptors added in v0.1.1

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

Interceptors returns the client interceptors.

func (*OrganizationSettingsClient) MapCreateBulk added in v0.1.1

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 (*OrganizationSettingsClient) Query added in v0.1.1

Query returns a query builder for OrganizationSettings.

func (*OrganizationSettingsClient) QueryOrgnaization added in v0.1.1

QueryOrgnaization queries the orgnaization edge of a OrganizationSettings.

func (*OrganizationSettingsClient) Update added in v0.1.1

Update returns an update builder for OrganizationSettings.

func (*OrganizationSettingsClient) UpdateOne added in v0.1.1

UpdateOne returns an update builder for the given entity.

func (*OrganizationSettingsClient) UpdateOneID added in v0.1.1

UpdateOneID returns an update builder for the given id.

func (*OrganizationSettingsClient) Use added in v0.1.1

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

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

type OrganizationSettingsConnection added in v0.1.1

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

OrganizationSettingsConnection is the connection containing edges to OrganizationSettings.

type OrganizationSettingsCreate added in v0.1.1

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

OrganizationSettingsCreate is the builder for creating a OrganizationSettings entity.

func (*OrganizationSettingsCreate) Exec added in v0.1.1

Exec executes the query.

func (*OrganizationSettingsCreate) ExecX added in v0.1.1

func (osc *OrganizationSettingsCreate) ExecX(ctx context.Context)

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

func (*OrganizationSettingsCreate) Mutation added in v0.1.1

Mutation returns the OrganizationSettingsMutation object of the builder.

func (*OrganizationSettingsCreate) Save added in v0.1.1

Save creates the OrganizationSettings in the database.

func (*OrganizationSettingsCreate) SaveX added in v0.1.1

SaveX calls Save and panics if Save returns an error.

func (*OrganizationSettingsCreate) SetBillingAddress added in v0.1.1

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingsCreate) SetBillingContact added in v0.1.1

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingsCreate) SetBillingEmail added in v0.1.1

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingsCreate) SetBillingPhone added in v0.1.1

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingsCreate) SetCreatedAt added in v0.1.1

SetCreatedAt sets the "created_at" field.

func (*OrganizationSettingsCreate) SetCreatedBy added in v0.1.1

SetCreatedBy sets the "created_by" field.

func (*OrganizationSettingsCreate) SetDomains added in v0.1.1

SetDomains sets the "domains" field.

func (*OrganizationSettingsCreate) SetID added in v0.1.1

SetID sets the "id" field.

func (*OrganizationSettingsCreate) SetInput added in v0.1.1

SetInput applies the change-set in the CreateOrganizationSettingsInput on the OrganizationSettingsCreate builder.

func (*OrganizationSettingsCreate) SetNillableCreatedAt added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableCreatedAt(t *time.Time) *OrganizationSettingsCreate

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

func (*OrganizationSettingsCreate) SetNillableCreatedBy added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableCreatedBy(s *string) *OrganizationSettingsCreate

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

func (*OrganizationSettingsCreate) SetNillableID added in v0.1.1

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

func (*OrganizationSettingsCreate) SetNillableOrgnaizationID added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableOrgnaizationID(id *string) *OrganizationSettingsCreate

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

func (*OrganizationSettingsCreate) SetNillableSSOCert added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableSSOCert(s *string) *OrganizationSettingsCreate

SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.

func (*OrganizationSettingsCreate) SetNillableSSOEntrypoint added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingsCreate

SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.

func (*OrganizationSettingsCreate) SetNillableSSOIssuer added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableSSOIssuer(s *string) *OrganizationSettingsCreate

SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.

func (*OrganizationSettingsCreate) SetNillableUpdatedAt added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableUpdatedAt(t *time.Time) *OrganizationSettingsCreate

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

func (*OrganizationSettingsCreate) SetNillableUpdatedBy added in v0.1.1

func (osc *OrganizationSettingsCreate) SetNillableUpdatedBy(s *string) *OrganizationSettingsCreate

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

func (*OrganizationSettingsCreate) SetOrgnaization added in v0.1.1

SetOrgnaization sets the "orgnaization" edge to the Organization entity.

func (*OrganizationSettingsCreate) SetOrgnaizationID added in v0.1.1

func (osc *OrganizationSettingsCreate) SetOrgnaizationID(id string) *OrganizationSettingsCreate

SetOrgnaizationID sets the "orgnaization" edge to the Organization entity by ID.

func (*OrganizationSettingsCreate) SetSSOCert added in v0.1.1

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingsCreate) SetSSOEntrypoint added in v0.1.1

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingsCreate) SetSSOIssuer added in v0.1.1

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingsCreate) SetTags added in v0.1.1

SetTags sets the "tags" field.

func (*OrganizationSettingsCreate) SetTaxIdentifier added in v0.1.1

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingsCreate) SetUpdatedAt added in v0.1.1

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingsCreate) SetUpdatedBy added in v0.1.1

SetUpdatedBy sets the "updated_by" field.

type OrganizationSettingsCreateBulk added in v0.1.1

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

OrganizationSettingsCreateBulk is the builder for creating many OrganizationSettings entities in bulk.

func (*OrganizationSettingsCreateBulk) Exec added in v0.1.1

Exec executes the query.

func (*OrganizationSettingsCreateBulk) ExecX added in v0.1.1

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

func (*OrganizationSettingsCreateBulk) Save added in v0.1.1

Save creates the OrganizationSettings entities in the database.

func (*OrganizationSettingsCreateBulk) SaveX added in v0.1.1

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

type OrganizationSettingsDelete added in v0.1.1

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

OrganizationSettingsDelete is the builder for deleting a OrganizationSettings entity.

func (*OrganizationSettingsDelete) Exec added in v0.1.1

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

func (*OrganizationSettingsDelete) ExecX added in v0.1.1

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

func (*OrganizationSettingsDelete) Where added in v0.1.1

Where appends a list predicates to the OrganizationSettingsDelete builder.

type OrganizationSettingsDeleteOne added in v0.1.1

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

OrganizationSettingsDeleteOne is the builder for deleting a single OrganizationSettings entity.

func (*OrganizationSettingsDeleteOne) Exec added in v0.1.1

Exec executes the deletion query.

func (*OrganizationSettingsDeleteOne) ExecX added in v0.1.1

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

func (*OrganizationSettingsDeleteOne) Where added in v0.1.1

Where appends a list predicates to the OrganizationSettingsDelete builder.

type OrganizationSettingsEdge added in v0.1.1

type OrganizationSettingsEdge struct {
	Node   *OrganizationSettings `json:"node"`
	Cursor Cursor                `json:"cursor"`
}

OrganizationSettingsEdge is the edge representation of OrganizationSettings.

type OrganizationSettingsEdges added in v0.1.1

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

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

func (OrganizationSettingsEdges) OrgnaizationOrErr added in v0.1.1

func (e OrganizationSettingsEdges) OrgnaizationOrErr() (*Organization, error)

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

type OrganizationSettingsFilter added in v0.1.1

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

OrganizationSettingsFilter provides a generic filtering capability at runtime for OrganizationSettingsQuery.

func (*OrganizationSettingsFilter) Where added in v0.1.1

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

Where applies the entql predicate on the query filter.

func (*OrganizationSettingsFilter) WhereBillingAddress added in v0.1.1

func (f *OrganizationSettingsFilter) WhereBillingAddress(p entql.StringP)

WhereBillingAddress applies the entql string predicate on the billing_address field.

func (*OrganizationSettingsFilter) WhereBillingContact added in v0.1.1

func (f *OrganizationSettingsFilter) WhereBillingContact(p entql.StringP)

WhereBillingContact applies the entql string predicate on the billing_contact field.

func (*OrganizationSettingsFilter) WhereBillingEmail added in v0.1.1

func (f *OrganizationSettingsFilter) WhereBillingEmail(p entql.StringP)

WhereBillingEmail applies the entql string predicate on the billing_email field.

func (*OrganizationSettingsFilter) WhereBillingPhone added in v0.1.1

func (f *OrganizationSettingsFilter) WhereBillingPhone(p entql.StringP)

WhereBillingPhone applies the entql string predicate on the billing_phone field.

func (*OrganizationSettingsFilter) WhereCreatedAt added in v0.1.1

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

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

func (*OrganizationSettingsFilter) WhereCreatedBy added in v0.1.1

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

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*OrganizationSettingsFilter) WhereDomains added in v0.1.1

func (f *OrganizationSettingsFilter) WhereDomains(p entql.BytesP)

WhereDomains applies the entql json.RawMessage predicate on the domains field.

func (*OrganizationSettingsFilter) WhereHasOrgnaization added in v0.1.1

func (f *OrganizationSettingsFilter) WhereHasOrgnaization()

WhereHasOrgnaization applies a predicate to check if query has an edge orgnaization.

func (*OrganizationSettingsFilter) WhereHasOrgnaizationWith added in v0.1.1

func (f *OrganizationSettingsFilter) WhereHasOrgnaizationWith(preds ...predicate.Organization)

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

func (*OrganizationSettingsFilter) WhereID added in v0.1.1

WhereID applies the entql string predicate on the id field.

func (*OrganizationSettingsFilter) WhereSSOCert added in v0.1.1

func (f *OrganizationSettingsFilter) WhereSSOCert(p entql.StringP)

WhereSSOCert applies the entql string predicate on the sso_cert field.

func (*OrganizationSettingsFilter) WhereSSOEntrypoint added in v0.1.1

func (f *OrganizationSettingsFilter) WhereSSOEntrypoint(p entql.StringP)

WhereSSOEntrypoint applies the entql string predicate on the sso_entrypoint field.

func (*OrganizationSettingsFilter) WhereSSOIssuer added in v0.1.1

func (f *OrganizationSettingsFilter) WhereSSOIssuer(p entql.StringP)

WhereSSOIssuer applies the entql string predicate on the sso_issuer field.

func (*OrganizationSettingsFilter) WhereTags added in v0.1.1

func (f *OrganizationSettingsFilter) WhereTags(p entql.BytesP)

WhereTags applies the entql json.RawMessage predicate on the tags field.

func (*OrganizationSettingsFilter) WhereTaxIdentifier added in v0.1.1

func (f *OrganizationSettingsFilter) WhereTaxIdentifier(p entql.StringP)

WhereTaxIdentifier applies the entql string predicate on the tax_identifier field.

func (*OrganizationSettingsFilter) WhereUpdatedAt added in v0.1.1

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

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

func (*OrganizationSettingsFilter) WhereUpdatedBy added in v0.1.1

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

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type OrganizationSettingsGroupBy added in v0.1.1

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

OrganizationSettingsGroupBy is the group-by builder for OrganizationSettings entities.

func (*OrganizationSettingsGroupBy) Aggregate added in v0.1.1

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

func (*OrganizationSettingsGroupBy) Bool added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) BoolX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Bools added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) BoolsX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Float64 added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Float64X added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Float64s added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Float64sX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Int added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) IntX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Ints added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) IntsX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Scan added in v0.1.1

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

func (*OrganizationSettingsGroupBy) ScanX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) String added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) StringX added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) Strings added in v0.1.1

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

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

func (*OrganizationSettingsGroupBy) StringsX added in v0.1.1

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

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

type OrganizationSettingsMutation added in v0.1.1

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

OrganizationSettingsMutation represents an operation that mutates the OrganizationSettings nodes in the graph.

func (*OrganizationSettingsMutation) AddField added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) AddedEdges added in v0.1.1

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

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

func (*OrganizationSettingsMutation) AddedField added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) AddedFields added in v0.1.1

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

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

func (*OrganizationSettingsMutation) AddedIDs added in v0.1.1

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

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

func (*OrganizationSettingsMutation) AppendDomains added in v0.1.1

func (m *OrganizationSettingsMutation) AppendDomains(s []string)

AppendDomains adds s to the "domains" field.

func (*OrganizationSettingsMutation) AppendTags added in v0.1.1

func (m *OrganizationSettingsMutation) AppendTags(s []string)

AppendTags adds s to the "tags" field.

func (*OrganizationSettingsMutation) AppendedDomains added in v0.1.1

func (m *OrganizationSettingsMutation) AppendedDomains() ([]string, bool)

AppendedDomains returns the list of values that were appended to the "domains" field in this mutation.

func (*OrganizationSettingsMutation) AppendedTags added in v0.1.1

func (m *OrganizationSettingsMutation) AppendedTags() ([]string, bool)

AppendedTags returns the list of values that were appended to the "tags" field in this mutation.

func (*OrganizationSettingsMutation) BillingAddress added in v0.1.1

func (m *OrganizationSettingsMutation) BillingAddress() (r string, exists bool)

BillingAddress returns the value of the "billing_address" field in the mutation.

func (*OrganizationSettingsMutation) BillingContact added in v0.1.1

func (m *OrganizationSettingsMutation) BillingContact() (r string, exists bool)

BillingContact returns the value of the "billing_contact" field in the mutation.

func (*OrganizationSettingsMutation) BillingEmail added in v0.1.1

func (m *OrganizationSettingsMutation) BillingEmail() (r string, exists bool)

BillingEmail returns the value of the "billing_email" field in the mutation.

func (*OrganizationSettingsMutation) BillingPhone added in v0.1.1

func (m *OrganizationSettingsMutation) BillingPhone() (r string, exists bool)

BillingPhone returns the value of the "billing_phone" field in the mutation.

func (*OrganizationSettingsMutation) ClearCreatedBy added in v0.1.1

func (m *OrganizationSettingsMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*OrganizationSettingsMutation) ClearEdge added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) ClearField added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) ClearOrgnaization added in v0.1.1

func (m *OrganizationSettingsMutation) ClearOrgnaization()

ClearOrgnaization clears the "orgnaization" edge to the Organization entity.

func (*OrganizationSettingsMutation) ClearTags added in v0.1.1

func (m *OrganizationSettingsMutation) ClearTags()

ClearTags clears the value of the "tags" field.

func (*OrganizationSettingsMutation) ClearUpdatedBy added in v0.1.1

func (m *OrganizationSettingsMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationSettingsMutation) ClearedEdges added in v0.1.1

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

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

func (*OrganizationSettingsMutation) ClearedFields added in v0.1.1

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

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

func (OrganizationSettingsMutation) Client added in v0.1.1

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 (*OrganizationSettingsMutation) CreatedAt added in v0.1.1

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

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

func (*OrganizationSettingsMutation) CreatedBy added in v0.1.1

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

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

func (*OrganizationSettingsMutation) CreatedByCleared added in v0.1.1

func (m *OrganizationSettingsMutation) CreatedByCleared() bool

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

func (*OrganizationSettingsMutation) Domains added in v0.1.1

func (m *OrganizationSettingsMutation) Domains() (r []string, exists bool)

Domains returns the value of the "domains" field in the mutation.

func (*OrganizationSettingsMutation) EdgeCleared added in v0.1.1

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

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

func (*OrganizationSettingsMutation) Field added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) FieldCleared added in v0.1.1

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

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

func (*OrganizationSettingsMutation) Fields added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) Filter added in v0.1.1

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

func (*OrganizationSettingsMutation) ID added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) IDs added in v0.1.1

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 (*OrganizationSettingsMutation) OldBillingAddress added in v0.1.1

func (m *OrganizationSettingsMutation) OldBillingAddress(ctx context.Context) (v string, err error)

OldBillingAddress returns the old "billing_address" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldBillingContact added in v0.1.1

func (m *OrganizationSettingsMutation) OldBillingContact(ctx context.Context) (v string, err error)

OldBillingContact returns the old "billing_contact" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldBillingEmail added in v0.1.1

func (m *OrganizationSettingsMutation) OldBillingEmail(ctx context.Context) (v string, err error)

OldBillingEmail returns the old "billing_email" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldBillingPhone added in v0.1.1

func (m *OrganizationSettingsMutation) OldBillingPhone(ctx context.Context) (v string, err error)

OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldCreatedAt added in v0.1.1

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

OldCreatedAt returns the old "created_at" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldCreatedBy added in v0.1.1

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

OldCreatedBy returns the old "created_by" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldDomains added in v0.1.1

func (m *OrganizationSettingsMutation) OldDomains(ctx context.Context) (v []string, err error)

OldDomains returns the old "domains" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldField added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) OldSSOCert added in v0.1.1

func (m *OrganizationSettingsMutation) OldSSOCert(ctx context.Context) (v string, err error)

OldSSOCert returns the old "sso_cert" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldSSOEntrypoint added in v0.1.1

func (m *OrganizationSettingsMutation) OldSSOEntrypoint(ctx context.Context) (v string, err error)

OldSSOEntrypoint returns the old "sso_entrypoint" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldSSOIssuer added in v0.1.1

func (m *OrganizationSettingsMutation) OldSSOIssuer(ctx context.Context) (v string, err error)

OldSSOIssuer returns the old "sso_issuer" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldTags added in v0.1.1

func (m *OrganizationSettingsMutation) OldTags(ctx context.Context) (v []string, err error)

OldTags returns the old "tags" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldTaxIdentifier added in v0.1.1

func (m *OrganizationSettingsMutation) OldTaxIdentifier(ctx context.Context) (v string, err error)

OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldUpdatedAt added in v0.1.1

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

OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) OldUpdatedBy added in v0.1.1

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

OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSettings entity. If the OrganizationSettings 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 (*OrganizationSettingsMutation) Op added in v0.1.1

Op returns the operation name.

func (*OrganizationSettingsMutation) OrgnaizationCleared added in v0.1.1

func (m *OrganizationSettingsMutation) OrgnaizationCleared() bool

OrgnaizationCleared reports if the "orgnaization" edge to the Organization entity was cleared.

func (*OrganizationSettingsMutation) OrgnaizationID added in v0.1.1

func (m *OrganizationSettingsMutation) OrgnaizationID() (id string, exists bool)

OrgnaizationID returns the "orgnaization" edge ID in the mutation.

func (*OrganizationSettingsMutation) OrgnaizationIDs added in v0.1.1

func (m *OrganizationSettingsMutation) OrgnaizationIDs() (ids []string)

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

func (*OrganizationSettingsMutation) RemovedEdges added in v0.1.1

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

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

func (*OrganizationSettingsMutation) RemovedIDs added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) ResetBillingAddress added in v0.1.1

func (m *OrganizationSettingsMutation) ResetBillingAddress()

ResetBillingAddress resets all changes to the "billing_address" field.

func (*OrganizationSettingsMutation) ResetBillingContact added in v0.1.1

func (m *OrganizationSettingsMutation) ResetBillingContact()

ResetBillingContact resets all changes to the "billing_contact" field.

func (*OrganizationSettingsMutation) ResetBillingEmail added in v0.1.1

func (m *OrganizationSettingsMutation) ResetBillingEmail()

ResetBillingEmail resets all changes to the "billing_email" field.

func (*OrganizationSettingsMutation) ResetBillingPhone added in v0.1.1

func (m *OrganizationSettingsMutation) ResetBillingPhone()

ResetBillingPhone resets all changes to the "billing_phone" field.

func (*OrganizationSettingsMutation) ResetCreatedAt added in v0.1.1

func (m *OrganizationSettingsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*OrganizationSettingsMutation) ResetCreatedBy added in v0.1.1

func (m *OrganizationSettingsMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*OrganizationSettingsMutation) ResetDomains added in v0.1.1

func (m *OrganizationSettingsMutation) ResetDomains()

ResetDomains resets all changes to the "domains" field.

func (*OrganizationSettingsMutation) ResetEdge added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) ResetField added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) ResetOrgnaization added in v0.1.1

func (m *OrganizationSettingsMutation) ResetOrgnaization()

ResetOrgnaization resets all changes to the "orgnaization" edge.

func (*OrganizationSettingsMutation) ResetSSOCert added in v0.1.1

func (m *OrganizationSettingsMutation) ResetSSOCert()

ResetSSOCert resets all changes to the "sso_cert" field.

func (*OrganizationSettingsMutation) ResetSSOEntrypoint added in v0.1.1

func (m *OrganizationSettingsMutation) ResetSSOEntrypoint()

ResetSSOEntrypoint resets all changes to the "sso_entrypoint" field.

func (*OrganizationSettingsMutation) ResetSSOIssuer added in v0.1.1

func (m *OrganizationSettingsMutation) ResetSSOIssuer()

ResetSSOIssuer resets all changes to the "sso_issuer" field.

func (*OrganizationSettingsMutation) ResetTags added in v0.1.1

func (m *OrganizationSettingsMutation) ResetTags()

ResetTags resets all changes to the "tags" field.

func (*OrganizationSettingsMutation) ResetTaxIdentifier added in v0.1.1

func (m *OrganizationSettingsMutation) ResetTaxIdentifier()

ResetTaxIdentifier resets all changes to the "tax_identifier" field.

func (*OrganizationSettingsMutation) ResetUpdatedAt added in v0.1.1

func (m *OrganizationSettingsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*OrganizationSettingsMutation) ResetUpdatedBy added in v0.1.1

func (m *OrganizationSettingsMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*OrganizationSettingsMutation) SSOCert added in v0.1.1

func (m *OrganizationSettingsMutation) SSOCert() (r string, exists bool)

SSOCert returns the value of the "sso_cert" field in the mutation.

func (*OrganizationSettingsMutation) SSOEntrypoint added in v0.1.1

func (m *OrganizationSettingsMutation) SSOEntrypoint() (r string, exists bool)

SSOEntrypoint returns the value of the "sso_entrypoint" field in the mutation.

func (*OrganizationSettingsMutation) SSOIssuer added in v0.1.1

func (m *OrganizationSettingsMutation) SSOIssuer() (r string, exists bool)

SSOIssuer returns the value of the "sso_issuer" field in the mutation.

func (*OrganizationSettingsMutation) SetBillingAddress added in v0.1.1

func (m *OrganizationSettingsMutation) SetBillingAddress(s string)

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingsMutation) SetBillingContact added in v0.1.1

func (m *OrganizationSettingsMutation) SetBillingContact(s string)

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingsMutation) SetBillingEmail added in v0.1.1

func (m *OrganizationSettingsMutation) SetBillingEmail(s string)

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingsMutation) SetBillingPhone added in v0.1.1

func (m *OrganizationSettingsMutation) SetBillingPhone(s string)

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingsMutation) SetCreatedAt added in v0.1.1

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

SetCreatedAt sets the "created_at" field.

func (*OrganizationSettingsMutation) SetCreatedBy added in v0.1.1

func (m *OrganizationSettingsMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*OrganizationSettingsMutation) SetDomains added in v0.1.1

func (m *OrganizationSettingsMutation) SetDomains(s []string)

SetDomains sets the "domains" field.

func (*OrganizationSettingsMutation) SetField added in v0.1.1

func (m *OrganizationSettingsMutation) 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 (*OrganizationSettingsMutation) SetID added in v0.1.1

func (m *OrganizationSettingsMutation) SetID(id string)

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

func (*OrganizationSettingsMutation) SetOp added in v0.1.1

func (m *OrganizationSettingsMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*OrganizationSettingsMutation) SetOrgnaizationID added in v0.1.1

func (m *OrganizationSettingsMutation) SetOrgnaizationID(id string)

SetOrgnaizationID sets the "orgnaization" edge to the Organization entity by id.

func (*OrganizationSettingsMutation) SetSSOCert added in v0.1.1

func (m *OrganizationSettingsMutation) SetSSOCert(s string)

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingsMutation) SetSSOEntrypoint added in v0.1.1

func (m *OrganizationSettingsMutation) SetSSOEntrypoint(s string)

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingsMutation) SetSSOIssuer added in v0.1.1

func (m *OrganizationSettingsMutation) SetSSOIssuer(s string)

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingsMutation) SetTags added in v0.1.1

func (m *OrganizationSettingsMutation) SetTags(s []string)

SetTags sets the "tags" field.

func (*OrganizationSettingsMutation) SetTaxIdentifier added in v0.1.1

func (m *OrganizationSettingsMutation) SetTaxIdentifier(s string)

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingsMutation) SetUpdatedAt added in v0.1.1

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

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingsMutation) SetUpdatedBy added in v0.1.1

func (m *OrganizationSettingsMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationSettingsMutation) Tags added in v0.1.1

func (m *OrganizationSettingsMutation) Tags() (r []string, exists bool)

Tags returns the value of the "tags" field in the mutation.

func (*OrganizationSettingsMutation) TagsCleared added in v0.1.1

func (m *OrganizationSettingsMutation) TagsCleared() bool

TagsCleared returns if the "tags" field was cleared in this mutation.

func (*OrganizationSettingsMutation) TaxIdentifier added in v0.1.1

func (m *OrganizationSettingsMutation) TaxIdentifier() (r string, exists bool)

TaxIdentifier returns the value of the "tax_identifier" field in the mutation.

func (OrganizationSettingsMutation) Tx added in v0.1.1

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

func (*OrganizationSettingsMutation) Type added in v0.1.1

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

func (*OrganizationSettingsMutation) UpdatedAt added in v0.1.1

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

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

func (*OrganizationSettingsMutation) UpdatedBy added in v0.1.1

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

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

func (*OrganizationSettingsMutation) UpdatedByCleared added in v0.1.1

func (m *OrganizationSettingsMutation) UpdatedByCleared() bool

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

func (*OrganizationSettingsMutation) Where added in v0.1.1

Where appends a list predicates to the OrganizationSettingsMutation builder.

func (*OrganizationSettingsMutation) WhereP added in v0.1.1

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

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

type OrganizationSettingsOrder added in v0.1.1

type OrganizationSettingsOrder struct {
	Direction OrderDirection                  `json:"direction"`
	Field     *OrganizationSettingsOrderField `json:"field"`
}

OrganizationSettingsOrder defines the ordering of OrganizationSettings.

type OrganizationSettingsOrderField added in v0.1.1

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

OrganizationSettingsOrderField defines the ordering field of OrganizationSettings.

type OrganizationSettingsPaginateOption added in v0.1.1

type OrganizationSettingsPaginateOption func(*organizationsettingsPager) error

OrganizationSettingsPaginateOption enables pagination customization.

func WithOrganizationSettingsFilter added in v0.1.1

func WithOrganizationSettingsFilter(filter func(*OrganizationSettingsQuery) (*OrganizationSettingsQuery, error)) OrganizationSettingsPaginateOption

WithOrganizationSettingsFilter configures pagination filter.

func WithOrganizationSettingsOrder added in v0.1.1

func WithOrganizationSettingsOrder(order *OrganizationSettingsOrder) OrganizationSettingsPaginateOption

WithOrganizationSettingsOrder configures pagination ordering.

type OrganizationSettingsQuery added in v0.1.1

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

OrganizationSettingsQuery is the builder for querying OrganizationSettings entities.

func (*OrganizationSettingsQuery) Aggregate added in v0.1.1

Aggregate returns a OrganizationSettingsSelect configured with the given aggregations.

func (*OrganizationSettingsQuery) All added in v0.1.1

All executes the query and returns a list of OrganizationSettingsSlice.

func (*OrganizationSettingsQuery) AllX added in v0.1.1

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

func (*OrganizationSettingsQuery) Clone added in v0.1.1

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

func (*OrganizationSettingsQuery) CollectFields added in v0.1.1

func (os *OrganizationSettingsQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingsQuery, error)

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

func (*OrganizationSettingsQuery) Count added in v0.1.1

func (osq *OrganizationSettingsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OrganizationSettingsQuery) CountX added in v0.1.1

func (osq *OrganizationSettingsQuery) CountX(ctx context.Context) int

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

func (*OrganizationSettingsQuery) Exist added in v0.1.1

func (osq *OrganizationSettingsQuery) Exist(ctx context.Context) (bool, error)

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

func (*OrganizationSettingsQuery) ExistX added in v0.1.1

func (osq *OrganizationSettingsQuery) ExistX(ctx context.Context) bool

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

func (*OrganizationSettingsQuery) Filter added in v0.1.1

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

func (*OrganizationSettingsQuery) First added in v0.1.1

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

func (*OrganizationSettingsQuery) FirstID added in v0.1.1

func (osq *OrganizationSettingsQuery) FirstID(ctx context.Context) (id string, err error)

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

func (*OrganizationSettingsQuery) FirstIDX added in v0.1.1

func (osq *OrganizationSettingsQuery) FirstIDX(ctx context.Context) string

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

func (*OrganizationSettingsQuery) FirstX added in v0.1.1

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

func (*OrganizationSettingsQuery) GroupBy added in v0.1.1

func (osq *OrganizationSettingsQuery) GroupBy(field string, fields ...string) *OrganizationSettingsGroupBy

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.OrganizationSettings.Query().
	GroupBy(organizationsettings.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*OrganizationSettingsQuery) IDs added in v0.1.1

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

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

func (*OrganizationSettingsQuery) IDsX added in v0.1.1

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

func (*OrganizationSettingsQuery) Limit added in v0.1.1

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

func (*OrganizationSettingsQuery) Offset added in v0.1.1

Offset to start from.

func (*OrganizationSettingsQuery) Only added in v0.1.1

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

func (*OrganizationSettingsQuery) OnlyID added in v0.1.1

func (osq *OrganizationSettingsQuery) OnlyID(ctx context.Context) (id string, err error)

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

func (*OrganizationSettingsQuery) OnlyIDX added in v0.1.1

func (osq *OrganizationSettingsQuery) OnlyIDX(ctx context.Context) string

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

func (*OrganizationSettingsQuery) OnlyX added in v0.1.1

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

func (*OrganizationSettingsQuery) Order added in v0.1.1

Order specifies how the records should be ordered.

func (*OrganizationSettingsQuery) Paginate added in v0.1.1

func (os *OrganizationSettingsQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...OrganizationSettingsPaginateOption,
) (*OrganizationSettingsConnection, error)

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

func (*OrganizationSettingsQuery) QueryOrgnaization added in v0.1.1

func (osq *OrganizationSettingsQuery) QueryOrgnaization() *OrganizationQuery

QueryOrgnaization chains the current query on the "orgnaization" edge.

func (*OrganizationSettingsQuery) Select added in v0.1.1

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.OrganizationSettings.Query().
	Select(organizationsettings.FieldCreatedAt).
	Scan(ctx, &v)

func (*OrganizationSettingsQuery) Unique added in v0.1.1

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 (*OrganizationSettingsQuery) Where added in v0.1.1

Where adds a new predicate for the OrganizationSettingsQuery builder.

func (*OrganizationSettingsQuery) WithOrgnaization added in v0.1.1

func (osq *OrganizationSettingsQuery) WithOrgnaization(opts ...func(*OrganizationQuery)) *OrganizationSettingsQuery

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

type OrganizationSettingsSelect added in v0.1.1

type OrganizationSettingsSelect struct {
	*OrganizationSettingsQuery
	// contains filtered or unexported fields
}

OrganizationSettingsSelect is the builder for selecting fields of OrganizationSettings entities.

func (*OrganizationSettingsSelect) Aggregate added in v0.1.1

Aggregate adds the given aggregation functions to the selector query.

func (*OrganizationSettingsSelect) Bool added in v0.1.1

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

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

func (*OrganizationSettingsSelect) BoolX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Bools added in v0.1.1

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

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

func (*OrganizationSettingsSelect) BoolsX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Float64 added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Float64X added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Float64s added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Float64sX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Int added in v0.1.1

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

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

func (*OrganizationSettingsSelect) IntX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Ints added in v0.1.1

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

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

func (*OrganizationSettingsSelect) IntsX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Scan added in v0.1.1

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

func (*OrganizationSettingsSelect) ScanX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) String added in v0.1.1

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

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

func (*OrganizationSettingsSelect) StringX added in v0.1.1

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

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

func (*OrganizationSettingsSelect) Strings added in v0.1.1

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

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

func (*OrganizationSettingsSelect) StringsX added in v0.1.1

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

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

type OrganizationSettingsSlice added in v0.1.1

type OrganizationSettingsSlice []*OrganizationSettings

OrganizationSettingsSlice is a parsable slice of OrganizationSettings.

type OrganizationSettingsUpdate added in v0.1.1

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

OrganizationSettingsUpdate is the builder for updating OrganizationSettings entities.

func (*OrganizationSettingsUpdate) AppendDomains added in v0.1.1

AppendDomains appends s to the "domains" field.

func (*OrganizationSettingsUpdate) AppendTags added in v0.1.1

AppendTags appends s to the "tags" field.

func (*OrganizationSettingsUpdate) ClearCreatedBy added in v0.1.1

ClearCreatedBy clears the value of the "created_by" field.

func (*OrganizationSettingsUpdate) ClearOrgnaization added in v0.1.1

func (osu *OrganizationSettingsUpdate) ClearOrgnaization() *OrganizationSettingsUpdate

ClearOrgnaization clears the "orgnaization" edge to the Organization entity.

func (*OrganizationSettingsUpdate) ClearTags added in v0.1.1

ClearTags clears the value of the "tags" field.

func (*OrganizationSettingsUpdate) ClearUpdatedBy added in v0.1.1

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationSettingsUpdate) Exec added in v0.1.1

Exec executes the query.

func (*OrganizationSettingsUpdate) ExecX added in v0.1.1

func (osu *OrganizationSettingsUpdate) ExecX(ctx context.Context)

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

func (*OrganizationSettingsUpdate) Mutation added in v0.1.1

Mutation returns the OrganizationSettingsMutation object of the builder.

func (*OrganizationSettingsUpdate) Save added in v0.1.1

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

func (*OrganizationSettingsUpdate) SaveX added in v0.1.1

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

func (*OrganizationSettingsUpdate) SetBillingAddress added in v0.1.1

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingsUpdate) SetBillingContact added in v0.1.1

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingsUpdate) SetBillingEmail added in v0.1.1

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingsUpdate) SetBillingPhone added in v0.1.1

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingsUpdate) SetCreatedBy added in v0.1.1

SetCreatedBy sets the "created_by" field.

func (*OrganizationSettingsUpdate) SetDomains added in v0.1.1

SetDomains sets the "domains" field.

func (*OrganizationSettingsUpdate) SetInput added in v0.1.1

SetInput applies the change-set in the UpdateOrganizationSettingsInput on the OrganizationSettingsUpdate builder.

func (*OrganizationSettingsUpdate) SetNillableBillingAddress added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableBillingAddress(s *string) *OrganizationSettingsUpdate

SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableBillingContact added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableBillingContact(s *string) *OrganizationSettingsUpdate

SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableBillingEmail added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableBillingEmail(s *string) *OrganizationSettingsUpdate

SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableBillingPhone added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableBillingPhone(s *string) *OrganizationSettingsUpdate

SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableCreatedBy added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableCreatedBy(s *string) *OrganizationSettingsUpdate

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

func (*OrganizationSettingsUpdate) SetNillableOrgnaizationID added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableOrgnaizationID(id *string) *OrganizationSettingsUpdate

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

func (*OrganizationSettingsUpdate) SetNillableSSOCert added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableSSOCert(s *string) *OrganizationSettingsUpdate

SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableSSOEntrypoint added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableSSOEntrypoint(s *string) *OrganizationSettingsUpdate

SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableSSOIssuer added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableSSOIssuer(s *string) *OrganizationSettingsUpdate

SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableTaxIdentifier added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableTaxIdentifier(s *string) *OrganizationSettingsUpdate

SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.

func (*OrganizationSettingsUpdate) SetNillableUpdatedBy added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetNillableUpdatedBy(s *string) *OrganizationSettingsUpdate

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

func (*OrganizationSettingsUpdate) SetOrgnaization added in v0.1.1

SetOrgnaization sets the "orgnaization" edge to the Organization entity.

func (*OrganizationSettingsUpdate) SetOrgnaizationID added in v0.1.1

func (osu *OrganizationSettingsUpdate) SetOrgnaizationID(id string) *OrganizationSettingsUpdate

SetOrgnaizationID sets the "orgnaization" edge to the Organization entity by ID.

func (*OrganizationSettingsUpdate) SetSSOCert added in v0.1.1

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingsUpdate) SetSSOEntrypoint added in v0.1.1

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingsUpdate) SetSSOIssuer added in v0.1.1

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingsUpdate) SetTags added in v0.1.1

SetTags sets the "tags" field.

func (*OrganizationSettingsUpdate) SetTaxIdentifier added in v0.1.1

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingsUpdate) SetUpdatedAt added in v0.1.1

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingsUpdate) SetUpdatedBy added in v0.1.1

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationSettingsUpdate) Where added in v0.1.1

Where appends a list predicates to the OrganizationSettingsUpdate builder.

type OrganizationSettingsUpdateOne added in v0.1.1

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

OrganizationSettingsUpdateOne is the builder for updating a single OrganizationSettings entity.

func (*OrganizationSettingsUpdateOne) AppendDomains added in v0.1.1

AppendDomains appends s to the "domains" field.

func (*OrganizationSettingsUpdateOne) AppendTags added in v0.1.1

AppendTags appends s to the "tags" field.

func (*OrganizationSettingsUpdateOne) ClearCreatedBy added in v0.1.1

ClearCreatedBy clears the value of the "created_by" field.

func (*OrganizationSettingsUpdateOne) ClearOrgnaization added in v0.1.1

ClearOrgnaization clears the "orgnaization" edge to the Organization entity.

func (*OrganizationSettingsUpdateOne) ClearTags added in v0.1.1

ClearTags clears the value of the "tags" field.

func (*OrganizationSettingsUpdateOne) ClearUpdatedBy added in v0.1.1

ClearUpdatedBy clears the value of the "updated_by" field.

func (*OrganizationSettingsUpdateOne) Exec added in v0.1.1

Exec executes the query on the entity.

func (*OrganizationSettingsUpdateOne) ExecX added in v0.1.1

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

func (*OrganizationSettingsUpdateOne) Mutation added in v0.1.1

Mutation returns the OrganizationSettingsMutation object of the builder.

func (*OrganizationSettingsUpdateOne) Save added in v0.1.1

Save executes the query and returns the updated OrganizationSettings entity.

func (*OrganizationSettingsUpdateOne) SaveX added in v0.1.1

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

func (*OrganizationSettingsUpdateOne) Select added in v0.1.1

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

func (*OrganizationSettingsUpdateOne) SetBillingAddress added in v0.1.1

SetBillingAddress sets the "billing_address" field.

func (*OrganizationSettingsUpdateOne) SetBillingContact added in v0.1.1

SetBillingContact sets the "billing_contact" field.

func (*OrganizationSettingsUpdateOne) SetBillingEmail added in v0.1.1

SetBillingEmail sets the "billing_email" field.

func (*OrganizationSettingsUpdateOne) SetBillingPhone added in v0.1.1

SetBillingPhone sets the "billing_phone" field.

func (*OrganizationSettingsUpdateOne) SetCreatedBy added in v0.1.1

SetCreatedBy sets the "created_by" field.

func (*OrganizationSettingsUpdateOne) SetDomains added in v0.1.1

SetDomains sets the "domains" field.

func (*OrganizationSettingsUpdateOne) SetInput added in v0.1.1

SetInput applies the change-set in the UpdateOrganizationSettingsInput on the OrganizationSettingsUpdateOne builder.

func (*OrganizationSettingsUpdateOne) SetNillableBillingAddress added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableBillingAddress(s *string) *OrganizationSettingsUpdateOne

SetNillableBillingAddress sets the "billing_address" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableBillingContact added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableBillingContact(s *string) *OrganizationSettingsUpdateOne

SetNillableBillingContact sets the "billing_contact" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableBillingEmail added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableBillingEmail(s *string) *OrganizationSettingsUpdateOne

SetNillableBillingEmail sets the "billing_email" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableBillingPhone added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableBillingPhone(s *string) *OrganizationSettingsUpdateOne

SetNillableBillingPhone sets the "billing_phone" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableCreatedBy added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableCreatedBy(s *string) *OrganizationSettingsUpdateOne

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

func (*OrganizationSettingsUpdateOne) SetNillableOrgnaizationID added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableOrgnaizationID(id *string) *OrganizationSettingsUpdateOne

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

func (*OrganizationSettingsUpdateOne) SetNillableSSOCert added in v0.1.1

SetNillableSSOCert sets the "sso_cert" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableSSOEntrypoint added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableSSOEntrypoint(s *string) *OrganizationSettingsUpdateOne

SetNillableSSOEntrypoint sets the "sso_entrypoint" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableSSOIssuer added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableSSOIssuer(s *string) *OrganizationSettingsUpdateOne

SetNillableSSOIssuer sets the "sso_issuer" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableTaxIdentifier added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableTaxIdentifier(s *string) *OrganizationSettingsUpdateOne

SetNillableTaxIdentifier sets the "tax_identifier" field if the given value is not nil.

func (*OrganizationSettingsUpdateOne) SetNillableUpdatedBy added in v0.1.1

func (osuo *OrganizationSettingsUpdateOne) SetNillableUpdatedBy(s *string) *OrganizationSettingsUpdateOne

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

func (*OrganizationSettingsUpdateOne) SetOrgnaization added in v0.1.1

SetOrgnaization sets the "orgnaization" edge to the Organization entity.

func (*OrganizationSettingsUpdateOne) SetOrgnaizationID added in v0.1.1

SetOrgnaizationID sets the "orgnaization" edge to the Organization entity by ID.

func (*OrganizationSettingsUpdateOne) SetSSOCert added in v0.1.1

SetSSOCert sets the "sso_cert" field.

func (*OrganizationSettingsUpdateOne) SetSSOEntrypoint added in v0.1.1

SetSSOEntrypoint sets the "sso_entrypoint" field.

func (*OrganizationSettingsUpdateOne) SetSSOIssuer added in v0.1.1

SetSSOIssuer sets the "sso_issuer" field.

func (*OrganizationSettingsUpdateOne) SetTags added in v0.1.1

SetTags sets the "tags" field.

func (*OrganizationSettingsUpdateOne) SetTaxIdentifier added in v0.1.1

SetTaxIdentifier sets the "tax_identifier" field.

func (*OrganizationSettingsUpdateOne) SetUpdatedAt added in v0.1.1

SetUpdatedAt sets the "updated_at" field.

func (*OrganizationSettingsUpdateOne) SetUpdatedBy added in v0.1.1

SetUpdatedBy sets the "updated_by" field.

func (*OrganizationSettingsUpdateOne) Where added in v0.1.1

Where appends a list predicates to the OrganizationSettingsUpdate builder.

type OrganizationSettingsWhereInput added in v0.1.1

type OrganizationSettingsWhereInput struct {
	Predicates []predicate.OrganizationSettings  `json:"-"`
	Not        *OrganizationSettingsWhereInput   `json:"not,omitempty"`
	Or         []*OrganizationSettingsWhereInput `json:"or,omitempty"`
	And        []*OrganizationSettingsWhereInput `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"`

	// "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"`
	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"`
	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"`
	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"`
	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"`
	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"`
	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"`
	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"`
	TaxIdentifierEqualFold    *string  `json:"taxIdentifierEqualFold,omitempty"`
	TaxIdentifierContainsFold *string  `json:"taxIdentifierContainsFold,omitempty"`
}

OrganizationSettingsWhereInput represents a where input for filtering OrganizationSettings queries.

func (*OrganizationSettingsWhereInput) AddPredicates added in v0.1.1

func (i *OrganizationSettingsWhereInput) AddPredicates(predicates ...predicate.OrganizationSettings)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*OrganizationSettingsWhereInput) Filter added in v0.1.1

Filter applies the OrganizationSettingsWhereInput filter on the OrganizationSettingsQuery builder.

func (*OrganizationSettingsWhereInput) P added in v0.1.1

P returns a predicate for filtering organizationsettingsslice. An error is returned if the input is empty or invalid.

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) ClearCreatedBy added in v0.1.1

func (ou *OrganizationUpdate) ClearCreatedBy() *OrganizationUpdate

ClearCreatedBy clears the value of the "created_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 OrganizationSettings 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) SetCreatedBy added in v0.1.1

func (ou *OrganizationUpdate) SetCreatedBy(s string) *OrganizationUpdate

SetCreatedBy sets the "created_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) SetNillableCreatedBy added in v0.1.1

func (ou *OrganizationUpdate) SetNillableCreatedBy(s *string) *OrganizationUpdate

SetNillableCreatedBy sets the "created_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 OrganizationSettings 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 OrganizationSettings entity.

func (*OrganizationUpdate) SetSettingID

func (ou *OrganizationUpdate) SetSettingID(id string) *OrganizationUpdate

SetSettingID sets the "setting" edge to the OrganizationSettings 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) ClearCreatedBy added in v0.1.1

func (ouo *OrganizationUpdateOne) ClearCreatedBy() *OrganizationUpdateOne

ClearCreatedBy clears the value of the "created_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 OrganizationSettings 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) SetCreatedBy added in v0.1.1

func (ouo *OrganizationUpdateOne) SetCreatedBy(s string) *OrganizationUpdateOne

SetCreatedBy sets the "created_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) SetNillableCreatedBy added in v0.1.1

func (ouo *OrganizationUpdateOne) SetNillableCreatedBy(s *string) *OrganizationUpdateOne

SetNillableCreatedBy sets the "created_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 OrganizationSettings 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 OrganizationSettings entity.

func (*OrganizationUpdateOne) SetSettingID

func (ouo *OrganizationUpdateOne) SetSettingID(id string) *OrganizationUpdateOne

SetSettingID sets the "setting" edge to the OrganizationSettings 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"`

	// "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"`

	// "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 []*OrganizationSettingsWhereInput `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"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// UserID holds the value of the "user_id" field.
	UserID string `json:"user_id,omitempty"`
	// Token holds the value of the "token" field.
	Token string `json:"-"`
	// Abilities holds the value of the "abilities" field.
	Abilities []string `json:"abilities,omitempty"`
	// ExpirationAt holds the value of the "expiration_at" field.
	ExpirationAt time.Time `json:"expiration_at,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) QueryUser added in v0.1.1

func (pat *PersonalAccessToken) QueryUser() *UserQuery

QueryUser queries the "user" 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) User added in v0.1.1

func (pat *PersonalAccessToken) User(ctx context.Context) (*User, error)

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) QueryUser added in v0.1.1

QueryUser queries the user 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) SetExpirationAt added in v0.1.1

SetExpirationAt sets the "expiration_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) 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) 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) SetToken

SetToken sets the "token" field.

func (*PersonalAccessTokenCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenCreate) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*PersonalAccessTokenCreate) SetUser added in v0.1.1

SetUser sets the "user" edge to the User entity.

func (*PersonalAccessTokenCreate) SetUserID added in v0.1.1

SetUserID sets the "user_id" 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 {
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// contains filtered or unexported fields
}

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

func (PersonalAccessTokenEdges) UserOrErr added in v0.1.1

func (e PersonalAccessTokenEdges) 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 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) WhereExpirationAt added in v0.1.1

func (f *PersonalAccessTokenFilter) WhereExpirationAt(p entql.TimeP)

WhereExpirationAt applies the entql time.Time predicate on the expiration_at field.

func (*PersonalAccessTokenFilter) WhereHasUser added in v0.1.1

func (f *PersonalAccessTokenFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*PersonalAccessTokenFilter) WhereHasUserWith added in v0.1.1

func (f *PersonalAccessTokenFilter) WhereHasUserWith(preds ...predicate.User)

WhereHasUserWith applies a predicate to check if query has an edge user 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.

func (*PersonalAccessTokenFilter) WhereUserID added in v0.1.1

func (f *PersonalAccessTokenFilter) WhereUserID(p entql.StringP)

WhereUserID applies the entql string predicate on the user_id 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) 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) ClearUpdatedBy

func (m *PersonalAccessTokenMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*PersonalAccessTokenMutation) ClearUser added in v0.1.1

func (m *PersonalAccessTokenMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

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) 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) ExpirationAt added in v0.1.1

func (m *PersonalAccessTokenMutation) ExpirationAt() (r time.Time, exists bool)

ExpirationAt returns the value of the "expiration_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) OldExpirationAt added in v0.1.1

func (m *PersonalAccessTokenMutation) OldExpirationAt(ctx context.Context) (v time.Time, err error)

OldExpirationAt returns the old "expiration_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) OldUserID added in v0.1.1

func (m *PersonalAccessTokenMutation) OldUserID(ctx context.Context) (v string, err error)

OldUserID returns the old "user_id" 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) 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) 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) ResetExpirationAt added in v0.1.1

func (m *PersonalAccessTokenMutation) ResetExpirationAt()

ResetExpirationAt resets all changes to the "expiration_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) 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) ResetUser added in v0.1.1

func (m *PersonalAccessTokenMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*PersonalAccessTokenMutation) ResetUserID added in v0.1.1

func (m *PersonalAccessTokenMutation) ResetUserID()

ResetUserID resets all changes to the "user_id" 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) SetExpirationAt added in v0.1.1

func (m *PersonalAccessTokenMutation) SetExpirationAt(t time.Time)

SetExpirationAt sets the "expiration_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) 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) SetUserID added in v0.1.1

func (m *PersonalAccessTokenMutation) SetUserID(s string)

SetUserID sets the "user_id" 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) UserCleared added in v0.1.1

func (m *PersonalAccessTokenMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*PersonalAccessTokenMutation) UserID added in v0.1.1

func (m *PersonalAccessTokenMutation) UserID() (r string, exists bool)

UserID returns the value of the "user_id" field in the mutation.

func (*PersonalAccessTokenMutation) UserIDs added in v0.1.1

func (m *PersonalAccessTokenMutation) 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 (*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) QueryUser added in v0.1.1

func (patq *PersonalAccessTokenQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" 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) WithUser added in v0.1.1

func (patq *PersonalAccessTokenQuery) WithUser(opts ...func(*UserQuery)) *PersonalAccessTokenQuery

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 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) ClearCreatedBy added in v0.1.1

func (patu *PersonalAccessTokenUpdate) ClearCreatedBy() *PersonalAccessTokenUpdate

ClearCreatedBy clears the value of the "created_by" field.

func (*PersonalAccessTokenUpdate) ClearLastUsedAt

func (patu *PersonalAccessTokenUpdate) ClearLastUsedAt() *PersonalAccessTokenUpdate

ClearLastUsedAt clears the value of the "last_used_at" field.

func (*PersonalAccessTokenUpdate) ClearUpdatedBy

func (patu *PersonalAccessTokenUpdate) ClearUpdatedBy() *PersonalAccessTokenUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*PersonalAccessTokenUpdate) ClearUser added in v0.1.1

ClearUser clears the "user" edge to the User entity.

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) SetCreatedBy added in v0.1.1

SetCreatedBy sets the "created_by" field.

func (*PersonalAccessTokenUpdate) SetExpirationAt added in v0.1.1

SetExpirationAt sets the "expiration_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) SetNillableCreatedBy added in v0.1.1

func (patu *PersonalAccessTokenUpdate) SetNillableCreatedBy(s *string) *PersonalAccessTokenUpdate

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

func (*PersonalAccessTokenUpdate) SetNillableExpirationAt added in v0.1.1

func (patu *PersonalAccessTokenUpdate) SetNillableExpirationAt(t *time.Time) *PersonalAccessTokenUpdate

SetNillableExpirationAt sets the "expiration_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) SetNillableToken added in v0.1.1

func (patu *PersonalAccessTokenUpdate) SetNillableToken(s *string) *PersonalAccessTokenUpdate

SetNillableToken sets the "token" 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) SetNillableUserID added in v0.1.1

func (patu *PersonalAccessTokenUpdate) SetNillableUserID(s *string) *PersonalAccessTokenUpdate

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*PersonalAccessTokenUpdate) SetToken added in v0.1.1

SetToken sets the "token" field.

func (*PersonalAccessTokenUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenUpdate) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*PersonalAccessTokenUpdate) SetUser added in v0.1.1

SetUser sets the "user" edge to the User entity.

func (*PersonalAccessTokenUpdate) SetUserID added in v0.1.1

SetUserID sets the "user_id" 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) ClearCreatedBy added in v0.1.1

ClearCreatedBy clears the value of the "created_by" field.

func (*PersonalAccessTokenUpdateOne) ClearLastUsedAt

ClearLastUsedAt clears the value of the "last_used_at" field.

func (*PersonalAccessTokenUpdateOne) ClearUpdatedBy

ClearUpdatedBy clears the value of the "updated_by" field.

func (*PersonalAccessTokenUpdateOne) ClearUser added in v0.1.1

ClearUser clears the "user" edge to the User entity.

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) SetCreatedBy added in v0.1.1

SetCreatedBy sets the "created_by" field.

func (*PersonalAccessTokenUpdateOne) SetExpirationAt added in v0.1.1

SetExpirationAt sets the "expiration_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) SetNillableCreatedBy added in v0.1.1

func (patuo *PersonalAccessTokenUpdateOne) SetNillableCreatedBy(s *string) *PersonalAccessTokenUpdateOne

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

func (*PersonalAccessTokenUpdateOne) SetNillableExpirationAt added in v0.1.1

func (patuo *PersonalAccessTokenUpdateOne) SetNillableExpirationAt(t *time.Time) *PersonalAccessTokenUpdateOne

SetNillableExpirationAt sets the "expiration_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) SetNillableToken added in v0.1.1

SetNillableToken sets the "token" 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) SetNillableUserID added in v0.1.1

SetNillableUserID sets the "user_id" field if the given value is not nil.

func (*PersonalAccessTokenUpdateOne) SetToken added in v0.1.1

SetToken sets the "token" field.

func (*PersonalAccessTokenUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PersonalAccessTokenUpdateOne) SetUpdatedBy

SetUpdatedBy sets the "updated_by" field.

func (*PersonalAccessTokenUpdateOne) SetUser added in v0.1.1

SetUser sets the "user" edge to the User entity.

func (*PersonalAccessTokenUpdateOne) SetUserID added in v0.1.1

SetUserID sets the "user_id" 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"`

	// "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"`

	// "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"`

	// "expiration_at" field predicates.
	ExpirationAt      *time.Time  `json:"expirationAt,omitempty"`
	ExpirationAtNEQ   *time.Time  `json:"expirationAtNEQ,omitempty"`
	ExpirationAtIn    []time.Time `json:"expirationAtIn,omitempty"`
	ExpirationAtNotIn []time.Time `json:"expirationAtNotIn,omitempty"`
	ExpirationAtGT    *time.Time  `json:"expirationAtGT,omitempty"`
	ExpirationAtGTE   *time.Time  `json:"expirationAtGTE,omitempty"`
	ExpirationAtLT    *time.Time  `json:"expirationAtLT,omitempty"`
	ExpirationAtLTE   *time.Time  `json:"expirationAtLTE,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"`

	// "user" edge predicates.
	HasUser     *bool             `json:"hasUser,omitempty"`
	HasUserWith []*UserWhereInput `json:"hasUserWith,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 RefreshToken added in v0.1.1

type RefreshToken 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"`
	// Token holds the value of the "token" field.
	Token string `json:"token,omitempty"`
	// ObsoleteToken holds the value of the "obsolete_token" field.
	ObsoleteToken string `json:"obsolete_token,omitempty"`
	// LastUsed holds the value of the "last_used" field.
	LastUsed time.Time `json:"last_used,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RefreshTokenQuery when eager-loading is set.
	Edges RefreshTokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

RefreshToken is the model entity for the RefreshToken schema.

func (*RefreshToken) IsNode added in v0.1.1

func (n *RefreshToken) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*RefreshToken) QueryUser added in v0.1.1

func (rt *RefreshToken) QueryUser() *UserQuery

QueryUser queries the "user" edge of the RefreshToken entity.

func (*RefreshToken) String added in v0.1.1

func (rt *RefreshToken) String() string

String implements the fmt.Stringer.

func (*RefreshToken) ToEdge added in v0.1.1

func (rt *RefreshToken) ToEdge(order *RefreshTokenOrder) *RefreshTokenEdge

ToEdge converts RefreshToken into RefreshTokenEdge.

func (*RefreshToken) Unwrap added in v0.1.1

func (rt *RefreshToken) Unwrap() *RefreshToken

Unwrap unwraps the RefreshToken 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 (*RefreshToken) Update added in v0.1.1

func (rt *RefreshToken) Update() *RefreshTokenUpdateOne

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

func (*RefreshToken) User added in v0.1.1

func (rt *RefreshToken) User(ctx context.Context) (*User, error)

func (*RefreshToken) Value added in v0.1.1

func (rt *RefreshToken) Value(name string) (ent.Value, error)

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

type RefreshTokenClient added in v0.1.1

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

RefreshTokenClient is a client for the RefreshToken schema.

func NewRefreshTokenClient added in v0.1.1

func NewRefreshTokenClient(c config) *RefreshTokenClient

NewRefreshTokenClient returns a client for the RefreshToken from the given config.

func (*RefreshTokenClient) Create added in v0.1.1

Create returns a builder for creating a RefreshToken entity.

func (*RefreshTokenClient) CreateBulk added in v0.1.1

func (c *RefreshTokenClient) CreateBulk(builders ...*RefreshTokenCreate) *RefreshTokenCreateBulk

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

func (*RefreshTokenClient) Delete added in v0.1.1

Delete returns a delete builder for RefreshToken.

func (*RefreshTokenClient) DeleteOne added in v0.1.1

DeleteOne returns a builder for deleting the given entity.

func (*RefreshTokenClient) DeleteOneID added in v0.1.1

func (c *RefreshTokenClient) DeleteOneID(id string) *RefreshTokenDeleteOne

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

func (*RefreshTokenClient) Get added in v0.1.1

Get returns a RefreshToken entity by its id.

func (*RefreshTokenClient) GetX added in v0.1.1

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

func (*RefreshTokenClient) Hooks added in v0.1.1

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

Hooks returns the client hooks.

func (*RefreshTokenClient) Intercept added in v0.1.1

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

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

func (*RefreshTokenClient) Interceptors added in v0.1.1

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

Interceptors returns the client interceptors.

func (*RefreshTokenClient) MapCreateBulk added in v0.1.1

func (c *RefreshTokenClient) MapCreateBulk(slice any, setFunc func(*RefreshTokenCreate, int)) *RefreshTokenCreateBulk

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 (*RefreshTokenClient) Query added in v0.1.1

Query returns a query builder for RefreshToken.

func (*RefreshTokenClient) QueryUser added in v0.1.1

func (c *RefreshTokenClient) QueryUser(rt *RefreshToken) *UserQuery

QueryUser queries the user edge of a RefreshToken.

func (*RefreshTokenClient) Update added in v0.1.1

Update returns an update builder for RefreshToken.

func (*RefreshTokenClient) UpdateOne added in v0.1.1

UpdateOne returns an update builder for the given entity.

func (*RefreshTokenClient) UpdateOneID added in v0.1.1

func (c *RefreshTokenClient) UpdateOneID(id string) *RefreshTokenUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RefreshTokenClient) Use added in v0.1.1

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

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

type RefreshTokenConnection added in v0.1.1

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

RefreshTokenConnection is the connection containing edges to RefreshToken.

type RefreshTokenCreate added in v0.1.1

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

RefreshTokenCreate is the builder for creating a RefreshToken entity.

func (*RefreshTokenCreate) Exec added in v0.1.1

func (rtc *RefreshTokenCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*RefreshTokenCreate) ExecX added in v0.1.1

func (rtc *RefreshTokenCreate) ExecX(ctx context.Context)

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

func (*RefreshTokenCreate) Mutation added in v0.1.1

func (rtc *RefreshTokenCreate) Mutation() *RefreshTokenMutation

Mutation returns the RefreshTokenMutation object of the builder.

func (*RefreshTokenCreate) Save added in v0.1.1

Save creates the RefreshToken in the database.

func (*RefreshTokenCreate) SaveX added in v0.1.1

SaveX calls Save and panics if Save returns an error.

func (*RefreshTokenCreate) SetClaimsEmail added in v0.1.1

func (rtc *RefreshTokenCreate) SetClaimsEmail(s string) *RefreshTokenCreate

SetClaimsEmail sets the "claims_email" field.

func (*RefreshTokenCreate) SetClaimsEmailVerified added in v0.1.1

func (rtc *RefreshTokenCreate) SetClaimsEmailVerified(b bool) *RefreshTokenCreate

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*RefreshTokenCreate) SetClaimsGroups added in v0.1.1

func (rtc *RefreshTokenCreate) SetClaimsGroups(s []string) *RefreshTokenCreate

SetClaimsGroups sets the "claims_groups" field.

func (*RefreshTokenCreate) SetClaimsPreferredUsername added in v0.1.1

func (rtc *RefreshTokenCreate) SetClaimsPreferredUsername(s string) *RefreshTokenCreate

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*RefreshTokenCreate) SetClaimsUserID added in v0.1.1

func (rtc *RefreshTokenCreate) SetClaimsUserID(s string) *RefreshTokenCreate

SetClaimsUserID sets the "claims_user_id" field.

func (*RefreshTokenCreate) SetClaimsUsername added in v0.1.1

func (rtc *RefreshTokenCreate) SetClaimsUsername(s string) *RefreshTokenCreate

SetClaimsUsername sets the "claims_username" field.

func (*RefreshTokenCreate) SetClientID added in v0.1.1

func (rtc *RefreshTokenCreate) SetClientID(s string) *RefreshTokenCreate

SetClientID sets the "client_id" field.

func (*RefreshTokenCreate) SetConnectorData added in v0.1.1

func (rtc *RefreshTokenCreate) SetConnectorData(s []string) *RefreshTokenCreate

SetConnectorData sets the "connector_data" field.

func (*RefreshTokenCreate) SetConnectorID added in v0.1.1

func (rtc *RefreshTokenCreate) SetConnectorID(s string) *RefreshTokenCreate

SetConnectorID sets the "connector_id" field.

func (*RefreshTokenCreate) SetID added in v0.1.1

SetID sets the "id" field.

func (*RefreshTokenCreate) SetLastUsed added in v0.1.1

func (rtc *RefreshTokenCreate) SetLastUsed(t time.Time) *RefreshTokenCreate

SetLastUsed sets the "last_used" field.

func (*RefreshTokenCreate) SetNillableID added in v0.1.1

func (rtc *RefreshTokenCreate) SetNillableID(s *string) *RefreshTokenCreate

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

func (*RefreshTokenCreate) SetNillableLastUsed added in v0.1.1

func (rtc *RefreshTokenCreate) SetNillableLastUsed(t *time.Time) *RefreshTokenCreate

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*RefreshTokenCreate) SetNillableUserID added in v0.1.1

func (rtc *RefreshTokenCreate) SetNillableUserID(id *string) *RefreshTokenCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*RefreshTokenCreate) SetNonce added in v0.1.1

func (rtc *RefreshTokenCreate) SetNonce(s string) *RefreshTokenCreate

SetNonce sets the "nonce" field.

func (*RefreshTokenCreate) SetObsoleteToken added in v0.1.1

func (rtc *RefreshTokenCreate) SetObsoleteToken(s string) *RefreshTokenCreate

SetObsoleteToken sets the "obsolete_token" field.

func (*RefreshTokenCreate) SetScopes added in v0.1.1

func (rtc *RefreshTokenCreate) SetScopes(s []string) *RefreshTokenCreate

SetScopes sets the "scopes" field.

func (*RefreshTokenCreate) SetToken added in v0.1.1

func (rtc *RefreshTokenCreate) SetToken(s string) *RefreshTokenCreate

SetToken sets the "token" field.

func (*RefreshTokenCreate) SetUser added in v0.1.1

func (rtc *RefreshTokenCreate) SetUser(u *User) *RefreshTokenCreate

SetUser sets the "user" edge to the User entity.

func (*RefreshTokenCreate) SetUserID added in v0.1.1

func (rtc *RefreshTokenCreate) SetUserID(id string) *RefreshTokenCreate

SetUserID sets the "user" edge to the User entity by ID.

type RefreshTokenCreateBulk added in v0.1.1

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

RefreshTokenCreateBulk is the builder for creating many RefreshToken entities in bulk.

func (*RefreshTokenCreateBulk) Exec added in v0.1.1

func (rtcb *RefreshTokenCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*RefreshTokenCreateBulk) ExecX added in v0.1.1

func (rtcb *RefreshTokenCreateBulk) ExecX(ctx context.Context)

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

func (*RefreshTokenCreateBulk) Save added in v0.1.1

Save creates the RefreshToken entities in the database.

func (*RefreshTokenCreateBulk) SaveX added in v0.1.1

func (rtcb *RefreshTokenCreateBulk) SaveX(ctx context.Context) []*RefreshToken

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

type RefreshTokenDelete added in v0.1.1

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

RefreshTokenDelete is the builder for deleting a RefreshToken entity.

func (*RefreshTokenDelete) Exec added in v0.1.1

func (rtd *RefreshTokenDelete) Exec(ctx context.Context) (int, error)

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

func (*RefreshTokenDelete) ExecX added in v0.1.1

func (rtd *RefreshTokenDelete) ExecX(ctx context.Context) int

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

func (*RefreshTokenDelete) Where added in v0.1.1

Where appends a list predicates to the RefreshTokenDelete builder.

type RefreshTokenDeleteOne added in v0.1.1

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

RefreshTokenDeleteOne is the builder for deleting a single RefreshToken entity.

func (*RefreshTokenDeleteOne) Exec added in v0.1.1

func (rtdo *RefreshTokenDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*RefreshTokenDeleteOne) ExecX added in v0.1.1

func (rtdo *RefreshTokenDeleteOne) ExecX(ctx context.Context)

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

func (*RefreshTokenDeleteOne) Where added in v0.1.1

Where appends a list predicates to the RefreshTokenDelete builder.

type RefreshTokenEdge added in v0.1.1

type RefreshTokenEdge struct {
	Node   *RefreshToken `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

RefreshTokenEdge is the edge representation of RefreshToken.

type RefreshTokenEdges added in v0.1.1

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

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

func (RefreshTokenEdges) UserOrErr added in v0.1.1

func (e RefreshTokenEdges) 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 RefreshTokenFilter added in v0.1.1

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

RefreshTokenFilter provides a generic filtering capability at runtime for RefreshTokenQuery.

func (*RefreshTokenFilter) Where added in v0.1.1

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

Where applies the entql predicate on the query filter.

func (*RefreshTokenFilter) WhereClaimsEmail added in v0.1.1

func (f *RefreshTokenFilter) WhereClaimsEmail(p entql.StringP)

WhereClaimsEmail applies the entql string predicate on the claims_email field.

func (*RefreshTokenFilter) WhereClaimsEmailVerified added in v0.1.1

func (f *RefreshTokenFilter) WhereClaimsEmailVerified(p entql.BoolP)

WhereClaimsEmailVerified applies the entql bool predicate on the claims_email_verified field.

func (*RefreshTokenFilter) WhereClaimsGroups added in v0.1.1

func (f *RefreshTokenFilter) WhereClaimsGroups(p entql.BytesP)

WhereClaimsGroups applies the entql json.RawMessage predicate on the claims_groups field.

func (*RefreshTokenFilter) WhereClaimsPreferredUsername added in v0.1.1

func (f *RefreshTokenFilter) WhereClaimsPreferredUsername(p entql.StringP)

WhereClaimsPreferredUsername applies the entql string predicate on the claims_preferred_username field.

func (*RefreshTokenFilter) WhereClaimsUserID added in v0.1.1

func (f *RefreshTokenFilter) WhereClaimsUserID(p entql.StringP)

WhereClaimsUserID applies the entql string predicate on the claims_user_id field.

func (*RefreshTokenFilter) WhereClaimsUsername added in v0.1.1

func (f *RefreshTokenFilter) WhereClaimsUsername(p entql.StringP)

WhereClaimsUsername applies the entql string predicate on the claims_username field.

func (*RefreshTokenFilter) WhereClientID added in v0.1.1

func (f *RefreshTokenFilter) WhereClientID(p entql.StringP)

WhereClientID applies the entql string predicate on the client_id field.

func (*RefreshTokenFilter) WhereConnectorData added in v0.1.1

func (f *RefreshTokenFilter) WhereConnectorData(p entql.BytesP)

WhereConnectorData applies the entql json.RawMessage predicate on the connector_data field.

func (*RefreshTokenFilter) WhereConnectorID added in v0.1.1

func (f *RefreshTokenFilter) WhereConnectorID(p entql.StringP)

WhereConnectorID applies the entql string predicate on the connector_id field.

func (*RefreshTokenFilter) WhereHasUser added in v0.1.1

func (f *RefreshTokenFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*RefreshTokenFilter) WhereHasUserWith added in v0.1.1

func (f *RefreshTokenFilter) WhereHasUserWith(preds ...predicate.User)

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

func (*RefreshTokenFilter) WhereID added in v0.1.1

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

WhereID applies the entql string predicate on the id field.

func (*RefreshTokenFilter) WhereLastUsed added in v0.1.1

func (f *RefreshTokenFilter) WhereLastUsed(p entql.TimeP)

WhereLastUsed applies the entql time.Time predicate on the last_used field.

func (*RefreshTokenFilter) WhereNonce added in v0.1.1

func (f *RefreshTokenFilter) WhereNonce(p entql.StringP)

WhereNonce applies the entql string predicate on the nonce field.

func (*RefreshTokenFilter) WhereObsoleteToken added in v0.1.1

func (f *RefreshTokenFilter) WhereObsoleteToken(p entql.StringP)

WhereObsoleteToken applies the entql string predicate on the obsolete_token field.

func (*RefreshTokenFilter) WhereScopes added in v0.1.1

func (f *RefreshTokenFilter) WhereScopes(p entql.BytesP)

WhereScopes applies the entql json.RawMessage predicate on the scopes field.

func (*RefreshTokenFilter) WhereToken added in v0.1.1

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

WhereToken applies the entql string predicate on the token field.

type RefreshTokenGroupBy added in v0.1.1

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

RefreshTokenGroupBy is the group-by builder for RefreshToken entities.

func (*RefreshTokenGroupBy) Aggregate added in v0.1.1

func (rtgb *RefreshTokenGroupBy) Aggregate(fns ...AggregateFunc) *RefreshTokenGroupBy

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

func (*RefreshTokenGroupBy) Bool added in v0.1.1

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

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

func (*RefreshTokenGroupBy) BoolX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Bools added in v0.1.1

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

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

func (*RefreshTokenGroupBy) BoolsX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Float64 added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Float64X added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Float64s added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Float64sX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Int added in v0.1.1

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

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

func (*RefreshTokenGroupBy) IntX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Ints added in v0.1.1

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

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

func (*RefreshTokenGroupBy) IntsX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Scan added in v0.1.1

func (rtgb *RefreshTokenGroupBy) Scan(ctx context.Context, v any) error

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

func (*RefreshTokenGroupBy) ScanX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) String added in v0.1.1

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

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

func (*RefreshTokenGroupBy) StringX added in v0.1.1

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

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

func (*RefreshTokenGroupBy) Strings added in v0.1.1

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

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

func (*RefreshTokenGroupBy) StringsX added in v0.1.1

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

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

type RefreshTokenMutation added in v0.1.1

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

RefreshTokenMutation represents an operation that mutates the RefreshToken nodes in the graph.

func (*RefreshTokenMutation) AddField added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) AddedEdges added in v0.1.1

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

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

func (*RefreshTokenMutation) AddedField added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) AddedFields added in v0.1.1

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

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

func (*RefreshTokenMutation) AddedIDs added in v0.1.1

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

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

func (*RefreshTokenMutation) AppendClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) AppendClaimsGroups(s []string)

AppendClaimsGroups adds s to the "claims_groups" field.

func (*RefreshTokenMutation) AppendConnectorData added in v0.1.1

func (m *RefreshTokenMutation) AppendConnectorData(s []string)

AppendConnectorData adds s to the "connector_data" field.

func (*RefreshTokenMutation) AppendScopes added in v0.1.1

func (m *RefreshTokenMutation) AppendScopes(s []string)

AppendScopes adds s to the "scopes" field.

func (*RefreshTokenMutation) AppendedClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) AppendedClaimsGroups() ([]string, bool)

AppendedClaimsGroups returns the list of values that were appended to the "claims_groups" field in this mutation.

func (*RefreshTokenMutation) AppendedConnectorData added in v0.1.1

func (m *RefreshTokenMutation) AppendedConnectorData() ([]string, bool)

AppendedConnectorData returns the list of values that were appended to the "connector_data" field in this mutation.

func (*RefreshTokenMutation) AppendedScopes added in v0.1.1

func (m *RefreshTokenMutation) AppendedScopes() ([]string, bool)

AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation.

func (*RefreshTokenMutation) ClaimsEmail added in v0.1.1

func (m *RefreshTokenMutation) ClaimsEmail() (r string, exists bool)

ClaimsEmail returns the value of the "claims_email" field in the mutation.

func (*RefreshTokenMutation) ClaimsEmailVerified added in v0.1.1

func (m *RefreshTokenMutation) ClaimsEmailVerified() (r bool, exists bool)

ClaimsEmailVerified returns the value of the "claims_email_verified" field in the mutation.

func (*RefreshTokenMutation) ClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) ClaimsGroups() (r []string, exists bool)

ClaimsGroups returns the value of the "claims_groups" field in the mutation.

func (*RefreshTokenMutation) ClaimsGroupsCleared added in v0.1.1

func (m *RefreshTokenMutation) ClaimsGroupsCleared() bool

ClaimsGroupsCleared returns if the "claims_groups" field was cleared in this mutation.

func (*RefreshTokenMutation) ClaimsPreferredUsername added in v0.1.1

func (m *RefreshTokenMutation) ClaimsPreferredUsername() (r string, exists bool)

ClaimsPreferredUsername returns the value of the "claims_preferred_username" field in the mutation.

func (*RefreshTokenMutation) ClaimsUserID added in v0.1.1

func (m *RefreshTokenMutation) ClaimsUserID() (r string, exists bool)

ClaimsUserID returns the value of the "claims_user_id" field in the mutation.

func (*RefreshTokenMutation) ClaimsUsername added in v0.1.1

func (m *RefreshTokenMutation) ClaimsUsername() (r string, exists bool)

ClaimsUsername returns the value of the "claims_username" field in the mutation.

func (*RefreshTokenMutation) ClearClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) ClearClaimsGroups()

ClearClaimsGroups clears the value of the "claims_groups" field.

func (*RefreshTokenMutation) ClearConnectorData added in v0.1.1

func (m *RefreshTokenMutation) ClearConnectorData()

ClearConnectorData clears the value of the "connector_data" field.

func (*RefreshTokenMutation) ClearEdge added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) ClearField added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) ClearScopes added in v0.1.1

func (m *RefreshTokenMutation) ClearScopes()

ClearScopes clears the value of the "scopes" field.

func (*RefreshTokenMutation) ClearUser added in v0.1.1

func (m *RefreshTokenMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*RefreshTokenMutation) ClearedEdges added in v0.1.1

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

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

func (*RefreshTokenMutation) ClearedFields added in v0.1.1

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

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

func (RefreshTokenMutation) Client added in v0.1.1

func (m RefreshTokenMutation) 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 (*RefreshTokenMutation) ClientID added in v0.1.1

func (m *RefreshTokenMutation) ClientID() (r string, exists bool)

ClientID returns the value of the "client_id" field in the mutation.

func (*RefreshTokenMutation) ConnectorData added in v0.1.1

func (m *RefreshTokenMutation) ConnectorData() (r []string, exists bool)

ConnectorData returns the value of the "connector_data" field in the mutation.

func (*RefreshTokenMutation) ConnectorDataCleared added in v0.1.1

func (m *RefreshTokenMutation) ConnectorDataCleared() bool

ConnectorDataCleared returns if the "connector_data" field was cleared in this mutation.

func (*RefreshTokenMutation) ConnectorID added in v0.1.1

func (m *RefreshTokenMutation) ConnectorID() (r string, exists bool)

ConnectorID returns the value of the "connector_id" field in the mutation.

func (*RefreshTokenMutation) EdgeCleared added in v0.1.1

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

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

func (*RefreshTokenMutation) Field added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) FieldCleared added in v0.1.1

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

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

func (*RefreshTokenMutation) Fields added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) Filter added in v0.1.1

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

func (*RefreshTokenMutation) ID added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) IDs added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) LastUsed added in v0.1.1

func (m *RefreshTokenMutation) LastUsed() (r time.Time, exists bool)

LastUsed returns the value of the "last_used" field in the mutation.

func (*RefreshTokenMutation) Nonce added in v0.1.1

func (m *RefreshTokenMutation) Nonce() (r string, exists bool)

Nonce returns the value of the "nonce" field in the mutation.

func (*RefreshTokenMutation) ObsoleteToken added in v0.1.1

func (m *RefreshTokenMutation) ObsoleteToken() (r string, exists bool)

ObsoleteToken returns the value of the "obsolete_token" field in the mutation.

func (*RefreshTokenMutation) OldClaimsEmail added in v0.1.1

func (m *RefreshTokenMutation) OldClaimsEmail(ctx context.Context) (v string, err error)

OldClaimsEmail returns the old "claims_email" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldClaimsEmailVerified added in v0.1.1

func (m *RefreshTokenMutation) OldClaimsEmailVerified(ctx context.Context) (v bool, err error)

OldClaimsEmailVerified returns the old "claims_email_verified" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) OldClaimsGroups(ctx context.Context) (v []string, err error)

OldClaimsGroups returns the old "claims_groups" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldClaimsPreferredUsername added in v0.1.1

func (m *RefreshTokenMutation) OldClaimsPreferredUsername(ctx context.Context) (v string, err error)

OldClaimsPreferredUsername returns the old "claims_preferred_username" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldClaimsUserID added in v0.1.1

func (m *RefreshTokenMutation) OldClaimsUserID(ctx context.Context) (v string, err error)

OldClaimsUserID returns the old "claims_user_id" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldClaimsUsername added in v0.1.1

func (m *RefreshTokenMutation) OldClaimsUsername(ctx context.Context) (v string, err error)

OldClaimsUsername returns the old "claims_username" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldClientID added in v0.1.1

func (m *RefreshTokenMutation) OldClientID(ctx context.Context) (v string, err error)

OldClientID returns the old "client_id" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldConnectorData added in v0.1.1

func (m *RefreshTokenMutation) OldConnectorData(ctx context.Context) (v []string, err error)

OldConnectorData returns the old "connector_data" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldConnectorID added in v0.1.1

func (m *RefreshTokenMutation) OldConnectorID(ctx context.Context) (v string, err error)

OldConnectorID returns the old "connector_id" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldField added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) OldLastUsed added in v0.1.1

func (m *RefreshTokenMutation) OldLastUsed(ctx context.Context) (v time.Time, err error)

OldLastUsed returns the old "last_used" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldNonce added in v0.1.1

func (m *RefreshTokenMutation) OldNonce(ctx context.Context) (v string, err error)

OldNonce returns the old "nonce" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldObsoleteToken added in v0.1.1

func (m *RefreshTokenMutation) OldObsoleteToken(ctx context.Context) (v string, err error)

OldObsoleteToken returns the old "obsolete_token" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldScopes added in v0.1.1

func (m *RefreshTokenMutation) OldScopes(ctx context.Context) (v []string, err error)

OldScopes returns the old "scopes" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) OldToken added in v0.1.1

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

OldToken returns the old "token" field's value of the RefreshToken entity. If the RefreshToken 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 (*RefreshTokenMutation) Op added in v0.1.1

func (m *RefreshTokenMutation) Op() Op

Op returns the operation name.

func (*RefreshTokenMutation) RemovedEdges added in v0.1.1

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

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

func (*RefreshTokenMutation) RemovedIDs added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) ResetClaimsEmail added in v0.1.1

func (m *RefreshTokenMutation) ResetClaimsEmail()

ResetClaimsEmail resets all changes to the "claims_email" field.

func (*RefreshTokenMutation) ResetClaimsEmailVerified added in v0.1.1

func (m *RefreshTokenMutation) ResetClaimsEmailVerified()

ResetClaimsEmailVerified resets all changes to the "claims_email_verified" field.

func (*RefreshTokenMutation) ResetClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) ResetClaimsGroups()

ResetClaimsGroups resets all changes to the "claims_groups" field.

func (*RefreshTokenMutation) ResetClaimsPreferredUsername added in v0.1.1

func (m *RefreshTokenMutation) ResetClaimsPreferredUsername()

ResetClaimsPreferredUsername resets all changes to the "claims_preferred_username" field.

func (*RefreshTokenMutation) ResetClaimsUserID added in v0.1.1

func (m *RefreshTokenMutation) ResetClaimsUserID()

ResetClaimsUserID resets all changes to the "claims_user_id" field.

func (*RefreshTokenMutation) ResetClaimsUsername added in v0.1.1

func (m *RefreshTokenMutation) ResetClaimsUsername()

ResetClaimsUsername resets all changes to the "claims_username" field.

func (*RefreshTokenMutation) ResetClientID added in v0.1.1

func (m *RefreshTokenMutation) ResetClientID()

ResetClientID resets all changes to the "client_id" field.

func (*RefreshTokenMutation) ResetConnectorData added in v0.1.1

func (m *RefreshTokenMutation) ResetConnectorData()

ResetConnectorData resets all changes to the "connector_data" field.

func (*RefreshTokenMutation) ResetConnectorID added in v0.1.1

func (m *RefreshTokenMutation) ResetConnectorID()

ResetConnectorID resets all changes to the "connector_id" field.

func (*RefreshTokenMutation) ResetEdge added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) ResetField added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) ResetLastUsed added in v0.1.1

func (m *RefreshTokenMutation) ResetLastUsed()

ResetLastUsed resets all changes to the "last_used" field.

func (*RefreshTokenMutation) ResetNonce added in v0.1.1

func (m *RefreshTokenMutation) ResetNonce()

ResetNonce resets all changes to the "nonce" field.

func (*RefreshTokenMutation) ResetObsoleteToken added in v0.1.1

func (m *RefreshTokenMutation) ResetObsoleteToken()

ResetObsoleteToken resets all changes to the "obsolete_token" field.

func (*RefreshTokenMutation) ResetScopes added in v0.1.1

func (m *RefreshTokenMutation) ResetScopes()

ResetScopes resets all changes to the "scopes" field.

func (*RefreshTokenMutation) ResetToken added in v0.1.1

func (m *RefreshTokenMutation) ResetToken()

ResetToken resets all changes to the "token" field.

func (*RefreshTokenMutation) ResetUser added in v0.1.1

func (m *RefreshTokenMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*RefreshTokenMutation) Scopes added in v0.1.1

func (m *RefreshTokenMutation) Scopes() (r []string, exists bool)

Scopes returns the value of the "scopes" field in the mutation.

func (*RefreshTokenMutation) ScopesCleared added in v0.1.1

func (m *RefreshTokenMutation) ScopesCleared() bool

ScopesCleared returns if the "scopes" field was cleared in this mutation.

func (*RefreshTokenMutation) SetClaimsEmail added in v0.1.1

func (m *RefreshTokenMutation) SetClaimsEmail(s string)

SetClaimsEmail sets the "claims_email" field.

func (*RefreshTokenMutation) SetClaimsEmailVerified added in v0.1.1

func (m *RefreshTokenMutation) SetClaimsEmailVerified(b bool)

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*RefreshTokenMutation) SetClaimsGroups added in v0.1.1

func (m *RefreshTokenMutation) SetClaimsGroups(s []string)

SetClaimsGroups sets the "claims_groups" field.

func (*RefreshTokenMutation) SetClaimsPreferredUsername added in v0.1.1

func (m *RefreshTokenMutation) SetClaimsPreferredUsername(s string)

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*RefreshTokenMutation) SetClaimsUserID added in v0.1.1

func (m *RefreshTokenMutation) SetClaimsUserID(s string)

SetClaimsUserID sets the "claims_user_id" field.

func (*RefreshTokenMutation) SetClaimsUsername added in v0.1.1

func (m *RefreshTokenMutation) SetClaimsUsername(s string)

SetClaimsUsername sets the "claims_username" field.

func (*RefreshTokenMutation) SetClientID added in v0.1.1

func (m *RefreshTokenMutation) SetClientID(s string)

SetClientID sets the "client_id" field.

func (*RefreshTokenMutation) SetConnectorData added in v0.1.1

func (m *RefreshTokenMutation) SetConnectorData(s []string)

SetConnectorData sets the "connector_data" field.

func (*RefreshTokenMutation) SetConnectorID added in v0.1.1

func (m *RefreshTokenMutation) SetConnectorID(s string)

SetConnectorID sets the "connector_id" field.

func (*RefreshTokenMutation) SetField added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) SetID added in v0.1.1

func (m *RefreshTokenMutation) SetID(id string)

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

func (*RefreshTokenMutation) SetLastUsed added in v0.1.1

func (m *RefreshTokenMutation) SetLastUsed(t time.Time)

SetLastUsed sets the "last_used" field.

func (*RefreshTokenMutation) SetNonce added in v0.1.1

func (m *RefreshTokenMutation) SetNonce(s string)

SetNonce sets the "nonce" field.

func (*RefreshTokenMutation) SetObsoleteToken added in v0.1.1

func (m *RefreshTokenMutation) SetObsoleteToken(s string)

SetObsoleteToken sets the "obsolete_token" field.

func (*RefreshTokenMutation) SetOp added in v0.1.1

func (m *RefreshTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*RefreshTokenMutation) SetScopes added in v0.1.1

func (m *RefreshTokenMutation) SetScopes(s []string)

SetScopes sets the "scopes" field.

func (*RefreshTokenMutation) SetToken added in v0.1.1

func (m *RefreshTokenMutation) SetToken(s string)

SetToken sets the "token" field.

func (*RefreshTokenMutation) SetUserID added in v0.1.1

func (m *RefreshTokenMutation) SetUserID(id string)

SetUserID sets the "user" edge to the User entity by id.

func (*RefreshTokenMutation) Token added in v0.1.1

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

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

func (RefreshTokenMutation) Tx added in v0.1.1

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

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

func (*RefreshTokenMutation) Type added in v0.1.1

func (m *RefreshTokenMutation) Type() string

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

func (*RefreshTokenMutation) UserCleared added in v0.1.1

func (m *RefreshTokenMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*RefreshTokenMutation) UserID added in v0.1.1

func (m *RefreshTokenMutation) UserID() (id string, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*RefreshTokenMutation) UserIDs added in v0.1.1

func (m *RefreshTokenMutation) 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 (*RefreshTokenMutation) Where added in v0.1.1

Where appends a list predicates to the RefreshTokenMutation builder.

func (*RefreshTokenMutation) WhereP added in v0.1.1

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

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

type RefreshTokenOrder added in v0.1.1

type RefreshTokenOrder struct {
	Direction OrderDirection          `json:"direction"`
	Field     *RefreshTokenOrderField `json:"field"`
}

RefreshTokenOrder defines the ordering of RefreshToken.

type RefreshTokenOrderField added in v0.1.1

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

RefreshTokenOrderField defines the ordering field of RefreshToken.

type RefreshTokenPaginateOption added in v0.1.1

type RefreshTokenPaginateOption func(*refreshtokenPager) error

RefreshTokenPaginateOption enables pagination customization.

func WithRefreshTokenFilter added in v0.1.1

func WithRefreshTokenFilter(filter func(*RefreshTokenQuery) (*RefreshTokenQuery, error)) RefreshTokenPaginateOption

WithRefreshTokenFilter configures pagination filter.

func WithRefreshTokenOrder added in v0.1.1

func WithRefreshTokenOrder(order *RefreshTokenOrder) RefreshTokenPaginateOption

WithRefreshTokenOrder configures pagination ordering.

type RefreshTokenQuery added in v0.1.1

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

RefreshTokenQuery is the builder for querying RefreshToken entities.

func (*RefreshTokenQuery) Aggregate added in v0.1.1

func (rtq *RefreshTokenQuery) Aggregate(fns ...AggregateFunc) *RefreshTokenSelect

Aggregate returns a RefreshTokenSelect configured with the given aggregations.

func (*RefreshTokenQuery) All added in v0.1.1

func (rtq *RefreshTokenQuery) All(ctx context.Context) ([]*RefreshToken, error)

All executes the query and returns a list of RefreshTokens.

func (*RefreshTokenQuery) AllX added in v0.1.1

func (rtq *RefreshTokenQuery) AllX(ctx context.Context) []*RefreshToken

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

func (*RefreshTokenQuery) Clone added in v0.1.1

func (rtq *RefreshTokenQuery) Clone() *RefreshTokenQuery

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

func (*RefreshTokenQuery) CollectFields added in v0.1.1

func (rt *RefreshTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*RefreshTokenQuery, error)

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

func (*RefreshTokenQuery) Count added in v0.1.1

func (rtq *RefreshTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RefreshTokenQuery) CountX added in v0.1.1

func (rtq *RefreshTokenQuery) CountX(ctx context.Context) int

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

func (*RefreshTokenQuery) Exist added in v0.1.1

func (rtq *RefreshTokenQuery) Exist(ctx context.Context) (bool, error)

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

func (*RefreshTokenQuery) ExistX added in v0.1.1

func (rtq *RefreshTokenQuery) ExistX(ctx context.Context) bool

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

func (*RefreshTokenQuery) Filter added in v0.1.1

func (rtq *RefreshTokenQuery) Filter() *RefreshTokenFilter

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

func (*RefreshTokenQuery) First added in v0.1.1

func (rtq *RefreshTokenQuery) First(ctx context.Context) (*RefreshToken, error)

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

func (*RefreshTokenQuery) FirstID added in v0.1.1

func (rtq *RefreshTokenQuery) FirstID(ctx context.Context) (id string, err error)

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

func (*RefreshTokenQuery) FirstIDX added in v0.1.1

func (rtq *RefreshTokenQuery) FirstIDX(ctx context.Context) string

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

func (*RefreshTokenQuery) FirstX added in v0.1.1

func (rtq *RefreshTokenQuery) FirstX(ctx context.Context) *RefreshToken

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

func (*RefreshTokenQuery) GroupBy added in v0.1.1

func (rtq *RefreshTokenQuery) GroupBy(field string, fields ...string) *RefreshTokenGroupBy

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.RefreshToken.Query().
	GroupBy(refreshtoken.FieldClientID).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*RefreshTokenQuery) IDs added in v0.1.1

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

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

func (*RefreshTokenQuery) IDsX added in v0.1.1

func (rtq *RefreshTokenQuery) IDsX(ctx context.Context) []string

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

func (*RefreshTokenQuery) Limit added in v0.1.1

func (rtq *RefreshTokenQuery) Limit(limit int) *RefreshTokenQuery

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

func (*RefreshTokenQuery) Offset added in v0.1.1

func (rtq *RefreshTokenQuery) Offset(offset int) *RefreshTokenQuery

Offset to start from.

func (*RefreshTokenQuery) Only added in v0.1.1

func (rtq *RefreshTokenQuery) Only(ctx context.Context) (*RefreshToken, error)

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

func (*RefreshTokenQuery) OnlyID added in v0.1.1

func (rtq *RefreshTokenQuery) OnlyID(ctx context.Context) (id string, err error)

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

func (*RefreshTokenQuery) OnlyIDX added in v0.1.1

func (rtq *RefreshTokenQuery) OnlyIDX(ctx context.Context) string

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

func (*RefreshTokenQuery) OnlyX added in v0.1.1

func (rtq *RefreshTokenQuery) OnlyX(ctx context.Context) *RefreshToken

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

func (*RefreshTokenQuery) Order added in v0.1.1

Order specifies how the records should be ordered.

func (*RefreshTokenQuery) Paginate added in v0.1.1

func (rt *RefreshTokenQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...RefreshTokenPaginateOption,
) (*RefreshTokenConnection, error)

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

func (*RefreshTokenQuery) QueryUser added in v0.1.1

func (rtq *RefreshTokenQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*RefreshTokenQuery) Select added in v0.1.1

func (rtq *RefreshTokenQuery) Select(fields ...string) *RefreshTokenSelect

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.RefreshToken.Query().
	Select(refreshtoken.FieldClientID).
	Scan(ctx, &v)

func (*RefreshTokenQuery) Unique added in v0.1.1

func (rtq *RefreshTokenQuery) Unique(unique bool) *RefreshTokenQuery

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 (*RefreshTokenQuery) Where added in v0.1.1

Where adds a new predicate for the RefreshTokenQuery builder.

func (*RefreshTokenQuery) WithUser added in v0.1.1

func (rtq *RefreshTokenQuery) WithUser(opts ...func(*UserQuery)) *RefreshTokenQuery

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

type RefreshTokenSelect struct {
	*RefreshTokenQuery
	// contains filtered or unexported fields
}

RefreshTokenSelect is the builder for selecting fields of RefreshToken entities.

func (*RefreshTokenSelect) Aggregate added in v0.1.1

func (rts *RefreshTokenSelect) Aggregate(fns ...AggregateFunc) *RefreshTokenSelect

Aggregate adds the given aggregation functions to the selector query.

func (*RefreshTokenSelect) Bool added in v0.1.1

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

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

func (*RefreshTokenSelect) BoolX added in v0.1.1

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

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

func (*RefreshTokenSelect) Bools added in v0.1.1

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

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

func (*RefreshTokenSelect) BoolsX added in v0.1.1

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

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

func (*RefreshTokenSelect) Float64 added in v0.1.1

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

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

func (*RefreshTokenSelect) Float64X added in v0.1.1

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

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

func (*RefreshTokenSelect) Float64s added in v0.1.1

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

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

func (*RefreshTokenSelect) Float64sX added in v0.1.1

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

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

func (*RefreshTokenSelect) Int added in v0.1.1

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

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

func (*RefreshTokenSelect) IntX added in v0.1.1

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

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

func (*RefreshTokenSelect) Ints added in v0.1.1

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

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

func (*RefreshTokenSelect) IntsX added in v0.1.1

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

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

func (*RefreshTokenSelect) Scan added in v0.1.1

func (rts *RefreshTokenSelect) Scan(ctx context.Context, v any) error

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

func (*RefreshTokenSelect) ScanX added in v0.1.1

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

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

func (*RefreshTokenSelect) String added in v0.1.1

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

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

func (*RefreshTokenSelect) StringX added in v0.1.1

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

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

func (*RefreshTokenSelect) Strings added in v0.1.1

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

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

func (*RefreshTokenSelect) StringsX added in v0.1.1

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

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

type RefreshTokenUpdate added in v0.1.1

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

RefreshTokenUpdate is the builder for updating RefreshToken entities.

func (*RefreshTokenUpdate) AppendClaimsGroups added in v0.1.1

func (rtu *RefreshTokenUpdate) AppendClaimsGroups(s []string) *RefreshTokenUpdate

AppendClaimsGroups appends s to the "claims_groups" field.

func (*RefreshTokenUpdate) AppendConnectorData added in v0.1.1

func (rtu *RefreshTokenUpdate) AppendConnectorData(s []string) *RefreshTokenUpdate

AppendConnectorData appends s to the "connector_data" field.

func (*RefreshTokenUpdate) AppendScopes added in v0.1.1

func (rtu *RefreshTokenUpdate) AppendScopes(s []string) *RefreshTokenUpdate

AppendScopes appends s to the "scopes" field.

func (*RefreshTokenUpdate) ClearClaimsGroups added in v0.1.1

func (rtu *RefreshTokenUpdate) ClearClaimsGroups() *RefreshTokenUpdate

ClearClaimsGroups clears the value of the "claims_groups" field.

func (*RefreshTokenUpdate) ClearConnectorData added in v0.1.1

func (rtu *RefreshTokenUpdate) ClearConnectorData() *RefreshTokenUpdate

ClearConnectorData clears the value of the "connector_data" field.

func (*RefreshTokenUpdate) ClearScopes added in v0.1.1

func (rtu *RefreshTokenUpdate) ClearScopes() *RefreshTokenUpdate

ClearScopes clears the value of the "scopes" field.

func (*RefreshTokenUpdate) ClearUser added in v0.1.1

func (rtu *RefreshTokenUpdate) ClearUser() *RefreshTokenUpdate

ClearUser clears the "user" edge to the User entity.

func (*RefreshTokenUpdate) Exec added in v0.1.1

func (rtu *RefreshTokenUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RefreshTokenUpdate) ExecX added in v0.1.1

func (rtu *RefreshTokenUpdate) ExecX(ctx context.Context)

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

func (*RefreshTokenUpdate) Mutation added in v0.1.1

func (rtu *RefreshTokenUpdate) Mutation() *RefreshTokenMutation

Mutation returns the RefreshTokenMutation object of the builder.

func (*RefreshTokenUpdate) Save added in v0.1.1

func (rtu *RefreshTokenUpdate) Save(ctx context.Context) (int, error)

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

func (*RefreshTokenUpdate) SaveX added in v0.1.1

func (rtu *RefreshTokenUpdate) SaveX(ctx context.Context) int

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

func (*RefreshTokenUpdate) SetClaimsEmail added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClaimsEmail(s string) *RefreshTokenUpdate

SetClaimsEmail sets the "claims_email" field.

func (*RefreshTokenUpdate) SetClaimsEmailVerified added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClaimsEmailVerified(b bool) *RefreshTokenUpdate

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*RefreshTokenUpdate) SetClaimsGroups added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClaimsGroups(s []string) *RefreshTokenUpdate

SetClaimsGroups sets the "claims_groups" field.

func (*RefreshTokenUpdate) SetClaimsPreferredUsername added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClaimsPreferredUsername(s string) *RefreshTokenUpdate

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*RefreshTokenUpdate) SetClaimsUserID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClaimsUserID(s string) *RefreshTokenUpdate

SetClaimsUserID sets the "claims_user_id" field.

func (*RefreshTokenUpdate) SetClaimsUsername added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClaimsUsername(s string) *RefreshTokenUpdate

SetClaimsUsername sets the "claims_username" field.

func (*RefreshTokenUpdate) SetClientID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetClientID(s string) *RefreshTokenUpdate

SetClientID sets the "client_id" field.

func (*RefreshTokenUpdate) SetConnectorData added in v0.1.1

func (rtu *RefreshTokenUpdate) SetConnectorData(s []string) *RefreshTokenUpdate

SetConnectorData sets the "connector_data" field.

func (*RefreshTokenUpdate) SetConnectorID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetConnectorID(s string) *RefreshTokenUpdate

SetConnectorID sets the "connector_id" field.

func (*RefreshTokenUpdate) SetLastUsed added in v0.1.1

func (rtu *RefreshTokenUpdate) SetLastUsed(t time.Time) *RefreshTokenUpdate

SetLastUsed sets the "last_used" field.

func (*RefreshTokenUpdate) SetNillableClaimsEmail added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableClaimsEmail(s *string) *RefreshTokenUpdate

SetNillableClaimsEmail sets the "claims_email" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableClaimsEmailVerified added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableClaimsEmailVerified(b *bool) *RefreshTokenUpdate

SetNillableClaimsEmailVerified sets the "claims_email_verified" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableClaimsPreferredUsername added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableClaimsPreferredUsername(s *string) *RefreshTokenUpdate

SetNillableClaimsPreferredUsername sets the "claims_preferred_username" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableClaimsUserID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableClaimsUserID(s *string) *RefreshTokenUpdate

SetNillableClaimsUserID sets the "claims_user_id" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableClaimsUsername added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableClaimsUsername(s *string) *RefreshTokenUpdate

SetNillableClaimsUsername sets the "claims_username" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableClientID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableClientID(s *string) *RefreshTokenUpdate

SetNillableClientID sets the "client_id" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableConnectorID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableConnectorID(s *string) *RefreshTokenUpdate

SetNillableConnectorID sets the "connector_id" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableLastUsed added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableLastUsed(t *time.Time) *RefreshTokenUpdate

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableNonce added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableNonce(s *string) *RefreshTokenUpdate

SetNillableNonce sets the "nonce" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableObsoleteToken added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableObsoleteToken(s *string) *RefreshTokenUpdate

SetNillableObsoleteToken sets the "obsolete_token" field if the given value is not nil.

func (*RefreshTokenUpdate) SetNillableToken added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableToken(s *string) *RefreshTokenUpdate

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

func (*RefreshTokenUpdate) SetNillableUserID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNillableUserID(id *string) *RefreshTokenUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*RefreshTokenUpdate) SetNonce added in v0.1.1

func (rtu *RefreshTokenUpdate) SetNonce(s string) *RefreshTokenUpdate

SetNonce sets the "nonce" field.

func (*RefreshTokenUpdate) SetObsoleteToken added in v0.1.1

func (rtu *RefreshTokenUpdate) SetObsoleteToken(s string) *RefreshTokenUpdate

SetObsoleteToken sets the "obsolete_token" field.

func (*RefreshTokenUpdate) SetScopes added in v0.1.1

func (rtu *RefreshTokenUpdate) SetScopes(s []string) *RefreshTokenUpdate

SetScopes sets the "scopes" field.

func (*RefreshTokenUpdate) SetToken added in v0.1.1

func (rtu *RefreshTokenUpdate) SetToken(s string) *RefreshTokenUpdate

SetToken sets the "token" field.

func (*RefreshTokenUpdate) SetUser added in v0.1.1

func (rtu *RefreshTokenUpdate) SetUser(u *User) *RefreshTokenUpdate

SetUser sets the "user" edge to the User entity.

func (*RefreshTokenUpdate) SetUserID added in v0.1.1

func (rtu *RefreshTokenUpdate) SetUserID(id string) *RefreshTokenUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*RefreshTokenUpdate) Where added in v0.1.1

Where appends a list predicates to the RefreshTokenUpdate builder.

type RefreshTokenUpdateOne added in v0.1.1

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

RefreshTokenUpdateOne is the builder for updating a single RefreshToken entity.

func (*RefreshTokenUpdateOne) AppendClaimsGroups added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) AppendClaimsGroups(s []string) *RefreshTokenUpdateOne

AppendClaimsGroups appends s to the "claims_groups" field.

func (*RefreshTokenUpdateOne) AppendConnectorData added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) AppendConnectorData(s []string) *RefreshTokenUpdateOne

AppendConnectorData appends s to the "connector_data" field.

func (*RefreshTokenUpdateOne) AppendScopes added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) AppendScopes(s []string) *RefreshTokenUpdateOne

AppendScopes appends s to the "scopes" field.

func (*RefreshTokenUpdateOne) ClearClaimsGroups added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) ClearClaimsGroups() *RefreshTokenUpdateOne

ClearClaimsGroups clears the value of the "claims_groups" field.

func (*RefreshTokenUpdateOne) ClearConnectorData added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) ClearConnectorData() *RefreshTokenUpdateOne

ClearConnectorData clears the value of the "connector_data" field.

func (*RefreshTokenUpdateOne) ClearScopes added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) ClearScopes() *RefreshTokenUpdateOne

ClearScopes clears the value of the "scopes" field.

func (*RefreshTokenUpdateOne) ClearUser added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) ClearUser() *RefreshTokenUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*RefreshTokenUpdateOne) Exec added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RefreshTokenUpdateOne) ExecX added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) ExecX(ctx context.Context)

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

func (*RefreshTokenUpdateOne) Mutation added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) Mutation() *RefreshTokenMutation

Mutation returns the RefreshTokenMutation object of the builder.

func (*RefreshTokenUpdateOne) Save added in v0.1.1

Save executes the query and returns the updated RefreshToken entity.

func (*RefreshTokenUpdateOne) SaveX added in v0.1.1

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

func (*RefreshTokenUpdateOne) Select added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) Select(field string, fields ...string) *RefreshTokenUpdateOne

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

func (*RefreshTokenUpdateOne) SetClaimsEmail added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClaimsEmail(s string) *RefreshTokenUpdateOne

SetClaimsEmail sets the "claims_email" field.

func (*RefreshTokenUpdateOne) SetClaimsEmailVerified added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClaimsEmailVerified(b bool) *RefreshTokenUpdateOne

SetClaimsEmailVerified sets the "claims_email_verified" field.

func (*RefreshTokenUpdateOne) SetClaimsGroups added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClaimsGroups(s []string) *RefreshTokenUpdateOne

SetClaimsGroups sets the "claims_groups" field.

func (*RefreshTokenUpdateOne) SetClaimsPreferredUsername added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClaimsPreferredUsername(s string) *RefreshTokenUpdateOne

SetClaimsPreferredUsername sets the "claims_preferred_username" field.

func (*RefreshTokenUpdateOne) SetClaimsUserID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClaimsUserID(s string) *RefreshTokenUpdateOne

SetClaimsUserID sets the "claims_user_id" field.

func (*RefreshTokenUpdateOne) SetClaimsUsername added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClaimsUsername(s string) *RefreshTokenUpdateOne

SetClaimsUsername sets the "claims_username" field.

func (*RefreshTokenUpdateOne) SetClientID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetClientID(s string) *RefreshTokenUpdateOne

SetClientID sets the "client_id" field.

func (*RefreshTokenUpdateOne) SetConnectorData added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetConnectorData(s []string) *RefreshTokenUpdateOne

SetConnectorData sets the "connector_data" field.

func (*RefreshTokenUpdateOne) SetConnectorID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetConnectorID(s string) *RefreshTokenUpdateOne

SetConnectorID sets the "connector_id" field.

func (*RefreshTokenUpdateOne) SetLastUsed added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetLastUsed(t time.Time) *RefreshTokenUpdateOne

SetLastUsed sets the "last_used" field.

func (*RefreshTokenUpdateOne) SetNillableClaimsEmail added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableClaimsEmail(s *string) *RefreshTokenUpdateOne

SetNillableClaimsEmail sets the "claims_email" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableClaimsEmailVerified added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableClaimsEmailVerified(b *bool) *RefreshTokenUpdateOne

SetNillableClaimsEmailVerified sets the "claims_email_verified" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableClaimsPreferredUsername added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableClaimsPreferredUsername(s *string) *RefreshTokenUpdateOne

SetNillableClaimsPreferredUsername sets the "claims_preferred_username" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableClaimsUserID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableClaimsUserID(s *string) *RefreshTokenUpdateOne

SetNillableClaimsUserID sets the "claims_user_id" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableClaimsUsername added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableClaimsUsername(s *string) *RefreshTokenUpdateOne

SetNillableClaimsUsername sets the "claims_username" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableClientID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableClientID(s *string) *RefreshTokenUpdateOne

SetNillableClientID sets the "client_id" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableConnectorID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableConnectorID(s *string) *RefreshTokenUpdateOne

SetNillableConnectorID sets the "connector_id" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableLastUsed added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableLastUsed(t *time.Time) *RefreshTokenUpdateOne

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableNonce added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableNonce(s *string) *RefreshTokenUpdateOne

SetNillableNonce sets the "nonce" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableObsoleteToken added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableObsoleteToken(s *string) *RefreshTokenUpdateOne

SetNillableObsoleteToken sets the "obsolete_token" field if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNillableToken added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableToken(s *string) *RefreshTokenUpdateOne

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

func (*RefreshTokenUpdateOne) SetNillableUserID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetNillableUserID(id *string) *RefreshTokenUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*RefreshTokenUpdateOne) SetNonce added in v0.1.1

SetNonce sets the "nonce" field.

func (*RefreshTokenUpdateOne) SetObsoleteToken added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetObsoleteToken(s string) *RefreshTokenUpdateOne

SetObsoleteToken sets the "obsolete_token" field.

func (*RefreshTokenUpdateOne) SetScopes added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetScopes(s []string) *RefreshTokenUpdateOne

SetScopes sets the "scopes" field.

func (*RefreshTokenUpdateOne) SetToken added in v0.1.1

SetToken sets the "token" field.

func (*RefreshTokenUpdateOne) SetUser added in v0.1.1

SetUser sets the "user" edge to the User entity.

func (*RefreshTokenUpdateOne) SetUserID added in v0.1.1

func (rtuo *RefreshTokenUpdateOne) SetUserID(id string) *RefreshTokenUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*RefreshTokenUpdateOne) Where added in v0.1.1

Where appends a list predicates to the RefreshTokenUpdate builder.

type RefreshTokenWhereInput added in v0.1.1

type RefreshTokenWhereInput struct {
	Predicates []predicate.RefreshToken  `json:"-"`
	Not        *RefreshTokenWhereInput   `json:"not,omitempty"`
	Or         []*RefreshTokenWhereInput `json:"or,omitempty"`
	And        []*RefreshTokenWhereInput `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"`

	// "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"`

	// "obsolete_token" field predicates.
	ObsoleteToken             *string  `json:"obsoleteToken,omitempty"`
	ObsoleteTokenNEQ          *string  `json:"obsoleteTokenNEQ,omitempty"`
	ObsoleteTokenIn           []string `json:"obsoleteTokenIn,omitempty"`
	ObsoleteTokenNotIn        []string `json:"obsoleteTokenNotIn,omitempty"`
	ObsoleteTokenGT           *string  `json:"obsoleteTokenGT,omitempty"`
	ObsoleteTokenGTE          *string  `json:"obsoleteTokenGTE,omitempty"`
	ObsoleteTokenLT           *string  `json:"obsoleteTokenLT,omitempty"`
	ObsoleteTokenLTE          *string  `json:"obsoleteTokenLTE,omitempty"`
	ObsoleteTokenContains     *string  `json:"obsoleteTokenContains,omitempty"`
	ObsoleteTokenHasPrefix    *string  `json:"obsoleteTokenHasPrefix,omitempty"`
	ObsoleteTokenHasSuffix    *string  `json:"obsoleteTokenHasSuffix,omitempty"`
	ObsoleteTokenEqualFold    *string  `json:"obsoleteTokenEqualFold,omitempty"`
	ObsoleteTokenContainsFold *string  `json:"obsoleteTokenContainsFold,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"`

	// "user" edge predicates.
	HasUser     *bool             `json:"hasUser,omitempty"`
	HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"`
}

RefreshTokenWhereInput represents a where input for filtering RefreshToken queries.

func (*RefreshTokenWhereInput) AddPredicates added in v0.1.1

func (i *RefreshTokenWhereInput) AddPredicates(predicates ...predicate.RefreshToken)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*RefreshTokenWhereInput) Filter added in v0.1.1

Filter applies the RefreshTokenWhereInput filter on the RefreshTokenQuery builder.

func (*RefreshTokenWhereInput) P added in v0.1.1

P returns a predicate for filtering refreshtokens. An error is returned if the input is empty or invalid.

type RefreshTokens added in v0.1.1

type RefreshTokens []*RefreshToken

RefreshTokens is a parsable slice of RefreshToken.

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"`
	// Sessions can derrive from the local (password auth), oauth, or app_password
	Type session.Type `json:"type,omitempty"`
	// The session may be disabled by the user or by automatic security policy
	Disabled bool `json:"disabled,omitempty"`
	// random 32 bytes encoded as base64
	Token string `json:"token,omitempty"`
	// The last known user-agent
	UserAgent string `json:"user_agent,omitempty"`
	// All IPs that have been associated with this session. Reverse-chronological order. The current IP is the first item in the slice
	Ips string `json:"ips,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) QueryUsers added in v0.1.1

func (s *Session) QueryUsers() *UserQuery

QueryUsers queries the "users" 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) Users added in v0.1.1

func (s *Session) Users(ctx context.Context) (*User, error)

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) QueryUsers added in v0.1.1

func (c *SessionClient) QueryUsers(s *Session) *UserQuery

QueryUsers queries the users 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) SetDisabled added in v0.1.1

func (sc *SessionCreate) SetDisabled(b bool) *SessionCreate

SetDisabled sets the "disabled" 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) SetIps added in v0.1.1

func (sc *SessionCreate) SetIps(s string) *SessionCreate

SetIps sets the "ips" 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) SetNillableToken added in v0.1.1

func (sc *SessionCreate) SetNillableToken(s *string) *SessionCreate

SetNillableToken sets the "token" 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) SetNillableUserAgent added in v0.1.1

func (sc *SessionCreate) SetNillableUserAgent(s *string) *SessionCreate

SetNillableUserAgent sets the "user_agent" field if the given value is not nil.

func (*SessionCreate) SetNillableUsersID added in v0.1.1

func (sc *SessionCreate) SetNillableUsersID(id *string) *SessionCreate

SetNillableUsersID sets the "users" edge to the User entity by ID if the given value is not nil.

func (*SessionCreate) SetToken added in v0.1.1

func (sc *SessionCreate) SetToken(s string) *SessionCreate

SetToken sets the "token" field.

func (*SessionCreate) SetType added in v0.1.1

func (sc *SessionCreate) SetType(s session.Type) *SessionCreate

SetType sets the "type" 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) SetUserAgent added in v0.1.1

func (sc *SessionCreate) SetUserAgent(s string) *SessionCreate

SetUserAgent sets the "user_agent" field.

func (*SessionCreate) SetUsers added in v0.1.1

func (sc *SessionCreate) SetUsers(u *User) *SessionCreate

SetUsers sets the "users" edge to the User entity.

func (*SessionCreate) SetUsersID added in v0.1.1

func (sc *SessionCreate) SetUsersID(id string) *SessionCreate

SetUsersID sets the "users" edge to the User entity by ID.

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
	Users *User `json:"users,omitempty"`
	// contains filtered or unexported fields
}

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

func (SessionEdges) UsersOrErr added in v0.1.1

func (e SessionEdges) UsersOrErr() (*User, error)

UsersOrErr returns the Users 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) WhereDisabled added in v0.1.1

func (f *SessionFilter) WhereDisabled(p entql.BoolP)

WhereDisabled applies the entql bool predicate on the disabled field.

func (*SessionFilter) WhereHasUsers added in v0.1.1

func (f *SessionFilter) WhereHasUsers()

WhereHasUsers applies a predicate to check if query has an edge users.

func (*SessionFilter) WhereHasUsersWith added in v0.1.1

func (f *SessionFilter) WhereHasUsersWith(preds ...predicate.User)

WhereHasUsersWith applies a predicate to check if query has an edge users 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) WhereIps added in v0.1.1

func (f *SessionFilter) WhereIps(p entql.StringP)

WhereIps applies the entql string predicate on the ips field.

func (*SessionFilter) WhereToken added in v0.1.1

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

WhereToken applies the entql string predicate on the token field.

func (*SessionFilter) WhereType added in v0.1.1

func (f *SessionFilter) WhereType(p entql.StringP)

WhereType applies the entql string predicate on the type 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) WhereUserAgent added in v0.1.1

func (f *SessionFilter) WhereUserAgent(p entql.StringP)

WhereUserAgent applies the entql string predicate on the user_agent 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) ClearUpdatedBy

func (m *SessionMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*SessionMutation) ClearUserAgent added in v0.1.1

func (m *SessionMutation) ClearUserAgent()

ClearUserAgent clears the value of the "user_agent" field.

func (*SessionMutation) ClearUsers added in v0.1.1

func (m *SessionMutation) ClearUsers()

ClearUsers clears the "users" edge to the User entity.

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) Disabled added in v0.1.1

func (m *SessionMutation) Disabled() (r bool, exists bool)

Disabled returns the value of the "disabled" field in the 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) 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) GetType added in v0.1.1

func (m *SessionMutation) GetType() (r session.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

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) Ips added in v0.1.1

func (m *SessionMutation) Ips() (r string, exists bool)

Ips returns the value of the "ips" 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) OldDisabled added in v0.1.1

func (m *SessionMutation) OldDisabled(ctx context.Context) (v bool, err error)

OldDisabled returns the old "disabled" 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) OldIps added in v0.1.1

func (m *SessionMutation) OldIps(ctx context.Context) (v string, err error)

OldIps returns the old "ips" 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) OldToken added in v0.1.1

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

OldToken returns the old "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) OldType added in v0.1.1

func (m *SessionMutation) OldType(ctx context.Context) (v session.Type, err error)

OldType returns the old "type" 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) OldUserAgent added in v0.1.1

func (m *SessionMutation) OldUserAgent(ctx context.Context) (v string, err error)

OldUserAgent returns the old "user_agent" 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) 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) ResetDisabled added in v0.1.1

func (m *SessionMutation) ResetDisabled()

ResetDisabled resets all changes to the "disabled" 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) 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) ResetIps added in v0.1.1

func (m *SessionMutation) ResetIps()

ResetIps resets all changes to the "ips" field.

func (*SessionMutation) ResetToken added in v0.1.1

func (m *SessionMutation) ResetToken()

ResetToken resets all changes to the "token" field.

func (*SessionMutation) ResetType added in v0.1.1

func (m *SessionMutation) ResetType()

ResetType resets all changes to the "type" 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) ResetUserAgent added in v0.1.1

func (m *SessionMutation) ResetUserAgent()

ResetUserAgent resets all changes to the "user_agent" field.

func (*SessionMutation) ResetUsers added in v0.1.1

func (m *SessionMutation) ResetUsers()

ResetUsers resets all changes to the "users" edge.

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) SetDisabled added in v0.1.1

func (m *SessionMutation) SetDisabled(b bool)

SetDisabled sets the "disabled" 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) SetIps added in v0.1.1

func (m *SessionMutation) SetIps(s string)

SetIps sets the "ips" field.

func (*SessionMutation) SetOp

func (m *SessionMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*SessionMutation) SetToken added in v0.1.1

func (m *SessionMutation) SetToken(s string)

SetToken sets the "token" field.

func (*SessionMutation) SetType added in v0.1.1

func (m *SessionMutation) SetType(s session.Type)

SetType sets the "type" 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) SetUserAgent added in v0.1.1

func (m *SessionMutation) SetUserAgent(s string)

SetUserAgent sets the "user_agent" field.

func (*SessionMutation) SetUsersID added in v0.1.1

func (m *SessionMutation) SetUsersID(id string)

SetUsersID sets the "users" edge to the User entity by id.

func (*SessionMutation) Token added in v0.1.1

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

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

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) UserAgent added in v0.1.1

func (m *SessionMutation) UserAgent() (r string, exists bool)

UserAgent returns the value of the "user_agent" field in the mutation.

func (*SessionMutation) UserAgentCleared added in v0.1.1

func (m *SessionMutation) UserAgentCleared() bool

UserAgentCleared returns if the "user_agent" field was cleared in this mutation.

func (*SessionMutation) UsersCleared added in v0.1.1

func (m *SessionMutation) UsersCleared() bool

UsersCleared reports if the "users" edge to the User entity was cleared.

func (*SessionMutation) UsersID added in v0.1.1

func (m *SessionMutation) UsersID() (id string, exists bool)

UsersID returns the "users" edge ID in the mutation.

func (*SessionMutation) UsersIDs added in v0.1.1

func (m *SessionMutation) UsersIDs() (ids []string)

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

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) QueryUsers added in v0.1.1

func (sq *SessionQuery) QueryUsers() *UserQuery

QueryUsers chains the current query on the "users" 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) WithUsers added in v0.1.1

func (sq *SessionQuery) WithUsers(opts ...func(*UserQuery)) *SessionQuery

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 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) ClearCreatedBy added in v0.1.1

func (su *SessionUpdate) ClearCreatedBy() *SessionUpdate

ClearCreatedBy clears the value of the "created_by" field.

func (*SessionUpdate) ClearUpdatedBy

func (su *SessionUpdate) ClearUpdatedBy() *SessionUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*SessionUpdate) ClearUserAgent added in v0.1.1

func (su *SessionUpdate) ClearUserAgent() *SessionUpdate

ClearUserAgent clears the value of the "user_agent" field.

func (*SessionUpdate) ClearUsers added in v0.1.1

func (su *SessionUpdate) ClearUsers() *SessionUpdate

ClearUsers clears the "users" edge to the User entity.

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) SetCreatedBy added in v0.1.1

func (su *SessionUpdate) SetCreatedBy(s string) *SessionUpdate

SetCreatedBy sets the "created_by" field.

func (*SessionUpdate) SetDisabled added in v0.1.1

func (su *SessionUpdate) SetDisabled(b bool) *SessionUpdate

SetDisabled sets the "disabled" field.

func (*SessionUpdate) SetInput

SetInput applies the change-set in the UpdateSessionInput on the SessionUpdate builder.

func (*SessionUpdate) SetIps added in v0.1.1

func (su *SessionUpdate) SetIps(s string) *SessionUpdate

SetIps sets the "ips" field.

func (*SessionUpdate) SetNillableCreatedBy added in v0.1.1

func (su *SessionUpdate) SetNillableCreatedBy(s *string) *SessionUpdate

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

func (*SessionUpdate) SetNillableDisabled added in v0.1.1

func (su *SessionUpdate) SetNillableDisabled(b *bool) *SessionUpdate

SetNillableDisabled sets the "disabled" field if the given value is not nil.

func (*SessionUpdate) SetNillableIps added in v0.1.1

func (su *SessionUpdate) SetNillableIps(s *string) *SessionUpdate

SetNillableIps sets the "ips" 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) SetNillableUserAgent added in v0.1.1

func (su *SessionUpdate) SetNillableUserAgent(s *string) *SessionUpdate

SetNillableUserAgent sets the "user_agent" field if the given value is not nil.

func (*SessionUpdate) SetNillableUsersID added in v0.1.1

func (su *SessionUpdate) SetNillableUsersID(id *string) *SessionUpdate

SetNillableUsersID sets the "users" edge to the User entity by ID if the given value is not nil.

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) SetUserAgent added in v0.1.1

func (su *SessionUpdate) SetUserAgent(s string) *SessionUpdate

SetUserAgent sets the "user_agent" field.

func (*SessionUpdate) SetUsers added in v0.1.1

func (su *SessionUpdate) SetUsers(u *User) *SessionUpdate

SetUsers sets the "users" edge to the User entity.

func (*SessionUpdate) SetUsersID added in v0.1.1

func (su *SessionUpdate) SetUsersID(id string) *SessionUpdate

SetUsersID sets the "users" edge to the User entity by ID.

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) ClearCreatedBy added in v0.1.1

func (suo *SessionUpdateOne) ClearCreatedBy() *SessionUpdateOne

ClearCreatedBy clears the value of the "created_by" field.

func (*SessionUpdateOne) ClearUpdatedBy

func (suo *SessionUpdateOne) ClearUpdatedBy() *SessionUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*SessionUpdateOne) ClearUserAgent added in v0.1.1

func (suo *SessionUpdateOne) ClearUserAgent() *SessionUpdateOne

ClearUserAgent clears the value of the "user_agent" field.

func (*SessionUpdateOne) ClearUsers added in v0.1.1

func (suo *SessionUpdateOne) ClearUsers() *SessionUpdateOne

ClearUsers clears the "users" edge to the User entity.

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) SetCreatedBy added in v0.1.1

func (suo *SessionUpdateOne) SetCreatedBy(s string) *SessionUpdateOne

SetCreatedBy sets the "created_by" field.

func (*SessionUpdateOne) SetDisabled added in v0.1.1

func (suo *SessionUpdateOne) SetDisabled(b bool) *SessionUpdateOne

SetDisabled sets the "disabled" field.

func (*SessionUpdateOne) SetInput

SetInput applies the change-set in the UpdateSessionInput on the SessionUpdateOne builder.

func (*SessionUpdateOne) SetIps added in v0.1.1

func (suo *SessionUpdateOne) SetIps(s string) *SessionUpdateOne

SetIps sets the "ips" field.

func (*SessionUpdateOne) SetNillableCreatedBy added in v0.1.1

func (suo *SessionUpdateOne) SetNillableCreatedBy(s *string) *SessionUpdateOne

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

func (*SessionUpdateOne) SetNillableDisabled added in v0.1.1

func (suo *SessionUpdateOne) SetNillableDisabled(b *bool) *SessionUpdateOne

SetNillableDisabled sets the "disabled" field if the given value is not nil.

func (*SessionUpdateOne) SetNillableIps added in v0.1.1

func (suo *SessionUpdateOne) SetNillableIps(s *string) *SessionUpdateOne

SetNillableIps sets the "ips" 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) SetNillableUserAgent added in v0.1.1

func (suo *SessionUpdateOne) SetNillableUserAgent(s *string) *SessionUpdateOne

SetNillableUserAgent sets the "user_agent" field if the given value is not nil.

func (*SessionUpdateOne) SetNillableUsersID added in v0.1.1

func (suo *SessionUpdateOne) SetNillableUsersID(id *string) *SessionUpdateOne

SetNillableUsersID sets the "users" edge to the User entity by ID if the given value is not nil.

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) SetUserAgent added in v0.1.1

func (suo *SessionUpdateOne) SetUserAgent(s string) *SessionUpdateOne

SetUserAgent sets the "user_agent" field.

func (*SessionUpdateOne) SetUsers added in v0.1.1

func (suo *SessionUpdateOne) SetUsers(u *User) *SessionUpdateOne

SetUsers sets the "users" edge to the User entity.

func (*SessionUpdateOne) SetUsersID added in v0.1.1

func (suo *SessionUpdateOne) SetUsersID(id string) *SessionUpdateOne

SetUsersID sets the "users" edge to the User entity by ID.

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"`

	// "type" field predicates.
	Type      *session.Type  `json:"type,omitempty"`
	TypeNEQ   *session.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []session.Type `json:"typeIn,omitempty"`
	TypeNotIn []session.Type `json:"typeNotIn,omitempty"`

	// "disabled" field predicates.
	Disabled    *bool `json:"disabled,omitempty"`
	DisabledNEQ *bool `json:"disabledNEQ,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"`

	// "user_agent" field predicates.
	UserAgent             *string  `json:"userAgent,omitempty"`
	UserAgentNEQ          *string  `json:"userAgentNEQ,omitempty"`
	UserAgentIn           []string `json:"userAgentIn,omitempty"`
	UserAgentNotIn        []string `json:"userAgentNotIn,omitempty"`
	UserAgentGT           *string  `json:"userAgentGT,omitempty"`
	UserAgentGTE          *string  `json:"userAgentGTE,omitempty"`
	UserAgentLT           *string  `json:"userAgentLT,omitempty"`
	UserAgentLTE          *string  `json:"userAgentLTE,omitempty"`
	UserAgentContains     *string  `json:"userAgentContains,omitempty"`
	UserAgentHasPrefix    *string  `json:"userAgentHasPrefix,omitempty"`
	UserAgentHasSuffix    *string  `json:"userAgentHasSuffix,omitempty"`
	UserAgentIsNil        bool     `json:"userAgentIsNil,omitempty"`
	UserAgentNotNil       bool     `json:"userAgentNotNil,omitempty"`
	UserAgentEqualFold    *string  `json:"userAgentEqualFold,omitempty"`
	UserAgentContainsFold *string  `json:"userAgentContainsFold,omitempty"`

	// "ips" field predicates.
	Ips             *string  `json:"ips,omitempty"`
	IpsNEQ          *string  `json:"ipsNEQ,omitempty"`
	IpsIn           []string `json:"ipsIn,omitempty"`
	IpsNotIn        []string `json:"ipsNotIn,omitempty"`
	IpsGT           *string  `json:"ipsGT,omitempty"`
	IpsGTE          *string  `json:"ipsGTE,omitempty"`
	IpsLT           *string  `json:"ipsLT,omitempty"`
	IpsLTE          *string  `json:"ipsLTE,omitempty"`
	IpsContains     *string  `json:"ipsContains,omitempty"`
	IpsHasPrefix    *string  `json:"ipsHasPrefix,omitempty"`
	IpsHasSuffix    *string  `json:"ipsHasSuffix,omitempty"`
	IpsEqualFold    *string  `json:"ipsEqualFold,omitempty"`
	IpsContainsFold *string  `json:"ipsContainsFold,omitempty"`

	// "users" edge predicates.
	HasUsers     *bool             `json:"hasUsers,omitempty"`
	HasUsersWith []*UserWhereInput `json:"hasUsersWith,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 {

	// Entitlement is the client for interacting with the Entitlement builders.
	Entitlement *EntitlementClient
	// Group is the client for interacting with the Group builders.
	Group *GroupClient
	// GroupSettings is the client for interacting with the GroupSettings builders.
	GroupSettings *GroupSettingsClient
	// Integration is the client for interacting with the Integration builders.
	Integration *IntegrationClient
	// OauthProvider is the client for interacting with the OauthProvider builders.
	OauthProvider *OauthProviderClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// OrganizationSettings is the client for interacting with the OrganizationSettings builders.
	OrganizationSettings *OrganizationSettingsClient
	// PersonalAccessToken is the client for interacting with the PersonalAccessToken builders.
	PersonalAccessToken *PersonalAccessTokenClient
	// RefreshToken is the client for interacting with the RefreshToken builders.
	RefreshToken *RefreshTokenClient
	// Session is the client for interacting with the Session builders.
	Session *SessionClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// UserSettings is the client for interacting with the UserSettings builders.
	UserSettings *UserSettingsClient
	// 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
	ClearCreatedBy              bool
	CreatedBy                   *string
	ClearUpdatedBy              bool
	UpdatedBy                   *string
	Tier                        *entitlement.Tier
	ClearExternalCustomerID     bool
	ExternalCustomerID          *string
	ClearExternalSubscriptionID bool
	ExternalSubscriptionID      *string
	ClearExpiresAt              bool
	ExpiresAt                   *time.Time
	ClearUpgradedAt             bool
	UpgradedAt                  *time.Time
	ClearUpgradedTier           bool
	UpgradedTier                *string
	ClearDowngradedAt           bool
	DowngradedAt                *time.Time
	ClearDowngradedTier         bool
	DowngradedTier              *string
	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
	ClearCreatedBy bool
	CreatedBy      *string
	ClearUpdatedBy bool
	UpdatedBy      *string
	Name           *string
	Description    *string
	LogoURL        *string
	DisplayName    *string
	SettingID      *string
	ClearUsers     bool
	AddUserIDs     []string
	RemoveUserIDs  []string
	ClearOwner     bool
	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 UpdateGroupSettingsInput added in v0.1.1

type UpdateGroupSettingsInput struct {
	UpdatedAt      *time.Time
	ClearCreatedBy bool
	CreatedBy      *string
	ClearUpdatedBy bool
	UpdatedBy      *string
	Visibility     *groupsettings.Visibility
	JoinPolicy     *groupsettings.JoinPolicy
	Tags           []string
	AppendTags     []string
	SyncToSlack    *bool
	SyncToGithub   *bool
}

UpdateGroupSettingsInput represents a mutation input for updating groupsettingsslice.

func (*UpdateGroupSettingsInput) Mutate added in v0.1.1

Mutate applies the UpdateGroupSettingsInput on the GroupSettingsMutation builder.

type UpdateIntegrationInput

type UpdateIntegrationInput struct {
	UpdatedAt        *time.Time
	ClearCreatedBy   bool
	CreatedBy        *string
	ClearUpdatedBy   bool
	UpdatedBy        *string
	Name             *string
	ClearDescription bool
	Description      *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
	ClearCreatedBy bool
	CreatedBy      *string
	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 UpdateOrganizationInput

type UpdateOrganizationInput struct {
	UpdatedAt              *time.Time
	ClearCreatedBy         bool
	CreatedBy              *string
	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 UpdateOrganizationSettingsInput added in v0.1.1

type UpdateOrganizationSettingsInput struct {
	UpdatedAt      *time.Time
	ClearCreatedBy bool
	CreatedBy      *string
	ClearUpdatedBy bool
	UpdatedBy      *string
	Domains        []string
	AppendDomains  []string
	SSOCert        *string
	SSOEntrypoint  *string
	SSOIssuer      *string
	BillingContact *string
	BillingEmail   *string
	BillingPhone   *string
	BillingAddress *string
	TaxIdentifier  *string
	ClearTags      bool
	Tags           []string
	AppendTags     []string
}

UpdateOrganizationSettingsInput represents a mutation input for updating organizationsettingsslice.

func (*UpdateOrganizationSettingsInput) Mutate added in v0.1.1

Mutate applies the UpdateOrganizationSettingsInput on the OrganizationSettingsMutation builder.

type UpdatePersonalAccessTokenInput

type UpdatePersonalAccessTokenInput struct {
	UpdatedAt       *time.Time
	ClearCreatedBy  bool
	CreatedBy       *string
	ClearUpdatedBy  bool
	UpdatedBy       *string
	Name            *string
	Token           *string
	ClearAbilities  bool
	Abilities       []string
	AppendAbilities []string
	ExpirationAt    *time.Time
	ClearLastUsedAt bool
	LastUsedAt      *time.Time
	UserID          *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
	ClearCreatedBy bool
	CreatedBy      *string
	ClearUpdatedBy bool
	UpdatedBy      *string
	Disabled       *bool
	ClearUserAgent bool
	UserAgent      *string
	Ips            *string
	ClearUsers     bool
	UsersID        *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
	ClearCreatedBy               bool
	CreatedBy                    *string
	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
	ClearPasswordHash            bool
	PasswordHash                 *string
	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
	ClearRefreshtoken            bool
	AddRefreshtokenIDs           []string
	RemoveRefreshtokenIDs        []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 UpdateUserSettingsInput added in v0.1.1

type UpdateUserSettingsInput struct {
	UpdatedAt         *time.Time
	ClearCreatedBy    bool
	CreatedBy         *string
	ClearUpdatedBy    bool
	UpdatedBy         *string
	Locked            *bool
	ClearSilencedAt   bool
	SilencedAt        *time.Time
	ClearSuspendedAt  bool
	SuspendedAt       *time.Time
	ClearRecoveryCode bool
	RecoveryCode      *string
	Status            *usersettings.Status
	Role              *usersettings.Role
	Permissions       []string
	AppendPermissions []string
	EmailConfirmed    *bool
	Tags              []string
	AppendTags        []string
}

UpdateUserSettingsInput represents a mutation input for updating usersettingsslice.

func (*UpdateUserSettingsInput) Mutate added in v0.1.1

Mutate applies the UpdateUserSettingsInput on the UserSettingsMutation 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"`
	// 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 bcrypt password hash
	PasswordHash *string `json:"-"`
	// 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) 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) NamedRefreshtoken added in v0.1.1

func (u *User) NamedRefreshtoken(name string) ([]*RefreshToken, error)

NamedRefreshtoken returns the Refreshtoken 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) 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) QueryRefreshtoken added in v0.1.1

func (u *User) QueryRefreshtoken() *RefreshTokenQuery

QueryRefreshtoken queries the "refreshtoken" 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() *UserSettingsQuery

QuerySetting queries the "setting" edge of the User entity.

func (*User) Refreshtoken added in v0.1.1

func (u *User) Refreshtoken(ctx context.Context) (result []*RefreshToken, err error)

func (*User) Sessions

func (u *User) Sessions(ctx context.Context) (result []*Session, err error)

func (*User) Setting

func (u *User) Setting(ctx context.Context) (*UserSettings, 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) 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) QueryRefreshtoken added in v0.1.1

func (c *UserClient) QueryRefreshtoken(u *User) *RefreshTokenQuery

QueryRefreshtoken queries the refreshtoken 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) *UserSettingsQuery

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) 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) AddRefreshtoken added in v0.1.1

func (uc *UserCreate) AddRefreshtoken(r ...*RefreshToken) *UserCreate

AddRefreshtoken adds the "refreshtoken" edges to the RefreshToken entity.

func (*UserCreate) AddRefreshtokenIDs added in v0.1.1

func (uc *UserCreate) AddRefreshtokenIDs(ids ...string) *UserCreate

AddRefreshtokenIDs adds the "refreshtoken" edge to the RefreshToken entity by IDs.

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) 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) 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) SetNillablePasswordHash added in v0.1.1

func (uc *UserCreate) SetNillablePasswordHash(s *string) *UserCreate

SetNillablePasswordHash sets the "passwordHash" 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) SetPasswordHash added in v0.1.1

func (uc *UserCreate) SetPasswordHash(s string) *UserCreate

SetPasswordHash sets the "passwordHash" field.

func (*UserCreate) SetSetting

func (uc *UserCreate) SetSetting(u *UserSettings) *UserCreate

SetSetting sets the "setting" edge to the UserSettings entity.

func (*UserCreate) SetSettingID

func (uc *UserCreate) SetSettingID(id string) *UserCreate

SetSettingID sets the "setting" edge to the UserSettings entity by ID.

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 *UserSettings `json:"setting,omitempty"`
	// Refreshtoken holds the value of the refreshtoken edge.
	Refreshtoken []*RefreshToken `json:"refreshtoken,omitempty"`
	// contains filtered or unexported fields
}

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

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) RefreshtokenOrErr added in v0.1.1

func (e UserEdges) RefreshtokenOrErr() ([]*RefreshToken, error)

RefreshtokenOrErr returns the Refreshtoken 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() (*UserSettings, 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) 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) 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) WhereHasRefreshtoken added in v0.1.1

func (f *UserFilter) WhereHasRefreshtoken()

WhereHasRefreshtoken applies a predicate to check if query has an edge refreshtoken.

func (*UserFilter) WhereHasRefreshtokenWith added in v0.1.1

func (f *UserFilter) WhereHasRefreshtokenWith(preds ...predicate.RefreshToken)

WhereHasRefreshtokenWith applies a predicate to check if query has an edge refreshtoken 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.UserSettings)

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) WherePasswordHash added in v0.1.1

func (f *UserFilter) WherePasswordHash(p entql.StringP)

WherePasswordHash applies the entql string predicate on the passwordHash 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) 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) AddRefreshtokenIDs added in v0.1.1

func (m *UserMutation) AddRefreshtokenIDs(ids ...string)

AddRefreshtokenIDs adds the "refreshtoken" edge to the RefreshToken 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) 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) 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) ClearPasswordHash added in v0.1.1

func (m *UserMutation) ClearPasswordHash()

ClearPasswordHash clears the value of the "passwordHash" field.

func (*UserMutation) ClearPersonalAccessTokens

func (m *UserMutation) ClearPersonalAccessTokens()

ClearPersonalAccessTokens clears the "personal_access_tokens" edge to the PersonalAccessToken entity.

func (*UserMutation) ClearRefreshtoken added in v0.1.1

func (m *UserMutation) ClearRefreshtoken()

ClearRefreshtoken clears the "refreshtoken" edge to the RefreshToken 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 UserSettings entity.

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) 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) 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) 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) 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) OldPasswordHash added in v0.1.1

func (m *UserMutation) OldPasswordHash(ctx context.Context) (v *string, err error)

OldPasswordHash returns the old "passwordHash" 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) PasswordHash added in v0.1.1

func (m *UserMutation) PasswordHash() (r string, exists bool)

PasswordHash returns the value of the "passwordHash" field in the mutation.

func (*UserMutation) PasswordHashCleared added in v0.1.1

func (m *UserMutation) PasswordHashCleared() bool

PasswordHashCleared returns if the "passwordHash" 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) RefreshtokenCleared added in v0.1.1

func (m *UserMutation) RefreshtokenCleared() bool

RefreshtokenCleared reports if the "refreshtoken" edge to the RefreshToken entity was cleared.

func (*UserMutation) RefreshtokenIDs added in v0.1.1

func (m *UserMutation) RefreshtokenIDs() (ids []string)

RefreshtokenIDs returns the "refreshtoken" edge IDs in the mutation.

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) RemoveRefreshtokenIDs added in v0.1.1

func (m *UserMutation) RemoveRefreshtokenIDs(ids ...string)

RemoveRefreshtokenIDs removes the "refreshtoken" edge to the RefreshToken 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) 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) RemovedRefreshtokenIDs added in v0.1.1

func (m *UserMutation) RemovedRefreshtokenIDs() (ids []string)

RemovedRefreshtoken returns the removed IDs of the "refreshtoken" edge to the RefreshToken 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) 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) 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) ResetOrganizations

func (m *UserMutation) ResetOrganizations()

ResetOrganizations resets all changes to the "organizations" edge.

func (*UserMutation) ResetPasswordHash added in v0.1.1

func (m *UserMutation) ResetPasswordHash()

ResetPasswordHash resets all changes to the "passwordHash" field.

func (*UserMutation) ResetPersonalAccessTokens

func (m *UserMutation) ResetPersonalAccessTokens()

ResetPersonalAccessTokens resets all changes to the "personal_access_tokens" edge.

func (*UserMutation) ResetRefreshtoken added in v0.1.1

func (m *UserMutation) ResetRefreshtoken()

ResetRefreshtoken resets all changes to the "refreshtoken" 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) 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) 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) SetOp

func (m *UserMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserMutation) SetPasswordHash added in v0.1.1

func (m *UserMutation) SetPasswordHash(s string)

SetPasswordHash sets the "passwordHash" field.

func (*UserMutation) SetSettingID

func (m *UserMutation) SetSettingID(id string)

SetSettingID sets the "setting" edge to the UserSettings entity by id.

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 UserSettings 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) 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) 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) QueryRefreshtoken added in v0.1.1

func (uq *UserQuery) QueryRefreshtoken() *RefreshTokenQuery

QueryRefreshtoken chains the current query on the "refreshtoken" 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() *UserSettingsQuery

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) 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) 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) WithNamedRefreshtoken added in v0.1.1

func (uq *UserQuery) WithNamedRefreshtoken(name string, opts ...func(*RefreshTokenQuery)) *UserQuery

WithNamedRefreshtoken tells the query-builder to eager-load the nodes that are connected to the "refreshtoken" 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) WithRefreshtoken added in v0.1.1

func (uq *UserQuery) WithRefreshtoken(opts ...func(*RefreshTokenQuery)) *UserQuery

WithRefreshtoken tells the query-builder to eager-load the nodes that are connected to the "refreshtoken" 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(*UserSettingsQuery)) *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 UserSettings

type UserSettings 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"`
	// 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 usersettings.Status `json:"status,omitempty"`
	// Role holds the value of the "role" field.
	Role usersettings.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 UserSettingsQuery when eager-loading is set.
	Edges UserSettingsEdges `json:"edges"`
	// contains filtered or unexported fields
}

UserSettings is the model entity for the UserSettings schema.

func (*UserSettings) IsNode added in v0.1.1

func (n *UserSettings) IsNode()

IsNode implements the Node interface check for GQLGen.

func (*UserSettings) QueryUser added in v0.1.1

func (us *UserSettings) QueryUser() *UserQuery

QueryUser queries the "user" edge of the UserSettings entity.

func (*UserSettings) String added in v0.1.1

func (us *UserSettings) String() string

String implements the fmt.Stringer.

func (*UserSettings) ToEdge added in v0.1.1

func (us *UserSettings) ToEdge(order *UserSettingsOrder) *UserSettingsEdge

ToEdge converts UserSettings into UserSettingsEdge.

func (*UserSettings) Unwrap added in v0.1.1

func (us *UserSettings) Unwrap() *UserSettings

Unwrap unwraps the UserSettings 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 (*UserSettings) Update added in v0.1.1

func (us *UserSettings) Update() *UserSettingsUpdateOne

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

func (*UserSettings) Value added in v0.1.1

func (us *UserSettings) Value(name string) (ent.Value, error)

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

type UserSettingsClient added in v0.1.1

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

UserSettingsClient is a client for the UserSettings schema.

func NewUserSettingsClient added in v0.1.1

func NewUserSettingsClient(c config) *UserSettingsClient

NewUserSettingsClient returns a client for the UserSettings from the given config.

func (*UserSettingsClient) Create added in v0.1.1

Create returns a builder for creating a UserSettings entity.

func (*UserSettingsClient) CreateBulk added in v0.1.1

func (c *UserSettingsClient) CreateBulk(builders ...*UserSettingsCreate) *UserSettingsCreateBulk

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

func (*UserSettingsClient) Delete added in v0.1.1

Delete returns a delete builder for UserSettings.

func (*UserSettingsClient) DeleteOne added in v0.1.1

DeleteOne returns a builder for deleting the given entity.

func (*UserSettingsClient) DeleteOneID added in v0.1.1

func (c *UserSettingsClient) DeleteOneID(id string) *UserSettingsDeleteOne

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

func (*UserSettingsClient) Get added in v0.1.1

Get returns a UserSettings entity by its id.

func (*UserSettingsClient) GetX added in v0.1.1

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

func (*UserSettingsClient) Hooks added in v0.1.1

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

Hooks returns the client hooks.

func (*UserSettingsClient) Intercept added in v0.1.1

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

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

func (*UserSettingsClient) Interceptors added in v0.1.1

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

Interceptors returns the client interceptors.

func (*UserSettingsClient) MapCreateBulk added in v0.1.1

func (c *UserSettingsClient) MapCreateBulk(slice any, setFunc func(*UserSettingsCreate, int)) *UserSettingsCreateBulk

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 (*UserSettingsClient) Query added in v0.1.1

Query returns a query builder for UserSettings.

func (*UserSettingsClient) QueryUser added in v0.1.1

func (c *UserSettingsClient) QueryUser(us *UserSettings) *UserQuery

QueryUser queries the user edge of a UserSettings.

func (*UserSettingsClient) Update added in v0.1.1

Update returns an update builder for UserSettings.

func (*UserSettingsClient) UpdateOne added in v0.1.1

UpdateOne returns an update builder for the given entity.

func (*UserSettingsClient) UpdateOneID added in v0.1.1

func (c *UserSettingsClient) UpdateOneID(id string) *UserSettingsUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserSettingsClient) Use added in v0.1.1

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

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

type UserSettingsConnection added in v0.1.1

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

UserSettingsConnection is the connection containing edges to UserSettings.

type UserSettingsCreate added in v0.1.1

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

UserSettingsCreate is the builder for creating a UserSettings entity.

func (*UserSettingsCreate) Exec added in v0.1.1

func (usc *UserSettingsCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserSettingsCreate) ExecX added in v0.1.1

func (usc *UserSettingsCreate) ExecX(ctx context.Context)

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

func (*UserSettingsCreate) Mutation added in v0.1.1

func (usc *UserSettingsCreate) Mutation() *UserSettingsMutation

Mutation returns the UserSettingsMutation object of the builder.

func (*UserSettingsCreate) Save added in v0.1.1

Save creates the UserSettings in the database.

func (*UserSettingsCreate) SaveX added in v0.1.1

SaveX calls Save and panics if Save returns an error.

func (*UserSettingsCreate) SetCreatedAt added in v0.1.1

func (usc *UserSettingsCreate) SetCreatedAt(t time.Time) *UserSettingsCreate

SetCreatedAt sets the "created_at" field.

func (*UserSettingsCreate) SetCreatedBy added in v0.1.1

func (usc *UserSettingsCreate) SetCreatedBy(s string) *UserSettingsCreate

SetCreatedBy sets the "created_by" field.

func (*UserSettingsCreate) SetEmailConfirmed added in v0.1.1

func (usc *UserSettingsCreate) SetEmailConfirmed(b bool) *UserSettingsCreate

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingsCreate) SetID added in v0.1.1

SetID sets the "id" field.

func (*UserSettingsCreate) SetInput added in v0.1.1

SetInput applies the change-set in the CreateUserSettingsInput on the UserSettingsCreate builder.

func (*UserSettingsCreate) SetLocked added in v0.1.1

func (usc *UserSettingsCreate) SetLocked(b bool) *UserSettingsCreate

SetLocked sets the "locked" field.

func (*UserSettingsCreate) SetNillableCreatedAt added in v0.1.1

func (usc *UserSettingsCreate) SetNillableCreatedAt(t *time.Time) *UserSettingsCreate

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

func (*UserSettingsCreate) SetNillableCreatedBy added in v0.1.1

func (usc *UserSettingsCreate) SetNillableCreatedBy(s *string) *UserSettingsCreate

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

func (*UserSettingsCreate) SetNillableEmailConfirmed added in v0.1.1

func (usc *UserSettingsCreate) SetNillableEmailConfirmed(b *bool) *UserSettingsCreate

SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableID added in v0.1.1

func (usc *UserSettingsCreate) SetNillableID(s *string) *UserSettingsCreate

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

func (*UserSettingsCreate) SetNillableLocked added in v0.1.1

func (usc *UserSettingsCreate) SetNillableLocked(b *bool) *UserSettingsCreate

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableRecoveryCode added in v0.1.1

func (usc *UserSettingsCreate) SetNillableRecoveryCode(s *string) *UserSettingsCreate

SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableRole added in v0.1.1

func (usc *UserSettingsCreate) SetNillableRole(u *usersettings.Role) *UserSettingsCreate

SetNillableRole sets the "role" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableSilencedAt added in v0.1.1

func (usc *UserSettingsCreate) SetNillableSilencedAt(t *time.Time) *UserSettingsCreate

SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableStatus added in v0.1.1

func (usc *UserSettingsCreate) SetNillableStatus(u *usersettings.Status) *UserSettingsCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableSuspendedAt added in v0.1.1

func (usc *UserSettingsCreate) SetNillableSuspendedAt(t *time.Time) *UserSettingsCreate

SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.

func (*UserSettingsCreate) SetNillableUpdatedAt added in v0.1.1

func (usc *UserSettingsCreate) SetNillableUpdatedAt(t *time.Time) *UserSettingsCreate

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

func (*UserSettingsCreate) SetNillableUpdatedBy added in v0.1.1

func (usc *UserSettingsCreate) SetNillableUpdatedBy(s *string) *UserSettingsCreate

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

func (*UserSettingsCreate) SetNillableUserID added in v0.1.1

func (usc *UserSettingsCreate) SetNillableUserID(id *string) *UserSettingsCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserSettingsCreate) SetPermissions added in v0.1.1

func (usc *UserSettingsCreate) SetPermissions(s []string) *UserSettingsCreate

SetPermissions sets the "permissions" field.

func (*UserSettingsCreate) SetRecoveryCode added in v0.1.1

func (usc *UserSettingsCreate) SetRecoveryCode(s string) *UserSettingsCreate

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingsCreate) SetRole added in v0.1.1

SetRole sets the "role" field.

func (*UserSettingsCreate) SetSilencedAt added in v0.1.1

func (usc *UserSettingsCreate) SetSilencedAt(t time.Time) *UserSettingsCreate

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingsCreate) SetStatus added in v0.1.1

SetStatus sets the "status" field.

func (*UserSettingsCreate) SetSuspendedAt added in v0.1.1

func (usc *UserSettingsCreate) SetSuspendedAt(t time.Time) *UserSettingsCreate

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingsCreate) SetTags added in v0.1.1

func (usc *UserSettingsCreate) SetTags(s []string) *UserSettingsCreate

SetTags sets the "tags" field.

func (*UserSettingsCreate) SetUpdatedAt added in v0.1.1

func (usc *UserSettingsCreate) SetUpdatedAt(t time.Time) *UserSettingsCreate

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingsCreate) SetUpdatedBy added in v0.1.1

func (usc *UserSettingsCreate) SetUpdatedBy(s string) *UserSettingsCreate

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingsCreate) SetUser added in v0.1.1

func (usc *UserSettingsCreate) SetUser(u *User) *UserSettingsCreate

SetUser sets the "user" edge to the User entity.

func (*UserSettingsCreate) SetUserID added in v0.1.1

func (usc *UserSettingsCreate) SetUserID(id string) *UserSettingsCreate

SetUserID sets the "user" edge to the User entity by ID.

type UserSettingsCreateBulk added in v0.1.1

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

UserSettingsCreateBulk is the builder for creating many UserSettings entities in bulk.

func (*UserSettingsCreateBulk) Exec added in v0.1.1

func (uscb *UserSettingsCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserSettingsCreateBulk) ExecX added in v0.1.1

func (uscb *UserSettingsCreateBulk) ExecX(ctx context.Context)

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

func (*UserSettingsCreateBulk) Save added in v0.1.1

Save creates the UserSettings entities in the database.

func (*UserSettingsCreateBulk) SaveX added in v0.1.1

func (uscb *UserSettingsCreateBulk) SaveX(ctx context.Context) []*UserSettings

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

type UserSettingsDelete added in v0.1.1

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

UserSettingsDelete is the builder for deleting a UserSettings entity.

func (*UserSettingsDelete) Exec added in v0.1.1

func (usd *UserSettingsDelete) Exec(ctx context.Context) (int, error)

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

func (*UserSettingsDelete) ExecX added in v0.1.1

func (usd *UserSettingsDelete) ExecX(ctx context.Context) int

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

func (*UserSettingsDelete) Where added in v0.1.1

Where appends a list predicates to the UserSettingsDelete builder.

type UserSettingsDeleteOne added in v0.1.1

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

UserSettingsDeleteOne is the builder for deleting a single UserSettings entity.

func (*UserSettingsDeleteOne) Exec added in v0.1.1

func (usdo *UserSettingsDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserSettingsDeleteOne) ExecX added in v0.1.1

func (usdo *UserSettingsDeleteOne) ExecX(ctx context.Context)

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

func (*UserSettingsDeleteOne) Where added in v0.1.1

Where appends a list predicates to the UserSettingsDelete builder.

type UserSettingsEdge added in v0.1.1

type UserSettingsEdge struct {
	Node   *UserSettings `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

UserSettingsEdge is the edge representation of UserSettings.

type UserSettingsEdges added in v0.1.1

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

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

func (UserSettingsEdges) UserOrErr added in v0.1.1

func (e UserSettingsEdges) 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 UserSettingsFilter added in v0.1.1

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

UserSettingsFilter provides a generic filtering capability at runtime for UserSettingsQuery.

func (*UserSettingsFilter) Where added in v0.1.1

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

Where applies the entql predicate on the query filter.

func (*UserSettingsFilter) WhereCreatedAt added in v0.1.1

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

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

func (*UserSettingsFilter) WhereCreatedBy added in v0.1.1

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

WhereCreatedBy applies the entql string predicate on the created_by field.

func (*UserSettingsFilter) WhereEmailConfirmed added in v0.1.1

func (f *UserSettingsFilter) WhereEmailConfirmed(p entql.BoolP)

WhereEmailConfirmed applies the entql bool predicate on the email_confirmed field.

func (*UserSettingsFilter) WhereHasUser added in v0.1.1

func (f *UserSettingsFilter) WhereHasUser()

WhereHasUser applies a predicate to check if query has an edge user.

func (*UserSettingsFilter) WhereHasUserWith added in v0.1.1

func (f *UserSettingsFilter) WhereHasUserWith(preds ...predicate.User)

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

func (*UserSettingsFilter) WhereID added in v0.1.1

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

WhereID applies the entql string predicate on the id field.

func (*UserSettingsFilter) WhereLocked added in v0.1.1

func (f *UserSettingsFilter) WhereLocked(p entql.BoolP)

WhereLocked applies the entql bool predicate on the locked field.

func (*UserSettingsFilter) WherePermissions added in v0.1.1

func (f *UserSettingsFilter) WherePermissions(p entql.BytesP)

WherePermissions applies the entql json.RawMessage predicate on the permissions field.

func (*UserSettingsFilter) WhereRecoveryCode added in v0.1.1

func (f *UserSettingsFilter) WhereRecoveryCode(p entql.StringP)

WhereRecoveryCode applies the entql string predicate on the recovery_code field.

func (*UserSettingsFilter) WhereRole added in v0.1.1

func (f *UserSettingsFilter) WhereRole(p entql.StringP)

WhereRole applies the entql string predicate on the role field.

func (*UserSettingsFilter) WhereSilencedAt added in v0.1.1

func (f *UserSettingsFilter) WhereSilencedAt(p entql.TimeP)

WhereSilencedAt applies the entql time.Time predicate on the silenced_at field.

func (*UserSettingsFilter) WhereStatus added in v0.1.1

func (f *UserSettingsFilter) WhereStatus(p entql.StringP)

WhereStatus applies the entql string predicate on the status field.

func (*UserSettingsFilter) WhereSuspendedAt added in v0.1.1

func (f *UserSettingsFilter) WhereSuspendedAt(p entql.TimeP)

WhereSuspendedAt applies the entql time.Time predicate on the suspended_at field.

func (*UserSettingsFilter) WhereTags added in v0.1.1

func (f *UserSettingsFilter) WhereTags(p entql.BytesP)

WhereTags applies the entql json.RawMessage predicate on the tags field.

func (*UserSettingsFilter) WhereUpdatedAt added in v0.1.1

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

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

func (*UserSettingsFilter) WhereUpdatedBy added in v0.1.1

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

WhereUpdatedBy applies the entql string predicate on the updated_by field.

type UserSettingsGroupBy added in v0.1.1

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

UserSettingsGroupBy is the group-by builder for UserSettings entities.

func (*UserSettingsGroupBy) Aggregate added in v0.1.1

func (usgb *UserSettingsGroupBy) Aggregate(fns ...AggregateFunc) *UserSettingsGroupBy

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

func (*UserSettingsGroupBy) Bool added in v0.1.1

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

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

func (*UserSettingsGroupBy) BoolX added in v0.1.1

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

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

func (*UserSettingsGroupBy) Bools added in v0.1.1

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

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

func (*UserSettingsGroupBy) BoolsX added in v0.1.1

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

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

func (*UserSettingsGroupBy) Float64 added in v0.1.1

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

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

func (*UserSettingsGroupBy) Float64X added in v0.1.1

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

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

func (*UserSettingsGroupBy) Float64s added in v0.1.1

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

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

func (*UserSettingsGroupBy) Float64sX added in v0.1.1

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

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

func (*UserSettingsGroupBy) Int added in v0.1.1

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

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

func (*UserSettingsGroupBy) IntX added in v0.1.1

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

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

func (*UserSettingsGroupBy) Ints added in v0.1.1

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

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

func (*UserSettingsGroupBy) IntsX added in v0.1.1

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

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

func (*UserSettingsGroupBy) Scan added in v0.1.1

func (usgb *UserSettingsGroupBy) Scan(ctx context.Context, v any) error

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

func (*UserSettingsGroupBy) ScanX added in v0.1.1

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

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

func (*UserSettingsGroupBy) String added in v0.1.1

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

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

func (*UserSettingsGroupBy) StringX added in v0.1.1

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

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

func (*UserSettingsGroupBy) Strings added in v0.1.1

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

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

func (*UserSettingsGroupBy) StringsX added in v0.1.1

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

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

type UserSettingsMutation added in v0.1.1

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

UserSettingsMutation represents an operation that mutates the UserSettings nodes in the graph.

func (*UserSettingsMutation) AddField added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) AddedEdges added in v0.1.1

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

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

func (*UserSettingsMutation) AddedField added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) AddedFields added in v0.1.1

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

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

func (*UserSettingsMutation) AddedIDs added in v0.1.1

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

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

func (*UserSettingsMutation) AppendPermissions added in v0.1.1

func (m *UserSettingsMutation) AppendPermissions(s []string)

AppendPermissions adds s to the "permissions" field.

func (*UserSettingsMutation) AppendTags added in v0.1.1

func (m *UserSettingsMutation) AppendTags(s []string)

AppendTags adds s to the "tags" field.

func (*UserSettingsMutation) AppendedPermissions added in v0.1.1

func (m *UserSettingsMutation) AppendedPermissions() ([]string, bool)

AppendedPermissions returns the list of values that were appended to the "permissions" field in this mutation.

func (*UserSettingsMutation) AppendedTags added in v0.1.1

func (m *UserSettingsMutation) AppendedTags() ([]string, bool)

AppendedTags returns the list of values that were appended to the "tags" field in this mutation.

func (*UserSettingsMutation) ClearCreatedBy added in v0.1.1

func (m *UserSettingsMutation) ClearCreatedBy()

ClearCreatedBy clears the value of the "created_by" field.

func (*UserSettingsMutation) ClearEdge added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) ClearField added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) ClearRecoveryCode added in v0.1.1

func (m *UserSettingsMutation) ClearRecoveryCode()

ClearRecoveryCode clears the value of the "recovery_code" field.

func (*UserSettingsMutation) ClearSilencedAt added in v0.1.1

func (m *UserSettingsMutation) ClearSilencedAt()

ClearSilencedAt clears the value of the "silenced_at" field.

func (*UserSettingsMutation) ClearSuspendedAt added in v0.1.1

func (m *UserSettingsMutation) ClearSuspendedAt()

ClearSuspendedAt clears the value of the "suspended_at" field.

func (*UserSettingsMutation) ClearUpdatedBy added in v0.1.1

func (m *UserSettingsMutation) ClearUpdatedBy()

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserSettingsMutation) ClearUser added in v0.1.1

func (m *UserSettingsMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*UserSettingsMutation) ClearedEdges added in v0.1.1

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

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

func (*UserSettingsMutation) ClearedFields added in v0.1.1

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

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

func (UserSettingsMutation) Client added in v0.1.1

func (m UserSettingsMutation) 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 (*UserSettingsMutation) CreatedAt added in v0.1.1

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

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

func (*UserSettingsMutation) CreatedBy added in v0.1.1

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

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

func (*UserSettingsMutation) CreatedByCleared added in v0.1.1

func (m *UserSettingsMutation) CreatedByCleared() bool

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

func (*UserSettingsMutation) EdgeCleared added in v0.1.1

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

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

func (*UserSettingsMutation) EmailConfirmed added in v0.1.1

func (m *UserSettingsMutation) EmailConfirmed() (r bool, exists bool)

EmailConfirmed returns the value of the "email_confirmed" field in the mutation.

func (*UserSettingsMutation) Field added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) FieldCleared added in v0.1.1

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

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

func (*UserSettingsMutation) Fields added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) Filter added in v0.1.1

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

func (*UserSettingsMutation) ID added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) IDs added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) Locked added in v0.1.1

func (m *UserSettingsMutation) Locked() (r bool, exists bool)

Locked returns the value of the "locked" field in the mutation.

func (*UserSettingsMutation) OldCreatedAt added in v0.1.1

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

OldCreatedAt returns the old "created_at" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldCreatedBy added in v0.1.1

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

OldCreatedBy returns the old "created_by" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldEmailConfirmed added in v0.1.1

func (m *UserSettingsMutation) OldEmailConfirmed(ctx context.Context) (v bool, err error)

OldEmailConfirmed returns the old "email_confirmed" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldField added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) OldLocked added in v0.1.1

func (m *UserSettingsMutation) OldLocked(ctx context.Context) (v bool, err error)

OldLocked returns the old "locked" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldPermissions added in v0.1.1

func (m *UserSettingsMutation) OldPermissions(ctx context.Context) (v []string, err error)

OldPermissions returns the old "permissions" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldRecoveryCode added in v0.1.1

func (m *UserSettingsMutation) OldRecoveryCode(ctx context.Context) (v *string, err error)

OldRecoveryCode returns the old "recovery_code" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldRole added in v0.1.1

func (m *UserSettingsMutation) OldRole(ctx context.Context) (v usersettings.Role, err error)

OldRole returns the old "role" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldSilencedAt added in v0.1.1

func (m *UserSettingsMutation) OldSilencedAt(ctx context.Context) (v *time.Time, err error)

OldSilencedAt returns the old "silenced_at" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldStatus added in v0.1.1

func (m *UserSettingsMutation) OldStatus(ctx context.Context) (v usersettings.Status, err error)

OldStatus returns the old "status" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldSuspendedAt added in v0.1.1

func (m *UserSettingsMutation) OldSuspendedAt(ctx context.Context) (v *time.Time, err error)

OldSuspendedAt returns the old "suspended_at" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldTags added in v0.1.1

func (m *UserSettingsMutation) OldTags(ctx context.Context) (v []string, err error)

OldTags returns the old "tags" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldUpdatedAt added in v0.1.1

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

OldUpdatedAt returns the old "updated_at" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) OldUpdatedBy added in v0.1.1

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

OldUpdatedBy returns the old "updated_by" field's value of the UserSettings entity. If the UserSettings 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 (*UserSettingsMutation) Op added in v0.1.1

func (m *UserSettingsMutation) Op() Op

Op returns the operation name.

func (*UserSettingsMutation) Permissions added in v0.1.1

func (m *UserSettingsMutation) Permissions() (r []string, exists bool)

Permissions returns the value of the "permissions" field in the mutation.

func (*UserSettingsMutation) RecoveryCode added in v0.1.1

func (m *UserSettingsMutation) RecoveryCode() (r string, exists bool)

RecoveryCode returns the value of the "recovery_code" field in the mutation.

func (*UserSettingsMutation) RecoveryCodeCleared added in v0.1.1

func (m *UserSettingsMutation) RecoveryCodeCleared() bool

RecoveryCodeCleared returns if the "recovery_code" field was cleared in this mutation.

func (*UserSettingsMutation) RemovedEdges added in v0.1.1

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

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

func (*UserSettingsMutation) RemovedIDs added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) ResetCreatedAt added in v0.1.1

func (m *UserSettingsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserSettingsMutation) ResetCreatedBy added in v0.1.1

func (m *UserSettingsMutation) ResetCreatedBy()

ResetCreatedBy resets all changes to the "created_by" field.

func (*UserSettingsMutation) ResetEdge added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) ResetEmailConfirmed added in v0.1.1

func (m *UserSettingsMutation) ResetEmailConfirmed()

ResetEmailConfirmed resets all changes to the "email_confirmed" field.

func (*UserSettingsMutation) ResetField added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) ResetLocked added in v0.1.1

func (m *UserSettingsMutation) ResetLocked()

ResetLocked resets all changes to the "locked" field.

func (*UserSettingsMutation) ResetPermissions added in v0.1.1

func (m *UserSettingsMutation) ResetPermissions()

ResetPermissions resets all changes to the "permissions" field.

func (*UserSettingsMutation) ResetRecoveryCode added in v0.1.1

func (m *UserSettingsMutation) ResetRecoveryCode()

ResetRecoveryCode resets all changes to the "recovery_code" field.

func (*UserSettingsMutation) ResetRole added in v0.1.1

func (m *UserSettingsMutation) ResetRole()

ResetRole resets all changes to the "role" field.

func (*UserSettingsMutation) ResetSilencedAt added in v0.1.1

func (m *UserSettingsMutation) ResetSilencedAt()

ResetSilencedAt resets all changes to the "silenced_at" field.

func (*UserSettingsMutation) ResetStatus added in v0.1.1

func (m *UserSettingsMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*UserSettingsMutation) ResetSuspendedAt added in v0.1.1

func (m *UserSettingsMutation) ResetSuspendedAt()

ResetSuspendedAt resets all changes to the "suspended_at" field.

func (*UserSettingsMutation) ResetTags added in v0.1.1

func (m *UserSettingsMutation) ResetTags()

ResetTags resets all changes to the "tags" field.

func (*UserSettingsMutation) ResetUpdatedAt added in v0.1.1

func (m *UserSettingsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserSettingsMutation) ResetUpdatedBy added in v0.1.1

func (m *UserSettingsMutation) ResetUpdatedBy()

ResetUpdatedBy resets all changes to the "updated_by" field.

func (*UserSettingsMutation) ResetUser added in v0.1.1

func (m *UserSettingsMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*UserSettingsMutation) Role added in v0.1.1

func (m *UserSettingsMutation) Role() (r usersettings.Role, exists bool)

Role returns the value of the "role" field in the mutation.

func (*UserSettingsMutation) SetCreatedAt added in v0.1.1

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

SetCreatedAt sets the "created_at" field.

func (*UserSettingsMutation) SetCreatedBy added in v0.1.1

func (m *UserSettingsMutation) SetCreatedBy(s string)

SetCreatedBy sets the "created_by" field.

func (*UserSettingsMutation) SetEmailConfirmed added in v0.1.1

func (m *UserSettingsMutation) SetEmailConfirmed(b bool)

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingsMutation) SetField added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) SetID added in v0.1.1

func (m *UserSettingsMutation) SetID(id string)

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

func (*UserSettingsMutation) SetLocked added in v0.1.1

func (m *UserSettingsMutation) SetLocked(b bool)

SetLocked sets the "locked" field.

func (*UserSettingsMutation) SetOp added in v0.1.1

func (m *UserSettingsMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserSettingsMutation) SetPermissions added in v0.1.1

func (m *UserSettingsMutation) SetPermissions(s []string)

SetPermissions sets the "permissions" field.

func (*UserSettingsMutation) SetRecoveryCode added in v0.1.1

func (m *UserSettingsMutation) SetRecoveryCode(s string)

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingsMutation) SetRole added in v0.1.1

func (m *UserSettingsMutation) SetRole(u usersettings.Role)

SetRole sets the "role" field.

func (*UserSettingsMutation) SetSilencedAt added in v0.1.1

func (m *UserSettingsMutation) SetSilencedAt(t time.Time)

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingsMutation) SetStatus added in v0.1.1

func (m *UserSettingsMutation) SetStatus(u usersettings.Status)

SetStatus sets the "status" field.

func (*UserSettingsMutation) SetSuspendedAt added in v0.1.1

func (m *UserSettingsMutation) SetSuspendedAt(t time.Time)

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingsMutation) SetTags added in v0.1.1

func (m *UserSettingsMutation) SetTags(s []string)

SetTags sets the "tags" field.

func (*UserSettingsMutation) SetUpdatedAt added in v0.1.1

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

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingsMutation) SetUpdatedBy added in v0.1.1

func (m *UserSettingsMutation) SetUpdatedBy(s string)

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingsMutation) SetUserID added in v0.1.1

func (m *UserSettingsMutation) SetUserID(id string)

SetUserID sets the "user" edge to the User entity by id.

func (*UserSettingsMutation) SilencedAt added in v0.1.1

func (m *UserSettingsMutation) SilencedAt() (r time.Time, exists bool)

SilencedAt returns the value of the "silenced_at" field in the mutation.

func (*UserSettingsMutation) SilencedAtCleared added in v0.1.1

func (m *UserSettingsMutation) SilencedAtCleared() bool

SilencedAtCleared returns if the "silenced_at" field was cleared in this mutation.

func (*UserSettingsMutation) Status added in v0.1.1

func (m *UserSettingsMutation) Status() (r usersettings.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (*UserSettingsMutation) SuspendedAt added in v0.1.1

func (m *UserSettingsMutation) SuspendedAt() (r time.Time, exists bool)

SuspendedAt returns the value of the "suspended_at" field in the mutation.

func (*UserSettingsMutation) SuspendedAtCleared added in v0.1.1

func (m *UserSettingsMutation) SuspendedAtCleared() bool

SuspendedAtCleared returns if the "suspended_at" field was cleared in this mutation.

func (*UserSettingsMutation) Tags added in v0.1.1

func (m *UserSettingsMutation) Tags() (r []string, exists bool)

Tags returns the value of the "tags" field in the mutation.

func (UserSettingsMutation) Tx added in v0.1.1

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

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

func (*UserSettingsMutation) Type added in v0.1.1

func (m *UserSettingsMutation) Type() string

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

func (*UserSettingsMutation) UpdatedAt added in v0.1.1

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

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

func (*UserSettingsMutation) UpdatedBy added in v0.1.1

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

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

func (*UserSettingsMutation) UpdatedByCleared added in v0.1.1

func (m *UserSettingsMutation) UpdatedByCleared() bool

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

func (*UserSettingsMutation) UserCleared added in v0.1.1

func (m *UserSettingsMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*UserSettingsMutation) UserID added in v0.1.1

func (m *UserSettingsMutation) UserID() (id string, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*UserSettingsMutation) UserIDs added in v0.1.1

func (m *UserSettingsMutation) 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 (*UserSettingsMutation) Where added in v0.1.1

Where appends a list predicates to the UserSettingsMutation builder.

func (*UserSettingsMutation) WhereP added in v0.1.1

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

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

type UserSettingsOrder added in v0.1.1

type UserSettingsOrder struct {
	Direction OrderDirection          `json:"direction"`
	Field     *UserSettingsOrderField `json:"field"`
}

UserSettingsOrder defines the ordering of UserSettings.

type UserSettingsOrderField added in v0.1.1

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

UserSettingsOrderField defines the ordering field of UserSettings.

type UserSettingsPaginateOption added in v0.1.1

type UserSettingsPaginateOption func(*usersettingsPager) error

UserSettingsPaginateOption enables pagination customization.

func WithUserSettingsFilter added in v0.1.1

func WithUserSettingsFilter(filter func(*UserSettingsQuery) (*UserSettingsQuery, error)) UserSettingsPaginateOption

WithUserSettingsFilter configures pagination filter.

func WithUserSettingsOrder added in v0.1.1

func WithUserSettingsOrder(order *UserSettingsOrder) UserSettingsPaginateOption

WithUserSettingsOrder configures pagination ordering.

type UserSettingsQuery added in v0.1.1

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

UserSettingsQuery is the builder for querying UserSettings entities.

func (*UserSettingsQuery) Aggregate added in v0.1.1

func (usq *UserSettingsQuery) Aggregate(fns ...AggregateFunc) *UserSettingsSelect

Aggregate returns a UserSettingsSelect configured with the given aggregations.

func (*UserSettingsQuery) All added in v0.1.1

func (usq *UserSettingsQuery) All(ctx context.Context) ([]*UserSettings, error)

All executes the query and returns a list of UserSettingsSlice.

func (*UserSettingsQuery) AllX added in v0.1.1

func (usq *UserSettingsQuery) AllX(ctx context.Context) []*UserSettings

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

func (*UserSettingsQuery) Clone added in v0.1.1

func (usq *UserSettingsQuery) Clone() *UserSettingsQuery

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

func (*UserSettingsQuery) CollectFields added in v0.1.1

func (us *UserSettingsQuery) CollectFields(ctx context.Context, satisfies ...string) (*UserSettingsQuery, error)

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

func (*UserSettingsQuery) Count added in v0.1.1

func (usq *UserSettingsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserSettingsQuery) CountX added in v0.1.1

func (usq *UserSettingsQuery) CountX(ctx context.Context) int

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

func (*UserSettingsQuery) Exist added in v0.1.1

func (usq *UserSettingsQuery) Exist(ctx context.Context) (bool, error)

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

func (*UserSettingsQuery) ExistX added in v0.1.1

func (usq *UserSettingsQuery) ExistX(ctx context.Context) bool

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

func (*UserSettingsQuery) Filter added in v0.1.1

func (usq *UserSettingsQuery) Filter() *UserSettingsFilter

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

func (*UserSettingsQuery) First added in v0.1.1

func (usq *UserSettingsQuery) First(ctx context.Context) (*UserSettings, error)

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

func (*UserSettingsQuery) FirstID added in v0.1.1

func (usq *UserSettingsQuery) FirstID(ctx context.Context) (id string, err error)

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

func (*UserSettingsQuery) FirstIDX added in v0.1.1

func (usq *UserSettingsQuery) FirstIDX(ctx context.Context) string

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

func (*UserSettingsQuery) FirstX added in v0.1.1

func (usq *UserSettingsQuery) FirstX(ctx context.Context) *UserSettings

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

func (*UserSettingsQuery) GroupBy added in v0.1.1

func (usq *UserSettingsQuery) GroupBy(field string, fields ...string) *UserSettingsGroupBy

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.UserSettings.Query().
	GroupBy(usersettings.FieldCreatedAt).
	Aggregate(generated.Count()).
	Scan(ctx, &v)

func (*UserSettingsQuery) IDs added in v0.1.1

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

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

func (*UserSettingsQuery) IDsX added in v0.1.1

func (usq *UserSettingsQuery) IDsX(ctx context.Context) []string

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

func (*UserSettingsQuery) Limit added in v0.1.1

func (usq *UserSettingsQuery) Limit(limit int) *UserSettingsQuery

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

func (*UserSettingsQuery) Offset added in v0.1.1

func (usq *UserSettingsQuery) Offset(offset int) *UserSettingsQuery

Offset to start from.

func (*UserSettingsQuery) Only added in v0.1.1

func (usq *UserSettingsQuery) Only(ctx context.Context) (*UserSettings, error)

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

func (*UserSettingsQuery) OnlyID added in v0.1.1

func (usq *UserSettingsQuery) OnlyID(ctx context.Context) (id string, err error)

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

func (*UserSettingsQuery) OnlyIDX added in v0.1.1

func (usq *UserSettingsQuery) OnlyIDX(ctx context.Context) string

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

func (*UserSettingsQuery) OnlyX added in v0.1.1

func (usq *UserSettingsQuery) OnlyX(ctx context.Context) *UserSettings

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

func (*UserSettingsQuery) Order added in v0.1.1

Order specifies how the records should be ordered.

func (*UserSettingsQuery) Paginate added in v0.1.1

func (us *UserSettingsQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...UserSettingsPaginateOption,
) (*UserSettingsConnection, error)

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

func (*UserSettingsQuery) QueryUser added in v0.1.1

func (usq *UserSettingsQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*UserSettingsQuery) Select added in v0.1.1

func (usq *UserSettingsQuery) Select(fields ...string) *UserSettingsSelect

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.UserSettings.Query().
	Select(usersettings.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserSettingsQuery) Unique added in v0.1.1

func (usq *UserSettingsQuery) Unique(unique bool) *UserSettingsQuery

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 (*UserSettingsQuery) Where added in v0.1.1

Where adds a new predicate for the UserSettingsQuery builder.

func (*UserSettingsQuery) WithUser added in v0.1.1

func (usq *UserSettingsQuery) WithUser(opts ...func(*UserQuery)) *UserSettingsQuery

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

type UserSettingsSelect struct {
	*UserSettingsQuery
	// contains filtered or unexported fields
}

UserSettingsSelect is the builder for selecting fields of UserSettings entities.

func (*UserSettingsSelect) Aggregate added in v0.1.1

func (uss *UserSettingsSelect) Aggregate(fns ...AggregateFunc) *UserSettingsSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSettingsSelect) Bool added in v0.1.1

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

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

func (*UserSettingsSelect) BoolX added in v0.1.1

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

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

func (*UserSettingsSelect) Bools added in v0.1.1

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

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

func (*UserSettingsSelect) BoolsX added in v0.1.1

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

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

func (*UserSettingsSelect) Float64 added in v0.1.1

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

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

func (*UserSettingsSelect) Float64X added in v0.1.1

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

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

func (*UserSettingsSelect) Float64s added in v0.1.1

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

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

func (*UserSettingsSelect) Float64sX added in v0.1.1

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

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

func (*UserSettingsSelect) Int added in v0.1.1

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

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

func (*UserSettingsSelect) IntX added in v0.1.1

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

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

func (*UserSettingsSelect) Ints added in v0.1.1

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

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

func (*UserSettingsSelect) IntsX added in v0.1.1

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

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

func (*UserSettingsSelect) Scan added in v0.1.1

func (uss *UserSettingsSelect) Scan(ctx context.Context, v any) error

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

func (*UserSettingsSelect) ScanX added in v0.1.1

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

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

func (*UserSettingsSelect) String added in v0.1.1

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

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

func (*UserSettingsSelect) StringX added in v0.1.1

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

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

func (*UserSettingsSelect) Strings added in v0.1.1

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

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

func (*UserSettingsSelect) StringsX added in v0.1.1

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

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

type UserSettingsSlice added in v0.1.1

type UserSettingsSlice []*UserSettings

UserSettingsSlice is a parsable slice of UserSettings.

type UserSettingsUpdate added in v0.1.1

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

UserSettingsUpdate is the builder for updating UserSettings entities.

func (*UserSettingsUpdate) AppendPermissions added in v0.1.1

func (usu *UserSettingsUpdate) AppendPermissions(s []string) *UserSettingsUpdate

AppendPermissions appends s to the "permissions" field.

func (*UserSettingsUpdate) AppendTags added in v0.1.1

func (usu *UserSettingsUpdate) AppendTags(s []string) *UserSettingsUpdate

AppendTags appends s to the "tags" field.

func (*UserSettingsUpdate) ClearCreatedBy added in v0.1.1

func (usu *UserSettingsUpdate) ClearCreatedBy() *UserSettingsUpdate

ClearCreatedBy clears the value of the "created_by" field.

func (*UserSettingsUpdate) ClearRecoveryCode added in v0.1.1

func (usu *UserSettingsUpdate) ClearRecoveryCode() *UserSettingsUpdate

ClearRecoveryCode clears the value of the "recovery_code" field.

func (*UserSettingsUpdate) ClearSilencedAt added in v0.1.1

func (usu *UserSettingsUpdate) ClearSilencedAt() *UserSettingsUpdate

ClearSilencedAt clears the value of the "silenced_at" field.

func (*UserSettingsUpdate) ClearSuspendedAt added in v0.1.1

func (usu *UserSettingsUpdate) ClearSuspendedAt() *UserSettingsUpdate

ClearSuspendedAt clears the value of the "suspended_at" field.

func (*UserSettingsUpdate) ClearUpdatedBy added in v0.1.1

func (usu *UserSettingsUpdate) ClearUpdatedBy() *UserSettingsUpdate

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserSettingsUpdate) ClearUser added in v0.1.1

func (usu *UserSettingsUpdate) ClearUser() *UserSettingsUpdate

ClearUser clears the "user" edge to the User entity.

func (*UserSettingsUpdate) Exec added in v0.1.1

func (usu *UserSettingsUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserSettingsUpdate) ExecX added in v0.1.1

func (usu *UserSettingsUpdate) ExecX(ctx context.Context)

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

func (*UserSettingsUpdate) Mutation added in v0.1.1

func (usu *UserSettingsUpdate) Mutation() *UserSettingsMutation

Mutation returns the UserSettingsMutation object of the builder.

func (*UserSettingsUpdate) Save added in v0.1.1

func (usu *UserSettingsUpdate) Save(ctx context.Context) (int, error)

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

func (*UserSettingsUpdate) SaveX added in v0.1.1

func (usu *UserSettingsUpdate) SaveX(ctx context.Context) int

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

func (*UserSettingsUpdate) SetCreatedBy added in v0.1.1

func (usu *UserSettingsUpdate) SetCreatedBy(s string) *UserSettingsUpdate

SetCreatedBy sets the "created_by" field.

func (*UserSettingsUpdate) SetEmailConfirmed added in v0.1.1

func (usu *UserSettingsUpdate) SetEmailConfirmed(b bool) *UserSettingsUpdate

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingsUpdate) SetInput added in v0.1.1

SetInput applies the change-set in the UpdateUserSettingsInput on the UserSettingsUpdate builder.

func (*UserSettingsUpdate) SetLocked added in v0.1.1

func (usu *UserSettingsUpdate) SetLocked(b bool) *UserSettingsUpdate

SetLocked sets the "locked" field.

func (*UserSettingsUpdate) SetNillableCreatedBy added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableCreatedBy(s *string) *UserSettingsUpdate

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

func (*UserSettingsUpdate) SetNillableEmailConfirmed added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableEmailConfirmed(b *bool) *UserSettingsUpdate

SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableLocked added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableLocked(b *bool) *UserSettingsUpdate

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableRecoveryCode added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableRecoveryCode(s *string) *UserSettingsUpdate

SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableRole added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableRole(u *usersettings.Role) *UserSettingsUpdate

SetNillableRole sets the "role" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableSilencedAt added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableSilencedAt(t *time.Time) *UserSettingsUpdate

SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableStatus added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableStatus(u *usersettings.Status) *UserSettingsUpdate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableSuspendedAt added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableSuspendedAt(t *time.Time) *UserSettingsUpdate

SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.

func (*UserSettingsUpdate) SetNillableUpdatedBy added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableUpdatedBy(s *string) *UserSettingsUpdate

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

func (*UserSettingsUpdate) SetNillableUserID added in v0.1.1

func (usu *UserSettingsUpdate) SetNillableUserID(id *string) *UserSettingsUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserSettingsUpdate) SetPermissions added in v0.1.1

func (usu *UserSettingsUpdate) SetPermissions(s []string) *UserSettingsUpdate

SetPermissions sets the "permissions" field.

func (*UserSettingsUpdate) SetRecoveryCode added in v0.1.1

func (usu *UserSettingsUpdate) SetRecoveryCode(s string) *UserSettingsUpdate

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingsUpdate) SetRole added in v0.1.1

SetRole sets the "role" field.

func (*UserSettingsUpdate) SetSilencedAt added in v0.1.1

func (usu *UserSettingsUpdate) SetSilencedAt(t time.Time) *UserSettingsUpdate

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingsUpdate) SetStatus added in v0.1.1

SetStatus sets the "status" field.

func (*UserSettingsUpdate) SetSuspendedAt added in v0.1.1

func (usu *UserSettingsUpdate) SetSuspendedAt(t time.Time) *UserSettingsUpdate

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingsUpdate) SetTags added in v0.1.1

func (usu *UserSettingsUpdate) SetTags(s []string) *UserSettingsUpdate

SetTags sets the "tags" field.

func (*UserSettingsUpdate) SetUpdatedAt added in v0.1.1

func (usu *UserSettingsUpdate) SetUpdatedAt(t time.Time) *UserSettingsUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingsUpdate) SetUpdatedBy added in v0.1.1

func (usu *UserSettingsUpdate) SetUpdatedBy(s string) *UserSettingsUpdate

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingsUpdate) SetUser added in v0.1.1

func (usu *UserSettingsUpdate) SetUser(u *User) *UserSettingsUpdate

SetUser sets the "user" edge to the User entity.

func (*UserSettingsUpdate) SetUserID added in v0.1.1

func (usu *UserSettingsUpdate) SetUserID(id string) *UserSettingsUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*UserSettingsUpdate) Where added in v0.1.1

Where appends a list predicates to the UserSettingsUpdate builder.

type UserSettingsUpdateOne added in v0.1.1

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

UserSettingsUpdateOne is the builder for updating a single UserSettings entity.

func (*UserSettingsUpdateOne) AppendPermissions added in v0.1.1

func (usuo *UserSettingsUpdateOne) AppendPermissions(s []string) *UserSettingsUpdateOne

AppendPermissions appends s to the "permissions" field.

func (*UserSettingsUpdateOne) AppendTags added in v0.1.1

func (usuo *UserSettingsUpdateOne) AppendTags(s []string) *UserSettingsUpdateOne

AppendTags appends s to the "tags" field.

func (*UserSettingsUpdateOne) ClearCreatedBy added in v0.1.1

func (usuo *UserSettingsUpdateOne) ClearCreatedBy() *UserSettingsUpdateOne

ClearCreatedBy clears the value of the "created_by" field.

func (*UserSettingsUpdateOne) ClearRecoveryCode added in v0.1.1

func (usuo *UserSettingsUpdateOne) ClearRecoveryCode() *UserSettingsUpdateOne

ClearRecoveryCode clears the value of the "recovery_code" field.

func (*UserSettingsUpdateOne) ClearSilencedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) ClearSilencedAt() *UserSettingsUpdateOne

ClearSilencedAt clears the value of the "silenced_at" field.

func (*UserSettingsUpdateOne) ClearSuspendedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) ClearSuspendedAt() *UserSettingsUpdateOne

ClearSuspendedAt clears the value of the "suspended_at" field.

func (*UserSettingsUpdateOne) ClearUpdatedBy added in v0.1.1

func (usuo *UserSettingsUpdateOne) ClearUpdatedBy() *UserSettingsUpdateOne

ClearUpdatedBy clears the value of the "updated_by" field.

func (*UserSettingsUpdateOne) ClearUser added in v0.1.1

func (usuo *UserSettingsUpdateOne) ClearUser() *UserSettingsUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*UserSettingsUpdateOne) Exec added in v0.1.1

func (usuo *UserSettingsUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserSettingsUpdateOne) ExecX added in v0.1.1

func (usuo *UserSettingsUpdateOne) ExecX(ctx context.Context)

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

func (*UserSettingsUpdateOne) Mutation added in v0.1.1

func (usuo *UserSettingsUpdateOne) Mutation() *UserSettingsMutation

Mutation returns the UserSettingsMutation object of the builder.

func (*UserSettingsUpdateOne) Save added in v0.1.1

Save executes the query and returns the updated UserSettings entity.

func (*UserSettingsUpdateOne) SaveX added in v0.1.1

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

func (*UserSettingsUpdateOne) Select added in v0.1.1

func (usuo *UserSettingsUpdateOne) Select(field string, fields ...string) *UserSettingsUpdateOne

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

func (*UserSettingsUpdateOne) SetCreatedBy added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetCreatedBy(s string) *UserSettingsUpdateOne

SetCreatedBy sets the "created_by" field.

func (*UserSettingsUpdateOne) SetEmailConfirmed added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetEmailConfirmed(b bool) *UserSettingsUpdateOne

SetEmailConfirmed sets the "email_confirmed" field.

func (*UserSettingsUpdateOne) SetInput added in v0.1.1

SetInput applies the change-set in the UpdateUserSettingsInput on the UserSettingsUpdateOne builder.

func (*UserSettingsUpdateOne) SetLocked added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetLocked(b bool) *UserSettingsUpdateOne

SetLocked sets the "locked" field.

func (*UserSettingsUpdateOne) SetNillableCreatedBy added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableCreatedBy(s *string) *UserSettingsUpdateOne

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

func (*UserSettingsUpdateOne) SetNillableEmailConfirmed added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableEmailConfirmed(b *bool) *UserSettingsUpdateOne

SetNillableEmailConfirmed sets the "email_confirmed" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableLocked added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableLocked(b *bool) *UserSettingsUpdateOne

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableRecoveryCode added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableRecoveryCode(s *string) *UserSettingsUpdateOne

SetNillableRecoveryCode sets the "recovery_code" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableRole added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableRole(u *usersettings.Role) *UserSettingsUpdateOne

SetNillableRole sets the "role" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableSilencedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableSilencedAt(t *time.Time) *UserSettingsUpdateOne

SetNillableSilencedAt sets the "silenced_at" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableStatus added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableStatus(u *usersettings.Status) *UserSettingsUpdateOne

SetNillableStatus sets the "status" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableSuspendedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableSuspendedAt(t *time.Time) *UserSettingsUpdateOne

SetNillableSuspendedAt sets the "suspended_at" field if the given value is not nil.

func (*UserSettingsUpdateOne) SetNillableUpdatedBy added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableUpdatedBy(s *string) *UserSettingsUpdateOne

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

func (*UserSettingsUpdateOne) SetNillableUserID added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetNillableUserID(id *string) *UserSettingsUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*UserSettingsUpdateOne) SetPermissions added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetPermissions(s []string) *UserSettingsUpdateOne

SetPermissions sets the "permissions" field.

func (*UserSettingsUpdateOne) SetRecoveryCode added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetRecoveryCode(s string) *UserSettingsUpdateOne

SetRecoveryCode sets the "recovery_code" field.

func (*UserSettingsUpdateOne) SetRole added in v0.1.1

SetRole sets the "role" field.

func (*UserSettingsUpdateOne) SetSilencedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetSilencedAt(t time.Time) *UserSettingsUpdateOne

SetSilencedAt sets the "silenced_at" field.

func (*UserSettingsUpdateOne) SetStatus added in v0.1.1

SetStatus sets the "status" field.

func (*UserSettingsUpdateOne) SetSuspendedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetSuspendedAt(t time.Time) *UserSettingsUpdateOne

SetSuspendedAt sets the "suspended_at" field.

func (*UserSettingsUpdateOne) SetTags added in v0.1.1

SetTags sets the "tags" field.

func (*UserSettingsUpdateOne) SetUpdatedAt added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetUpdatedAt(t time.Time) *UserSettingsUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserSettingsUpdateOne) SetUpdatedBy added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetUpdatedBy(s string) *UserSettingsUpdateOne

SetUpdatedBy sets the "updated_by" field.

func (*UserSettingsUpdateOne) SetUser added in v0.1.1

SetUser sets the "user" edge to the User entity.

func (*UserSettingsUpdateOne) SetUserID added in v0.1.1

func (usuo *UserSettingsUpdateOne) SetUserID(id string) *UserSettingsUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*UserSettingsUpdateOne) Where added in v0.1.1

Where appends a list predicates to the UserSettingsUpdate builder.

type UserSettingsWhereInput added in v0.1.1

type UserSettingsWhereInput struct {
	Predicates []predicate.UserSettings  `json:"-"`
	Not        *UserSettingsWhereInput   `json:"not,omitempty"`
	Or         []*UserSettingsWhereInput `json:"or,omitempty"`
	And        []*UserSettingsWhereInput `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"`

	// "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      *usersettings.Status  `json:"status,omitempty"`
	StatusNEQ   *usersettings.Status  `json:"statusNEQ,omitempty"`
	StatusIn    []usersettings.Status `json:"statusIn,omitempty"`
	StatusNotIn []usersettings.Status `json:"statusNotIn,omitempty"`

	// "role" field predicates.
	Role      *usersettings.Role  `json:"role,omitempty"`
	RoleNEQ   *usersettings.Role  `json:"roleNEQ,omitempty"`
	RoleIn    []usersettings.Role `json:"roleIn,omitempty"`
	RoleNotIn []usersettings.Role `json:"roleNotIn,omitempty"`

	// "email_confirmed" field predicates.
	EmailConfirmed    *bool `json:"emailConfirmed,omitempty"`
	EmailConfirmedNEQ *bool `json:"emailConfirmedNEQ,omitempty"`
}

UserSettingsWhereInput represents a where input for filtering UserSettings queries.

func (*UserSettingsWhereInput) AddPredicates added in v0.1.1

func (i *UserSettingsWhereInput) AddPredicates(predicates ...predicate.UserSettings)

AddPredicates adds custom predicates to the where input to be used during the filtering phase.

func (*UserSettingsWhereInput) Filter added in v0.1.1

Filter applies the UserSettingsWhereInput filter on the UserSettingsQuery builder.

func (*UserSettingsWhereInput) P added in v0.1.1

P returns a predicate for filtering usersettingsslice. An error is returned if the input is empty or invalid.

type UserUpdate

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

UserUpdate is the builder for updating User entities.

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) AddRefreshtoken added in v0.1.1

func (uu *UserUpdate) AddRefreshtoken(r ...*RefreshToken) *UserUpdate

AddRefreshtoken adds the "refreshtoken" edges to the RefreshToken entity.

func (*UserUpdate) AddRefreshtokenIDs added in v0.1.1

func (uu *UserUpdate) AddRefreshtokenIDs(ids ...string) *UserUpdate

AddRefreshtokenIDs adds the "refreshtoken" edge to the RefreshToken entity by IDs.

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) ClearCreatedBy added in v0.1.1

func (uu *UserUpdate) ClearCreatedBy() *UserUpdate

ClearCreatedBy clears the value of the "created_by" field.

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) ClearPasswordHash added in v0.1.1

func (uu *UserUpdate) ClearPasswordHash() *UserUpdate

ClearPasswordHash clears the value of the "passwordHash" field.

func (*UserUpdate) ClearPersonalAccessTokens

func (uu *UserUpdate) ClearPersonalAccessTokens() *UserUpdate

ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserUpdate) ClearRefreshtoken added in v0.1.1

func (uu *UserUpdate) ClearRefreshtoken() *UserUpdate

ClearRefreshtoken clears all "refreshtoken" edges to the RefreshToken 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 UserSettings entity.

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) 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) RemoveRefreshtoken added in v0.1.1

func (uu *UserUpdate) RemoveRefreshtoken(r ...*RefreshToken) *UserUpdate

RemoveRefreshtoken removes "refreshtoken" edges to RefreshToken entities.

func (*UserUpdate) RemoveRefreshtokenIDs added in v0.1.1

func (uu *UserUpdate) RemoveRefreshtokenIDs(ids ...string) *UserUpdate

RemoveRefreshtokenIDs removes the "refreshtoken" edge to RefreshToken entities by IDs.

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) SetCreatedBy added in v0.1.1

func (uu *UserUpdate) SetCreatedBy(s string) *UserUpdate

SetCreatedBy sets the "created_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) SetNillableCreatedBy added in v0.1.1

func (uu *UserUpdate) SetNillableCreatedBy(s *string) *UserUpdate

SetNillableCreatedBy sets the "created_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) SetNillablePasswordHash added in v0.1.1

func (uu *UserUpdate) SetNillablePasswordHash(s *string) *UserUpdate

SetNillablePasswordHash sets the "passwordHash" 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) SetPasswordHash added in v0.1.1

func (uu *UserUpdate) SetPasswordHash(s string) *UserUpdate

SetPasswordHash sets the "passwordHash" field.

func (*UserUpdate) SetSetting

func (uu *UserUpdate) SetSetting(u *UserSettings) *UserUpdate

SetSetting sets the "setting" edge to the UserSettings entity.

func (*UserUpdate) SetSettingID

func (uu *UserUpdate) SetSettingID(id string) *UserUpdate

SetSettingID sets the "setting" edge to the UserSettings entity by ID.

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) 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) AddRefreshtoken added in v0.1.1

func (uuo *UserUpdateOne) AddRefreshtoken(r ...*RefreshToken) *UserUpdateOne

AddRefreshtoken adds the "refreshtoken" edges to the RefreshToken entity.

func (*UserUpdateOne) AddRefreshtokenIDs added in v0.1.1

func (uuo *UserUpdateOne) AddRefreshtokenIDs(ids ...string) *UserUpdateOne

AddRefreshtokenIDs adds the "refreshtoken" edge to the RefreshToken entity by IDs.

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) ClearCreatedBy added in v0.1.1

func (uuo *UserUpdateOne) ClearCreatedBy() *UserUpdateOne

ClearCreatedBy clears the value of the "created_by" field.

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) ClearPasswordHash added in v0.1.1

func (uuo *UserUpdateOne) ClearPasswordHash() *UserUpdateOne

ClearPasswordHash clears the value of the "passwordHash" field.

func (*UserUpdateOne) ClearPersonalAccessTokens

func (uuo *UserUpdateOne) ClearPersonalAccessTokens() *UserUpdateOne

ClearPersonalAccessTokens clears all "personal_access_tokens" edges to the PersonalAccessToken entity.

func (*UserUpdateOne) ClearRefreshtoken added in v0.1.1

func (uuo *UserUpdateOne) ClearRefreshtoken() *UserUpdateOne

ClearRefreshtoken clears all "refreshtoken" edges to the RefreshToken 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 UserSettings entity.

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) 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) RemoveRefreshtoken added in v0.1.1

func (uuo *UserUpdateOne) RemoveRefreshtoken(r ...*RefreshToken) *UserUpdateOne

RemoveRefreshtoken removes "refreshtoken" edges to RefreshToken entities.

func (*UserUpdateOne) RemoveRefreshtokenIDs added in v0.1.1

func (uuo *UserUpdateOne) RemoveRefreshtokenIDs(ids ...string) *UserUpdateOne

RemoveRefreshtokenIDs removes the "refreshtoken" edge to RefreshToken entities by IDs.

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) SetCreatedBy added in v0.1.1

func (uuo *UserUpdateOne) SetCreatedBy(s string) *UserUpdateOne

SetCreatedBy sets the "created_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) SetNillableCreatedBy added in v0.1.1

func (uuo *UserUpdateOne) SetNillableCreatedBy(s *string) *UserUpdateOne

SetNillableCreatedBy sets the "created_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) SetNillablePasswordHash added in v0.1.1

func (uuo *UserUpdateOne) SetNillablePasswordHash(s *string) *UserUpdateOne

SetNillablePasswordHash sets the "passwordHash" 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) SetPasswordHash added in v0.1.1

func (uuo *UserUpdateOne) SetPasswordHash(s string) *UserUpdateOne

SetPasswordHash sets the "passwordHash" field.

func (*UserUpdateOne) SetSetting

func (uuo *UserUpdateOne) SetSetting(u *UserSettings) *UserUpdateOne

SetSetting sets the "setting" edge to the UserSettings entity.

func (*UserUpdateOne) SetSettingID

func (uuo *UserUpdateOne) SetSettingID(id string) *UserUpdateOne

SetSettingID sets the "setting" edge to the UserSettings entity by ID.

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"`

	// "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"`

	// "passwordHash" field predicates.
	PasswordHash             *string  `json:"passwordhash,omitempty"`
	PasswordHashNEQ          *string  `json:"passwordhashNEQ,omitempty"`
	PasswordHashIn           []string `json:"passwordhashIn,omitempty"`
	PasswordHashNotIn        []string `json:"passwordhashNotIn,omitempty"`
	PasswordHashGT           *string  `json:"passwordhashGT,omitempty"`
	PasswordHashGTE          *string  `json:"passwordhashGTE,omitempty"`
	PasswordHashLT           *string  `json:"passwordhashLT,omitempty"`
	PasswordHashLTE          *string  `json:"passwordhashLTE,omitempty"`
	PasswordHashContains     *string  `json:"passwordhashContains,omitempty"`
	PasswordHashHasPrefix    *string  `json:"passwordhashHasPrefix,omitempty"`
	PasswordHashHasSuffix    *string  `json:"passwordhashHasSuffix,omitempty"`
	PasswordHashIsNil        bool     `json:"passwordhashIsNil,omitempty"`
	PasswordHashNotNil       bool     `json:"passwordhashNotNil,omitempty"`
	PasswordHashEqualFold    *string  `json:"passwordhashEqualFold,omitempty"`
	PasswordHashContainsFold *string  `json:"passwordhashContainsFold,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 []*UserSettingsWhereInput `json:"hasSettingWith,omitempty"`

	// "refreshtoken" edge predicates.
	HasRefreshtoken     *bool                     `json:"hasRefreshtoken,omitempty"`
	HasRefreshtokenWith []*RefreshTokenWhereInput `json:"hasRefreshtokenWith,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.

Jump to

Keyboard shortcuts

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