Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Banned(v bool) predicate.User
- func BannedEQ(v bool) predicate.User
- func BannedNEQ(v bool) predicate.User
- func CrmID(v uuid.UUID) predicate.User
- func CrmIDEQ(v uuid.UUID) predicate.User
- func CrmIDGT(v uuid.UUID) predicate.User
- func CrmIDGTE(v uuid.UUID) predicate.User
- func CrmIDIn(vs ...uuid.UUID) predicate.User
- func CrmIDLT(v uuid.UUID) predicate.User
- func CrmIDLTE(v uuid.UUID) predicate.User
- func CrmIDNEQ(v uuid.UUID) predicate.User
- func CrmIDNotIn(vs ...uuid.UUID) predicate.User
- func CustomPb(v uint8) predicate.User
- func CustomPbEQ(v uint8) predicate.User
- func CustomPbGT(v uint8) predicate.User
- func CustomPbGTE(v uint8) predicate.User
- func CustomPbIn(vs ...uint8) predicate.User
- func CustomPbLT(v uint8) predicate.User
- func CustomPbLTE(v uint8) predicate.User
- func CustomPbNEQ(v uint8) predicate.User
- func CustomPbNotIn(vs ...uint8) predicate.User
- func Exp(v uint64) predicate.User
- func ExpEQ(v uint64) predicate.User
- func ExpGT(v uint64) predicate.User
- func ExpGTE(v uint64) predicate.User
- func ExpIn(vs ...uint64) predicate.User
- func ExpLT(v uint64) predicate.User
- func ExpLTE(v uint64) predicate.User
- func ExpNEQ(v uint64) predicate.User
- func ExpNotIn(vs ...uint64) predicate.User
- func ExternalID(v int) predicate.User
- func ExternalIDEQ(v int) predicate.User
- func ExternalIDGT(v int) predicate.User
- func ExternalIDGTE(v int) predicate.User
- func ExternalIDIn(vs ...int) predicate.User
- func ExternalIDLT(v int) predicate.User
- func ExternalIDLTE(v int) predicate.User
- func ExternalIDNEQ(v int) predicate.User
- func ExternalIDNotIn(vs ...int) predicate.User
- func HasAttachment() predicate.User
- func HasAttachmentWith(preds ...predicate.Attachment) predicate.User
- func HasGroup() predicate.User
- func HasGroupWith(preds ...predicate.Group) predicate.User
- func HasReceived() predicate.User
- func HasReceivedWith(preds ...predicate.Attachment) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Joined(v time.Time) predicate.User
- func JoinedEQ(v time.Time) predicate.User
- func JoinedGT(v time.Time) predicate.User
- func JoinedGTE(v time.Time) predicate.User
- func JoinedIn(vs ...time.Time) predicate.User
- func JoinedLT(v time.Time) predicate.User
- func JoinedLTE(v time.Time) predicate.User
- func JoinedNEQ(v time.Time) predicate.User
- func JoinedNotIn(vs ...time.Time) predicate.User
- func Not(p predicate.User) predicate.User
- func OptBool(v bool) predicate.User
- func OptBoolEQ(v bool) predicate.User
- func OptBoolIsNil() predicate.User
- func OptBoolNEQ(v bool) predicate.User
- func OptBoolNotNil() predicate.User
- func OptNum(v int) predicate.User
- func OptNumEQ(v int) predicate.User
- func OptNumGT(v int) predicate.User
- func OptNumGTE(v int) predicate.User
- func OptNumIn(vs ...int) predicate.User
- func OptNumIsNil() predicate.User
- func OptNumLT(v int) predicate.User
- func OptNumLTE(v int) predicate.User
- func OptNumNEQ(v int) predicate.User
- func OptNumNotIn(vs ...int) predicate.User
- func OptNumNotNil() predicate.User
- func OptStr(v string) predicate.User
- func OptStrContains(v string) predicate.User
- func OptStrContainsFold(v string) predicate.User
- func OptStrEQ(v string) predicate.User
- func OptStrEqualFold(v string) predicate.User
- func OptStrGT(v string) predicate.User
- func OptStrGTE(v string) predicate.User
- func OptStrHasPrefix(v string) predicate.User
- func OptStrHasSuffix(v string) predicate.User
- func OptStrIn(vs ...string) predicate.User
- func OptStrIsNil() predicate.User
- func OptStrLT(v string) predicate.User
- func OptStrLTE(v string) predicate.User
- func OptStrNEQ(v string) predicate.User
- func OptStrNotIn(vs ...string) predicate.User
- func OptStrNotNil() predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Points(v uint) predicate.User
- func PointsEQ(v uint) predicate.User
- func PointsGT(v uint) predicate.User
- func PointsGTE(v uint) predicate.User
- func PointsIn(vs ...uint) predicate.User
- func PointsLT(v uint) predicate.User
- func PointsLTE(v uint) predicate.User
- func PointsNEQ(v uint) predicate.User
- func PointsNotIn(vs ...uint) predicate.User
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusValidator(s Status) error
- func UserName(v string) predicate.User
- func UserNameContains(v string) predicate.User
- func UserNameContainsFold(v string) predicate.User
- func UserNameEQ(v string) predicate.User
- func UserNameEqualFold(v string) predicate.User
- func UserNameGT(v string) predicate.User
- func UserNameGTE(v string) predicate.User
- func UserNameHasPrefix(v string) predicate.User
- func UserNameHasSuffix(v string) predicate.User
- func UserNameIn(vs ...string) predicate.User
- func UserNameLT(v string) predicate.User
- func UserNameLTE(v string) predicate.User
- func UserNameNEQ(v string) predicate.User
- func UserNameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // 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" // EdgeReceived holds the string denoting the received edge name in mutations. EdgeReceived = "received" // Table holds the table name of the user in the database. Table = "users" // GroupTable is the table the 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 the 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" // ReceivedTable is the table the holds the received relation/edge. The primary key declared below. ReceivedTable = "attachment_recipients" // ReceivedInverseTable is the table name for the Attachment entity. // It exists in this package in order to avoid circular dependency with the "attachment" package. ReceivedInverseTable = "attachments" )
Variables ¶
var Columns = []string{ FieldID, FieldUserName, FieldJoined, FieldPoints, FieldExp, FieldStatus, FieldExternalID, FieldCrmID, FieldBanned, FieldCustomPb, FieldOptNum, FieldOptStr, FieldOptBool, }
Columns holds all SQL columns for user fields.
var ( // DefaultBanned holds the default value on creation for the "banned" field. DefaultBanned bool )
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.
var ( // ReceivedPrimaryKey and ReceivedColumn2 are the table columns denoting the // primary key for the received relation (M2M). ReceivedPrimaryKey = []string{"attachment_id", "user_id"} )
Functions ¶
func Banned ¶
Banned applies equality check predicate on the "banned" field. It's identical to BannedEQ.
func CrmID ¶
CrmID applies equality check predicate on the "crm_id" field. It's identical to CrmIDEQ.
func CrmIDNotIn ¶
CrmIDNotIn applies the NotIn predicate on the "crm_id" field.
func CustomPb ¶
CustomPb applies equality check predicate on the "custom_pb" field. It's identical to CustomPbEQ.
func CustomPbEQ ¶
CustomPbEQ applies the EQ predicate on the "custom_pb" field.
func CustomPbGT ¶
CustomPbGT applies the GT predicate on the "custom_pb" field.
func CustomPbGTE ¶
CustomPbGTE applies the GTE predicate on the "custom_pb" field.
func CustomPbIn ¶
CustomPbIn applies the In predicate on the "custom_pb" field.
func CustomPbLT ¶
CustomPbLT applies the LT predicate on the "custom_pb" field.
func CustomPbLTE ¶
CustomPbLTE applies the LTE predicate on the "custom_pb" field.
func CustomPbNEQ ¶
CustomPbNEQ applies the NEQ predicate on the "custom_pb" field.
func CustomPbNotIn ¶
CustomPbNotIn applies the NotIn predicate on the "custom_pb" field.
func ExternalID ¶
ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.
func ExternalIDEQ ¶
ExternalIDEQ applies the EQ predicate on the "external_id" field.
func ExternalIDGT ¶
ExternalIDGT applies the GT predicate on the "external_id" field.
func ExternalIDGTE ¶
ExternalIDGTE applies the GTE predicate on the "external_id" field.
func ExternalIDIn ¶
ExternalIDIn applies the In predicate on the "external_id" field.
func ExternalIDLT ¶
ExternalIDLT applies the LT predicate on the "external_id" field.
func ExternalIDLTE ¶
ExternalIDLTE applies the LTE predicate on the "external_id" field.
func ExternalIDNEQ ¶
ExternalIDNEQ applies the NEQ predicate on the "external_id" field.
func ExternalIDNotIn ¶
ExternalIDNotIn applies the NotIn predicate on the "external_id" field.
func HasAttachment ¶
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 HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasReceived ¶
HasReceived applies the HasEdge predicate on the "received" edge.
func HasReceivedWith ¶
func HasReceivedWith(preds ...predicate.Attachment) predicate.User
HasReceivedWith applies the HasEdge predicate on the "received" edge with a given conditions (other predicates).
func Joined ¶
Joined applies equality check predicate on the "joined" field. It's identical to JoinedEQ.
func JoinedNotIn ¶
JoinedNotIn applies the NotIn predicate on the "joined" field.
func OptBool ¶
OptBool applies equality check predicate on the "opt_bool" field. It's identical to OptBoolEQ.
func OptBoolIsNil ¶
OptBoolIsNil applies the IsNil predicate on the "opt_bool" field.
func OptBoolNEQ ¶
OptBoolNEQ applies the NEQ predicate on the "opt_bool" field.
func OptBoolNotNil ¶
OptBoolNotNil applies the NotNil predicate on the "opt_bool" field.
func OptNum ¶
OptNum applies equality check predicate on the "opt_num" field. It's identical to OptNumEQ.
func OptNumIsNil ¶
OptNumIsNil applies the IsNil predicate on the "opt_num" field.
func OptNumNotIn ¶
OptNumNotIn applies the NotIn predicate on the "opt_num" field.
func OptNumNotNil ¶
OptNumNotNil applies the NotNil predicate on the "opt_num" field.
func OptStr ¶
OptStr applies equality check predicate on the "opt_str" field. It's identical to OptStrEQ.
func OptStrContains ¶
OptStrContains applies the Contains predicate on the "opt_str" field.
func OptStrContainsFold ¶
OptStrContainsFold applies the ContainsFold predicate on the "opt_str" field.
func OptStrEqualFold ¶
OptStrEqualFold applies the EqualFold predicate on the "opt_str" field.
func OptStrHasPrefix ¶
OptStrHasPrefix applies the HasPrefix predicate on the "opt_str" field.
func OptStrHasSuffix ¶
OptStrHasSuffix applies the HasSuffix predicate on the "opt_str" field.
func OptStrIsNil ¶
OptStrIsNil applies the IsNil predicate on the "opt_str" field.
func OptStrNotIn ¶
OptStrNotIn applies the NotIn predicate on the "opt_str" field.
func OptStrNotNil ¶
OptStrNotNil applies the NotNil predicate on the "opt_str" field.
func Points ¶
Points applies equality check predicate on the "points" field. It's identical to PointsEQ.
func PointsNotIn ¶
PointsNotIn applies the NotIn predicate on the "points" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UserName ¶
UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.
func UserNameContains ¶
UserNameContains applies the Contains predicate on the "user_name" field.
func UserNameContainsFold ¶
UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.
func UserNameEQ ¶
UserNameEQ applies the EQ predicate on the "user_name" field.
func UserNameEqualFold ¶
UserNameEqualFold applies the EqualFold predicate on the "user_name" field.
func UserNameGT ¶
UserNameGT applies the GT predicate on the "user_name" field.
func UserNameGTE ¶
UserNameGTE applies the GTE predicate on the "user_name" field.
func UserNameHasPrefix ¶
UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.
func UserNameHasSuffix ¶
UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.
func UserNameIn ¶
UserNameIn applies the In predicate on the "user_name" field.
func UserNameLT ¶
UserNameLT applies the LT predicate on the "user_name" field.
func UserNameLTE ¶
UserNameLTE applies the LTE predicate on the "user_name" field.
func UserNameNEQ ¶
UserNameNEQ applies the NEQ predicate on the "user_name" field.
func UserNameNotIn ¶
UserNameNotIn applies the NotIn predicate on the "user_name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).