Documentation ¶
Index ¶
- Constants
- Variables
- func Age(v int) predicate.User
- func AgeEQ(v int) predicate.User
- func AgeGT(v int) predicate.User
- func AgeGTE(v int) predicate.User
- func AgeIn(vs ...int) predicate.User
- func AgeLT(v int) predicate.User
- func AgeLTE(v int) predicate.User
- func AgeNEQ(v int) predicate.User
- func AgeNotIn(vs ...int) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func HasCard() predicate.User
- func HasCardWith(preds ...predicate.Card) predicate.User
- func HasChildren() predicate.User
- func HasChildrenWith(preds ...predicate.User) predicate.User
- func HasFiles() predicate.User
- func HasFilesWith(preds ...predicate.File) predicate.User
- func HasFollowers() predicate.User
- func HasFollowersWith(preds ...predicate.User) predicate.User
- func HasFollowing() predicate.User
- func HasFollowingWith(preds ...predicate.User) predicate.User
- func HasFriends() predicate.User
- func HasFriendsWith(preds ...predicate.User) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) predicate.User
- func HasParent() predicate.User
- func HasParentWith(preds ...predicate.User) predicate.User
- func HasPets() predicate.User
- func HasPetsWith(preds ...predicate.Pet) predicate.User
- func HasSpouse() predicate.User
- func HasSpouseWith(preds ...predicate.User) predicate.User
- func HasTeam() predicate.User
- func HasTeamWith(preds ...predicate.Pet) predicate.User
- func ID(id string) predicate.User
- func IDEQ(id string) predicate.User
- func IDGT(id string) predicate.User
- func IDGTE(id string) predicate.User
- func IDIn(ids ...string) predicate.User
- func IDLT(id string) predicate.User
- func IDLTE(id string) predicate.User
- func IDNEQ(id string) predicate.User
- func IDNotIn(ids ...string) predicate.User
- func Last(v string) predicate.User
- func LastContains(v string) predicate.User
- func LastEQ(v string) predicate.User
- func LastGT(v string) predicate.User
- func LastGTE(v string) predicate.User
- func LastHasPrefix(v string) predicate.User
- func LastHasSuffix(v string) predicate.User
- func LastIn(vs ...string) predicate.User
- func LastLT(v string) predicate.User
- func LastLTE(v string) predicate.User
- func LastNEQ(v string) predicate.User
- func LastNotIn(vs ...string) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Nickname(v string) predicate.User
- func NicknameContains(v string) predicate.User
- func NicknameEQ(v string) predicate.User
- func NicknameGT(v string) predicate.User
- func NicknameGTE(v string) predicate.User
- func NicknameHasPrefix(v string) predicate.User
- func NicknameHasSuffix(v string) predicate.User
- func NicknameIn(vs ...string) predicate.User
- func NicknameIsNil() predicate.User
- func NicknameLT(v string) predicate.User
- func NicknameLTE(v string) predicate.User
- func NicknameNEQ(v string) predicate.User
- func NicknameNotIn(vs ...string) predicate.User
- func NicknameNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func OptionalInt(v int) predicate.User
- func OptionalIntEQ(v int) predicate.User
- func OptionalIntGT(v int) predicate.User
- func OptionalIntGTE(v int) predicate.User
- func OptionalIntIn(vs ...int) predicate.User
- func OptionalIntIsNil() predicate.User
- func OptionalIntLT(v int) predicate.User
- func OptionalIntLTE(v int) predicate.User
- func OptionalIntNEQ(v int) predicate.User
- func OptionalIntNotIn(vs ...int) predicate.User
- func OptionalIntNotNil() predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordIsNil() predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PasswordNotNil() predicate.User
- func Phone(v string) predicate.User
- func PhoneContains(v string) predicate.User
- func PhoneEQ(v string) predicate.User
- func PhoneGT(v string) predicate.User
- func PhoneGTE(v string) predicate.User
- func PhoneHasPrefix(v string) predicate.User
- func PhoneHasSuffix(v string) predicate.User
- func PhoneIn(vs ...string) predicate.User
- func PhoneIsNil() predicate.User
- func PhoneLT(v string) predicate.User
- func PhoneLTE(v string) predicate.User
- func PhoneNEQ(v string) predicate.User
- func PhoneNotIn(vs ...string) predicate.User
- func PhoneNotNil() predicate.User
- func RoleEQ(v Role) predicate.User
- func RoleIn(vs ...Role) predicate.User
- func RoleNEQ(v Role) predicate.User
- func RoleNotIn(vs ...Role) predicate.User
- func RoleValidator(r Role) error
- func SSOCert(v string) predicate.User
- func SSOCertContains(v string) predicate.User
- func SSOCertEQ(v string) predicate.User
- func SSOCertGT(v string) predicate.User
- func SSOCertGTE(v string) predicate.User
- func SSOCertHasPrefix(v string) predicate.User
- func SSOCertHasSuffix(v string) predicate.User
- func SSOCertIn(vs ...string) predicate.User
- func SSOCertIsNil() predicate.User
- func SSOCertLT(v string) predicate.User
- func SSOCertLTE(v string) predicate.User
- func SSOCertNEQ(v string) predicate.User
- func SSOCertNotIn(vs ...string) predicate.User
- func SSOCertNotNil() predicate.User
- type Role
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" // FieldOptionalInt holds the string denoting the optional_int field in the database. FieldOptionalInt = "optional_int" // FieldAge holds the string denoting the age field in the database. FieldAge = "age" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldLast holds the string denoting the last field in the database. FieldLast = "last" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldSSOCert holds the string denoting the ssocert field in the database. FieldSSOCert = "sso_cert" // EdgeCard holds the string denoting the card edge name in mutations. EdgeCard = "card" // EdgePets holds the string denoting the pets edge name in mutations. EdgePets = "pets" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeFriends holds the string denoting the friends edge name in mutations. EdgeFriends = "friends" // EdgeFollowers holds the string denoting the followers edge name in mutations. EdgeFollowers = "followers" // EdgeFollowing holds the string denoting the following edge name in mutations. EdgeFollowing = "following" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // EdgeSpouse holds the string denoting the spouse edge name in mutations. EdgeSpouse = "spouse" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // CardLabel holds the string label denoting the card edge type in the database. CardLabel = "user_card" // PetsLabel holds the string label denoting the pets edge type in the database. PetsLabel = "user_pets" // FilesLabel holds the string label denoting the files edge type in the database. FilesLabel = "user_files" // GroupsLabel holds the string label denoting the groups edge type in the database. GroupsLabel = "user_groups" // FriendsLabel holds the string label denoting the friends edge type in the database. FriendsLabel = "user_friends" // FollowersInverseLabel holds the string label denoting the followers inverse edge type in the database. FollowersInverseLabel = "user_following" // FollowingLabel holds the string label denoting the following edge type in the database. FollowingLabel = "user_following" // TeamLabel holds the string label denoting the team edge type in the database. TeamLabel = "user_team" // SpouseLabel holds the string label denoting the spouse edge type in the database. SpouseLabel = "user_spouse" // ChildrenInverseLabel holds the string label denoting the children inverse edge type in the database. ChildrenInverseLabel = "user_parent" // ParentLabel holds the string label denoting the parent edge type in the database. ParentLabel = "user_parent" )
const DefaultRole = RoleUser
RoleUser is the default Role.
Variables ¶
var ( // OptionalIntValidator is a validator for the "optional_int" field. It is called by the builders before save. OptionalIntValidator func(int) error // DefaultLast holds the default value on creation for the last field. DefaultLast string )
Functions ¶
func HasCardWith ¶
HasCardWith applies the HasEdge predicate on the "card" edge with a given conditions (other predicates).
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasFollowers ¶
HasFollowers applies the HasEdge predicate on the "followers" edge.
func HasFollowersWith ¶
HasFollowersWith applies the HasEdge predicate on the "followers" edge with a given conditions (other predicates).
func HasFollowing ¶
HasFollowing applies the HasEdge predicate on the "following" edge.
func HasFollowingWith ¶
HasFollowingWith applies the HasEdge predicate on the "following" edge with a given conditions (other predicates).
func HasFriends ¶
HasFriends applies the HasEdge predicate on the "friends" edge.
func HasFriendsWith ¶
HasFriendsWith applies the HasEdge predicate on the "friends" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasPetsWith ¶
HasPetsWith applies the HasEdge predicate on the "pets" edge with a given conditions (other predicates).
func HasSpouseWith ¶
HasSpouseWith applies the HasEdge predicate on the "spouse" edge with a given conditions (other predicates).
func HasTeamWith ¶
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
func LastContains ¶
LastContains applies the Contains predicate on the "last" field.
func LastHasPrefix ¶
LastHasPrefix applies the HasPrefix predicate on the "last" field.
func LastHasSuffix ¶
LastHasSuffix applies the HasSuffix predicate on the "last" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameIsNil ¶
NicknameIsNil applies the IsNil predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func NicknameNotNil ¶
NicknameNotNil applies the NotNil predicate on the "nickname" field.
func OptionalInt ¶
OptionalInt applies equality check predicate on the "optional_int" field. It's identical to OptionalIntEQ.
func OptionalIntEQ ¶
OptionalIntEQ applies the EQ predicate on the "optional_int" field.
func OptionalIntGT ¶
OptionalIntGT applies the GT predicate on the "optional_int" field.
func OptionalIntGTE ¶
OptionalIntGTE applies the GTE predicate on the "optional_int" field.
func OptionalIntIn ¶
OptionalIntIn applies the In predicate on the "optional_int" field.
func OptionalIntIsNil ¶
OptionalIntIsNil applies the IsNil predicate on the "optional_int" field.
func OptionalIntLT ¶
OptionalIntLT applies the LT predicate on the "optional_int" field.
func OptionalIntLTE ¶
OptionalIntLTE applies the LTE predicate on the "optional_int" field.
func OptionalIntNEQ ¶
OptionalIntNEQ applies the NEQ predicate on the "optional_int" field.
func OptionalIntNotIn ¶
OptionalIntNotIn applies the NotIn predicate on the "optional_int" field.
func OptionalIntNotNil ¶
OptionalIntNotNil applies the NotNil predicate on the "optional_int" 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 PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func SSOCert ¶
SSOCert applies equality check predicate on the "SSOCert" field. It's identical to SSOCertEQ.
func SSOCertContains ¶
SSOCertContains applies the Contains predicate on the "SSOCert" field.
func SSOCertGTE ¶
SSOCertGTE applies the GTE predicate on the "SSOCert" field.
func SSOCertHasPrefix ¶
SSOCertHasPrefix applies the HasPrefix predicate on the "SSOCert" field.
func SSOCertHasSuffix ¶
SSOCertHasSuffix applies the HasSuffix predicate on the "SSOCert" field.
func SSOCertIsNil ¶
SSOCertIsNil applies the IsNil predicate on the "SSOCert" field.
func SSOCertLTE ¶
SSOCertLTE applies the LTE predicate on the "SSOCert" field.
func SSOCertNEQ ¶
SSOCertNEQ applies the NEQ predicate on the "SSOCert" field.
func SSOCertNotIn ¶
SSOCertNotIn applies the NotIn predicate on the "SSOCert" field.
func SSOCertNotNil ¶
SSOCertNotNil applies the NotNil predicate on the "SSOCert" field.