profile

package
v0.0.0-...-16ed941 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the profile type in the database.
	Label = "profile"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldFullName holds the string denoting the full_name field in the database.
	FieldFullName = "full_name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldEmailConfirmedAt holds the string denoting the email_confirmed_at field in the database.
	FieldEmailConfirmedAt = "email_confirmed_at"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldPhoneConfirmedAt holds the string denoting the phone_confirmed_at field in the database.
	FieldPhoneConfirmedAt = "phone_confirmed_at"
	// FieldLanguage holds the string denoting the language field in the database.
	FieldLanguage = "language"
	// FieldIsSSOUser holds the string denoting the is_sso_user field in the database.
	FieldIsSSOUser = "is_sso_user"
	// Table holds the table name of the profile in the database.
	Table = "profiles"
)

Variables

View Source
var (
	// 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
	// DefaultFullName holds the default value on creation for the "full_name" field.
	DefaultFullName string
	// DefaultLanguage holds the default value on creation for the "language" field.
	DefaultLanguage string
	// DefaultIsSSOUser holds the default value on creation for the "is_sso_user" field.
	DefaultIsSSOUser bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for profile fields.

Functions

func And

func And(predicates ...predicate.Profile) predicate.Profile

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Profile

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Profile

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Profile

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Profile

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Profile

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Profile

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Profile

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

func CreatedAtNotIn

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

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

func Email

func Email(v string) predicate.Profile

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailConfirmedAt

func EmailConfirmedAt(v time.Time) predicate.Profile

EmailConfirmedAt applies equality check predicate on the "email_confirmed_at" field. It's identical to EmailConfirmedAtEQ.

func EmailConfirmedAtEQ

func EmailConfirmedAtEQ(v time.Time) predicate.Profile

EmailConfirmedAtEQ applies the EQ predicate on the "email_confirmed_at" field.

func EmailConfirmedAtGT

func EmailConfirmedAtGT(v time.Time) predicate.Profile

EmailConfirmedAtGT applies the GT predicate on the "email_confirmed_at" field.

func EmailConfirmedAtGTE

func EmailConfirmedAtGTE(v time.Time) predicate.Profile

EmailConfirmedAtGTE applies the GTE predicate on the "email_confirmed_at" field.

func EmailConfirmedAtIn

func EmailConfirmedAtIn(vs ...time.Time) predicate.Profile

EmailConfirmedAtIn applies the In predicate on the "email_confirmed_at" field.

func EmailConfirmedAtLT

func EmailConfirmedAtLT(v time.Time) predicate.Profile

EmailConfirmedAtLT applies the LT predicate on the "email_confirmed_at" field.

func EmailConfirmedAtLTE

func EmailConfirmedAtLTE(v time.Time) predicate.Profile

EmailConfirmedAtLTE applies the LTE predicate on the "email_confirmed_at" field.

func EmailConfirmedAtNEQ

func EmailConfirmedAtNEQ(v time.Time) predicate.Profile

EmailConfirmedAtNEQ applies the NEQ predicate on the "email_confirmed_at" field.

func EmailConfirmedAtNotIn

func EmailConfirmedAtNotIn(vs ...time.Time) predicate.Profile

EmailConfirmedAtNotIn applies the NotIn predicate on the "email_confirmed_at" field.

func EmailContains

func EmailContains(v string) predicate.Profile

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Profile

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Profile

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Profile

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Profile

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Profile

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Profile

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Profile

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Profile

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Profile

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Profile

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Profile

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Profile

EmailNotIn applies the NotIn predicate on the "email" field.

func FullName

func FullName(v string) predicate.Profile

FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.

func FullNameContains

func FullNameContains(v string) predicate.Profile

FullNameContains applies the Contains predicate on the "full_name" field.

func FullNameContainsFold

func FullNameContainsFold(v string) predicate.Profile

FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.

func FullNameEQ

func FullNameEQ(v string) predicate.Profile

FullNameEQ applies the EQ predicate on the "full_name" field.

func FullNameEqualFold

func FullNameEqualFold(v string) predicate.Profile

FullNameEqualFold applies the EqualFold predicate on the "full_name" field.

func FullNameGT

func FullNameGT(v string) predicate.Profile

FullNameGT applies the GT predicate on the "full_name" field.

func FullNameGTE

func FullNameGTE(v string) predicate.Profile

FullNameGTE applies the GTE predicate on the "full_name" field.

func FullNameHasPrefix

func FullNameHasPrefix(v string) predicate.Profile

FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.

func FullNameHasSuffix

func FullNameHasSuffix(v string) predicate.Profile

FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.

func FullNameIn

func FullNameIn(vs ...string) predicate.Profile

FullNameIn applies the In predicate on the "full_name" field.

func FullNameLT

func FullNameLT(v string) predicate.Profile

FullNameLT applies the LT predicate on the "full_name" field.

func FullNameLTE

func FullNameLTE(v string) predicate.Profile

FullNameLTE applies the LTE predicate on the "full_name" field.

func FullNameNEQ

func FullNameNEQ(v string) predicate.Profile

FullNameNEQ applies the NEQ predicate on the "full_name" field.

func FullNameNotIn

func FullNameNotIn(vs ...string) predicate.Profile

FullNameNotIn applies the NotIn predicate on the "full_name" field.

func ID

func ID(id uuid.UUID) predicate.Profile

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Profile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Profile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Profile

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Profile

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Profile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Profile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Profile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Profile

IDNotIn applies the NotIn predicate on the ID field.

func IsSSOUser

func IsSSOUser(v bool) predicate.Profile

IsSSOUser applies equality check predicate on the "is_sso_user" field. It's identical to IsSSOUserEQ.

func IsSSOUserEQ

func IsSSOUserEQ(v bool) predicate.Profile

IsSSOUserEQ applies the EQ predicate on the "is_sso_user" field.

func IsSSOUserNEQ

func IsSSOUserNEQ(v bool) predicate.Profile

IsSSOUserNEQ applies the NEQ predicate on the "is_sso_user" field.

func Language

func Language(v string) predicate.Profile

Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.

func LanguageContains

func LanguageContains(v string) predicate.Profile

LanguageContains applies the Contains predicate on the "language" field.

func LanguageContainsFold

func LanguageContainsFold(v string) predicate.Profile

LanguageContainsFold applies the ContainsFold predicate on the "language" field.

func LanguageEQ

func LanguageEQ(v string) predicate.Profile

LanguageEQ applies the EQ predicate on the "language" field.

func LanguageEqualFold

func LanguageEqualFold(v string) predicate.Profile

LanguageEqualFold applies the EqualFold predicate on the "language" field.

func LanguageGT

func LanguageGT(v string) predicate.Profile

LanguageGT applies the GT predicate on the "language" field.

func LanguageGTE

func LanguageGTE(v string) predicate.Profile

LanguageGTE applies the GTE predicate on the "language" field.

func LanguageHasPrefix

func LanguageHasPrefix(v string) predicate.Profile

LanguageHasPrefix applies the HasPrefix predicate on the "language" field.

func LanguageHasSuffix

func LanguageHasSuffix(v string) predicate.Profile

LanguageHasSuffix applies the HasSuffix predicate on the "language" field.

func LanguageIn

func LanguageIn(vs ...string) predicate.Profile

LanguageIn applies the In predicate on the "language" field.

func LanguageLT

func LanguageLT(v string) predicate.Profile

LanguageLT applies the LT predicate on the "language" field.

func LanguageLTE

func LanguageLTE(v string) predicate.Profile

LanguageLTE applies the LTE predicate on the "language" field.

func LanguageNEQ

func LanguageNEQ(v string) predicate.Profile

LanguageNEQ applies the NEQ predicate on the "language" field.

func LanguageNotIn

func LanguageNotIn(vs ...string) predicate.Profile

LanguageNotIn applies the NotIn predicate on the "language" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Profile) predicate.Profile

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Profile

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneConfirmedAt

