user

package
v0.0.0-...-6a61234 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 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"
	// 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"
	// FieldFirstName holds the string denoting the first_name field in the database.
	FieldFirstName = "first_name"
	// FieldLastName holds the string denoting the last_name field in the database.
	FieldLastName = "last_name"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// 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"
	// FieldTermsAgreement holds the string denoting the terms_agreement field in the database.
	FieldTermsAgreement = "terms_agreement"
	// FieldIsEmailVerified holds the string denoting the is_email_verified field in the database.
	FieldIsEmailVerified = "is_email_verified"
	// FieldIsStaff holds the string denoting the is_staff field in the database.
	FieldIsStaff = "is_staff"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldBio holds the string denoting the bio field in the database.
	FieldBio = "bio"
	// FieldDob holds the string denoting the dob field in the database.
	FieldDob = "dob"
	// FieldAccess holds the string denoting the access field in the database.
	FieldAccess = "access"
	// FieldRefresh holds the string denoting the refresh field in the database.
	FieldRefresh = "refresh"
	// FieldCityID holds the string denoting the city_id field in the database.
	FieldCityID = "city_id"
	// FieldAvatarID holds the string denoting the avatar_id field in the database.
	FieldAvatarID = "avatar_id"
	// EdgeCity holds the string denoting the city edge name in mutations.
	EdgeCity = "city"
	// EdgeAvatar holds the string denoting the avatar edge name in mutations.
	EdgeAvatar = "avatar"
	// EdgeOtp holds the string denoting the otp edge name in mutations.
	EdgeOtp = "otp"
	// EdgePosts holds the string denoting the posts edge name in mutations.
	EdgePosts = "posts"
	// EdgeReactions holds the string denoting the reactions edge name in mutations.
	EdgeReactions = "reactions"
	// EdgeComments holds the string denoting the comments edge name in mutations.
	EdgeComments = "comments"
	// EdgeReplies holds the string denoting the replies edge name in mutations.
	EdgeReplies = "replies"
	// EdgeRequesterFriends holds the string denoting the requester_friends edge name in mutations.
	EdgeRequesterFriends = "requester_friends"
	// EdgeRequesteeFriends holds the string denoting the requestee_friends edge name in mutations.
	EdgeRequesteeFriends = "requestee_friends"
	// EdgeNotificationsFrom holds the string denoting the notifications_from edge name in mutations.
	EdgeNotificationsFrom = "notifications_from"
	// EdgeNotifications holds the string denoting the notifications edge name in mutations.
	EdgeNotifications = "notifications"
	// EdgeNotificationsRead holds the string denoting the notifications_read edge name in mutations.
	EdgeNotificationsRead = "notifications_read"
	// EdgeOwnedChats holds the string denoting the owned_chats edge name in mutations.
	EdgeOwnedChats = "owned_chats"
	// EdgeMemberChats holds the string denoting the member_chats edge name in mutations.
	EdgeMemberChats = "member_chats"
	// EdgeMessages holds the string denoting the messages edge name in mutations.
	EdgeMessages = "messages"
	// Table holds the table name of the user in the database.
	Table = "users"
	// CityTable is the table that holds the city relation/edge.
	CityTable = "users"
	// CityInverseTable is the table name for the City entity.
	// It exists in this package in order to avoid circular dependency with the "city" package.
	CityInverseTable = "cities"
	// CityColumn is the table column denoting the city relation/edge.
	CityColumn = "city_id"
	// AvatarTable is the table that holds the avatar relation/edge.
	AvatarTable = "users"
	// AvatarInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	AvatarInverseTable = "files"
	// AvatarColumn is the table column denoting the avatar relation/edge.
	AvatarColumn = "avatar_id"
	// OtpTable is the table that holds the otp relation/edge.
	OtpTable = "otps"
	// OtpInverseTable is the table name for the Otp entity.
	// It exists in this package in order to avoid circular dependency with the "otp" package.
	OtpInverseTable = "otps"
	// OtpColumn is the table column denoting the otp relation/edge.
	OtpColumn = "user_id"
	// PostsTable is the table that holds the posts relation/edge.
	PostsTable = "posts"
	// PostsInverseTable is the table name for the Post entity.
	// It exists in this package in order to avoid circular dependency with the "post" package.
	PostsInverseTable = "posts"
	// PostsColumn is the table column denoting the posts relation/edge.
	PostsColumn = "author_id"
	// ReactionsTable is the table that holds the reactions relation/edge.
	ReactionsTable = "reactions"
	// ReactionsInverseTable is the table name for the Reaction entity.
	// It exists in this package in order to avoid circular dependency with the "reaction" package.
	ReactionsInverseTable = "reactions"
	// ReactionsColumn is the table column denoting the reactions relation/edge.
	ReactionsColumn = "user_id"
	// CommentsTable is the table that holds the comments relation/edge.
	CommentsTable = "comments"
	// CommentsInverseTable is the table name for the Comment entity.
	// It exists in this package in order to avoid circular dependency with the "comment" package.
	CommentsInverseTable = "comments"
	// CommentsColumn is the table column denoting the comments relation/edge.
	CommentsColumn = "author_id"
	// RepliesTable is the table that holds the replies relation/edge.
	RepliesTable = "replies"
	// RepliesInverseTable is the table name for the Reply entity.
	// It exists in this package in order to avoid circular dependency with the "reply" package.
	RepliesInverseTable = "replies"
	// RepliesColumn is the table column denoting the replies relation/edge.
	RepliesColumn = "author_id"
	// RequesterFriendsTable is the table that holds the requester_friends relation/edge.
	RequesterFriendsTable = "friends"
	// RequesterFriendsInverseTable is the table name for the Friend entity.
	// It exists in this package in order to avoid circular dependency with the "friend" package.
	RequesterFriendsInverseTable = "friends"
	// RequesterFriendsColumn is the table column denoting the requester_friends relation/edge.
	RequesterFriendsColumn = "requester_id"
	// RequesteeFriendsTable is the table that holds the requestee_friends relation/edge.
	RequesteeFriendsTable = "friends"
	// RequesteeFriendsInverseTable is the table name for the Friend entity.
	// It exists in this package in order to avoid circular dependency with the "friend" package.
	RequesteeFriendsInverseTable = "friends"
	// RequesteeFriendsColumn is the table column denoting the requestee_friends relation/edge.
	RequesteeFriendsColumn = "requestee_id"
	// NotificationsFromTable is the table that holds the notifications_from relation/edge.
	NotificationsFromTable = "notifications"
	// NotificationsFromInverseTable is the table name for the Notification entity.
	// It exists in this package in order to avoid circular dependency with the "notification" package.
	NotificationsFromInverseTable = "notifications"
	// NotificationsFromColumn is the table column denoting the notifications_from relation/edge.
	NotificationsFromColumn = "sender_id"
	// NotificationsTable is the table that holds the notifications relation/edge. The primary key declared below.
	NotificationsTable = "user_notifications"
	// NotificationsInverseTable is the table name for the Notification entity.
	// It exists in this package in order to avoid circular dependency with the "notification" package.
	NotificationsInverseTable = "notifications"
	// NotificationsReadTable is the table that holds the notifications_read relation/edge. The primary key declared below.
	NotificationsReadTable = "user_notifications_read"
	// NotificationsReadInverseTable is the table name for the Notification entity.
	// It exists in this package in order to avoid circular dependency with the "notification" package.
	NotificationsReadInverseTable = "notifications"
	// OwnedChatsTable is the table that holds the owned_chats relation/edge.
	OwnedChatsTable = "chats"
	// OwnedChatsInverseTable is the table name for the Chat entity.
	// It exists in this package in order to avoid circular dependency with the "chat" package.
	OwnedChatsInverseTable = "chats"
	// OwnedChatsColumn is the table column denoting the owned_chats relation/edge.
	OwnedChatsColumn = "owner_id"
	// MemberChatsTable is the table that holds the member_chats relation/edge. The primary key declared below.
	MemberChatsTable = "user_member_chats"
	// MemberChatsInverseTable is the table name for the Chat entity.
	// It exists in this package in order to avoid circular dependency with the "chat" package.
	MemberChatsInverseTable = "chats"
	// MessagesTable is the table that holds the messages relation/edge.
	MessagesTable = "messages"
	// MessagesInverseTable is the table name for the Message entity.
	// It exists in this package in order to avoid circular dependency with the "message" package.
	MessagesInverseTable = "messages"
	// MessagesColumn is the table column denoting the messages relation/edge.
	MessagesColumn = "sender_id"
)

