user

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 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 = "user_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"
	// FieldLabels holds the string denoting the labels field in the database.
	FieldLabels = "labels"
	// FieldInt32s holds the string denoting the int32s field in the database.
	FieldInt32s = "int32s"
	// FieldInt64s holds the string denoting the int64s field in the database.
	FieldInt64s = "int64s"
	// FieldUint32s holds the string denoting the uint32s field in the database.
	FieldUint32s = "uint32s"
	// FieldUint64s holds the string denoting the uint64s field in the database.
	FieldUint64s = "uint64s"
	// FieldDeviceType holds the string denoting the device_type field in the database.
	FieldDeviceType = "device_type"
	// FieldOmitPrefix holds the string denoting the omit_prefix field in the database.
	FieldOmitPrefix = "omit_prefix"
	// FieldMimeType holds the string denoting the mime_type field in the database.
	FieldMimeType = "mime_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"
	// GroupFieldID holds the string denoting the ID field of the Group.
	GroupFieldID = "id"
	// AttachmentFieldID holds the string denoting the ID field of the Attachment.
	AttachmentFieldID = "id"
	// PetFieldID holds the string denoting the ID field of the Pet.
	PetFieldID = "id"
	// SkipEdgeExampleFieldID holds the string denoting the ID field of the SkipEdgeExample.
	SkipEdgeExampleFieldID = "id"
	// 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"
)
View Source
const DefaultDeviceType = DeviceTypeGLOWY9000

DeviceTypeGLOWY9000 is the default value of the DeviceType enum.

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 added in v0.2.0

func AccountBalance(v float64) predicate.User

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

func AccountBalanceEQ added in v0.2.0

func AccountBalanceEQ(v float64) predicate.User

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

func AccountBalanceGT added in v0.2.0

func AccountBalanceGT(v float64) predicate.User

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

func AccountBalanceGTE added in v0.2.0

func AccountBalanceGTE(v float64) predicate.User

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

func AccountBalanceIn added in v0.2.0

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

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

func AccountBalanceLT added in v0.2.0

func AccountBalanceLT(v float64) predicate.User

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

func AccountBalanceLTE added in v0.2.0

func AccountBalanceLTE(v float64) predicate.User

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

func AccountBalanceNEQ added in v0.2.0

func AccountBalanceNEQ(v float64) predicate.User

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

func AccountBalanceNotIn added in v0.2.0

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 added in v0.2.0

func BUser1(v int) predicate.User

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

func BUser1EQ added in v0.2.0

func BUser1EQ(v int) predicate.User

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

func BUser1GT added in v0.2.0

func BUser1GT(v int) predicate.User

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

func BUser1GTE added in v0.2.0

func BUser1GTE(v int) predicate.User

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

func BUser1In added in v0.2.0

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

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

func BUser1IsNil added in v0.2.0

func BUser1IsNil() predicate.User

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

func BUser1LT added in v0.2.0

func BUser1LT(v int) predicate.User

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

func BUser1LTE added in v0.2.0

func BUser1LTE(v int) predicate.User

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

func BUser1NEQ added in v0.2.0

func BUser1NEQ(v int) predicate.User

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

func BUser1NotIn added in v0.2.0

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

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

func BUser1NotNil added in v0.2.0

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 DeviceTypeEQ added in v0.3.0

func DeviceTypeEQ(v DeviceType) predicate.User

DeviceTypeEQ applies the EQ predicate on the "device_type" field.

func DeviceTypeIn added in v0.3.0

func DeviceTypeIn(vs ...DeviceType) predicate.User

DeviceTypeIn applies the In predicate on the "device_type" field.

func DeviceTypeNEQ added in v0.3.0

func DeviceTypeNEQ(v DeviceType) predicate.User

DeviceTypeNEQ applies the NEQ predicate on the "device_type" field.

func DeviceTypeNotIn added in v0.3.0

func DeviceTypeNotIn(vs ...DeviceType) predicate.User

DeviceTypeNotIn applies the NotIn predicate on the "device_type" field.

func DeviceTypeValidator added in v0.3.0

func DeviceTypeValidator(dt DeviceType) error

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

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 added in v0.3.0

func HasPet() predicate.User

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

func HasPetWith added in v0.3.0

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

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

