user

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 7 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"
	// FieldUserName holds the string denoting the user_name field in the database.
	FieldUserName = "user_name"
	// FieldJoined holds the string denoting the joined field in the database.
	FieldJoined = "joined"
	// FieldPoints holds the string denoting the points field in the database.
	FieldPoints = "points"
	// FieldExp holds the string denoting the exp field in the database.
	FieldExp = "exp"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldExternalID holds the string denoting the external_id field in the database.
	FieldExternalID = "external_id"
	// FieldCrmID holds the string denoting the crm_id field in the database.
	FieldCrmID = "crm_id"
	// FieldBanned holds the string denoting the banned field in the database.
	FieldBanned = "banned"
	// FieldCustomPb holds the string denoting the custom_pb field in the database.
	FieldCustomPb = "custom_pb"
	// FieldOptNum holds the string denoting the opt_num field in the database.
	FieldOptNum = "opt_num"
	// FieldOptStr holds the string denoting the opt_str field in the database.
	FieldOptStr = "opt_str"
	// FieldOptBool holds the string denoting the opt_bool field in the database.
	FieldOptBool = "opt_bool"
	// FieldBigInt holds the string denoting the big_int field in the database.
	FieldBigInt = "big_int"
	// FieldBUser1 holds the string denoting the b_user_1 field in the database.
	FieldBUser1 = "b_user_1"
	// FieldHeightInCm holds the string denoting the height_in_cm field in the database.
	FieldHeightInCm = "height_in_cm"
	// FieldAccountBalance holds the string denoting the account_balance field in the database.
	FieldAccountBalance = "account_balance"
	// FieldUnnecessary holds the string denoting the unnecessary field in the database.
	FieldUnnecessary = "unnecessary"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeAttachment holds the string denoting the attachment edge name in mutations.
	EdgeAttachment = "attachment"
	// EdgeReceived1 holds the string denoting the received_1 edge name in mutations.
	EdgeReceived1 = "received_1"
	// EdgePet holds the string denoting the pet edge name in mutations.
	EdgePet = "pet"
	// EdgeSkipEdge holds the string denoting the skip_edge edge name in mutations.
	EdgeSkipEdge = "skip_edge"
	// Table holds the table name of the user in the database.
	Table = "users"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "users"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "groups"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "user_group"
	// AttachmentTable is the table that holds the attachment relation/edge.
	AttachmentTable = "attachments"
	// AttachmentInverseTable is the table name for the Attachment entity.
	// It exists in this package in order to avoid circular dependency with the "attachment" package.
	AttachmentInverseTable = "attachments"
	// AttachmentColumn is the table column denoting the attachment relation/edge.
	AttachmentColumn = "user_attachment"
	// Received1Table is the table that holds the received_1 relation/edge. The primary key declared below.
	Received1Table = "attachment_recipients"
	// Received1InverseTable is the table name for the Attachment entity.
	// It exists in this package in order to avoid circular dependency with the "attachment" package.
	Received1InverseTable = "attachments"
	// PetTable is the table that holds the pet relation/edge.
	PetTable = "pets"
	// PetInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	PetInverseTable = "pets"
	// PetColumn is the table column denoting the pet relation/edge.
	PetColumn = "user_pet"
	// SkipEdgeTable is the table that holds the skip_edge relation/edge.
	SkipEdgeTable = "skip_edge_examples"
	// SkipEdgeInverseTable is the table name for the SkipEdgeExample entity.
	// It exists in this package in order to avoid circular dependency with the "skipedgeexample" package.
	SkipEdgeInverseTable = "skip_edge_examples"
	// SkipEdgeColumn is the table column denoting the skip_edge relation/edge.
	SkipEdgeColumn = "user_skip_edge"
)

Variables

View Source
var (
	// DefaultBanned holds the default value on creation for the "banned" field.
	DefaultBanned bool
	// DefaultHeightInCm holds the default value on creation for the "height_in_cm" field.
	DefaultHeightInCm float32
	// DefaultAccountBalance holds the default value on creation for the "account_balance" field.
	DefaultAccountBalance float64
)