Variables

View Source
var (
	// NotificationsPrimaryKey and NotificationsColumn2 are the table columns denoting the
	// primary key for the notifications relation (M2M).
	NotificationsPrimaryKey = []string{"user_id", "notification_id"}
	// NotificationsReadPrimaryKey and NotificationsReadColumn2 are the table columns denoting the
	// primary key for the notifications_read relation (M2M).
	NotificationsReadPrimaryKey = []string{"user_id", "notification_id"}
	// MemberChatsPrimaryKey and MemberChatsColumn2 are the table columns denoting the
	// primary key for the member_chats relation (M2M).
	MemberChatsPrimaryKey = []string{"user_id", "chat_id"}
)
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
	// FirstNameValidator is a validator for the "first_name" field. It is called by the builders before save.
	FirstNameValidator func(string) error
	// LastNameValidator is a validator for the "last_name" field. It is called by the builders before save.
	LastNameValidator func(string) error
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator 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
	// DefaultTermsAgreement holds the default value on creation for the "terms_agreement" field.
	DefaultTermsAgreement bool
	// DefaultIsEmailVerified holds the default value on creation for the "is_email_verified" field.
	DefaultIsEmailVerified bool
	// DefaultIsStaff holds the default value on creation for the "is_staff" field.
	DefaultIsStaff bool
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for user fields.

