user

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: Apache-2.0 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"
	// 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"
)
View Source
const DefaultRole = RoleUser

RoleUser is the default Role.

Variables

View Source
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 Age

func Age(v int) predicate.User

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v int) predicate.User

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v int) predicate.User

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v int) predicate.User

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

func AgeIn(vs ...int) predicate.User

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v int) predicate.User

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v int) predicate.User

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v int) predicate.User

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

func AgeNotIn(vs ...int) predicate.User

AgeNotIn applies the NotIn predicate on the "age" field.

func And

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

And groups list of predicates with the AND operator between them.

func HasCard

func HasCard() predicate.User

HasCard applies the HasEdge predicate on the "card" edge.

func HasCardWith

func HasCardWith(preds ...predicate.Card) predicate.User

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

func HasChildren

func HasChildren() predicate.User

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.User) predicate.User

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

func HasFiles

func HasFiles() predicate.User

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith

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

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

func HasFollowers

func HasFollowers() predicate.User

HasFollowers applies the HasEdge predicate on the "followers" edge.

func HasFollowersWith

func HasFollowersWith(preds ...predicate.User) predicate.User

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

func HasFollowing

func HasFollowing() predicate.User

HasFollowing applies the HasEdge predicate on the "following" edge.

func HasFollowingWith

func HasFollowingWith(preds ...predicate.User) predicate.User

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

func HasFriends

func HasFriends() predicate.User

HasFriends applies the HasEdge predicate on the "friends" edge.

func HasFriendsWith

func HasFriendsWith(preds ...predicate.User) predicate.User

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

func HasGroups

func HasGroups() predicate.User

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.User

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

func HasParent

func HasParent() predicate.User

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.User) predicate.User

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

func HasPets

func HasPets() predicate.User

HasPets applies the HasEdge predicate on the "pets" edge.

func HasPetsWith

func HasPetsWith(preds ...predicate.Pet) predicate.User

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

func HasSpouse

func HasSpouse() predicate.User

HasSpouse applies the HasEdge predicate on the "spouse" edge.

func HasSpouseWith

func HasSpouseWith(preds ...predicate.User) predicate.User

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

func HasTeam

func HasTeam() predicate.User

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith

func HasTeamWith(preds ...predicate.Pet) predicate.User

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

func ID

func ID(id string) predicate.User

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Last

func Last(v string) predicate.User

Last applies equality check predicate on the "last" field. It's identical to LastEQ.

func LastContains

func LastContains(v string) predicate.User

LastContains applies the Contains predicate on the "last" field.

func LastEQ

func LastEQ(v string) predicate.User

LastEQ applies the EQ predicate on the "last" field.

func LastGT

func LastGT(v string) predicate.User

LastGT applies the GT predicate on the "last" field.

func LastGTE

func LastGTE(v string) predicate.User

LastGTE applies the GTE predicate on the "last" field.

func LastHasPrefix

func LastHasPrefix(v string) predicate.User

LastHasPrefix applies the HasPrefix predicate on the "last" field.

func LastHasSuffix

func LastHasSuffix(v string) predicate.User

LastHasSuffix applies the HasSuffix predicate on the "last" field.

func LastIn

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

LastIn applies the In predicate on the "last" field.

func LastLT

func LastLT(v string) predicate.User

LastLT applies the LT predicate on the "last" field.

func LastLTE

func LastLTE(v string) predicate.User

LastLTE applies the LTE predicate on the "last" field.

func LastNEQ

func LastNEQ(v string) predicate.User

LastNEQ applies the NEQ predicate on the "last" field.

func LastNotIn

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

LastNotIn applies the NotIn predicate on the "last" field.

func Name

func Name(v string) predicate.User

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

func NameContains

func NameContains(v string) predicate.User

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

func NameEQ

func NameEQ(v string) predicate.User

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

func NameGT

func NameGT(v string) predicate.User

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

func NameGTE

func NameGTE(v string) predicate.User

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.User

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

func NameLTE

func NameLTE(v string) predicate.User

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

func NameNEQ

func NameNEQ(v string) predicate.User

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

func NameNotIn

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

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

func Nickname

func Nickname(v string) predicate.User

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains

func NicknameContains(v string) predicate.User

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.User

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameGT

func NicknameGT(v string) predicate.User

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE

func NicknameGTE(v string) predicate.User

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.User

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.User

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn

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

NicknameIn applies the In predicate on the "nickname" field.

func NicknameIsNil

func NicknameIsNil() predicate.User

NicknameIsNil applies the IsNil predicate on the "nickname" field.

func NicknameLT

func NicknameLT(v string) predicate.User

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE

func NicknameLTE(v string) predicate.User

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ

func NicknameNEQ(v string) predicate.User

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn

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

NicknameNotIn applies the NotIn predicate on the "nickname" field.

func NicknameNotNil

func NicknameNotNil() predicate.User

NicknameNotNil applies the NotNil predicate on the "nickname" field.

func Not

Not applies the not operator on the given predicate.

func OptionalInt

func OptionalInt(v int) predicate.User