Columns holds all SQL columns for user fields.

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

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

View Source
var (
	// Received1PrimaryKey and Received1Column2 are the table columns denoting the
	// primary key for the received_1 relation (M2M).
	Received1PrimaryKey = []string{"attachment_id", "user_id"}
)

Functions

func AccountBalance

func AccountBalance(v float64) predicate.User

AccountBalance applies equality check predicate on the "account_balance" field. It's identical to AccountBalanceEQ.

func AccountBalanceEQ

func AccountBalanceEQ(v float64) predicate.User

AccountBalanceEQ applies the EQ predicate on the "account_balance" field.

func AccountBalanceGT

func AccountBalanceGT(v float64) predicate.User

AccountBalanceGT applies the GT predicate on the "account_balance" field.

func AccountBalanceGTE

func AccountBalanceGTE(v float64) predicate.User

AccountBalanceGTE applies the GTE predicate on the "account_balance" field.

func AccountBalanceIn

func AccountBalanceIn(vs ...float64) predicate.User

AccountBalanceIn applies the In predicate on the "account_balance" field.

func AccountBalanceLT

func AccountBalanceLT(v float64) predicate.User

AccountBalanceLT applies the LT predicate on the "account_balance" field.

func AccountBalanceLTE

func AccountBalanceLTE(v float64) predicate.User

AccountBalanceLTE applies the LTE predicate on the "account_balance" field.

func AccountBalanceNEQ

func AccountBalanceNEQ(v float64) predicate.User

AccountBalanceNEQ applies the NEQ predicate on the "account_balance" field.

func AccountBalanceNotIn

func AccountBalanceNotIn(vs ...float64) predicate.User

AccountBalanceNotIn applies the NotIn predicate on the "account_balance" field.

func And

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

And groups predicates with the AND operator between them.

func BUser1

func BUser1(v int) predicate.User

BUser1 applies equality check predicate on the "b_user_1" field. It's identical to BUser1EQ.

func BUser1EQ

func BUser1EQ(v int) predicate.User

BUser1EQ applies the EQ predicate on the "b_user_1" field.

func BUser1GT

func BUser1GT(v int) predicate.User

BUser1GT applies the GT predicate on the "b_user_1" field.

func BUser1GTE

func BUser1GTE(v int) predicate.User

BUser1GTE applies the GTE predicate on the "b_user_1" field.

func BUser1In

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

BUser1In applies the In predicate on the "b_user_1" field.

func BUser1IsNil

func BUser1IsNil() predicate.User

BUser1IsNil applies the IsNil predicate on the "b_user_1" field.

func BUser1LT

func BUser1LT(v int) predicate.User

BUser1LT applies the LT predicate on the "b_user_1" field.

func BUser1LTE

func BUser1LTE(v int) predicate.User

BUser1LTE applies the LTE predicate on the "b_user_1" field.

func BUser1NEQ

func BUser1NEQ(v int) predicate.User

BUser1NEQ applies the NEQ predicate on the "b_user_1" field.

func BUser1NotIn

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

BUser1NotIn applies the NotIn predicate on the "b_user_1" field.

func BUser1NotNil

func BUser1NotNil() predicate.User

BUser1NotNil applies the NotNil predicate on the "b_user_1" field.

func Banned

func Banned(v bool) predicate.User

Banned applies equality check predicate on the "banned" field. It's identical to BannedEQ.

func BannedEQ

func BannedEQ(v bool) predicate.User

BannedEQ applies the EQ predicate on the "banned" field.

func BannedNEQ

func BannedNEQ(v bool) predicate.User

BannedNEQ applies the NEQ predicate on the "banned" field.

func BigInt

func BigInt(v schema.BigInt) predicate.User

BigInt applies equality check predicate on the "big_int" field. It's identical to BigIntEQ.

func BigIntEQ

func BigIntEQ(v schema.BigInt) predicate.User

BigIntEQ applies the EQ predicate on the "big_int" field.