func PhoneConfirmedAt(v time.Time) predicate.Profile

PhoneConfirmedAt applies equality check predicate on the "phone_confirmed_at" field. It's identical to PhoneConfirmedAtEQ.

func PhoneConfirmedAtEQ

func PhoneConfirmedAtEQ(v time.Time) predicate.Profile

PhoneConfirmedAtEQ applies the EQ predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtGT

func PhoneConfirmedAtGT(v time.Time) predicate.Profile

PhoneConfirmedAtGT applies the GT predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtGTE

func PhoneConfirmedAtGTE(v time.Time) predicate.Profile

PhoneConfirmedAtGTE applies the GTE predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtIn

func PhoneConfirmedAtIn(vs ...time.Time) predicate.Profile

PhoneConfirmedAtIn applies the In predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtLT

func PhoneConfirmedAtLT(v time.Time) predicate.Profile

PhoneConfirmedAtLT applies the LT predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtLTE

func PhoneConfirmedAtLTE(v time.Time) predicate.Profile

PhoneConfirmedAtLTE applies the LTE predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtNEQ

func PhoneConfirmedAtNEQ(v time.Time) predicate.Profile

PhoneConfirmedAtNEQ applies the NEQ predicate on the "phone_confirmed_at" field.

func PhoneConfirmedAtNotIn

func PhoneConfirmedAtNotIn(vs ...time.Time) predicate.Profile

PhoneConfirmedAtNotIn applies the NotIn predicate on the "phone_confirmed_at" field.

func PhoneContains

func PhoneContains(v string) predicate.Profile

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Profile

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Profile

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Profile

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Profile

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Profile

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Profile

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Profile

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.Profile

PhoneIn applies the In predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Profile

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Profile

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Profile

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.Profile

PhoneNotIn applies the NotIn predicate on the "phone" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Profile

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Profile

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Profile

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Profile

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Profile

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Profile

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Profile

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v string) predicate.Profile

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

func UserIDContains

func UserIDContains(v string) predicate.Profile

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

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.Profile

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

func UserIDEQ

func UserIDEQ(v string) predicate.Profile

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.Profile

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

func UserIDGT

func UserIDGT(v string) predicate.Profile

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

func UserIDGTE

func UserIDGTE(v string) predicate.Profile

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

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.Profile

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

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.Profile

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

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v string) predicate.Profile

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

func UserIDLTE

func UserIDLTE(v string) predicate.Profile

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

func UserIDNEQ

func UserIDNEQ(v string) predicate.Profile

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

func UserIDNotIn

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

UserIDNotIn applies the NotIn 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 Profile queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByEmailConfirmedAt

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

ByEmailConfirmedAt orders the results by the email_confirmed_at field.

func ByFullName

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

ByFullName orders the results by the full_name field.

func ByID

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

ByID orders the results by the id field.

func ByIsSSOUser

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

ByIsSSOUser orders the results by the is_sso_user field.

func ByLanguage

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

ByLanguage orders the results by the language field.

func ByPhone

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

ByPhone orders the results by the phone field.

func ByPhoneConfirmedAt

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

ByPhoneConfirmedAt orders the results by the phone_confirmed_at field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at 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