Documentation
¶
Index ¶
- Constants
- Variables
- func Access(v string) predicate.User
- func AccessContains(v string) predicate.User
- func AccessContainsFold(v string) predicate.User
- func AccessEQ(v string) predicate.User
- func AccessEqualFold(v string) predicate.User
- func AccessGT(v string) predicate.User
- func AccessGTE(v string) predicate.User
- func AccessHasPrefix(v string) predicate.User
- func AccessHasSuffix(v string) predicate.User
- func AccessIn(vs ...string) predicate.User
- func AccessIsNil() predicate.User
- func AccessLT(v string) predicate.User
- func AccessLTE(v string) predicate.User
- func AccessNEQ(v string) predicate.User
- func AccessNotIn(vs ...string) predicate.User
- func AccessNotNil() predicate.User
- func And(predicates ...predicate.User) predicate.User
- func AvatarID(v uuid.UUID) predicate.User
- func AvatarIDEQ(v uuid.UUID) predicate.User
- func AvatarIDIn(vs ...uuid.UUID) predicate.User
- func AvatarIDIsNil() predicate.User
- func AvatarIDNEQ(v uuid.UUID) predicate.User
- func AvatarIDNotIn(vs ...uuid.UUID) predicate.User
- func AvatarIDNotNil() 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 CityID(v uuid.UUID) predicate.User
- func CityIDEQ(v uuid.UUID) predicate.User
- func CityIDIn(vs ...uuid.UUID) predicate.User
- func CityIDIsNil() predicate.User
- func CityIDNEQ(v uuid.UUID) predicate.User
- func CityIDNotIn(vs ...uuid.UUID) predicate.User
- func CityIDNotNil() 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 Dob(v time.Time) predicate.User
- func DobEQ(v time.Time) predicate.User
- func DobGT(v time.Time) predicate.User
- func DobGTE(v time.Time) predicate.User
- func DobIn(vs ...time.Time) predicate.User
- func DobIsNil() predicate.User
- func DobLT(v time.Time) predicate.User
- func DobLTE(v time.Time) predicate.User
- func DobNEQ(v time.Time) predicate.User
- func DobNotIn(vs ...time.Time) predicate.User
- func DobNotNil() 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 EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func HasAvatar() predicate.User
- func HasAvatarWith(preds ...predicate.File) predicate.User
- func HasCity() predicate.User
- func HasCityWith(preds ...predicate.City) predicate.User
- func HasComments() predicate.User
- func HasCommentsWith(preds ...predicate.Comment) predicate.User
- func HasMemberChats() predicate.User
- func HasMemberChatsWith(preds ...predicate.Chat) predicate.User
- func HasMessages() predicate.User
- func HasMessagesWith(preds ...predicate.Message) predicate.User
- func HasNotifications() predicate.User
- func HasNotificationsFrom() predicate.User
- func HasNotificationsFromWith(preds ...predicate.Notification) predicate.User
- func HasNotificationsRead() predicate.User
- func HasNotificationsReadWith(preds ...predicate.Notification) predicate.User
- func HasNotificationsWith(preds ...predicate.Notification) predicate.User
- func HasOtp() predicate.User
- func HasOtpWith(preds ...predicate.Otp) predicate.User
- func HasOwnedChats() predicate.User
- func HasOwnedChatsWith(preds ...predicate.Chat) predicate.User
- func HasPosts() predicate.User
- func HasPostsWith(preds ...predicate.Post) predicate.User
- func HasReactions() predicate.User
- func HasReactionsWith(preds ...predicate.Reaction) predicate.User
- func HasReplies() predicate.User
- func HasRepliesWith(preds ...predicate.Reply) predicate.User
- func HasRequesteeFriends() predicate.User
- func HasRequesteeFriendsWith(preds ...predicate.Friend) predicate.User
- func HasRequesterFriends() predicate.User
- func HasRequesterFriendsWith(preds ...predicate.Friend) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func IsActive(v bool) predicate.User
- func IsActiveEQ(v bool) predicate.User
- func IsActiveNEQ(v bool) predicate.User
- func IsEmailVerified(v bool) predicate.User
- func IsEmailVerifiedEQ(v bool) predicate.User
- func IsEmailVerifiedNEQ(v bool) predicate.User
- func IsStaff(v bool) predicate.User
- func IsStaffEQ(v bool) predicate.User
- func IsStaffNEQ(v bool) predicate.User
- func LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(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 PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func Refresh(v string) predicate.User
- func RefreshContains(v string) predicate.User
- func RefreshContainsFold(v string) predicate.User
- func RefreshEQ(v string) predicate.User
- func RefreshEqualFold(v string) predicate.User
- func RefreshGT(v string) predicate.User
- func RefreshGTE(v string) predicate.User
- func RefreshHasPrefix(v string) predicate.User
- func RefreshHasSuffix(v string) predicate.User
- func RefreshIn(vs ...string) predicate.User
- func RefreshIsNil() predicate.User
- func RefreshLT(v string) predicate.User
- func RefreshLTE(v string) predicate.User
- func RefreshNEQ(v string) predicate.User
- func RefreshNotIn(vs ...string) predicate.User
- func RefreshNotNil() predicate.User
- func TermsAgreement(v bool) predicate.User
- func TermsAgreementEQ(v bool) predicate.User
- func TermsAgreementNEQ(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 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 Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccess(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAvatarID(opts ...sql.OrderTermOption) OrderOption
- func ByBio(opts ...sql.OrderTermOption) OrderOption
- func ByCityField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCityID(opts ...sql.OrderTermOption) OrderOption
- func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDob(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsActive(opts ...sql.OrderTermOption) OrderOption
- func ByIsEmailVerified(opts ...sql.OrderTermOption) OrderOption
- func ByIsStaff(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByMemberChats(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMemberChatsCount(opts ...sql.OrderTermOption) OrderOption
- func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByNotifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotificationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByNotificationsFrom(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotificationsFromCount(opts ...sql.OrderTermOption) OrderOption
- func ByNotificationsRead(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotificationsReadCount(opts ...sql.OrderTermOption) OrderOption
- func ByOtpField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnedChats(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnedChatsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByReactions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByReactionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRefresh(opts ...sql.OrderTermOption) OrderOption
- func ByReplies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRepliesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRequesteeFriends(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRequesteeFriendsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRequesterFriends(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRequesterFriendsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTermsAgreement(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
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" // 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 ¶
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"} )
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldFirstName, FieldLastName, FieldUsername, FieldEmail, FieldPassword, FieldTermsAgreement, FieldIsEmailVerified, FieldIsStaff, FieldIsActive, FieldBio, FieldDob, FieldAccess, FieldRefresh, FieldCityID, FieldAvatarID, }
Columns holds all SQL columns for user fields.
Functions ¶
func Access ¶
Access applies equality check predicate on the "access" field. It's identical to AccessEQ.
func AccessContains ¶
AccessContains applies the Contains predicate on the "access" field.
func AccessContainsFold ¶
AccessContainsFold applies the ContainsFold predicate on the "access" field.
func AccessEqualFold ¶
AccessEqualFold applies the EqualFold predicate on the "access" field.
func AccessHasPrefix ¶
AccessHasPrefix applies the HasPrefix predicate on the "access" field.
func AccessHasSuffix ¶
AccessHasSuffix applies the HasSuffix predicate on the "access" field.
func AccessIsNil ¶
AccessIsNil applies the IsNil predicate on the "access" field.
func AccessNotIn ¶
AccessNotIn applies the NotIn predicate on the "access" field.
func AccessNotNil ¶
AccessNotNil applies the NotNil predicate on the "access" field.
func AvatarID ¶
AvatarID applies equality check predicate on the "avatar_id" field. It's identical to AvatarIDEQ.
func AvatarIDEQ ¶
AvatarIDEQ applies the EQ predicate on the "avatar_id" field.
func AvatarIDIn ¶
AvatarIDIn applies the In predicate on the "avatar_id" field.
func AvatarIDIsNil ¶
AvatarIDIsNil applies the IsNil predicate on the "avatar_id" field.
func AvatarIDNEQ ¶
AvatarIDNEQ applies the NEQ predicate on the "avatar_id" field.
func AvatarIDNotIn ¶
AvatarIDNotIn applies the NotIn predicate on the "avatar_id" field.
func AvatarIDNotNil ¶
AvatarIDNotNil applies the NotNil predicate on the "avatar_id" field.
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 CityID ¶
CityID applies equality check predicate on the "city_id" field. It's identical to CityIDEQ.
func CityIDIsNil ¶
CityIDIsNil applies the IsNil predicate on the "city_id" field.
func CityIDNotIn ¶
CityIDNotIn applies the NotIn predicate on the "city_id" field.
func CityIDNotNil ¶
CityIDNotNil applies the NotNil predicate on the "city_id" 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 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 EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func HasAvatarWith ¶
HasAvatarWith applies the HasEdge predicate on the "avatar" edge with a given conditions (other predicates).
func HasCityWith ¶
HasCityWith applies the HasEdge predicate on the "city" edge with a given conditions (other predicates).
func HasComments ¶
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func HasMemberChats ¶
HasMemberChats applies the HasEdge predicate on the "member_chats" edge.
func HasMemberChatsWith ¶
HasMemberChatsWith applies the HasEdge predicate on the "member_chats" edge with a given conditions (other predicates).
func HasMessages ¶
HasMessages applies the HasEdge predicate on the "messages" edge.
func HasMessagesWith ¶
HasMessagesWith applies the HasEdge predicate on the "messages" edge with a given conditions (other predicates).
func HasNotifications ¶
HasNotifications applies the HasEdge predicate on the "notifications" edge.
func HasNotificationsFrom ¶
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 ¶
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 HasOtpWith ¶
HasOtpWith applies the HasEdge predicate on the "otp" edge with a given conditions (other predicates).
func HasOwnedChats ¶
HasOwnedChats applies the HasEdge predicate on the "owned_chats" edge.
func HasOwnedChatsWith ¶
HasOwnedChatsWith applies the HasEdge predicate on the "owned_chats" edge with a given conditions (other predicates).
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
func HasReactions ¶
HasReactions applies the HasEdge predicate on the "reactions" edge.
func HasReactionsWith ¶
HasReactionsWith applies the HasEdge predicate on the "reactions" edge with a given conditions (other predicates).
func HasReplies ¶
HasReplies applies the HasEdge predicate on the "replies" edge.
func HasRepliesWith ¶
HasRepliesWith applies the HasEdge predicate on the "replies" edge with a given conditions (other predicates).
func HasRequesteeFriends ¶
HasRequesteeFriends applies the HasEdge predicate on the "requestee_friends" edge.
func HasRequesteeFriendsWith ¶
HasRequesteeFriendsWith applies the HasEdge predicate on the "requestee_friends" edge with a given conditions (other predicates).
func HasRequesterFriends ¶
HasRequesterFriends applies the HasEdge predicate on the "requester_friends" edge.
func HasRequesterFriendsWith ¶
HasRequesterFriendsWith applies the HasEdge predicate on the "requester_friends" 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 IsEmailVerified ¶
IsEmailVerified applies equality check predicate on the "is_email_verified" field. It's identical to IsEmailVerifiedEQ.
func IsEmailVerifiedEQ ¶
IsEmailVerifiedEQ applies the EQ predicate on the "is_email_verified" field.
func IsEmailVerifiedNEQ ¶
IsEmailVerifiedNEQ applies the NEQ predicate on the "is_email_verified" field.
func IsStaff ¶
IsStaff applies equality check predicate on the "is_staff" field. It's identical to IsStaffEQ.
func IsStaffNEQ ¶
IsStaffNEQ applies the NEQ predicate on the "is_staff" field.
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_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 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 Refresh ¶
Refresh applies equality check predicate on the "refresh" field. It's identical to RefreshEQ.
func RefreshContains ¶
RefreshContains applies the Contains predicate on the "refresh" field.
func RefreshContainsFold ¶
RefreshContainsFold applies the ContainsFold predicate on the "refresh" field.
func RefreshEqualFold ¶
RefreshEqualFold applies the EqualFold predicate on the "refresh" field.
func RefreshGTE ¶
RefreshGTE applies the GTE predicate on the "refresh" field.
func RefreshHasPrefix ¶
RefreshHasPrefix applies the HasPrefix predicate on the "refresh" field.
func RefreshHasSuffix ¶
RefreshHasSuffix applies the HasSuffix predicate on the "refresh" field.
func RefreshIsNil ¶
RefreshIsNil applies the IsNil predicate on the "refresh" field.
func RefreshLTE ¶
RefreshLTE applies the LTE predicate on the "refresh" field.
func RefreshNEQ ¶
RefreshNEQ applies the NEQ predicate on the "refresh" field.
func RefreshNotIn ¶
RefreshNotIn applies the NotIn predicate on the "refresh" field.
func RefreshNotNil ¶
RefreshNotNil applies the NotNil predicate on the "refresh" field.
func TermsAgreement ¶
TermsAgreement applies equality check predicate on the "terms_agreement" field. It's identical to TermsAgreementEQ.
func TermsAgreementEQ ¶
TermsAgreementEQ applies the EQ predicate on the "terms_agreement" field.
func TermsAgreementNEQ ¶
TermsAgreementNEQ applies the NEQ predicate on the "terms_agreement" 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 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 Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.