func BigIntGT

func BigIntGT(v schema.BigInt) predicate.User

BigIntGT applies the GT predicate on the "big_int" field.

func BigIntGTE

func BigIntGTE(v schema.BigInt) predicate.User

BigIntGTE applies the GTE predicate on the "big_int" field.

func BigIntIn

func BigIntIn(vs ...schema.BigInt) predicate.User

BigIntIn applies the In predicate on the "big_int" field.

func BigIntIsNil

func BigIntIsNil() predicate.User

BigIntIsNil applies the IsNil predicate on the "big_int" field.

func BigIntLT

func BigIntLT(v schema.BigInt) predicate.User

BigIntLT applies the LT predicate on the "big_int" field.

func BigIntLTE

func BigIntLTE(v schema.BigInt) predicate.User

BigIntLTE applies the LTE predicate on the "big_int" field.

func BigIntNEQ

func BigIntNEQ(v schema.BigInt) predicate.User

BigIntNEQ applies the NEQ predicate on the "big_int" field.

func BigIntNotIn

func BigIntNotIn(vs ...schema.BigInt) predicate.User

BigIntNotIn applies the NotIn predicate on the "big_int" field.

func BigIntNotNil

func BigIntNotNil() predicate.User

BigIntNotNil applies the NotNil predicate on the "big_int" field.

func CrmID

func CrmID(v uuid.UUID) predicate.User

CrmID applies equality check predicate on the "crm_id" field. It's identical to CrmIDEQ.

func CrmIDEQ

func CrmIDEQ(v uuid.UUID) predicate.User

CrmIDEQ applies the EQ predicate on the "crm_id" field.

func CrmIDGT

func CrmIDGT(v uuid.UUID) predicate.User

CrmIDGT applies the GT predicate on the "crm_id" field.

func CrmIDGTE

func CrmIDGTE(v uuid.UUID) predicate.User

CrmIDGTE applies the GTE predicate on the "crm_id" field.

func CrmIDIn

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

CrmIDIn applies the In predicate on the "crm_id" field.

func CrmIDLT

func CrmIDLT(v uuid.UUID) predicate.User

CrmIDLT applies the LT predicate on the "crm_id" field.

func CrmIDLTE

func CrmIDLTE(v uuid.UUID) predicate.User

CrmIDLTE applies the LTE predicate on the "crm_id" field.

func CrmIDNEQ

func CrmIDNEQ(v uuid.UUID) predicate.User

CrmIDNEQ applies the NEQ predicate on the "crm_id" field.

func CrmIDNotIn

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

CrmIDNotIn applies the NotIn predicate on the "crm_id" field.

func CustomPb

func CustomPb(v uint8) predicate.User

CustomPb applies equality check predicate on the "custom_pb" field. It's identical to CustomPbEQ.

func CustomPbEQ

func CustomPbEQ(v uint8) predicate.User

CustomPbEQ applies the EQ predicate on the "custom_pb" field.

func CustomPbGT

func CustomPbGT(v uint8) predicate.User

CustomPbGT applies the GT predicate on the "custom_pb" field.

func CustomPbGTE

func CustomPbGTE(v uint8) predicate.User

CustomPbGTE applies the GTE predicate on the "custom_pb" field.

func CustomPbIn

func CustomPbIn(vs ...uint8) predicate.User

CustomPbIn applies the In predicate on the "custom_pb" field.

func CustomPbLT

func CustomPbLT(v uint8) predicate.User

CustomPbLT applies the LT predicate on the "custom_pb" field.

func CustomPbLTE

func CustomPbLTE(v uint8) predicate.User

CustomPbLTE applies the LTE predicate on the "custom_pb" field.

func CustomPbNEQ

func CustomPbNEQ(v uint8) predicate.User

CustomPbNEQ applies the NEQ predicate on the "custom_pb" field.

func CustomPbNotIn

func CustomPbNotIn(vs ...uint8) predicate.User

CustomPbNotIn applies the NotIn predicate on the "custom_pb" field.

func Exp

