user

package
v0.0.0-...-8e868a9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPhoneNumber holds the string denoting the phone_number field in the database.
	FieldPhoneNumber = "phone_number"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldVerified holds the string denoting the verified field in the database.
	FieldVerified = "verified"
	// FieldVerificationCode holds the string denoting the verification_code field in the database.
	FieldVerificationCode = "verification_code"
	// FieldAdmin holds the string denoting the admin field in the database.
	FieldAdmin = "admin"
	// FieldRegistrationMethod holds the string denoting the registration_method field in the database.
	FieldRegistrationMethod = "registration_method"
	// FieldProfilePicture holds the string denoting the profile_picture field in the database.
	FieldProfilePicture = "profile_picture"
	// FieldDarkMode holds the string denoting the dark_mode field in the database.
	FieldDarkMode = "dark_mode"
	// FieldBio holds the string denoting the bio field in the database.
	FieldBio = "bio"
	// FieldEmailNotifications holds the string denoting the email_notifications field in the database.
	FieldEmailNotifications = "email_notifications"
	// FieldSmsNotifications holds the string denoting the sms_notifications field in the database.
	FieldSmsNotifications = "sms_notifications"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldLastLogin holds the string denoting the last_login field in the database.
	FieldLastLogin = "last_login"
	// 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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeNotes holds the string denoting the notes edge name in mutations.
	EdgeNotes = "notes"
	// EdgeNoteLikes holds the string denoting the note_likes edge name in mutations.
	EdgeNoteLikes = "note_likes"
	// EdgeNoteReposts holds the string denoting the note_reposts edge name in mutations.
	EdgeNoteReposts = "note_reposts"
	// Table holds the table name of the user in the database.
	Table = "users"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "password_tokens"
	// OwnerInverseTable is the table name for the PasswordToken entity.
	// It exists in this package in order to avoid circular dependency with the "passwordtoken" package.
	OwnerInverseTable = "password_tokens"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_id"
	// NotesTable is the table that holds the notes relation/edge.
	NotesTable = "notes"
	// NotesInverseTable is the table name for the Note entity.
	// It exists in this package in order to avoid circular dependency with the "note" package.
	NotesInverseTable = "notes"
	// NotesColumn is the table column denoting the notes relation/edge.
	NotesColumn = "user_notes"
	// NoteLikesTable is the table that holds the note_likes relation/edge.
	NoteLikesTable = "note_likes"
	// NoteLikesInverseTable is the table name for the NoteLike entity.
	// It exists in this package in order to avoid circular dependency with the "notelike" package.
	NoteLikesInverseTable = "note_likes"
	// NoteLikesColumn is the table column denoting the note_likes relation/edge.
	NoteLikesColumn = "user_note_likes"
	// NoteRepostsTable is the table that holds the note_reposts relation/edge.
	NoteRepostsTable = "note_reposts"
	// NoteRepostsInverseTable is the table name for the NoteRepost entity.
	// It exists in this package in order to avoid circular dependency with the "noterepost" package.
	NoteRepostsInverseTable = "note_reposts"
	// NoteRepostsColumn is the table column denoting the note_reposts relation/edge.
	NoteRepostsColumn = "user_note_reposts"
)
View Source
const DefaultRegistrationMethod = RegistrationMethodWeb

RegistrationMethodWeb is the default value of the RegistrationMethod enum.

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// PhoneNumberValidator is a validator for the "phone_number" field. It is called by the builders before save.
	PhoneNumberValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// DefaultVerified holds the default value on creation for the "verified" field.
	DefaultVerified bool
	// DefaultAdmin holds the default value on creation for the "admin" field.
	DefaultAdmin bool
	// DefaultDarkMode holds the default value on creation for the "dark_mode" field.
	DefaultDarkMode bool
	// BioValidator is a validator for the "bio" field. It is called by the builders before save.
	BioValidator func(string) error
	// DefaultEmailNotifications holds the default value on creation for the "email_notifications" field.
	DefaultEmailNotifications bool
	// DefaultSmsNotifications holds the default value on creation for the "sms_notifications" field.
	DefaultSmsNotifications bool
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
	// 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
)

Columns holds all SQL columns for user fields.

Functions

func Admin

func Admin(v bool) predicate.User

Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.

func AdminEQ

func AdminEQ(v bool) predicate.User