Functions

func Access

func Access(v string) predicate.User

Access applies equality check predicate on the "access" field. It's identical to AccessEQ.

func AccessContains

func AccessContains(v string) predicate.User

AccessContains applies the Contains predicate on the "access" field.

func AccessContainsFold

func AccessContainsFold(v string) predicate.User

AccessContainsFold applies the ContainsFold predicate on the "access" field.

func AccessEQ

func AccessEQ(v string) predicate.User

AccessEQ applies the EQ predicate on the "access" field.

func AccessEqualFold

func AccessEqualFold(v string) predicate.User

AccessEqualFold applies the EqualFold predicate on the "access" field.

func AccessGT

func AccessGT(v string) predicate.User

AccessGT applies the GT predicate on the "access" field.

func AccessGTE

func AccessGTE(v string) predicate.User

AccessGTE applies the GTE predicate on the "access" field.

func AccessHasPrefix

func AccessHasPrefix(v string) predicate.User

AccessHasPrefix applies the HasPrefix predicate on the "access" field.

func AccessHasSuffix

func AccessHasSuffix(v string) predicate.User

AccessHasSuffix applies the HasSuffix predicate on the "access" field.

func AccessIn

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

AccessIn applies the In predicate on the "access" field.

func AccessIsNil

func AccessIsNil() predicate.User

AccessIsNil applies the IsNil predicate on the "access" field.

func AccessLT

func AccessLT(v string) predicate.User

AccessLT applies the LT predicate on the "access" field.

func AccessLTE

func AccessLTE(v string) predicate.User

AccessLTE applies the LTE predicate on the "access" field.

func AccessNEQ

func AccessNEQ(v string) predicate.User

AccessNEQ applies the NEQ predicate on the "access" field.