func Exp(v uint64) predicate.User

Exp applies equality check predicate on the "exp" field. It's identical to ExpEQ.

func ExpEQ

func ExpEQ(v uint64) predicate.User

ExpEQ applies the EQ predicate on the "exp" field.

func ExpGT

func ExpGT(v uint64) predicate.User

ExpGT applies the GT predicate on the "exp" field.

func ExpGTE

func ExpGTE(v uint64) predicate.User

ExpGTE applies the GTE predicate on the "exp" field.

func ExpIn

func ExpIn(vs ...uint64) predicate.User

ExpIn applies the In predicate on the "exp" field.

func ExpLT

func ExpLT(v uint64) predicate.User

ExpLT applies the LT predicate on the "exp" field.

func ExpLTE

func ExpLTE(v uint64) predicate.User

ExpLTE applies the LTE predicate on the "exp" field.

func ExpNEQ

func ExpNEQ(v uint64) predicate.User

ExpNEQ applies the NEQ predicate on the "exp" field.

func ExpNotIn

func ExpNotIn(vs ...uint64) predicate.User

ExpNotIn applies the NotIn predicate on the "exp" field.

func ExternalID

func ExternalID(v int) predicate.User

ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.

func ExternalIDEQ

func ExternalIDEQ(v int) predicate.User

ExternalIDEQ applies the EQ predicate on the "external_id" field.

func ExternalIDGT

func ExternalIDGT(v int) predicate.User

ExternalIDGT applies the GT predicate on the "external_id" field.

func ExternalIDGTE

func ExternalIDGTE(v int) predicate.User

ExternalIDGTE applies the GTE predicate on the "external_id" field.

func ExternalIDIn

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

ExternalIDIn applies the In predicate on the "external_id" field.

func ExternalIDLT

func ExternalIDLT(v int) predicate.User

ExternalIDLT applies the LT predicate on the "external_id" field.

func ExternalIDLTE

func ExternalIDLTE(v int) predicate.User

ExternalIDLTE applies the LTE predicate on the "external_id" field.

func ExternalIDNEQ

func ExternalIDNEQ(v int) predicate.User

ExternalIDNEQ applies the NEQ predicate on the "external_id" field.

func ExternalIDNotIn

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

ExternalIDNotIn applies the NotIn predicate on the "external_id" field.

func HasAttachment

func HasAttachment() predicate.User

HasAttachment applies the HasEdge predicate on the "attachment" edge.

func HasAttachmentWith

func HasAttachmentWith(preds ...predicate.Attachment) predicate.User

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

func HasGroup

func HasGroup() predicate.User

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

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

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

func HasPet

func HasPet() predicate.User

HasPet applies the HasEdge predicate on the "pet" edge.

func HasPetWith

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

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

func HasReceived1

func HasReceived1() predicate.User

HasReceived1 applies the HasEdge predicate on the "received_1" edge.

func HasReceived1With

func HasReceived1With(preds ...predicate.Attachment) predicate.User

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

func HasSkipEdge

func HasSkipEdge() predicate.User

HasSkipEdge applies the HasEdge predicate on the "skip_edge" edge.

func HasSkipEdgeWith

func HasSkipEdgeWith(preds ...predicate.SkipEdgeExample) predicate.User

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

func HeightInCm

func HeightInCm(v float32) predicate.User

HeightInCm applies equality check predicate on the "height_in_cm" field. It's identical to HeightInCmEQ.

func HeightInCmEQ

func HeightInCmEQ(v float32) predicate.User

HeightInCmEQ applies the EQ predicate on the "height_in_cm" field.

func HeightInCmGT

func HeightInCmGT(v float32) predicate.User

HeightInCmGT applies the GT predicate on the "height_in_cm" field.

func HeightInCmGTE

func HeightInCmGTE(v float32) predicate.User

HeightInCmGTE applies the GTE predicate on the "height_in_cm" field.

func HeightInCmIn

func HeightInCmIn(vs ...float32) predicate.User

HeightInCmIn applies the In predicate on the "height_in_cm" field.