AdminEQ applies the EQ predicate on the "admin" field.

func AdminNEQ

func AdminNEQ(v bool) predicate.User

AdminNEQ applies the NEQ predicate on the "admin" field.

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Bio

func Bio(v string) predicate.User

Bio applies equality check predicate on the "bio" field. It's identical to BioEQ.

func BioContains

func BioContains(v string) predicate.User

BioContains applies the Contains predicate on the "bio" field.

func BioContainsFold

func BioContainsFold(v string) predicate.User

BioContainsFold applies the ContainsFold predicate on the "bio" field.

func BioEQ

func BioEQ(v string) predicate.User

BioEQ applies the EQ predicate on the "bio" field.

func BioEqualFold

func BioEqualFold(v string) predicate.User

BioEqualFold applies the EqualFold predicate on the "bio" field.

func BioGT

func BioGT(v string) predicate.User

BioGT applies the GT predicate on the "bio" field.

func BioGTE

func BioGTE(v string) predicate.User

BioGTE applies the GTE predicate on the "bio" field.

func BioHasPrefix

func BioHasPrefix(v string) predicate.User

BioHasPrefix applies the HasPrefix predicate on the "bio" field.

func BioHasSuffix

func BioHasSuffix(v string) predicate.User

BioHasSuffix applies the HasSuffix predicate on the "bio" field.

func BioIn

func BioIn(vs ...string) predicate.User

BioIn applies the In predicate on the "bio" field.

func BioIsNil

func BioIsNil() predicate.User

BioIsNil applies the IsNil predicate on the "bio" field.

func BioLT

func BioLT(v string) predicate.User

BioLT applies the LT predicate on the "bio" field.

func BioLTE

func BioLTE(v string) predicate.User

BioLTE applies the LTE predicate on the "bio" field.

func BioNEQ

func BioNEQ(v string) predicate.User

BioNEQ applies the NEQ predicate on the "bio" field.

func BioNotIn

func BioNotIn(vs ...string) predicate.User

BioNotIn applies the NotIn predicate on the "bio" field.

func BioNotNil

func BioNotNil() predicate.User

BioNotNil applies the NotNil predicate on the "bio" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

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

func CreatedAtNotIn

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

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

func DarkMode

func DarkMode(v bool) predicate.User

DarkMode applies equality check predicate on the "dark_mode" field. It's identical to DarkModeEQ.

func DarkModeEQ

func DarkModeEQ(v bool) predicate.User

DarkModeEQ applies the EQ predicate on the "dark_mode" field.

func DarkModeNEQ

func DarkModeNEQ(v bool) predicate.User

DarkModeNEQ applies the NEQ predicate on the "dark_mode" field.

func Email

func Email(v string) predicate.User

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

func EmailContains

func EmailContains(v string) predicate.User

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

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

func EmailEQ

func EmailEQ(v string) predicate.User

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

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

func EmailGT

func EmailGT(v string) predicate.User

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

func EmailGTE

func EmailGTE(v string) predicate.User

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

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

func EmailIn

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

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

func EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

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

func EmailLTE

func EmailLTE(v string) predicate.User

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

func EmailNEQ

func EmailNEQ(v string) predicate.User

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

func EmailNotIn

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

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

func EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func EmailNotifications

func EmailNotifications(v bool) predicate.User

EmailNotifications applies equality check predicate on the "email_notifications" field. It's identical to EmailNotificationsEQ.

func EmailNotificationsEQ

func EmailNotificationsEQ(v bool) predicate.User

EmailNotificationsEQ applies the EQ predicate on the "email_notifications" field.

func EmailNotificationsNEQ

func EmailNotificationsNEQ(v bool) predicate.User

EmailNotificationsNEQ applies the NEQ predicate on the "email_notifications" field.

func HasNoteLikes

func HasNoteLikes() predicate.User

HasNoteLikes applies the HasEdge predicate on the "note_likes" edge.

func HasNoteLikesWith

func HasNoteLikesWith(preds ...predicate.NoteLike) predicate.User

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

func HasNoteReposts

func HasNoteReposts() predicate.User

HasNoteReposts applies the HasEdge predicate on the "note_reposts" edge.

func HasNoteRepostsWith

func HasNoteRepostsWith(preds ...predicate.NoteRepost) predicate.User

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

func HasNotes