func AccessNotIn

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

AccessNotIn applies the NotIn predicate on the "access" field.

func AccessNotNil

func AccessNotNil() predicate.User

AccessNotNil applies the NotNil predicate on the "access" field.

func And

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

And groups predicates with the AND operator between them.

func AvatarID

func AvatarID(v uuid.UUID) predicate.User

AvatarID applies equality check predicate on the "avatar_id" field. It's identical to AvatarIDEQ.

func AvatarIDEQ

func AvatarIDEQ(v uuid.UUID) predicate.User

AvatarIDEQ applies the EQ predicate on the "avatar_id" field.

func AvatarIDIn

func AvatarIDIn(vs ...uuid.UUID) predicate.User

AvatarIDIn applies the In predicate on the "avatar_id" field.

func AvatarIDIsNil

func AvatarIDIsNil() predicate.User

AvatarIDIsNil applies the IsNil predicate on the "avatar_id" field.

func AvatarIDNEQ

func AvatarIDNEQ(v uuid.UUID) predicate.User

AvatarIDNEQ applies the NEQ predicate on the "avatar_id" field.

func AvatarIDNotIn

func AvatarIDNotIn(vs ...uuid.UUID) predicate.User

AvatarIDNotIn applies the NotIn predicate on the "avatar_id" field.

func AvatarIDNotNil

func AvatarIDNotNil() predicate.User

AvatarIDNotNil applies the NotNil predicate on the "avatar_id" field.

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 CityID

func CityID(v uuid.UUID) predicate.User

CityID applies equality check predicate on the "city_id" field. It's identical to CityIDEQ.

func CityIDEQ

func CityIDEQ(v uuid.UUID) predicate.User

CityIDEQ applies the EQ predicate on the "city_id" field.

func CityIDIn

func CityIDIn(vs ...uuid.UUID) predicate.User

CityIDIn applies the In predicate on the "city_id" field.

func CityIDIsNil

func CityIDIsNil() predicate.User

CityIDIsNil applies the IsNil predicate on the "city_id" field.

func CityIDNEQ

func CityIDNEQ(v uuid.UUID) predicate.User

CityIDNEQ applies the NEQ predicate on the "city_id" field.

func CityIDNotIn

func CityIDNotIn(vs ...uuid.UUID) predicate.User

CityIDNotIn applies the NotIn predicate on the "city_id" field.

func CityIDNotNil

func CityIDNotNil() predicate.User

CityIDNotNil applies the NotNil predicate on the "city_id" 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 Dob

func Dob(v time.Time) predicate.User

Dob applies equality check predicate on the "dob" field. It's identical to DobEQ.

func DobEQ

func DobEQ(v time.Time) predicate.User

DobEQ applies the EQ predicate on the "dob" field.

func DobGT

func DobGT(v time.Time) predicate.User

DobGT applies the GT predicate on the "dob" field.

func DobGTE

func DobGTE(v time.Time) predicate.User

DobGTE applies the GTE predicate on the "dob" field.

func DobIn

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

DobIn applies the In predicate on the "dob" field.

func DobIsNil

func DobIsNil() predicate.User

DobIsNil applies the IsNil predicate on the "dob" field.

func DobLT

func DobLT(v time.Time) predicate.User

DobLT applies the LT predicate on the "dob" field.

func DobLTE

func DobLTE(v time.Time) predicate.User

DobLTE applies the LTE predicate on the "dob" field.

func DobNEQ

func DobNEQ(v time.Time) predicate.User

DobNEQ applies the NEQ predicate on the "dob" field.

func DobNotIn

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

DobNotIn applies the NotIn predicate on the "dob" field.

func DobNotNil

func DobNotNil() predicate.User

DobNotNil applies the NotNil predicate on the "dob" 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 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 FirstName

func FirstName(v string) predicate.User

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.User

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.User

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.User

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.User

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.User

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.User

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.User

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.User

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

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

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.User

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.User

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.User

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

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

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func HasAvatar