func HeightInCmLT

func HeightInCmLT(v float32) predicate.User

HeightInCmLT applies the LT predicate on the "height_in_cm" field.

func HeightInCmLTE

func HeightInCmLTE(v float32) predicate.User

HeightInCmLTE applies the LTE predicate on the "height_in_cm" field.

func HeightInCmNEQ

func HeightInCmNEQ(v float32) predicate.User

HeightInCmNEQ applies the NEQ predicate on the "height_in_cm" field.

func HeightInCmNotIn

func HeightInCmNotIn(vs ...float32) predicate.User

HeightInCmNotIn applies the NotIn predicate on the "height_in_cm" field.

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 Joined

func Joined(v time.Time) predicate.User

Joined applies equality check predicate on the "joined" field. It's identical to JoinedEQ.

func JoinedEQ

func JoinedEQ(v time.Time) predicate.User

JoinedEQ applies the EQ predicate on the "joined" field.

func JoinedGT

func JoinedGT(v time.Time) predicate.User

JoinedGT applies the GT predicate on the "joined" field.

func JoinedGTE

func JoinedGTE(v time.Time) predicate.User

JoinedGTE applies the GTE predicate on the "joined" field.

func JoinedIn

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

JoinedIn applies the In predicate on the "joined" field.

func JoinedLT

func JoinedLT(v time.Time) predicate.User

JoinedLT applies the LT predicate on the "joined" field.

func JoinedLTE

func JoinedLTE(v time.Time) predicate.User

JoinedLTE applies the LTE predicate on the "joined" field.

func JoinedNEQ

func JoinedNEQ(v time.Time) predicate.User

JoinedNEQ applies the NEQ predicate on the "joined" field.

func JoinedNotIn

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

JoinedNotIn applies the NotIn predicate on the "joined" field.

func Not

Not applies the not operator on the given predicate.

func OptBool

func OptBool(v bool) predicate.User

OptBool applies equality check predicate on the "opt_bool" field. It's identical to OptBoolEQ.

func OptBoolEQ

func OptBoolEQ(v bool) predicate.User

OptBoolEQ applies the EQ predicate on the "opt_bool" field.

func OptBoolIsNil

func OptBoolIsNil() predicate.User

OptBoolIsNil applies the IsNil predicate on the "opt_bool" field.

func OptBoolNEQ

func OptBoolNEQ(v bool) predicate.User

OptBoolNEQ applies the NEQ predicate on the "opt_bool" field.

func OptBoolNotNil

func OptBoolNotNil() predicate.User

OptBoolNotNil applies the NotNil predicate on the "opt_bool" field.

func OptNum

func OptNum(v int) predicate.User

OptNum applies equality check predicate on the "opt_num" field. It's identical to OptNumEQ.

func OptNumEQ

func OptNumEQ(v int) predicate.User

OptNumEQ applies the EQ predicate on the "opt_num" field.

func OptNumGT

func OptNumGT(v int) predicate.User

OptNumGT applies the GT predicate on the "opt_num" field.

func OptNumGTE

func OptNumGTE(v int) predicate.User

OptNumGTE applies the GTE predicate on the "opt_num" field.

func OptNumIn

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

OptNumIn applies the In predicate on the "opt_num" field.

func OptNumIsNil

func OptNumIsNil() predicate.User

OptNumIsNil applies the IsNil predicate on the "opt_num" field.

func OptNumLT

func OptNumLT(v int) predicate.User

OptNumLT applies the LT predicate on the "opt_num" field.

func OptNumLTE

func OptNumLTE(v int) predicate.User

OptNumLTE applies the LTE predicate on the "opt_num" field.

func OptNumNEQ

func OptNumNEQ(v int) predicate.User

OptNumNEQ applies the NEQ predicate on the "opt_num" field.

func OptNumNotIn

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

OptNumNotIn applies the NotIn predicate on the "opt_num" field.

func OptNumNotNil

func OptNumNotNil() predicate.User

OptNumNotNil applies the NotNil predicate on the "opt_num" field.