func HasNotes() predicate.User

HasNotes applies the HasEdge predicate on the "notes" edge.

func HasNotesWith

func HasNotesWith(preds ...predicate.Note) predicate.User

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

func HasOwner

func HasOwner() predicate.User

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.PasswordToken) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.User

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.User

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.User

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func LastLogin

func LastLogin(v time.Time) predicate.User

LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.

func LastLoginEQ

func LastLoginEQ(v time.Time) predicate.User

LastLoginEQ applies the EQ predicate on the "last_login" field.

func LastLoginGT

func LastLoginGT(v time.Time) predicate.User

LastLoginGT applies the GT predicate on the "last_login" field.

func LastLoginGTE

func LastLoginGTE(v time.Time) predicate.User

LastLoginGTE applies the GTE predicate on the "last_login" field.

func LastLoginIn

func LastLoginIn(vs ...time.Time) predicate.User

LastLoginIn applies the In predicate on the "last_login" field.

func LastLoginIsNil

func LastLoginIsNil() predicate.User

LastLoginIsNil applies the IsNil predicate on the "last_login" field.

func LastLoginLT

func LastLoginLT(v time.Time) predicate.User

LastLoginLT applies the LT predicate on the "last_login" field.

func LastLoginLTE

func LastLoginLTE(v time.Time) predicate.User

LastLoginLTE applies the LTE predicate on the "last_login" field.

func LastLoginNEQ

func LastLoginNEQ(v time.Time) predicate.User

LastLoginNEQ applies the NEQ predicate on the "last_login" field.

func LastLoginNotIn

func LastLoginNotIn(vs ...time.Time) predicate.User

LastLoginNotIn applies the NotIn predicate on the "last_login" field.

func LastLoginNotNil

func LastLoginNotNil() predicate.User

LastLoginNotNil applies the NotNil predicate on the "last_login" field.

func Name

func Name(v string) predicate.User

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.User

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.User

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.User

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.User

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.User

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.User

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.User

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.User

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.User

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.User

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.User

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.User

PasswordIn applies the In predicate on the "password" field.

func PasswordIsNil

func PasswordIsNil() predicate.User

PasswordIsNil applies the IsNil predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.User

PasswordNotIn applies the NotIn predicate on the "password" field.

func PasswordNotNil

func PasswordNotNil() predicate.User

PasswordNotNil applies the NotNil predicate on the "password" field.

func PhoneNumber

func PhoneNumber(v string) predicate.User

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

func PhoneNumberContains

func PhoneNumberContains(v string) predicate.User

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

func PhoneNumberContainsFold

func PhoneNumberContainsFold(v string) predicate.User

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

func PhoneNumberEQ

func PhoneNumberEQ(v string) predicate.User

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

func PhoneNumberEqualFold

func PhoneNumberEqualFold(v string) predicate.User

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

func PhoneNumberGT

func PhoneNumberGT(v string) predicate.User

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

func PhoneNumberGTE

func PhoneNumberGTE(v string) predicate.User

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

func PhoneNumberHasPrefix

func PhoneNumberHasPrefix(v string) predicate.User

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

func PhoneNumberHasSuffix

func PhoneNumberHasSuffix(v string) predicate.User

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

func PhoneNumberIn

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

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

func PhoneNumberLT

func PhoneNumberLT(v string) predicate.User

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

func PhoneNumberLTE

func PhoneNumberLTE(v string) predicate.User

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

func PhoneNumberNEQ

func PhoneNumberNEQ(v string) predicate.User

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

func PhoneNumberNotIn

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

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

func ProfilePicture

func ProfilePicture(v string) predicate.User

ProfilePicture applies equality check predicate on the "profile_picture" field. It's identical to ProfilePictureEQ.

func ProfilePictureContains

func ProfilePictureContains(v string) predicate.User

ProfilePictureContains applies the Contains predicate on the "profile_picture" field.

func ProfilePictureContainsFold

func ProfilePictureContainsFold(v string) predicate.User

ProfilePictureContainsFold applies the ContainsFold predicate on the "profile_picture" field.

func ProfilePictureEQ

func ProfilePictureEQ(v string) predicate.User

ProfilePictureEQ applies the EQ predicate on the "profile_picture" field.

func ProfilePictureEqualFold

func ProfilePictureEqualFold(v string) predicate.User