func HasAvatar() predicate.User

HasAvatar applies the HasEdge predicate on the "avatar" edge.

func HasAvatarWith

func HasAvatarWith(preds ...predicate.File) predicate.User

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

func HasCity

func HasCity() predicate.User

HasCity applies the HasEdge predicate on the "city" edge.

func HasCityWith

func HasCityWith(preds ...predicate.City) predicate.User

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

func HasComments

func HasComments() predicate.User

HasComments applies the HasEdge predicate on the "comments" edge.

func HasCommentsWith

func HasCommentsWith(preds ...predicate.Comment) predicate.User

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

func HasMemberChats

func HasMemberChats() predicate.User

HasMemberChats applies the HasEdge predicate on the "member_chats" edge.

func HasMemberChatsWith

func HasMemberChatsWith(preds ...predicate.Chat) predicate.User

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

func HasMessages

func HasMessages() predicate.User

HasMessages applies the HasEdge predicate on the "messages" edge.

func HasMessagesWith

func HasMessagesWith(preds ...predicate.Message) predicate.User

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

func HasNotifications

func HasNotifications() predicate.User

HasNotifications applies the HasEdge predicate on the "notifications" edge.

func HasNotificationsFrom

func HasNotificationsFrom() predicate.User

HasNotificationsFrom applies the HasEdge predicate on the "notifications_from" edge.

func HasNotificationsFromWith

func HasNotificationsFromWith(preds ...predicate.Notification) predicate.User

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

func HasNotificationsRead

func HasNotificationsRead() predicate.User

HasNotificationsRead applies the HasEdge predicate on the "notifications_read" edge.

func HasNotificationsReadWith

func HasNotificationsReadWith(preds ...predicate.Notification) predicate.User

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

func HasNotificationsWith

func HasNotificationsWith(preds ...predicate.Notification) predicate.User

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

func HasOtp

func HasOtp() predicate.User

HasOtp applies the HasEdge predicate on the "otp" edge.

func HasOtpWith

func HasOtpWith(preds ...predicate.Otp) predicate.User

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

func HasOwnedChats

func HasOwnedChats() predicate.User

HasOwnedChats applies the HasEdge predicate on the "owned_chats" edge.

func HasOwnedChatsWith

func HasOwnedChatsWith(preds ...predicate.Chat) predicate.User

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

func HasPosts

func HasPosts() predicate.User

HasPosts applies the HasEdge predicate on the "posts" edge.

func HasPostsWith

func HasPostsWith(preds ...predicate.Post) predicate.User

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

func HasReactions

func HasReactions() predicate.User

HasReactions applies the HasEdge predicate on the "reactions" edge.

func HasReactionsWith

func HasReactionsWith(preds ...predicate.Reaction) predicate.User

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

func HasReplies

func HasReplies() predicate.User

HasReplies applies the HasEdge predicate on the "replies" edge.

func HasRepliesWith

func HasRepliesWith(preds ...predicate.Reply) predicate.User

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

func HasRequesteeFriends

func HasRequesteeFriends() predicate.User

HasRequesteeFriends applies the HasEdge predicate on the "requestee_friends" edge.

func HasRequesteeFriendsWith

func HasRequesteeFriendsWith(preds ...predicate.Friend) predicate.User

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

func HasRequesterFriends

func HasRequesterFriends() predicate.User

HasRequesterFriends applies the HasEdge predicate on the "requester_friends" edge.

func HasRequesterFriendsWith

func HasRequesterFriendsWith(preds ...predicate.Friend) predicate.User

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

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) 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 IsEmailVerified

func IsEmailVerified(v bool) predicate.User

IsEmailVerified applies equality check predicate on the "is_email_verified" field. It's identical to IsEmailVerifiedEQ.

func IsEmailVerifiedEQ

func IsEmailVerifiedEQ(v bool) predicate.User