func OptStr

func OptStr(v string) predicate.User

OptStr applies equality check predicate on the "opt_str" field. It's identical to OptStrEQ.

func OptStrContains

func OptStrContains(v string) predicate.User

OptStrContains applies the Contains predicate on the "opt_str" field.

func OptStrContainsFold

func OptStrContainsFold(v string) predicate.User

OptStrContainsFold applies the ContainsFold predicate on the "opt_str" field.

func OptStrEQ

func OptStrEQ(v string) predicate.User

OptStrEQ applies the EQ predicate on the "opt_str" field.

func OptStrEqualFold

func OptStrEqualFold(v string) predicate.User

OptStrEqualFold applies the EqualFold predicate on the "opt_str" field.

func OptStrGT

func OptStrGT(v string) predicate.User

OptStrGT applies the GT predicate on the "opt_str" field.

func OptStrGTE

func OptStrGTE(v string) predicate.User

OptStrGTE applies the GTE predicate on the "opt_str" field.

func OptStrHasPrefix

func OptStrHasPrefix(v string) predicate.User

OptStrHasPrefix applies the HasPrefix predicate on the "opt_str" field.

func OptStrHasSuffix

func OptStrHasSuffix(v string) predicate.User

OptStrHasSuffix applies the HasSuffix predicate on the "opt_str" field.

func OptStrIn

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

OptStrIn applies the In predicate on the "opt_str" field.

func OptStrIsNil

func OptStrIsNil() predicate.User

OptStrIsNil applies the IsNil predicate on the "opt_str" field.

func OptStrLT

func OptStrLT(v string) predicate.User

OptStrLT applies the LT predicate on the "opt_str" field.

func OptStrLTE

func OptStrLTE(v string) predicate.User

OptStrLTE applies the LTE predicate on the "opt_str" field.

func OptStrNEQ

func OptStrNEQ(v string) predicate.User

OptStrNEQ applies the NEQ predicate on the "opt_str" field.

func OptStrNotIn

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

OptStrNotIn applies the NotIn predicate on the "opt_str" field.

func OptStrNotNil

func OptStrNotNil() predicate.User

OptStrNotNil applies the NotNil predicate on the "opt_str" field.

func Or

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

Or groups predicates with the OR operator between them.

func Points

func Points(v uint) predicate.User

Points applies equality check predicate on the "points" field. It's identical to PointsEQ.

func PointsEQ

func PointsEQ(v uint) predicate.User

PointsEQ applies the EQ predicate on the "points" field.

func PointsGT

func PointsGT(v uint) predicate.User

PointsGT applies the GT predicate on the "points" field.

func PointsGTE

func PointsGTE(v uint) predicate.User

PointsGTE applies the GTE predicate on the "points" field.

func PointsIn

func PointsIn(vs ...uint) predicate.User

PointsIn applies the In predicate on the "points" field.

func PointsLT

func PointsLT(v uint) predicate.User

PointsLT applies the LT predicate on the "points" field.

func PointsLTE

func PointsLTE(v uint) predicate.User

PointsLTE applies the LTE predicate on the "points" field.

func PointsNEQ

func PointsNEQ(v uint) predicate.User

PointsNEQ applies the NEQ predicate on the "points" field.

func PointsNotIn

func PointsNotIn(vs ...uint) predicate.User

PointsNotIn applies the NotIn predicate on the "points" field.

func StatusEQ

func StatusEQ(v Status) predicate.User

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.User

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

func StatusNotIn

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

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

func StatusValidator

func StatusValidator(s Status) error

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

func Type

func Type(v string) predicate.User

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.User

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.User

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.User

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.User

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.User

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.User

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.User

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.User

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

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

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.User

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.User

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.User

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.User

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.User

TypeNotNil applies the NotNil predicate on the "type" field.

func Unnecessary

func Unnecessary(v string) predicate.User

Unnecessary applies equality check predicate on the "unnecessary" field. It's identical to UnnecessaryEQ.

func UnnecessaryContains

