user

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 4 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 = "oid"
	// 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"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldRenamed holds the string denoting the renamed field in the database.
	FieldRenamed = "renamed"
	// FieldOldToken holds the string denoting the old_token field in the database.
	FieldOldToken = "old_token"
	// FieldBlob holds the string denoting the blob field in the database.
	FieldBlob = "blob"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldWorkplace holds the string denoting the workplace field in the database.
	FieldWorkplace = "workplace"
	// FieldDropOptional holds the string denoting the drop_optional field in the database.
	FieldDropOptional = "drop_optional"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeSpouse holds the string denoting the spouse edge name in mutations.
	EdgeSpouse = "spouse"
	// EdgeCar holds the string denoting the car edge name in mutations.
	EdgeCar = "car"
	// CarFieldID holds the string denoting the ID field of the Car.
	CarFieldID = "id"
	// Table holds the table name of the user in the database.
	Table = "users"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "users"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "user_children"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "users"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "user_children"
	// SpouseTable is the table that holds the spouse relation/edge.
	SpouseTable = "users"
	// SpouseColumn is the table column denoting the spouse relation/edge.
	SpouseColumn = "user_spouse"
	// CarTable is the table that holds the car relation/edge.
	CarTable = "Car"
	// CarInverseTable is the table name for the Car entity.
	// It exists in this package in order to avoid circular dependency with the "car" package.
	CarInverseTable = "Car"
	// CarColumn is the table column denoting the car relation/edge.
	CarColumn = "user_car"
)
View Source
const DefaultState = StateLoggedIn

StateLoggedIn is the default value of the State enum.

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultOldToken holds the default value on creation for the "old_token" field.
	DefaultOldToken func() string
	// BlobValidator is a validator for the "blob" field. It is called by the builders before save.
	BlobValidator func([]byte) error
	// WorkplaceValidator is a validator for the "workplace" field. It is called by the builders before save.
	WorkplaceValidator func(string) error
)

Columns holds all SQL columns for user fields.

