Documentation
¶
Index ¶
- Constants
- Variables
- func Admin(v bool) predicate.User
- func AdminEQ(v bool) predicate.User
- func AdminNEQ(v bool) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Bio(v string) predicate.User
- func BioContains(v string) predicate.User
- func BioContainsFold(v string) predicate.User
- func BioEQ(v string) predicate.User
- func BioEqualFold(v string) predicate.User
- func BioGT(v string) predicate.User
- func BioGTE(v string) predicate.User
- func BioHasPrefix(v string) predicate.User
- func BioHasSuffix(v string) predicate.User
- func BioIn(vs ...string) predicate.User
- func BioIsNil() predicate.User
- func BioLT(v string) predicate.User
- func BioLTE(v string) predicate.User
- func BioNEQ(v string) predicate.User
- func BioNotIn(vs ...string) predicate.User
- func BioNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DarkMode(v bool) predicate.User
- func DarkModeEQ(v bool) predicate.User
- func DarkModeNEQ(v bool) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailIsNil() predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func EmailNotNil() predicate.User
- func EmailNotifications(v bool) predicate.User
- func EmailNotificationsEQ(v bool) predicate.User
- func EmailNotificationsNEQ(v bool) predicate.User
- func HasNoteLikes() predicate.User
- func HasNoteLikesWith(preds ...predicate.NoteLike) predicate.User
- func HasNoteReposts() predicate.User
- func HasNoteRepostsWith(preds ...predicate.NoteRepost) predicate.User
- func HasNotes() predicate.User
- func HasNotesWith(preds ...predicate.Note) predicate.User
- func HasOwner() predicate.User
- func HasOwnerWith(preds ...predicate.PasswordToken) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func IsActive(v bool) predicate.User
- func IsActiveEQ(v bool) predicate.User
- func IsActiveNEQ(v bool) predicate.User
- func LastLogin(v time.Time) predicate.User
- func LastLoginEQ(v time.Time) predicate.User
- func LastLoginGT(v time.Time) predicate.User
- func LastLoginGTE(v time.Time) predicate.User
- func LastLoginIn(vs ...time.Time) predicate.User
- func LastLoginIsNil() predicate.User
- func LastLoginLT(v time.Time) predicate.User
- func LastLoginLTE(v time.Time) predicate.User
- func LastLoginNEQ(v time.Time) predicate.User
- func LastLoginNotIn(vs ...time.Time) predicate.User
- func LastLoginNotNil() predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordIsNil() predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PasswordNotNil() predicate.User
- func PhoneNumber(v string) predicate.User
- func PhoneNumberContains(v string) predicate.User
- func PhoneNumberContainsFold(v string) predicate.User
- func PhoneNumberEQ(v string) predicate.User
- func PhoneNumberEqualFold(v string) predicate.User
- func PhoneNumberGT(v string) predicate.User
- func PhoneNumberGTE(v string) predicate.User
- func PhoneNumberHasPrefix(v string) predicate.User
- func PhoneNumberHasSuffix(v string) predicate.User
- func PhoneNumberIn(vs ...string) predicate.User
- func PhoneNumberLT(v string) predicate.User
- func PhoneNumberLTE(v string) predicate.User
- func PhoneNumberNEQ(v string) predicate.User
- func PhoneNumberNotIn(vs ...string) predicate.User
- func ProfilePicture(v string) predicate.User
- func ProfilePictureContains(v string) predicate.User
- func ProfilePictureContainsFold(v string) predicate.User
- func ProfilePictureEQ(v string) predicate.User
- func ProfilePictureEqualFold(v string) predicate.User
- func ProfilePictureGT(v string) predicate.User
- func ProfilePictureGTE(v string) predicate.User
- func ProfilePictureHasPrefix(v string) predicate.User
- func ProfilePictureHasSuffix(v string) predicate.User
- func ProfilePictureIn(vs ...string) predicate.User
- func ProfilePictureIsNil() predicate.User
- func ProfilePictureLT(v string) predicate.User
- func ProfilePictureLTE(v string) predicate.User
- func ProfilePictureNEQ(v string) predicate.User
- func ProfilePictureNotIn(vs ...string) predicate.User
- func ProfilePictureNotNil() predicate.User
- func RegistrationMethodEQ(v RegistrationMethod) predicate.User
- func RegistrationMethodIn(vs ...RegistrationMethod) predicate.User
- func RegistrationMethodNEQ(v RegistrationMethod) predicate.User
- func RegistrationMethodNotIn(vs ...RegistrationMethod) predicate.User
- func RegistrationMethodValidator(rm RegistrationMethod) error
- func SmsNotifications(v bool) predicate.User
- func SmsNotificationsEQ(v bool) predicate.User
- func SmsNotificationsNEQ(v bool) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtIsNil() predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func UpdatedAtNotNil() predicate.User
- func ValidColumn(column string) bool
- func VerificationCode(v string) predicate.User
- func VerificationCodeContains(v string) predicate.User
- func VerificationCodeContainsFold(v string) predicate.User
- func VerificationCodeEQ(v string) predicate.User
- func VerificationCodeEqualFold(v string) predicate.User
- func VerificationCodeGT(v string) predicate.User
- func VerificationCodeGTE(v string) predicate.User
- func VerificationCodeHasPrefix(v string) predicate.User
- func VerificationCodeHasSuffix(v string) predicate.User
- func VerificationCodeIn(vs ...string) predicate.User
- func VerificationCodeIsNil() predicate.User
- func VerificationCodeLT(v string) predicate.User
- func VerificationCodeLTE(v string) predicate.User
- func VerificationCodeNEQ(v string) predicate.User
- func VerificationCodeNotIn(vs ...string) predicate.User
- func VerificationCodeNotNil() predicate.User
- func Verified(v bool) predicate.User
- func VerifiedEQ(v bool) predicate.User
- func VerifiedNEQ(v bool) predicate.User
- type OrderOption
- func ByAdmin(opts ...sql.OrderTermOption) OrderOption
- func ByBio(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDarkMode(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByEmailNotifications(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsActive(opts ...sql.OrderTermOption) OrderOption
- func ByLastLogin(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNoteLikes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNoteLikesCount(opts ...sql.OrderTermOption) OrderOption
- func ByNoteReposts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNoteRepostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhoneNumber(opts ...sql.OrderTermOption) OrderOption
- func ByProfilePicture(opts ...sql.OrderTermOption) OrderOption
- func ByRegistrationMethod(opts ...sql.OrderTermOption) OrderOption
- func BySmsNotifications(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVerificationCode(opts ...sql.OrderTermOption) OrderOption
- func ByVerified(opts ...sql.OrderTermOption) OrderOption
- type RegistrationMethod
Constants ¶
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" )
const DefaultRegistrationMethod = RegistrationMethodWeb
RegistrationMethodWeb is the default value of the RegistrationMethod enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldPhoneNumber, FieldEmail, FieldPassword, FieldVerified, FieldVerificationCode, FieldAdmin, FieldRegistrationMethod, FieldProfilePicture, FieldDarkMode, FieldBio, FieldEmailNotifications, FieldSmsNotifications, FieldIsActive, FieldLastLogin, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
Functions ¶
func Admin ¶
Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.
func BioContains ¶
BioContains applies the Contains predicate on the "bio" field.
func BioContainsFold ¶
BioContainsFold applies the ContainsFold predicate on the "bio" field.
func BioEqualFold ¶
BioEqualFold applies the EqualFold predicate on the "bio" field.
func BioHasPrefix ¶
BioHasPrefix applies the HasPrefix predicate on the "bio" field.
func BioHasSuffix ¶
BioHasSuffix applies the HasSuffix predicate on the "bio" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DarkMode ¶
DarkMode applies equality check predicate on the "dark_mode" field. It's identical to DarkModeEQ.
func DarkModeEQ ¶
DarkModeEQ applies the EQ predicate on the "dark_mode" field.
func DarkModeNEQ ¶
DarkModeNEQ applies the NEQ predicate on the "dark_mode" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func EmailNotifications ¶
EmailNotifications applies equality check predicate on the "email_notifications" field. It's identical to EmailNotificationsEQ.
func EmailNotificationsEQ ¶
EmailNotificationsEQ applies the EQ predicate on the "email_notifications" field.
func EmailNotificationsNEQ ¶
EmailNotificationsNEQ applies the NEQ predicate on the "email_notifications" field.
func HasNoteLikes ¶
HasNoteLikes applies the HasEdge predicate on the "note_likes" edge.
func HasNoteLikesWith ¶
HasNoteLikesWith applies the HasEdge predicate on the "note_likes" edge with a given conditions (other predicates).
func HasNoteReposts ¶
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 HasNotesWith ¶
HasNotesWith applies the HasEdge predicate on the "notes" edge with a given conditions (other predicates).
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 IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func LastLogin ¶
LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.
func LastLoginEQ ¶
LastLoginEQ applies the EQ predicate on the "last_login" field.
func LastLoginGT ¶
LastLoginGT applies the GT predicate on the "last_login" field.
func LastLoginGTE ¶
LastLoginGTE applies the GTE predicate on the "last_login" field.
func LastLoginIn ¶
LastLoginIn applies the In predicate on the "last_login" field.
func LastLoginIsNil ¶
LastLoginIsNil applies the IsNil predicate on the "last_login" field.
func LastLoginLT ¶
LastLoginLT applies the LT predicate on the "last_login" field.
func LastLoginLTE ¶
LastLoginLTE applies the LTE predicate on the "last_login" field.
func LastLoginNEQ ¶
LastLoginNEQ applies the NEQ predicate on the "last_login" field.
func LastLoginNotIn ¶
LastLoginNotIn applies the NotIn predicate on the "last_login" field.
func LastLoginNotNil ¶
LastLoginNotNil applies the NotNil predicate on the "last_login" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func PhoneNumber ¶
PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.
func PhoneNumberContains ¶
PhoneNumberContains applies the Contains predicate on the "phone_number" field.
func PhoneNumberContainsFold ¶
PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.
func PhoneNumberEQ ¶
PhoneNumberEQ applies the EQ predicate on the "phone_number" field.
func PhoneNumberEqualFold ¶
PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.
func PhoneNumberGT ¶
PhoneNumberGT applies the GT predicate on the "phone_number" field.
func PhoneNumberGTE ¶
PhoneNumberGTE applies the GTE predicate on the "phone_number" field.
func PhoneNumberHasPrefix ¶
PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.
func PhoneNumberHasSuffix ¶
PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.
func PhoneNumberIn ¶
PhoneNumberIn applies the In predicate on the "phone_number" field.
func PhoneNumberLT ¶
PhoneNumberLT applies the LT predicate on the "phone_number" field.
func PhoneNumberLTE ¶
PhoneNumberLTE applies the LTE predicate on the "phone_number" field.
func PhoneNumberNEQ ¶
PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.
func PhoneNumberNotIn ¶
PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.
func ProfilePicture ¶
ProfilePicture applies equality check predicate on the "profile_picture" field. It's identical to ProfilePictureEQ.
func ProfilePictureContains ¶
ProfilePictureContains applies the Contains predicate on the "profile_picture" field.
func ProfilePictureContainsFold ¶
ProfilePictureContainsFold applies the ContainsFold predicate on the "profile_picture" field.
func ProfilePictureEQ ¶
ProfilePictureEQ applies the EQ predicate on the "profile_picture" field.
func ProfilePictureEqualFold ¶
ProfilePictureEqualFold applies the EqualFold predicate on the "profile_picture" field.
func ProfilePictureGT ¶
ProfilePictureGT applies the GT predicate on the "profile_picture" field.
func ProfilePictureGTE ¶
ProfilePictureGTE applies the GTE predicate on the "profile_picture" field.
func ProfilePictureHasPrefix ¶
ProfilePictureHasPrefix applies the HasPrefix predicate on the "profile_picture" field.
func ProfilePictureHasSuffix ¶
ProfilePictureHasSuffix applies the HasSuffix predicate on the "profile_picture" field.
func ProfilePictureIn ¶
ProfilePictureIn applies the In predicate on the "profile_picture" field.
func ProfilePictureIsNil ¶
ProfilePictureIsNil applies the IsNil predicate on the "profile_picture" field.
func ProfilePictureLT ¶
ProfilePictureLT applies the LT predicate on the "profile_picture" field.
func ProfilePictureLTE ¶
ProfilePictureLTE applies the LTE predicate on the "profile_picture" field.
func ProfilePictureNEQ ¶
ProfilePictureNEQ applies the NEQ predicate on the "profile_picture" field.
func ProfilePictureNotIn ¶
ProfilePictureNotIn applies the NotIn predicate on the "profile_picture" field.
func ProfilePictureNotNil ¶
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 ¶
SmsNotifications applies equality check predicate on the "sms_notifications" field. It's identical to SmsNotificationsEQ.
func SmsNotificationsEQ ¶
SmsNotificationsEQ applies the EQ predicate on the "sms_notifications" field.
func SmsNotificationsNEQ ¶
SmsNotificationsNEQ applies the NEQ predicate on the "sms_notifications" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerificationCode ¶
VerificationCode applies equality check predicate on the "verification_code" field. It's identical to VerificationCodeEQ.
func VerificationCodeContains ¶
VerificationCodeContains applies the Contains predicate on the "verification_code" field.
func VerificationCodeContainsFold ¶
VerificationCodeContainsFold applies the ContainsFold predicate on the "verification_code" field.
func VerificationCodeEQ ¶
VerificationCodeEQ applies the EQ predicate on the "verification_code" field.
func VerificationCodeEqualFold ¶
VerificationCodeEqualFold applies the EqualFold predicate on the "verification_code" field.
func VerificationCodeGT ¶
VerificationCodeGT applies the GT predicate on the "verification_code" field.
func VerificationCodeGTE ¶
VerificationCodeGTE applies the GTE predicate on the "verification_code" field.
func VerificationCodeHasPrefix ¶
VerificationCodeHasPrefix applies the HasPrefix predicate on the "verification_code" field.
func VerificationCodeHasSuffix ¶
VerificationCodeHasSuffix applies the HasSuffix predicate on the "verification_code" field.
func VerificationCodeIn ¶
VerificationCodeIn applies the In predicate on the "verification_code" field.
func VerificationCodeIsNil ¶
VerificationCodeIsNil applies the IsNil predicate on the "verification_code" field.
func VerificationCodeLT ¶
VerificationCodeLT applies the LT predicate on the "verification_code" field.
func VerificationCodeLTE ¶
VerificationCodeLTE applies the LTE predicate on the "verification_code" field.
func VerificationCodeNEQ ¶
VerificationCodeNEQ applies the NEQ predicate on the "verification_code" field.
func VerificationCodeNotIn ¶
VerificationCodeNotIn applies the NotIn predicate on the "verification_code" field.
func VerificationCodeNotNil ¶
VerificationCodeNotNil applies the NotNil predicate on the "verification_code" field.
func Verified ¶
Verified applies equality check predicate on the "verified" field. It's identical to VerifiedEQ.
func VerifiedEQ ¶
VerifiedEQ applies the EQ predicate on the "verified" field.
func VerifiedNEQ ¶
VerifiedNEQ applies the NEQ predicate on the "verified" field.
Types ¶
type OrderOption ¶
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