Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserDevice) predicate.UserDevice
- func CreatedAt(v time.Time) predicate.UserDevice
- func CreatedAtEQ(v time.Time) predicate.UserDevice
- func CreatedAtGT(v time.Time) predicate.UserDevice
- func CreatedAtGTE(v time.Time) predicate.UserDevice
- func CreatedAtIn(vs ...time.Time) predicate.UserDevice
- func CreatedAtLT(v time.Time) predicate.UserDevice
- func CreatedAtLTE(v time.Time) predicate.UserDevice
- func CreatedAtNEQ(v time.Time) predicate.UserDevice
- func CreatedAtNotIn(vs ...time.Time) predicate.UserDevice
- func CreatedBy(v string) predicate.UserDevice
- func CreatedByContains(v string) predicate.UserDevice
- func CreatedByContainsFold(v string) predicate.UserDevice
- func CreatedByEQ(v string) predicate.UserDevice
- func CreatedByEqualFold(v string) predicate.UserDevice
- func CreatedByGT(v string) predicate.UserDevice
- func CreatedByGTE(v string) predicate.UserDevice
- func CreatedByHasPrefix(v string) predicate.UserDevice
- func CreatedByHasSuffix(v string) predicate.UserDevice
- func CreatedByIn(vs ...string) predicate.UserDevice
- func CreatedByLT(v string) predicate.UserDevice
- func CreatedByLTE(v string) predicate.UserDevice
- func CreatedByNEQ(v string) predicate.UserDevice
- func CreatedByNotIn(vs ...string) predicate.UserDevice
- func HasUser() predicate.UserDevice
- func HasUserWith(preds ...predicate.User) predicate.UserDevice
- func ID(id string) predicate.UserDevice
- func IDEQ(id string) predicate.UserDevice
- func IDGT(id string) predicate.UserDevice
- func IDGTE(id string) predicate.UserDevice
- func IDIn(ids ...string) predicate.UserDevice
- func IDLT(id string) predicate.UserDevice
- func IDLTE(id string) predicate.UserDevice
- func IDNEQ(id string) predicate.UserDevice
- func IDNotIn(ids ...string) predicate.UserDevice
- func Not(p predicate.UserDevice) predicate.UserDevice
- func Or(predicates ...predicate.UserDevice) predicate.UserDevice
- func OsEQ(v Os) predicate.UserDevice
- func OsIn(vs ...Os) predicate.UserDevice
- func OsNEQ(v Os) predicate.UserDevice
- func OsNotIn(vs ...Os) predicate.UserDevice
- func OsValidator(o Os) error
- func PlatformEQ(v Platform) predicate.UserDevice
- func PlatformIn(vs ...Platform) predicate.UserDevice
- func PlatformNEQ(v Platform) predicate.UserDevice
- func PlatformNotIn(vs ...Platform) predicate.UserDevice
- func PlatformValidator(pl Platform) error
- func StatusEQ(v Status) predicate.UserDevice
- func StatusIn(vs ...Status) predicate.UserDevice
- func StatusNEQ(v Status) predicate.UserDevice
- func StatusNotIn(vs ...Status) predicate.UserDevice
- func StatusValidator(s Status) error
- func TypeEQ(v Type) predicate.UserDevice
- func TypeIn(vs ...Type) predicate.UserDevice
- func TypeNEQ(v Type) predicate.UserDevice
- func TypeNotIn(vs ...Type) predicate.UserDevice
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.UserDevice
- func UpdatedAtEQ(v time.Time) predicate.UserDevice
- func UpdatedAtGT(v time.Time) predicate.UserDevice
- func UpdatedAtGTE(v time.Time) predicate.UserDevice
- func UpdatedAtIn(vs ...time.Time) predicate.UserDevice
- func UpdatedAtLT(v time.Time) predicate.UserDevice
- func UpdatedAtLTE(v time.Time) predicate.UserDevice
- func UpdatedAtNEQ(v time.Time) predicate.UserDevice
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserDevice
- func UpdatedBy(v string) predicate.UserDevice
- func UpdatedByContains(v string) predicate.UserDevice
- func UpdatedByContainsFold(v string) predicate.UserDevice
- func UpdatedByEQ(v string) predicate.UserDevice
- func UpdatedByEqualFold(v string) predicate.UserDevice
- func UpdatedByGT(v string) predicate.UserDevice
- func UpdatedByGTE(v string) predicate.UserDevice
- func UpdatedByHasPrefix(v string) predicate.UserDevice
- func UpdatedByHasSuffix(v string) predicate.UserDevice
- func UpdatedByIn(vs ...string) predicate.UserDevice
- func UpdatedByLT(v string) predicate.UserDevice
- func UpdatedByLTE(v string) predicate.UserDevice
- func UpdatedByNEQ(v string) predicate.UserDevice
- func UpdatedByNotIn(vs ...string) predicate.UserDevice
- func UserID(v string) predicate.UserDevice
- func UserIDContains(v string) predicate.UserDevice
- func UserIDContainsFold(v string) predicate.UserDevice
- func UserIDEQ(v string) predicate.UserDevice
- func UserIDEqualFold(v string) predicate.UserDevice
- func UserIDGT(v string) predicate.UserDevice
- func UserIDGTE(v string) predicate.UserDevice
- func UserIDHasPrefix(v string) predicate.UserDevice
- func UserIDHasSuffix(v string) predicate.UserDevice
- func UserIDIn(vs ...string) predicate.UserDevice
- func UserIDLT(v string) predicate.UserDevice
- func UserIDLTE(v string) predicate.UserDevice
- func UserIDNEQ(v string) predicate.UserDevice
- func UserIDNotIn(vs ...string) predicate.UserDevice
- func ValidColumn(column string) bool
- type Os
- type Platform
- type Status
- type Type
Constants ¶
const ( // Label holds the string label denoting the userdevice type in the database. Label = "user_device" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldOs holds the string denoting the os field in the database. FieldOs = "os" // FieldPlatform holds the string denoting the platform field in the database. FieldPlatform = "platform" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userdevice in the database. Table = "user_devices" // UserTable is the table that holds the user relation/edge. UserTable = "user_devices" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
const DefaultStatus = StatusACTIVE
StatusACTIVE is the default value of the Status enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldUserID, FieldCreatedAt, FieldCreatedBy, FieldUpdatedAt, FieldUpdatedBy, FieldStatus, FieldType, FieldOs, FieldPlatform, }
Columns holds all SQL columns for userdevice fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserDevice) predicate.UserDevice
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserDevice
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserDevice
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserDevice
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserDevice
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserDevice
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserDevice
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserDevice
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserDevice
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserDevice
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.UserDevice
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.UserDevice
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.UserDevice
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.UserDevice
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.UserDevice
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.UserDevice
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.UserDevice
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.UserDevice
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.UserDevice
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.UserDevice
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.UserDevice
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.UserDevice
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.UserDevice
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.UserDevice
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasUser ¶
func HasUser() predicate.UserDevice
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserDevice
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id string) predicate.UserDevice
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.UserDevice
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.UserDevice
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.UserDevice
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.UserDevice
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.UserDevice
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.UserDevice
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.UserDevice
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserDevice) predicate.UserDevice
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserDevice) predicate.UserDevice
Or groups predicates with the OR operator between them.
func OsIn ¶
func OsIn(vs ...Os) predicate.UserDevice
OsIn applies the In predicate on the "os" field.
func OsNEQ ¶
func OsNEQ(v Os) predicate.UserDevice
OsNEQ applies the NEQ predicate on the "os" field.
func OsNotIn ¶
func OsNotIn(vs ...Os) predicate.UserDevice
OsNotIn applies the NotIn predicate on the "os" field.
func OsValidator ¶
OsValidator is a validator for the "os" field enum values. It is called by the builders before save.
func PlatformEQ ¶
func PlatformEQ(v Platform) predicate.UserDevice
PlatformEQ applies the EQ predicate on the "platform" field.
func PlatformIn ¶
func PlatformIn(vs ...Platform) predicate.UserDevice
PlatformIn applies the In predicate on the "platform" field.
func PlatformNEQ ¶
func PlatformNEQ(v Platform) predicate.UserDevice
PlatformNEQ applies the NEQ predicate on the "platform" field.
func PlatformNotIn ¶
func PlatformNotIn(vs ...Platform) predicate.UserDevice
PlatformNotIn applies the NotIn predicate on the "platform" field.
func PlatformValidator ¶
PlatformValidator is a validator for the "platform" field enum values. It is called by the builders before save.
func StatusEQ ¶
func StatusEQ(v Status) predicate.UserDevice
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.UserDevice
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.UserDevice
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.UserDevice
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 TypeEQ ¶
func TypeEQ(v Type) predicate.UserDevice
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.UserDevice
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.UserDevice
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.UserDevice
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserDevice
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserDevice
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserDevice
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserDevice
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserDevice
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserDevice
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserDevice
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserDevice
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserDevice
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.UserDevice
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.UserDevice
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.UserDevice
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.UserDevice
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.UserDevice
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.UserDevice
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.UserDevice
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.UserDevice
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.UserDevice
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.UserDevice
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.UserDevice
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.UserDevice
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.UserDevice
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.UserDevice
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UserID ¶
func UserID(v string) predicate.UserDevice
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.UserDevice
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.UserDevice
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.UserDevice
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.UserDevice
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.UserDevice
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.UserDevice
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.UserDevice
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.UserDevice
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.UserDevice
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.UserDevice
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.UserDevice
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.UserDevice
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.UserDevice
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Platform ¶
type Platform string
Platform defines the type for the "platform" enum field.