View Source
var ForeignKeys = []string{
	"user_children",
	"user_spouse",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.

Functions

func Address

func Address(v string) predicate.User

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.User

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.User

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.User

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.User

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.User

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.User

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.User

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.User

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

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

AddressIn applies the In predicate on the "address" field.

func AddressIsNil

func AddressIsNil() predicate.User

AddressIsNil applies the IsNil predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.User

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.User

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.User

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

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

AddressNotIn applies the NotIn predicate on the "address" field.

func AddressNotNil

func AddressNotNil() predicate.User

AddressNotNil applies the NotNil predicate on the "address" field.

func Age

func Age(v int32) predicate.User

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

func AgeEQ

func AgeEQ(v int32) predicate.User

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

func AgeGT

func AgeGT(v int32) predicate.User

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

func AgeGTE

func AgeGTE(v int32) predicate.User

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

func AgeIn

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

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

func AgeLT

func AgeLT(v int32) predicate.User

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

func AgeLTE

func AgeLTE(v int32) predicate.User

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

func AgeNEQ

func AgeNEQ(v int32) predicate.User

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

func AgeNotIn

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

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

func And

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

And groups predicates with the AND operator between them.

func Blob

func Blob(v []byte) predicate.User

Blob applies equality check predicate on the "blob" field. It's identical to BlobEQ.

func BlobEQ

func BlobEQ(v []byte) predicate.User

BlobEQ applies the EQ predicate on the "blob" field.

func BlobGT

func BlobGT(v []byte) predicate.User

BlobGT applies the GT predicate on the "blob" field.

func BlobGTE

func BlobGTE(v []byte) predicate.User

BlobGTE applies the GTE predicate on the "blob" field.

func BlobIn

func BlobIn(vs ...[]byte) predicate.User

BlobIn applies the In predicate on the "blob" field.

func BlobIsNil

func BlobIsNil() predicate.User

BlobIsNil applies the IsNil predicate on the "blob" field.

func BlobLT

func BlobLT(v []byte) predicate.User

BlobLT applies the LT predicate on the "blob" field.

func BlobLTE

func BlobLTE(v []byte) predicate.User

BlobLTE applies the LTE predicate on the "blob" field.

func BlobNEQ

func BlobNEQ(v []byte) predicate.User

BlobNEQ applies the NEQ predicate on the "blob" field.

func BlobNotIn

func BlobNotIn(vs ...[]byte) predicate.User

BlobNotIn applies the NotIn predicate on the "blob" field.

func BlobNotNil

func BlobNotNil() predicate.User

BlobNotNil applies the NotNil predicate on the "blob" field.

func Description added in v0.9.0

func Description(v string) predicate.User

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains added in v0.9.0

func DescriptionContains(v string) predicate.User

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold added in v0.9.0

func DescriptionContainsFold(v string) predicate.User

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ added in v0.9.0

func DescriptionEQ(v string) predicate.User

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold added in v0.9.0

func DescriptionEqualFold(v string) predicate.User

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT added in v0.9.0

func DescriptionGT(v string) predicate.User

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE added in v0.9.0

func DescriptionGTE(v string) predicate.User

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix added in v0.9.0

func DescriptionHasPrefix(v string) predicate.User

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix added in v0.9.0

func DescriptionHasSuffix(v string) predicate.User

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn added in v0.9.0

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

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil added in v0.9.0

func DescriptionIsNil() predicate.User

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT added in v0.9.0

func DescriptionLT(v string) predicate.User

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE added in v0.9.0

func DescriptionLTE(v string) predicate.User

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ added in v0.9.0

func DescriptionNEQ(v string) predicate.User

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn added in v0.9.0

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

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil added in v0.9.0

func DescriptionNotNil() predicate.User

DescriptionNotNil applies the NotNil predicate on the "description" field.

func DropOptional added in v0.11.0

func DropOptional(v string) predicate.User

DropOptional applies equality check predicate on the "drop_optional" field. It's identical to DropOptionalEQ.

func DropOptionalContains added in v0.11.0

func DropOptionalContains(v string) predicate.User

DropOptionalContains applies the Contains predicate on the "drop_optional" field.

func DropOptionalContainsFold added in v0.11.0

func DropOptionalContainsFold(v string) predicate.User

DropOptionalContainsFold applies the ContainsFold predicate on the "drop_optional" field.

func DropOptionalEQ added in v0.11.0

func DropOptionalEQ(v string) predicate.User

DropOptionalEQ applies the EQ predicate on the "drop_optional" field.

func DropOptionalEqualFold added in v0.11.0

func DropOptionalEqualFold(v string) predicate.User

DropOptionalEqualFold applies the EqualFold predicate on the "drop_optional" field.

func DropOptionalGT added in v0.11.0

func DropOptionalGT(v string) predicate.User

DropOptionalGT applies the GT predicate on the "drop_optional" field.

func DropOptionalGTE added in v0.11.0

func DropOptionalGTE(v string) predicate.User

DropOptionalGTE applies the GTE predicate on the "drop_optional" field.

func DropOptionalHasPrefix added in v0.11.0

func DropOptionalHasPrefix(v string) predicate.User

DropOptionalHasPrefix applies the HasPrefix predicate on the "drop_optional" field.

func DropOptionalHasSuffix added in v0.11.0

func DropOptionalHasSuffix(v string) predicate.User

DropOptionalHasSuffix applies the HasSuffix predicate on the "drop_optional" field.

func DropOptionalIn added in v0.11.0

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

DropOptionalIn applies the In predicate on the "drop_optional" field.

func DropOptionalIsNil added in v0.11.0

func DropOptionalIsNil() predicate.User

DropOptionalIsNil applies the IsNil predicate on the "drop_optional" field.

func DropOptionalLT added in v0.11.0

func DropOptionalLT(v string) predicate.User

DropOptionalLT applies the LT predicate on the "drop_optional" field.

func DropOptionalLTE added in v0.11.0

func DropOptionalLTE(v string) predicate.User

DropOptionalLTE applies the LTE predicate on the "drop_optional" field.

func DropOptionalNEQ added in v0.11.0

func DropOptionalNEQ(v string) predicate.User

DropOptionalNEQ applies the NEQ predicate on the "drop_optional" field.

func DropOptionalNotIn added in v0.11.0

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

DropOptionalNotIn applies the NotIn predicate on the "drop_optional" field.

func DropOptionalNotNil added in v0.11.0

func DropOptionalNotNil() predicate.User

DropOptionalNotNil applies the NotNil predicate on the "drop_optional" field.

func HasCar

func HasCar() predicate.User

HasCar applies the HasEdge predicate on the "car" edge.

func HasCarWith

func HasCarWith(preds ...predicate.Car) predicate.User

HasCarWith applies the HasEdge predicate on the "car" 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 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 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 ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID 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 NameContainsFold

func NameContainsFold(v string) predicate.User

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.User

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

func NameEqualFold

func NameEqualFold(v string) predicate.User

NameEqualFold applies the EqualFold 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 NicknameContainsFold

func NicknameContainsFold(v string) predicate.User

NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.User

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

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.User

NicknameEqualFold applies the EqualFold 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 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 Not

Not applies the not operator on the given predicate.

func OldToken added in v0.11.0

func OldToken(v string) predicate.User

OldToken applies equality check predicate on the "old_token" field. It's identical to OldTokenEQ.

func OldTokenContains added in v0.11.0

func OldTokenContains(v string) predicate.User

OldTokenContains applies the Contains predicate on the "old_token" field.

func OldTokenContainsFold added in v0.11.0

func OldTokenContainsFold(v string) predicate.User

OldTokenContainsFold applies the ContainsFold predicate on the "old_token" field.

func OldTokenEQ added in v0.11.0

func OldTokenEQ(v string) predicate.User

OldTokenEQ applies the EQ predicate on the "old_token" field.

func OldTokenEqualFold added in v0.11.0

func OldTokenEqualFold(v string) predicate.User

OldTokenEqualFold applies the EqualFold predicate on the "old_token" field.

func OldTokenGT added in v0.11.0

func OldTokenGT(v string) predicate.User

OldTokenGT applies the GT predicate on the "old_token" field.

func OldTokenGTE added in v0.11.0

func OldTokenGTE(v string) predicate.User

OldTokenGTE applies the GTE predicate on the "old_token" field.

func OldTokenHasPrefix added in v0.11.0

func OldTokenHasPrefix(v string) predicate.User

OldTokenHasPrefix applies the HasPrefix predicate on the "old_token" field.

func OldTokenHasSuffix added in v0.11.0

func OldTokenHasSuffix(v string) predicate.User

OldTokenHasSuffix applies the HasSuffix predicate on the "old_token" field.

func OldTokenIn added in v0.11.0

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

OldTokenIn applies the In predicate on the "old_token" field.

func OldTokenLT added in v0.11.0

func OldTokenLT(v string) predicate.User

OldTokenLT applies the LT predicate on the "old_token" field.

func OldTokenLTE added in v0.11.0

func OldTokenLTE(v string) predicate.User

OldTokenLTE applies the LTE predicate on the "old_token" field.

func OldTokenNEQ added in v0.11.0

func OldTokenNEQ(v string) predicate.User

OldTokenNEQ applies the NEQ predicate on the "old_token" field.

func OldTokenNotIn added in v0.11.0

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

OldTokenNotIn applies the NotIn predicate on the "old_token" field.

func Or

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

Or groups predicates with the OR operator between them.

func Renamed

func Renamed(v string) predicate.User

Renamed applies equality check predicate on the "renamed" field. It's identical to RenamedEQ.

func RenamedContains

func RenamedContains(v string) predicate.User

RenamedContains applies the Contains predicate on the "renamed" field.

func RenamedContainsFold

func RenamedContainsFold(v string) predicate.User

RenamedContainsFold applies the ContainsFold predicate on the "renamed" field.

func RenamedEQ

func RenamedEQ(v string) predicate.User

RenamedEQ applies the EQ predicate on the "renamed" field.

func RenamedEqualFold

func RenamedEqualFold(v string) predicate.User

RenamedEqualFold applies the EqualFold predicate on the "renamed" field.

func RenamedGT

func RenamedGT(v string) predicate.User

RenamedGT applies the GT predicate on the "renamed" field.

func RenamedGTE

func RenamedGTE(v string) predicate.User

RenamedGTE applies the GTE predicate on the "renamed" field.

func RenamedHasPrefix

func RenamedHasPrefix(v string) predicate.User

RenamedHasPrefix applies the HasPrefix predicate on the "renamed" field.

func RenamedHasSuffix

func RenamedHasSuffix(v string) predicate.User

RenamedHasSuffix applies the HasSuffix predicate on the "renamed" field.

func RenamedIn

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

RenamedIn applies the In predicate on the "renamed" field.

func RenamedIsNil

func RenamedIsNil() predicate.User

RenamedIsNil applies the IsNil predicate on the "renamed" field.

func RenamedLT

func RenamedLT(v string) predicate.User

RenamedLT applies the LT predicate on the "renamed" field.

func RenamedLTE

func RenamedLTE(v string) predicate.User

RenamedLTE applies the LTE predicate on the "renamed" field.

func RenamedNEQ

func RenamedNEQ(v string) predicate.User

RenamedNEQ applies the NEQ predicate on the "renamed" field.

func RenamedNotIn

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

RenamedNotIn applies the NotIn predicate on the "renamed" field.

func RenamedNotNil

func RenamedNotNil() predicate.User

RenamedNotNil applies the NotNil predicate on the "renamed" field.

func StateEQ

func StateEQ(v State) predicate.User

StateEQ applies the EQ predicate on the "state" field.

func StateIn

func StateIn(vs ...State) predicate.User

StateIn applies the In predicate on the "state" field.

func StateIsNil

func StateIsNil() predicate.User

StateIsNil applies the IsNil predicate on the "state" field.

func StateNEQ

func StateNEQ(v State) predicate.User

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...State) predicate.User

