usersetting

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usersetting type in the database.
	Label = "user_setting"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldMappingID holds the string denoting the mapping_id field in the database.
	FieldMappingID = "mapping_id"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldLocked holds the string denoting the locked field in the database.
	FieldLocked = "locked"
	// FieldSilencedAt holds the string denoting the silenced_at field in the database.
	FieldSilencedAt = "silenced_at"
	// FieldSuspendedAt holds the string denoting the suspended_at field in the database.
	FieldSuspendedAt = "suspended_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldEmailConfirmed holds the string denoting the email_confirmed field in the database.
	FieldEmailConfirmed = "email_confirmed"
	// FieldIsWebauthnAllowed holds the string denoting the is_webauthn_allowed field in the database.
	FieldIsWebauthnAllowed = "is_webauthn_allowed"
	// FieldIsTfaEnabled holds the string denoting the is_tfa_enabled field in the database.
	FieldIsTfaEnabled = "is_tfa_enabled"
	// FieldPhoneNumber holds the string denoting the phone_number field in the database.
	FieldPhoneNumber = "phone_number"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeDefaultOrg holds the string denoting the default_org edge name in mutations.
	EdgeDefaultOrg = "default_org"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// Table holds the table name of the usersetting in the database.
	Table = "user_settings"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_settings"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// DefaultOrgTable is the table that holds the default_org relation/edge.
	DefaultOrgTable = "user_settings"
	// DefaultOrgInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	DefaultOrgInverseTable = "organizations"
	// DefaultOrgColumn is the table column denoting the default_org relation/edge.
	DefaultOrgColumn = "user_setting_default_org"
	// FilesTable is the table that holds the files relation/edge. The primary key declared below.
	FilesTable = "user_setting_files"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
)
View Source
const DefaultStatus enums.UserStatus = "ACTIVE"

Variables

View Source
var (
	Hooks        [4]ent.Hook
	Interceptors [2]ent.Interceptor
	Policy       ent.Policy
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultMappingID holds the default value on creation for the "mapping_id" field.
	DefaultMappingID func() string
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// DefaultLocked holds the default value on creation for the "locked" field.
	DefaultLocked bool
	// DefaultEmailConfirmed holds the default value on creation for the "email_confirmed" field.
	DefaultEmailConfirmed bool
	// DefaultIsWebauthnAllowed holds the default value on creation for the "is_webauthn_allowed" field.
	DefaultIsWebauthnAllowed bool
	// DefaultIsTfaEnabled holds the default value on creation for the "is_tfa_enabled" field.
	DefaultIsTfaEnabled bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for usersetting fields.

View Source
var (
	// FilesPrimaryKey and FilesColumn2 are the table columns denoting the
	// primary key for the files relation (M2M).
	FilesPrimaryKey = []string{"user_setting_id", "file_id"}
)
View Source
var ForeignKeys = []string{
	"user_setting_default_org",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "user_settings" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.UserSetting) predicate.UserSetting

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserSetting

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserSetting

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserSetting

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserSetting

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.UserSetting

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.UserSetting

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserSetting

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserSetting

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserSetting

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.UserSetting

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.UserSetting

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.UserSetting

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.UserSetting

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.UserSetting

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.UserSetting

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.UserSetting

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.UserSetting

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.UserSetting

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.UserSetting

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.UserSetting

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.UserSetting

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.UserSetting

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.UserSetting

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.UserSetting

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.UserSetting

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.UserSetting

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.UserSetting

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.UserSetting

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.UserSetting

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.UserSetting

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.UserSetting

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.UserSetting

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.UserSetting

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.UserSetting

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.UserSetting

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.UserSetting

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.UserSetting

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.UserSetting

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.UserSetting

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.UserSetting

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.UserSetting

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.UserSetting

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.UserSetting

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.UserSetting

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.UserSetting

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.UserSetting

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.UserSetting

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.UserSetting

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.UserSetting

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.UserSetting

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.UserSetting

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.UserSetting

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.UserSetting

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.UserSetting

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func EmailConfirmed

func EmailConfirmed(v bool) predicate.UserSetting

EmailConfirmed applies equality check predicate on the "email_confirmed" field. It's identical to EmailConfirmedEQ.

func EmailConfirmedEQ

func EmailConfirmedEQ(v bool) predicate.UserSetting

EmailConfirmedEQ applies the EQ predicate on the "email_confirmed" field.

func EmailConfirmedNEQ

func EmailConfirmedNEQ(v bool) predicate.UserSetting

EmailConfirmedNEQ applies the NEQ predicate on the "email_confirmed" field.

func HasDefaultOrg

func HasDefaultOrg() predicate.UserSetting

HasDefaultOrg applies the HasEdge predicate on the "default_org" edge.

func HasDefaultOrgWith

func HasDefaultOrgWith(preds ...predicate.Organization) predicate.UserSetting

HasDefaultOrgWith applies the HasEdge predicate on the "default_org" edge with a given conditions (other predicates).

func HasFiles added in v0.3.0

func HasFiles() predicate.UserSetting

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith added in v0.3.0

func HasFilesWith(preds ...predicate.File) predicate.UserSetting

HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).