func HasReceived1 added in v0.2.0

func HasReceived1() predicate.User

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

func HasReceived1With added in v0.2.0

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 added in v0.3.0

func HasSkipEdge() predicate.User

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

func HasSkipEdgeWith added in v0.3.0

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 added in v0.2.0

func HeightInCm(v float32) predicate.User

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

func HeightInCmEQ added in v0.2.0

func HeightInCmEQ(v float32) predicate.User

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

func HeightInCmGT added in v0.2.0

func HeightInCmGT(v float32) predicate.User

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

func HeightInCmGTE added in v0.2.0

func HeightInCmGTE(v float32) predicate.User

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

func HeightInCmIn added in v0.2.0

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

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

func HeightInCmLT added in v0.2.0

func HeightInCmLT(v float32) predicate.User

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

func HeightInCmLTE added in v0.2.0

func HeightInCmLTE(v float32) predicate.User

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

func HeightInCmNEQ added in v0.2.0

func HeightInCmNEQ(v float32) predicate.User

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

func HeightInCmNotIn added in v0.2.0

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

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

func ID

func ID(id uint32) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Int32sIsNil added in v0.5.0

func Int32sIsNil() predicate.User

Int32sIsNil applies the IsNil predicate on the "int32s" field.

func Int32sNotNil added in v0.5.0

func Int32sNotNil() predicate.User

Int32sNotNil applies the NotNil predicate on the "int32s" field.

func Int64sIsNil added in v0.5.0

func Int64sIsNil() predicate.User

Int64sIsNil applies the IsNil predicate on the "int64s" field.

func Int64sNotNil added in v0.5.0

func Int64sNotNil() predicate.User

Int64sNotNil applies the NotNil predicate on the "int64s" 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 LabelsIsNil added in v0.3.0

func LabelsIsNil() predicate.User

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsNotNil added in v0.3.0

func LabelsNotNil() predicate.User

LabelsNotNil applies the NotNil predicate on the "labels" field.

func MimeTypeEQ added in v0.5.0

func MimeTypeEQ(v MimeType) predicate.User

MimeTypeEQ applies the EQ predicate on the "mime_type" field.

func MimeTypeIn added in v0.5.0

func MimeTypeIn(vs ...MimeType) predicate.User

MimeTypeIn applies the In predicate on the "mime_type" field.

func MimeTypeNEQ added in v0.5.0

func MimeTypeNEQ(v MimeType) predicate.User

MimeTypeNEQ applies the NEQ predicate on the "mime_type" field.

func MimeTypeNotIn added in v0.5.0

func MimeTypeNotIn(vs ...MimeType) predicate.User

MimeTypeNotIn applies the NotIn predicate on the "mime_type" field.

func MimeTypeValidator added in v0.5.0

func MimeTypeValidator(mt MimeType) error

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

func Not

Not applies the not operator on the given predicate.

func OmitPrefixEQ added in v0.3.5

func OmitPrefixEQ(v OmitPrefix) predicate.User

OmitPrefixEQ applies the EQ predicate on the "omit_prefix" field.

func OmitPrefixIn added in v0.3.5

func OmitPrefixIn(vs ...OmitPrefix) predicate.User

OmitPrefixIn applies the In predicate on the "omit_prefix" field.

func OmitPrefixNEQ added in v0.3.5

func OmitPrefixNEQ(v OmitPrefix) predicate.User

OmitPrefixNEQ applies the NEQ predicate on the "omit_prefix" field.

func OmitPrefixNotIn added in v0.3.5

func OmitPrefixNotIn(vs ...OmitPrefix) predicate.User

OmitPrefixNotIn applies the NotIn predicate on the "omit_prefix" field.

func OmitPrefixValidator added in v0.3.5

func OmitPrefixValidator(op OmitPrefix) error

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

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 added in v0.3.0

func Type(v string) predicate.User

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

func TypeContains added in v0.3.0

func TypeContains(v string) predicate.User

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

func TypeContainsFold added in v0.3.0

func TypeContainsFold(v string) predicate.User

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

func TypeEQ added in v0.3.0

func TypeEQ(v string) predicate.User

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

func TypeEqualFold added in v0.3.0