IsEmailVerifiedEQ applies the EQ predicate on the "is_email_verified" field.

func IsEmailVerifiedNEQ

func IsEmailVerifiedNEQ(v bool) predicate.User

IsEmailVerifiedNEQ applies the NEQ predicate on the "is_email_verified" field.

func IsStaff

func IsStaff(v bool) predicate.User

IsStaff applies equality check predicate on the "is_staff" field. It's identical to IsStaffEQ.

func IsStaffEQ

func IsStaffEQ(v bool) predicate.User

IsStaffEQ applies the EQ predicate on the "is_staff" field.

func IsStaffNEQ

func IsStaffNEQ(v bool) predicate.User

IsStaffNEQ applies the NEQ predicate on the "is_staff" field.

func LastName

func LastName(v string) predicate.User

LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.User

LastNameContains applies the Contains predicate on the "last_name" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.User

LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.

func LastNameEQ

func LastNameEQ(v string) predicate.User

LastNameEQ applies the EQ predicate on the "last_name" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.User

LastNameEqualFold applies the EqualFold predicate on the "last_name" field.

func LastNameGT

func LastNameGT(v string) predicate.User

LastNameGT applies the GT predicate on the "last_name" field.

func LastNameGTE

func LastNameGTE(v string) predicate.User

LastNameGTE applies the GTE predicate on the "last_name" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.User

LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.User

LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.

func LastNameIn

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

LastNameIn applies the In predicate on the "last_name" field.

func LastNameLT

func LastNameLT(v string) predicate.User

LastNameLT applies the LT predicate on the "last_name" field.

func LastNameLTE

func LastNameLTE(v string) predicate.User

LastNameLTE applies the LTE predicate on the "last_name" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.User

LastNameNEQ applies the NEQ predicate on the "last_name" field.

func LastNameNotIn

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

LastNameNotIn applies the NotIn predicate on the "last_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 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 Refresh

func Refresh(v string) predicate.User

Refresh applies equality check predicate on the "refresh" field. It's identical to RefreshEQ.

func RefreshContains

func RefreshContains(v string) predicate.User

RefreshContains applies the Contains predicate on the "refresh" field.

func RefreshContainsFold

func RefreshContainsFold(v string) predicate.User

RefreshContainsFold applies the ContainsFold predicate on the "refresh" field.

func RefreshEQ

func RefreshEQ(v string) predicate.User

RefreshEQ applies the EQ predicate on the "refresh" field.

func RefreshEqualFold

func RefreshEqualFold(v string) predicate.User

RefreshEqualFold applies the EqualFold predicate on the "refresh" field.

func RefreshGT

func RefreshGT(v string) predicate.User

RefreshGT applies the GT predicate on the "refresh" field.

func RefreshGTE

func RefreshGTE(v string) predicate.User

RefreshGTE applies the GTE predicate on the "refresh" field.

func RefreshHasPrefix

func RefreshHasPrefix(v string) predicate.User

RefreshHasPrefix applies the HasPrefix predicate on the "refresh" field.

func RefreshHasSuffix

func RefreshHasSuffix(v string) predicate.User

RefreshHasSuffix applies the HasSuffix predicate on the "refresh" field.

func RefreshIn

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

RefreshIn applies the In predicate on the "refresh" field.

func RefreshIsNil

func RefreshIsNil() predicate.User

RefreshIsNil applies the IsNil predicate on the "refresh" field.

func RefreshLT

func RefreshLT(v string) predicate.User

RefreshLT applies the LT predicate on the "refresh" field.

func RefreshLTE

func RefreshLTE(v string) predicate.User

RefreshLTE applies the LTE predicate on the "refresh" field.

func RefreshNEQ

func RefreshNEQ(v string) predicate.User

RefreshNEQ applies the NEQ predicate on the "refresh" field.

func RefreshNotIn

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

RefreshNotIn applies the NotIn predicate on the "refresh" field.