func HasUser

func HasUser() predicate.UserSetting

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.UserSetting

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.UserSetting

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.UserSetting

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.UserSetting

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.UserSetting

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.UserSetting

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.UserSetting

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.UserSetting

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.UserSetting

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.UserSetting

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.UserSetting

IDNotIn applies the NotIn predicate on the ID field.

func IsTfaEnabled

func IsTfaEnabled(v bool) predicate.UserSetting

IsTfaEnabled applies equality check predicate on the "is_tfa_enabled" field. It's identical to IsTfaEnabledEQ.

func IsTfaEnabledEQ

func IsTfaEnabledEQ(v bool) predicate.UserSetting

IsTfaEnabledEQ applies the EQ predicate on the "is_tfa_enabled" field.

func IsTfaEnabledIsNil

func IsTfaEnabledIsNil() predicate.UserSetting

IsTfaEnabledIsNil applies the IsNil predicate on the "is_tfa_enabled" field.

func IsTfaEnabledNEQ

func IsTfaEnabledNEQ(v bool) predicate.UserSetting

IsTfaEnabledNEQ applies the NEQ predicate on the "is_tfa_enabled" field.

func IsTfaEnabledNotNil

func IsTfaEnabledNotNil() predicate.UserSetting

IsTfaEnabledNotNil applies the NotNil predicate on the "is_tfa_enabled" field.

func IsWebauthnAllowed

func IsWebauthnAllowed(v bool) predicate.UserSetting

IsWebauthnAllowed applies equality check predicate on the "is_webauthn_allowed" field. It's identical to IsWebauthnAllowedEQ.

func IsWebauthnAllowedEQ

func IsWebauthnAllowedEQ(v bool) predicate.UserSetting

IsWebauthnAllowedEQ applies the EQ predicate on the "is_webauthn_allowed" field.

func IsWebauthnAllowedIsNil

func IsWebauthnAllowedIsNil() predicate.UserSetting

IsWebauthnAllowedIsNil applies the IsNil predicate on the "is_webauthn_allowed" field.

func IsWebauthnAllowedNEQ

func IsWebauthnAllowedNEQ(v bool) predicate.UserSetting

IsWebauthnAllowedNEQ applies the NEQ predicate on the "is_webauthn_allowed" field.

func IsWebauthnAllowedNotNil

func IsWebauthnAllowedNotNil() predicate.UserSetting

IsWebauthnAllowedNotNil applies the NotNil predicate on the "is_webauthn_allowed" field.

func Locked

func Locked(v bool) predicate.UserSetting

Locked applies equality check predicate on the "locked" field. It's identical to LockedEQ.

func LockedEQ

func LockedEQ(v bool) predicate.UserSetting

LockedEQ applies the EQ predicate on the "locked" field.

func LockedNEQ

func LockedNEQ(v bool) predicate.UserSetting

LockedNEQ applies the NEQ predicate on the "locked" field.

func MappingID

func MappingID(v string) predicate.UserSetting

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains

func MappingIDContains(v string) predicate.UserSetting

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold

func MappingIDContainsFold(v string) predicate.UserSetting

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ

func MappingIDEQ(v string) predicate.UserSetting

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold

func MappingIDEqualFold(v string) predicate.UserSetting

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT

func MappingIDGT(v string) predicate.UserSetting

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE

func MappingIDGTE(v string) predicate.UserSetting

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix

func MappingIDHasPrefix(v string) predicate.UserSetting

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix

func MappingIDHasSuffix(v string) predicate.UserSetting

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn

func MappingIDIn(vs ...string) predicate.UserSetting

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT

func MappingIDLT(v string) predicate.UserSetting

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE

func MappingIDLTE(v string) predicate.UserSetting

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ

func MappingIDNEQ(v string) predicate.UserSetting

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn

func MappingIDNotIn(vs ...string) predicate.UserSetting

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserSetting) predicate.UserSetting

Or groups predicates with the OR operator between them.