func UnnecessaryContains(v string) predicate.User

UnnecessaryContains applies the Contains predicate on the "unnecessary" field.

func UnnecessaryContainsFold

func UnnecessaryContainsFold(v string) predicate.User

UnnecessaryContainsFold applies the ContainsFold predicate on the "unnecessary" field.

func UnnecessaryEQ

func UnnecessaryEQ(v string) predicate.User

UnnecessaryEQ applies the EQ predicate on the "unnecessary" field.

func UnnecessaryEqualFold

func UnnecessaryEqualFold(v string) predicate.User

UnnecessaryEqualFold applies the EqualFold predicate on the "unnecessary" field.

func UnnecessaryGT

func UnnecessaryGT(v string) predicate.User

UnnecessaryGT applies the GT predicate on the "unnecessary" field.

func UnnecessaryGTE

func UnnecessaryGTE(v string) predicate.User

UnnecessaryGTE applies the GTE predicate on the "unnecessary" field.

func UnnecessaryHasPrefix

func UnnecessaryHasPrefix(v string) predicate.User

UnnecessaryHasPrefix applies the HasPrefix predicate on the "unnecessary" field.

func UnnecessaryHasSuffix

func UnnecessaryHasSuffix(v string) predicate.User

UnnecessaryHasSuffix applies the HasSuffix predicate on the "unnecessary" field.

func UnnecessaryIn

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

UnnecessaryIn applies the In predicate on the "unnecessary" field.

func UnnecessaryIsNil

func UnnecessaryIsNil() predicate.User

UnnecessaryIsNil applies the IsNil predicate on the "unnecessary" field.

func UnnecessaryLT

func UnnecessaryLT(v string) predicate.User

UnnecessaryLT applies the LT predicate on the "unnecessary" field.

func UnnecessaryLTE

func UnnecessaryLTE(v string) predicate.User

UnnecessaryLTE applies the LTE predicate on the "unnecessary" field.

func UnnecessaryNEQ

func UnnecessaryNEQ(v string) predicate.User

UnnecessaryNEQ applies the NEQ predicate on the "unnecessary" field.

func UnnecessaryNotIn

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

UnnecessaryNotIn applies the NotIn predicate on the "unnecessary" field.

func UnnecessaryNotNil

func UnnecessaryNotNil() predicate.User

UnnecessaryNotNil applies the NotNil predicate on the "unnecessary" field.

func UserName

func UserName(v string) predicate.User

UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.

func UserNameContains

func UserNameContains(v string) predicate.User

UserNameContains applies the Contains predicate on the "user_name" field.

func UserNameContainsFold

func UserNameContainsFold(v string) predicate.User

UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.

func UserNameEQ

func UserNameEQ(v string) predicate.User

UserNameEQ applies the EQ predicate on the "user_name" field.

func UserNameEqualFold

func UserNameEqualFold(v string) predicate.User

UserNameEqualFold applies the EqualFold predicate on the "user_name" field.

func UserNameGT

func UserNameGT(v string) predicate.User

UserNameGT applies the GT predicate on the "user_name" field.

func UserNameGTE

func UserNameGTE(v string) predicate.User

UserNameGTE applies the GTE predicate on the "user_name" field.

func UserNameHasPrefix

func UserNameHasPrefix(v string) predicate.User

UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.

func UserNameHasSuffix

func UserNameHasSuffix(v string) predicate.User

UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.

func UserNameIn

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

UserNameIn applies the In predicate on the "user_name" field.

func UserNameLT

func UserNameLT(v string) predicate.User

UserNameLT applies the LT predicate on the "user_name" field.

func UserNameLTE

func UserNameLTE(v string) predicate.User

UserNameLTE applies the LTE predicate on the "user_name" field.

func UserNameNEQ

func UserNameNEQ(v string) predicate.User

UserNameNEQ applies the NEQ predicate on the "user_name" field.

func UserNameNotIn

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

UserNameNotIn applies the NotIn predicate on the "user_name" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending Status = "pending"
	StatusActive  Status = "active"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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