func RefreshNotNil

func RefreshNotNil() predicate.User

RefreshNotNil applies the NotNil predicate on the "refresh" field.

func TermsAgreement

func TermsAgreement(v bool) predicate.User

TermsAgreement applies equality check predicate on the "terms_agreement" field. It's identical to TermsAgreementEQ.

func TermsAgreementEQ

func TermsAgreementEQ(v bool) predicate.User

TermsAgreementEQ applies the EQ predicate on the "terms_agreement" field.

func TermsAgreementNEQ

func TermsAgreementNEQ(v bool) predicate.User

TermsAgreementNEQ applies the NEQ predicate on the "terms_agreement" 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 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 Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

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

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

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

UsernameNotIn applies the NotIn predicate on the "username" 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 User queries.

func ByAccess

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

ByAccess orders the results by the access field.

func ByAvatarField

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

ByAvatarField orders the results by avatar field.

func ByAvatarID

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

ByAvatarID orders the results by the avatar_id field.

func ByBio

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

ByBio orders the results by the bio field.

func ByCityField

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

ByCityField orders the results by city field.

func ByCityID

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

ByCityID orders the results by the city_id field.

func ByComments

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

ByComments orders the results by comments terms.

func ByCommentsCount

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

ByCommentsCount orders the results by comments count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDob

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

ByDob orders the results by the dob field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByFirstName

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

ByFirstName orders the results by the first_name 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 ByIsEmailVerified

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

ByIsEmailVerified orders the results by the is_email_verified field.

func ByIsStaff

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

ByIsStaff orders the results by the is_staff field.

func ByLastName

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

ByLastName orders the results by the last_name field.

func ByMemberChats

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

ByMemberChats orders the results by member_chats terms.

func ByMemberChatsCount

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

ByMemberChatsCount orders the results by member_chats count.

func ByMessages

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

ByMessages orders the results by messages terms.

func ByMessagesCount

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

ByMessagesCount orders the results by messages count.

func ByNotifications

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

ByNotifications orders the results by notifications terms.

func ByNotificationsCount

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

ByNotificationsCount orders the results by notifications count.

func ByNotificationsFrom

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

ByNotificationsFrom orders the results by notifications_from terms.

func ByNotificationsFromCount

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

ByNotificationsFromCount orders the results by notifications_from count.

func ByNotificationsRead

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

ByNotificationsRead orders the results by notifications_read terms.

func ByNotificationsReadCount

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

ByNotificationsReadCount orders the results by notifications_read count.

func ByOtpField

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

ByOtpField orders the results by otp field.

func ByOwnedChats

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

ByOwnedChats orders the results by owned_chats terms.

func ByOwnedChatsCount

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

ByOwnedChatsCount orders the results by owned_chats count.

func ByPassword

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

ByPassword orders the results by the password field.

func ByPosts

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

ByPosts orders the results by posts terms.

func ByPostsCount

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

ByPostsCount orders the results by posts count.

func ByReactions

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

ByReactions orders the results by reactions terms.

func ByReactionsCount

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

ByReactionsCount orders the results by reactions count.

func ByRefresh

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

ByRefresh orders the results by the refresh field.

func ByReplies

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

ByReplies orders the results by replies terms.

func ByRepliesCount

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

ByRepliesCount orders the results by replies count.

func ByRequesteeFriends

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

ByRequesteeFriends orders the results by requestee_friends terms.

func ByRequesteeFriendsCount

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

ByRequesteeFriendsCount orders the results by requestee_friends count.

func ByRequesterFriends

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

ByRequesterFriends orders the results by requester_friends terms.

func ByRequesterFriendsCount

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

ByRequesterFriendsCount orders the results by requester_friends count.

func ByTermsAgreement

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

ByTermsAgreement orders the results by the terms_agreement field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUsername

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

ByUsername orders the results by the username field.

Jump to

Keyboard shortcuts

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