func PhoneNumber

func PhoneNumber(v string) predicate.UserSetting

PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.

func PhoneNumberContains

func PhoneNumberContains(v string) predicate.UserSetting

PhoneNumberContains applies the Contains predicate on the "phone_number" field.

func PhoneNumberContainsFold

func PhoneNumberContainsFold(v string) predicate.UserSetting

PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.

func PhoneNumberEQ

func PhoneNumberEQ(v string) predicate.UserSetting

PhoneNumberEQ applies the EQ predicate on the "phone_number" field.

func PhoneNumberEqualFold

func PhoneNumberEqualFold(v string) predicate.UserSetting

PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.

func PhoneNumberGT

func PhoneNumberGT(v string) predicate.UserSetting

PhoneNumberGT applies the GT predicate on the "phone_number" field.

func PhoneNumberGTE

func PhoneNumberGTE(v string) predicate.UserSetting

PhoneNumberGTE applies the GTE predicate on the "phone_number" field.

func PhoneNumberHasPrefix

func PhoneNumberHasPrefix(v string) predicate.UserSetting

PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.

func PhoneNumberHasSuffix

func PhoneNumberHasSuffix(v string) predicate.UserSetting

PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.

func PhoneNumberIn

func PhoneNumberIn(vs ...string) predicate.UserSetting

PhoneNumberIn applies the In predicate on the "phone_number" field.

func PhoneNumberIsNil

func PhoneNumberIsNil() predicate.UserSetting

PhoneNumberIsNil applies the IsNil predicate on the "phone_number" field.

func PhoneNumberLT

func PhoneNumberLT(v string) predicate.UserSetting

PhoneNumberLT applies the LT predicate on the "phone_number" field.

func PhoneNumberLTE

func PhoneNumberLTE(v string) predicate.UserSetting

PhoneNumberLTE applies the LTE predicate on the "phone_number" field.

func PhoneNumberNEQ

func PhoneNumberNEQ(v string) predicate.UserSetting

PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.

func PhoneNumberNotIn

func PhoneNumberNotIn(vs ...string) predicate.UserSetting

PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.

func PhoneNumberNotNil

func PhoneNumberNotNil() predicate.UserSetting

PhoneNumberNotNil applies the NotNil predicate on the "phone_number" field.

func SilencedAt

func SilencedAt(v time.Time) predicate.UserSetting

SilencedAt applies equality check predicate on the "silenced_at" field. It's identical to SilencedAtEQ.

func SilencedAtEQ

func SilencedAtEQ(v time.Time) predicate.UserSetting

SilencedAtEQ applies the EQ predicate on the "silenced_at" field.

func SilencedAtGT

func SilencedAtGT(v time.Time) predicate.UserSetting

SilencedAtGT applies the GT predicate on the "silenced_at" field.

func SilencedAtGTE

func SilencedAtGTE(v time.Time) predicate.UserSetting

SilencedAtGTE applies the GTE predicate on the "silenced_at" field.

func SilencedAtIn

func SilencedAtIn(vs ...time.Time) predicate.UserSetting

SilencedAtIn applies the In predicate on the "silenced_at" field.

func SilencedAtIsNil

func SilencedAtIsNil() predicate.UserSetting

SilencedAtIsNil applies the IsNil predicate on the "silenced_at" field.

func SilencedAtLT

func SilencedAtLT(v time.Time) predicate.UserSetting

SilencedAtLT applies the LT predicate on the "silenced_at" field.

func SilencedAtLTE

func SilencedAtLTE(v time.Time) predicate.UserSetting

SilencedAtLTE applies the LTE predicate on the "silenced_at" field.

func SilencedAtNEQ

func SilencedAtNEQ(v time.Time) predicate.UserSetting

SilencedAtNEQ applies the NEQ predicate on the "silenced_at" field.

func SilencedAtNotIn

func SilencedAtNotIn(vs ...time.Time) predicate.UserSetting

SilencedAtNotIn applies the NotIn predicate on the "silenced_at" field.

func SilencedAtNotNil

func SilencedAtNotNil() predicate.UserSetting

SilencedAtNotNil applies the NotNil predicate on the "silenced_at" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...enums.UserStatus) predicate.UserSetting

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...enums.UserStatus) predicate.UserSetting

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s enums.UserStatus) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func SuspendedAt

func SuspendedAt(v time.Time) predicate.UserSetting

SuspendedAt applies equality check predicate on the "suspended_at" field. It's identical to SuspendedAtEQ.

func SuspendedAtEQ