func TypeEqualFold(v string) predicate.User

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

func TypeGT added in v0.3.0

func TypeGT(v string) predicate.User

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

func TypeGTE added in v0.3.0

func TypeGTE(v string) predicate.User

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

func TypeHasPrefix added in v0.3.0

func TypeHasPrefix(v string) predicate.User

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

func TypeHasSuffix added in v0.3.0

func TypeHasSuffix(v string) predicate.User

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

func TypeIn added in v0.3.0

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

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

func TypeIsNil added in v0.3.0

func TypeIsNil() predicate.User

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

func TypeLT added in v0.3.0

func TypeLT(v string) predicate.User

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

func TypeLTE added in v0.3.0

func TypeLTE(v string) predicate.User

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

func TypeNEQ added in v0.3.0

func TypeNEQ(v string) predicate.User

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

func TypeNotIn added in v0.3.0

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

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

func TypeNotNil added in v0.3.0

func TypeNotNil() predicate.User

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

func Uint32sIsNil added in v0.5.0

func Uint32sIsNil() predicate.User

Uint32sIsNil applies the IsNil predicate on the "uint32s" field.

func Uint32sNotNil added in v0.5.0

func Uint32sNotNil() predicate.User

Uint32sNotNil applies the NotNil predicate on the "uint32s" field.

func Uint64sIsNil added in v0.5.0

func Uint64sIsNil() predicate.User

Uint64sIsNil applies the IsNil predicate on the "uint64s" field.

func Uint64sNotNil added in v0.5.0

func Uint64sNotNil() predicate.User

Uint64sNotNil applies the NotNil predicate on the "uint64s" field.

func Unnecessary added in v0.3.0

func Unnecessary(v string) predicate.User

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

func UnnecessaryContains added in v0.3.0

func UnnecessaryContains(v string) predicate.User

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

func UnnecessaryContainsFold added in v0.3.0

func UnnecessaryContainsFold(v string) predicate.User

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

func UnnecessaryEQ added in v0.3.0

func UnnecessaryEQ(v string) predicate.User

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

func UnnecessaryEqualFold added in v0.3.0

func UnnecessaryEqualFold(v string) predicate.User

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

func UnnecessaryGT added in v0.3.0

func UnnecessaryGT(v string) predicate.User

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

func UnnecessaryGTE added in v0.3.0

func UnnecessaryGTE(v string) predicate.User

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

func UnnecessaryHasPrefix added in v0.3.0

func UnnecessaryHasPrefix(v string) predicate.User

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

func UnnecessaryHasSuffix added in v0.3.0

func UnnecessaryHasSuffix(v string) predicate.User

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

func UnnecessaryIn added in v0.3.0

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

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

func UnnecessaryIsNil added in v0.3.0

func UnnecessaryIsNil() predicate.User

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

func UnnecessaryLT added in v0.3.0

func UnnecessaryLT(v string) predicate.User

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

func UnnecessaryLTE added in v0.3.0

func UnnecessaryLTE(v string) predicate.User

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

func UnnecessaryNEQ added in v0.3.0

func UnnecessaryNEQ(v string) predicate.User

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

func UnnecessaryNotIn added in v0.3.0

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

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

func UnnecessaryNotNil added in v0.3.0

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 DeviceType added in v0.3.0

type DeviceType string

DeviceType defines the type for the "device_type" enum field.

const (
	DeviceTypeGLOWY9000 DeviceType = "GLOWY9000"
	DeviceTypeSPEEDY300 DeviceType = "SPEEDY300"
)

DeviceType values.

func (DeviceType) String added in v0.3.0

func (dt DeviceType) String() string

type MimeType added in v0.5.0

type MimeType string

MimeType defines the type for the "mime_type" enum field.

const (
	MimeTypePng MimeType = "image/png"
	MimeTypeSvg MimeType = "image/xml+svg"
)

MimeType values.

func (MimeType) String added in v0.5.0

func (mt MimeType) String() string

type OmitPrefix added in v0.3.5

type OmitPrefix string

OmitPrefix defines the type for the "omit_prefix" enum field.

const (
	OmitPrefixFoo OmitPrefix = "foo"
	OmitPrefixBar OmitPrefix = "bar"
)

OmitPrefix values.