ProfilePictureEqualFold applies the EqualFold predicate on the "profile_picture" field.

func ProfilePictureGT

func ProfilePictureGT(v string) predicate.User

ProfilePictureGT applies the GT predicate on the "profile_picture" field.

func ProfilePictureGTE

func ProfilePictureGTE(v string) predicate.User

ProfilePictureGTE applies the GTE predicate on the "profile_picture" field.

func ProfilePictureHasPrefix

func ProfilePictureHasPrefix(v string) predicate.User

ProfilePictureHasPrefix applies the HasPrefix predicate on the "profile_picture" field.

func ProfilePictureHasSuffix

func ProfilePictureHasSuffix(v string) predicate.User

ProfilePictureHasSuffix applies the HasSuffix predicate on the "profile_picture" field.

func ProfilePictureIn

func ProfilePictureIn(vs ...string) predicate.User

ProfilePictureIn applies the In predicate on the "profile_picture" field.

func ProfilePictureIsNil

func ProfilePictureIsNil() predicate.User

ProfilePictureIsNil applies the IsNil predicate on the "profile_picture" field.

func ProfilePictureLT

func ProfilePictureLT(v string) predicate.User

ProfilePictureLT applies the LT predicate on the "profile_picture" field.

func ProfilePictureLTE

func ProfilePictureLTE(v string) predicate.User

ProfilePictureLTE applies the LTE predicate on the "profile_picture" field.

func ProfilePictureNEQ

func ProfilePictureNEQ(v string) predicate.User

ProfilePictureNEQ applies the NEQ predicate on the "profile_picture" field.

func ProfilePictureNotIn

func ProfilePictureNotIn(vs ...string) predicate.User

ProfilePictureNotIn applies the NotIn predicate on the "profile_picture" field.

func ProfilePictureNotNil

func ProfilePictureNotNil() predicate.User

ProfilePictureNotNil applies the NotNil predicate on the "profile_picture" field.

func RegistrationMethodEQ

func RegistrationMethodEQ(v RegistrationMethod) predicate.User

RegistrationMethodEQ applies the EQ predicate on the "registration_method" field.

func RegistrationMethodIn

func RegistrationMethodIn(vs ...RegistrationMethod) predicate.User

RegistrationMethodIn applies the In predicate on the "registration_method" field.

func RegistrationMethodNEQ

func RegistrationMethodNEQ(v RegistrationMethod) predicate.User

RegistrationMethodNEQ applies the NEQ predicate on the "registration_method" field.

func RegistrationMethodNotIn

func RegistrationMethodNotIn(vs ...RegistrationMethod) predicate.User

RegistrationMethodNotIn applies the NotIn predicate on the "registration_method" field.

func RegistrationMethodValidator

func RegistrationMethodValidator(rm RegistrationMethod) error

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

func SmsNotifications

func SmsNotifications(v bool) predicate.User

SmsNotifications applies equality check predicate on the "sms_notifications" field. It's identical to SmsNotificationsEQ.

func SmsNotificationsEQ

func SmsNotificationsEQ(v bool) predicate.User

SmsNotificationsEQ applies the EQ predicate on the "sms_notifications" field.

func SmsNotificationsNEQ

func SmsNotificationsNEQ(v bool) predicate.User

SmsNotificationsNEQ applies the NEQ predicate on the "sms_notifications" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.User

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.User

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

func ValidColumn

func ValidColumn(column string) bool

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

func VerificationCode

func VerificationCode(v string) predicate.User

VerificationCode applies equality check predicate on the "verification_code" field. It's identical to VerificationCodeEQ.

func VerificationCodeContains

func VerificationCodeContains(v string) predicate.User

VerificationCodeContains applies the Contains predicate on the "verification_code" field.

func VerificationCodeContainsFold

func VerificationCodeContainsFold(v string) predicate.User

VerificationCodeContainsFold applies the ContainsFold predicate on the "verification_code" field.

func VerificationCodeEQ

func VerificationCodeEQ(v string) predicate.User

VerificationCodeEQ applies the EQ predicate on the "verification_code" field.

func VerificationCodeEqualFold

func VerificationCodeEqualFold(v string) predicate.User

VerificationCodeEqualFold applies the EqualFold predicate on the "verification_code" field.

func VerificationCodeGT