StateNotIn applies the NotIn predicate on the "state" field.

func StateNotNil

func StateNotNil() predicate.User

StateNotNil applies the NotNil predicate on the "state" field.

func StateValidator

func StateValidator(s State) error

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

func Status

func Status(v string) predicate.User

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.User

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.User

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.User

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.User

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.User

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.User

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.User

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

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

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.User

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.User

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.User

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

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

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.User

StatusNotNil applies the NotNil predicate on the "status" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Workplace

func Workplace(v string) predicate.User

Workplace applies equality check predicate on the "workplace" field. It's identical to WorkplaceEQ.

func WorkplaceContains

func WorkplaceContains(v string) predicate.User

WorkplaceContains applies the Contains predicate on the "workplace" field.

func WorkplaceContainsFold

func WorkplaceContainsFold(v string) predicate.User

WorkplaceContainsFold applies the ContainsFold predicate on the "workplace" field.

func WorkplaceEQ

func WorkplaceEQ(v string) predicate.User

WorkplaceEQ applies the EQ predicate on the "workplace" field.

func WorkplaceEqualFold

func WorkplaceEqualFold(v string) predicate.User

WorkplaceEqualFold applies the EqualFold predicate on the "workplace" field.

func WorkplaceGT

func WorkplaceGT(v string) predicate.User