func (OmitPrefix) String added in v0.3.5

func (op OmitPrefix) String() string

type OrderOption added in v0.4.1

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAccountBalance added in v0.4.0

func ByAccountBalance(opts ...sql.OrderTermOption) OrderOption

ByAccountBalance orders the results by the account_balance field.

func ByAttachmentField added in v0.4.0

func ByAttachmentField(field string, opts ...sql.OrderTermOption) OrderOption

ByAttachmentField orders the results by attachment field.

func ByBUser1 added in v0.4.0

func ByBUser1(opts ...sql.OrderTermOption) OrderOption

ByBUser1 orders the results by the b_user_1 field.

func ByBanned added in v0.4.0

func ByBanned(opts ...sql.OrderTermOption) OrderOption

ByBanned orders the results by the banned field.

func ByBigInt added in v0.4.0

func ByBigInt(opts ...sql.OrderTermOption) OrderOption

ByBigInt orders the results by the big_int field.

func ByCrmID added in v0.4.0

func ByCrmID(opts ...sql.OrderTermOption) OrderOption

ByCrmID orders the results by the crm_id field.

func ByCustomPb added in v0.4.0

func ByCustomPb(opts ...sql.OrderTermOption) OrderOption

ByCustomPb orders the results by the custom_pb field.

func ByDeviceType added in v0.4.0

func ByDeviceType(opts ...sql.OrderTermOption) OrderOption

ByDeviceType orders the results by the device_type field.

func ByExp added in v0.4.0

func ByExp(opts ...sql.OrderTermOption) OrderOption

ByExp orders the results by the exp field.

func ByExternalID added in v0.4.0

func ByExternalID(opts ...sql.OrderTermOption) OrderOption

ByExternalID orders the results by the external_id field.

func ByGroupField added in v0.4.0

func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption

ByGroupField orders the results by group field.

func ByHeightInCm added in v0.4.0

func ByHeightInCm(opts ...sql.OrderTermOption) OrderOption

ByHeightInCm orders the results by the height_in_cm field.

func ByID added in v0.4.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByJoined added in v0.4.0

func ByJoined(opts ...sql.OrderTermOption) OrderOption

ByJoined orders the results by the joined field.

func ByMimeType added in v0.5.0

func ByMimeType(opts ...sql.OrderTermOption) OrderOption

ByMimeType orders the results by the mime_type field.

func ByOmitPrefix added in v0.4.0

func ByOmitPrefix(opts ...sql.OrderTermOption) OrderOption

ByOmitPrefix orders the results by the omit_prefix field.

func ByOptBool added in v0.4.0

func ByOptBool(opts ...sql.OrderTermOption) OrderOption

ByOptBool orders the results by the opt_bool field.

func ByOptNum added in v0.4.0

func ByOptNum(opts ...sql.OrderTermOption) OrderOption

ByOptNum orders the results by the opt_num field.

func ByOptStr added in v0.4.0

func ByOptStr(opts ...sql.OrderTermOption) OrderOption

ByOptStr orders the results by the opt_str field.

func ByPetField added in v0.4.0

func ByPetField(field string, opts ...sql.OrderTermOption) OrderOption

ByPetField orders the results by pet field.

func ByPoints added in v0.4.0

func ByPoints(opts ...sql.OrderTermOption) OrderOption

ByPoints orders the results by the points field.

func ByReceived1 added in v0.4.0

func ByReceived1(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByReceived1 orders the results by received_1 terms.

func ByReceived1Count added in v0.4.0

func ByReceived1Count(opts ...sql.OrderTermOption) OrderOption

ByReceived1Count orders the results by received_1 count.

func BySkipEdgeField added in v0.4.0

func BySkipEdgeField(field string, opts ...sql.OrderTermOption) OrderOption

BySkipEdgeField orders the results by skip_edge field.

func ByStatus added in v0.4.0

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByType added in v0.4.0

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUnnecessary added in v0.4.0

func ByUnnecessary(opts ...sql.OrderTermOption) OrderOption

ByUnnecessary orders the results by the unnecessary field.

func ByUserName added in v0.4.0

func ByUserName(opts ...sql.OrderTermOption) OrderOption

ByUserName orders the results by the user_name field.

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