func SuspendedAtEQ(v time.Time) predicate.UserSetting

SuspendedAtEQ applies the EQ predicate on the "suspended_at" field.

func SuspendedAtGT

func SuspendedAtGT(v time.Time) predicate.UserSetting

SuspendedAtGT applies the GT predicate on the "suspended_at" field.

func SuspendedAtGTE

func SuspendedAtGTE(v time.Time) predicate.UserSetting

SuspendedAtGTE applies the GTE predicate on the "suspended_at" field.

func SuspendedAtIn

func SuspendedAtIn(vs ...time.Time) predicate.UserSetting

SuspendedAtIn applies the In predicate on the "suspended_at" field.

func SuspendedAtIsNil

func SuspendedAtIsNil() predicate.UserSetting

SuspendedAtIsNil applies the IsNil predicate on the "suspended_at" field.

func SuspendedAtLT

func SuspendedAtLT(v time.Time) predicate.UserSetting

SuspendedAtLT applies the LT predicate on the "suspended_at" field.

func SuspendedAtLTE

func SuspendedAtLTE(v time.Time) predicate.UserSetting

SuspendedAtLTE applies the LTE predicate on the "suspended_at" field.

func SuspendedAtNEQ

func SuspendedAtNEQ(v time.Time) predicate.UserSetting

SuspendedAtNEQ applies the NEQ predicate on the "suspended_at" field.

func SuspendedAtNotIn

func SuspendedAtNotIn(vs ...time.Time) predicate.UserSetting

SuspendedAtNotIn applies the NotIn predicate on the "suspended_at" field.

func SuspendedAtNotNil

func SuspendedAtNotNil() predicate.UserSetting

SuspendedAtNotNil applies the NotNil predicate on the "suspended_at" field.

func TagsIsNil

func TagsIsNil() predicate.UserSetting

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.UserSetting

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserSetting

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserSetting

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserSetting

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserSetting

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.UserSetting

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.UserSetting

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserSetting

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserSetting

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserSetting

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.UserSetting

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.UserSetting

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.UserSetting

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.UserSetting

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.UserSetting

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.UserSetting

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.UserSetting

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.UserSetting

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.UserSetting

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.UserSetting

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.UserSetting

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.UserSetting

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.UserSetting

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.UserSetting

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.UserSetting

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.UserSetting

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.UserSetting

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.UserSetting

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func UserID

func UserID(v string) predicate.UserSetting

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.UserSetting

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.UserSetting

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.UserSetting

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.UserSetting

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.UserSetting

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.UserSetting

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.UserSetting

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.UserSetting

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.UserSetting

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.UserSetting

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.UserSetting

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.UserSetting

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.UserSetting

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.UserSetting

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.UserSetting

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the UserSetting queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDefaultOrgField

func ByDefaultOrgField(field string, opts ...sql.OrderTermOption) OrderOption

ByDefaultOrgField orders the results by default_org field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption

ByDeletedBy orders the results by the deleted_by field.

func ByEmailConfirmed

func ByEmailConfirmed(opts ...sql.OrderTermOption) OrderOption

ByEmailConfirmed orders the results by the email_confirmed field.

func ByFiles added in v0.3.0

func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFiles orders the results by files terms.

func ByFilesCount added in v0.3.0

func ByFilesCount(opts ...sql.OrderTermOption) OrderOption

ByFilesCount orders the results by files count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsTfaEnabled

func ByIsTfaEnabled(opts ...sql.OrderTermOption) OrderOption

ByIsTfaEnabled orders the results by the is_tfa_enabled field.

func ByIsWebauthnAllowed

func ByIsWebauthnAllowed(opts ...sql.OrderTermOption) OrderOption

ByIsWebauthnAllowed orders the results by the is_webauthn_allowed field.

func ByLocked

func ByLocked(opts ...sql.OrderTermOption) OrderOption

ByLocked orders the results by the locked field.

func ByMappingID

func ByMappingID(opts ...sql.OrderTermOption) OrderOption

ByMappingID orders the results by the mapping_id field.

func ByPhoneNumber

func ByPhoneNumber(opts ...sql.OrderTermOption) OrderOption

ByPhoneNumber orders the results by the phone_number field.

func BySilencedAt

func BySilencedAt(opts ...sql.OrderTermOption) OrderOption

BySilencedAt orders the results by the silenced_at field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func BySuspendedAt

func BySuspendedAt(opts ...sql.OrderTermOption) OrderOption

BySuspendedAt orders the results by the suspended_at field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserID

func ByUserID(opts ...sql.OrderTermOption) OrderOption

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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