WorkplaceGT applies the GT predicate on the "workplace" field.

func WorkplaceGTE

func WorkplaceGTE(v string) predicate.User

WorkplaceGTE applies the GTE predicate on the "workplace" field.

func WorkplaceHasPrefix

func WorkplaceHasPrefix(v string) predicate.User

WorkplaceHasPrefix applies the HasPrefix predicate on the "workplace" field.

func WorkplaceHasSuffix

func WorkplaceHasSuffix(v string) predicate.User

WorkplaceHasSuffix applies the HasSuffix predicate on the "workplace" field.

func WorkplaceIn

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

WorkplaceIn applies the In predicate on the "workplace" field.

func WorkplaceIsNil

func WorkplaceIsNil() predicate.User

WorkplaceIsNil applies the IsNil predicate on the "workplace" field.

func WorkplaceLT

func WorkplaceLT(v string) predicate.User

WorkplaceLT applies the LT predicate on the "workplace" field.

func WorkplaceLTE

func WorkplaceLTE(v string) predicate.User

WorkplaceLTE applies the LTE predicate on the "workplace" field.

func WorkplaceNEQ

func WorkplaceNEQ(v string) predicate.User

WorkplaceNEQ applies the NEQ predicate on the "workplace" field.

func WorkplaceNotIn

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

WorkplaceNotIn applies the NotIn predicate on the "workplace" field.

func WorkplaceNotNil

func WorkplaceNotNil() predicate.User

WorkplaceNotNil applies the NotNil predicate on the "workplace" field.

Types

type State

type State string

State defines the type for the "state" enum field.

const (
	StateLoggedIn  State = "logged_in"
	StateLoggedOut State = "logged_out"
)

State values.

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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