OptionalInt applies equality check predicate on the "optional_int" field. It's identical to OptionalIntEQ.

func OptionalIntEQ

func OptionalIntEQ(v int) predicate.User

OptionalIntEQ applies the EQ predicate on the "optional_int" field.

func OptionalIntGT

func OptionalIntGT(v int) predicate.User

OptionalIntGT applies the GT predicate on the "optional_int" field.

func OptionalIntGTE

func OptionalIntGTE(v int) predicate.User

OptionalIntGTE applies the GTE predicate on the "optional_int" field.

func OptionalIntIn

func OptionalIntIn(vs ...int) predicate.User

OptionalIntIn applies the In predicate on the "optional_int" field.

func OptionalIntIsNil

func OptionalIntIsNil() predicate.User

OptionalIntIsNil applies the IsNil predicate on the "optional_int" field.

func OptionalIntLT

func OptionalIntLT(v int) predicate.User

OptionalIntLT applies the LT predicate on the "optional_int" field.

func OptionalIntLTE

func OptionalIntLTE(v int) predicate.User

OptionalIntLTE applies the LTE predicate on the "optional_int" field.

func OptionalIntNEQ

func OptionalIntNEQ(v int) predicate.User

OptionalIntNEQ applies the NEQ predicate on the "optional_int" field.

func OptionalIntNotIn

func OptionalIntNotIn(vs ...int) predicate.User

OptionalIntNotIn applies the NotIn predicate on the "optional_int" field.

func OptionalIntNotNil

func OptionalIntNotNil() predicate.User

OptionalIntNotNil applies the NotNil predicate on the "optional_int" field.

func Or

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

Or groups list of 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 PasswordEQ

func PasswordEQ(v string) predicate.User

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

func PasswordGT

func PasswordGT(v string) predicate.User

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

func PasswordGTE

func PasswordGTE(v string) predicate.User

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

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

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

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

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

func PasswordIn

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

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

func PasswordIsNil

func PasswordIsNil() predicate.User

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

func PasswordLT

func PasswordLT(v string) predicate.User

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

func PasswordLTE

func PasswordLTE(v string) predicate.User

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

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

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

func PasswordNotIn

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

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

func PasswordNotNil

func PasswordNotNil() predicate.User

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

func Phone

func Phone(v string) predicate.User

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.User

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.User

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.User

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.User

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.User

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.User

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

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

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.User

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.User

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.User

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.User

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

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

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.User

PhoneNotNil applies the NotNil predicate on the "phone" field.

func RoleEQ

func RoleEQ(v Role) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...Role) predicate.User

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v Role) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...Role) predicate.User

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r Role) error

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

func SSOCert

func SSOCert(v string) predicate.User

SSOCert applies equality check predicate on the "SSOCert" field. It's identical to SSOCertEQ.

func SSOCertContains

func SSOCertContains(v string) predicate.User

SSOCertContains applies the Contains predicate on the "SSOCert" field.

func SSOCertEQ

func SSOCertEQ(v string) predicate.User

SSOCertEQ applies the EQ predicate on the "SSOCert" field.

func SSOCertGT

func SSOCertGT(v string) predicate.User

SSOCertGT applies the GT predicate on the "SSOCert" field.

func SSOCertGTE

func SSOCertGTE(v string) predicate.User

SSOCertGTE applies the GTE predicate on the "SSOCert" field.

func SSOCertHasPrefix

func SSOCertHasPrefix(v string) predicate.User

SSOCertHasPrefix applies the HasPrefix predicate on the "SSOCert" field.

func SSOCertHasSuffix

func SSOCertHasSuffix(v string) predicate.User

SSOCertHasSuffix applies the HasSuffix predicate on the "SSOCert" field.

func SSOCertIn

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

SSOCertIn applies the In predicate on the "SSOCert" field.

func SSOCertIsNil

func SSOCertIsNil() predicate.User

SSOCertIsNil applies the IsNil predicate on the "SSOCert" field.

func SSOCertLT

func SSOCertLT(v string) predicate.User

SSOCertLT applies the LT predicate on the "SSOCert" field.

func SSOCertLTE

func SSOCertLTE(v string) predicate.User

SSOCertLTE applies the LTE predicate on the "SSOCert" field.

func SSOCertNEQ

func SSOCertNEQ(v string) predicate.User

SSOCertNEQ applies the NEQ predicate on the "SSOCert" field.

func SSOCertNotIn

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

SSOCertNotIn applies the NotIn predicate on the "SSOCert" field.

func SSOCertNotNil

func SSOCertNotNil() predicate.User

SSOCertNotNil applies the NotNil predicate on the "SSOCert" field.

Types

type Role

type Role string

Role defines the type for the role enum field.

const (
	RoleUser     Role = "user"
	RoleAdmin    Role = "admin"
	RoleFreeUser Role = "free-user"
)

Role values.

func (Role) Ptr

func (r Role) Ptr() *Role

Ptr returns a new pointer to the enum value.

func (Role) String

func (r Role) String() string

Jump to

Keyboard shortcuts

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