func VerificationCodeGT(v string) predicate.User

VerificationCodeGT applies the GT predicate on the "verification_code" field.

func VerificationCodeGTE

func VerificationCodeGTE(v string) predicate.User

VerificationCodeGTE applies the GTE predicate on the "verification_code" field.

func VerificationCodeHasPrefix

func VerificationCodeHasPrefix(v string) predicate.User

VerificationCodeHasPrefix applies the HasPrefix predicate on the "verification_code" field.

func VerificationCodeHasSuffix

func VerificationCodeHasSuffix(v string) predicate.User

VerificationCodeHasSuffix applies the HasSuffix predicate on the "verification_code" field.

func VerificationCodeIn

func VerificationCodeIn(vs ...string) predicate.User

VerificationCodeIn applies the In predicate on the "verification_code" field.

func VerificationCodeIsNil

func VerificationCodeIsNil() predicate.User

VerificationCodeIsNil applies the IsNil predicate on the "verification_code" field.

func VerificationCodeLT

func VerificationCodeLT(v string) predicate.User

VerificationCodeLT applies the LT predicate on the "verification_code" field.

func VerificationCodeLTE

func VerificationCodeLTE(v string) predicate.User

VerificationCodeLTE applies the LTE predicate on the "verification_code" field.

func VerificationCodeNEQ

func VerificationCodeNEQ(v string) predicate.User

VerificationCodeNEQ applies the NEQ predicate on the "verification_code" field.

func VerificationCodeNotIn

func VerificationCodeNotIn(vs ...string) predicate.User

VerificationCodeNotIn applies the NotIn predicate on the "verification_code" field.

func VerificationCodeNotNil

func VerificationCodeNotNil() predicate.User

VerificationCodeNotNil applies the NotNil predicate on the "verification_code" field.

func Verified

func Verified(v bool) predicate.User

Verified applies equality check predicate on the "verified" field. It's identical to VerifiedEQ.

func VerifiedEQ

func VerifiedEQ(v bool) predicate.User

VerifiedEQ applies the EQ predicate on the "verified" field.

func VerifiedNEQ

func VerifiedNEQ(v bool) predicate.User

VerifiedNEQ applies the NEQ predicate on the "verified" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAdmin

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

ByAdmin orders the results by the admin field.

func ByBio

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

ByBio orders the results by the bio field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDarkMode

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

ByDarkMode orders the results by the dark_mode field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByEmailNotifications

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

ByEmailNotifications orders the results by the email_notifications field.

func ByID

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

ByID orders the results by the id field.

func ByIsActive

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

ByIsActive orders the results by the is_active field.

func ByLastLogin

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

ByLastLogin orders the results by the last_login field.

func ByName

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

ByName orders the results by the name field.

func ByNoteLikes

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

ByNoteLikes orders the results by note_likes terms.

func ByNoteLikesCount

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

ByNoteLikesCount orders the results by note_likes count.

func ByNoteReposts

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

ByNoteReposts orders the results by note_reposts terms.

func ByNoteRepostsCount

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

ByNoteRepostsCount orders the results by note_reposts count.

func ByNotes

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

ByNotes orders the results by notes terms.

func ByNotesCount

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

ByNotesCount orders the results by notes count.

func ByOwner

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

ByOwner orders the results by owner terms.

func ByOwnerCount

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

ByOwnerCount orders the results by owner count.

func ByPassword

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

ByPassword orders the results by the password field.

func ByPhoneNumber

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

ByPhoneNumber orders the results by the phone_number field.

func ByProfilePicture

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

ByProfilePicture orders the results by the profile_picture field.

func ByRegistrationMethod

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

ByRegistrationMethod orders the results by the registration_method field.

func BySmsNotifications

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

BySmsNotifications orders the results by the sms_notifications field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVerificationCode

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

ByVerificationCode orders the results by the verification_code field.

func ByVerified

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

ByVerified orders the results by the verified field.

type RegistrationMethod

type RegistrationMethod string

RegistrationMethod defines the type for the "registration_method" enum field.

const (
	RegistrationMethodWhatsapp RegistrationMethod = "whatsapp"
	RegistrationMethodWeb      RegistrationMethod = "web"
)

RegistrationMethod values.

func (RegistrationMethod) String

func (rm RegistrationMethod) String() string

Jump to

Keyboard shortcuts

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