userdevice

package
v0.0.0-...-04b2c92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldDeviceUID holds the string denoting the device_uid field in the database.
	FieldDeviceUID = "device_uid"
	// FieldDeviceName holds the string denoting the device_name field in the database.
	FieldDeviceName = "device_name"
	// FieldSystemName holds the string denoting the system_name field in the database.
	FieldSystemName = "system_name"
	// FieldSystemVersion holds the string denoting the system_version field in the database.
	FieldSystemVersion = "system_version"
	// FieldAppVersion holds the string denoting the app_version field in the database.
	FieldAppVersion = "app_version"
	// FieldDeviceModel holds the string denoting the device_model field in the database.
	FieldDeviceModel = "device_model"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// 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_device"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_device"
	// 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 = "user"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

View Source
var (
	Hooks [2]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DeviceUIDValidator is a validator for the "device_uid" field. It is called by the builders before save.
	DeviceUIDValidator func(string) error
	// DeviceNameValidator is a validator for the "device_name" field. It is called by the builders before save.
	DeviceNameValidator func(string) error
	// SystemNameValidator is a validator for the "system_name" field. It is called by the builders before save.
	SystemNameValidator func(string) error
	// SystemVersionValidator is a validator for the "system_version" field. It is called by the builders before save.
	SystemVersionValidator func(string) error
	// AppVersionValidator is a validator for the "app_version" field. It is called by the builders before save.
	AppVersionValidator func(string) error
	// DeviceModelValidator is a validator for the "device_model" field. It is called by the builders before save.
	DeviceModelValidator func(string) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout/ent/runtime"

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 AppVersion

func AppVersion(v string) predicate.UserDevice

AppVersion applies equality check predicate on the "app_version" field. It's identical to AppVersionEQ.

func AppVersionContains

func AppVersionContains(v string) predicate.UserDevice

AppVersionContains applies the Contains predicate on the "app_version" field.

func AppVersionContainsFold

func AppVersionContainsFold(v string) predicate.UserDevice

AppVersionContainsFold applies the ContainsFold predicate on the "app_version" field.

func AppVersionEQ

func AppVersionEQ(v string) predicate.UserDevice

AppVersionEQ applies the EQ predicate on the "app_version" field.

func AppVersionEqualFold

func AppVersionEqualFold(v string) predicate.UserDevice

AppVersionEqualFold applies the EqualFold predicate on the "app_version" field.

func AppVersionGT

func AppVersionGT(v string) predicate.UserDevice

AppVersionGT applies the GT predicate on the "app_version" field.

func AppVersionGTE

func AppVersionGTE(v string) predicate.UserDevice

AppVersionGTE applies the GTE predicate on the "app_version" field.

func AppVersionHasPrefix

func AppVersionHasPrefix(v string) predicate.UserDevice

AppVersionHasPrefix applies the HasPrefix predicate on the "app_version" field.

func AppVersionHasSuffix

func AppVersionHasSuffix(v string) predicate.UserDevice

AppVersionHasSuffix applies the HasSuffix predicate on the "app_version" field.

func AppVersionIn

func AppVersionIn(vs ...string) predicate.UserDevice

AppVersionIn applies the In predicate on the "app_version" field.

func AppVersionIsNil

func AppVersionIsNil() predicate.UserDevice

AppVersionIsNil applies the IsNil predicate on the "app_version" field.

func AppVersionLT

func AppVersionLT(v string) predicate.UserDevice

AppVersionLT applies the LT predicate on the "app_version" field.

func AppVersionLTE

func AppVersionLTE(v string) predicate.UserDevice

AppVersionLTE applies the LTE predicate on the "app_version" field.

func AppVersionNEQ

func AppVersionNEQ(v string) predicate.UserDevice

AppVersionNEQ applies the NEQ predicate on the "app_version" field.

func AppVersionNotIn

func AppVersionNotIn(vs ...string) predicate.UserDevice

AppVersionNotIn applies the NotIn predicate on the "app_version" field.

func AppVersionNotNil

func AppVersionNotNil() predicate.UserDevice

AppVersionNotNil applies the NotNil predicate on the "app_version" field.

func Comments

func Comments(v string) predicate.UserDevice

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.UserDevice

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.UserDevice

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.UserDevice

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.UserDevice

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.UserDevice

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.UserDevice

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.UserDevice

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.UserDevice

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.UserDevice

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.UserDevice

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.UserDevice

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.UserDevice

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.UserDevice

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.UserDevice

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.UserDevice

CommentsNotNil applies the NotNil predicate on the "comments" field.

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 int) predicate.UserDevice

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.UserDevice

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.UserDevice

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.UserDevice

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.UserDevice

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.UserDevice

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.UserDevice

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.UserDevice

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.UserDevice

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func DeviceModel

func DeviceModel(v string) predicate.UserDevice

DeviceModel applies equality check predicate on the "device_model" field. It's identical to DeviceModelEQ.

func DeviceModelContains

func DeviceModelContains(v string) predicate.UserDevice

DeviceModelContains applies the Contains predicate on the "device_model" field.

func DeviceModelContainsFold

func DeviceModelContainsFold(v string) predicate.UserDevice

DeviceModelContainsFold applies the ContainsFold predicate on the "device_model" field.

func DeviceModelEQ

func DeviceModelEQ(v string) predicate.UserDevice

DeviceModelEQ applies the EQ predicate on the "device_model" field.

func DeviceModelEqualFold

func DeviceModelEqualFold(v string) predicate.UserDevice

DeviceModelEqualFold applies the EqualFold predicate on the "device_model" field.

func DeviceModelGT

func DeviceModelGT(v string) predicate.UserDevice

DeviceModelGT applies the GT predicate on the "device_model" field.

func DeviceModelGTE

func DeviceModelGTE(v string) predicate.UserDevice

DeviceModelGTE applies the GTE predicate on the "device_model" field.

func DeviceModelHasPrefix

func DeviceModelHasPrefix(v string) predicate.UserDevice

DeviceModelHasPrefix applies the HasPrefix predicate on the "device_model" field.

func DeviceModelHasSuffix

func DeviceModelHasSuffix(v string) predicate.UserDevice

DeviceModelHasSuffix applies the HasSuffix predicate on the "device_model" field.

func DeviceModelIn

func DeviceModelIn(vs ...string) predicate.UserDevice

DeviceModelIn applies the In predicate on the "device_model" field.

func DeviceModelIsNil

func DeviceModelIsNil() predicate.UserDevice

DeviceModelIsNil applies the IsNil predicate on the "device_model" field.

func DeviceModelLT

func DeviceModelLT(v string) predicate.UserDevice

DeviceModelLT applies the LT predicate on the "device_model" field.

func DeviceModelLTE

func DeviceModelLTE(v string) predicate.UserDevice

DeviceModelLTE applies the LTE predicate on the "device_model" field.

func DeviceModelNEQ

func DeviceModelNEQ(v string) predicate.UserDevice

DeviceModelNEQ applies the NEQ predicate on the "device_model" field.

func DeviceModelNotIn

func DeviceModelNotIn(vs ...string) predicate.UserDevice

DeviceModelNotIn applies the NotIn predicate on the "device_model" field.

func DeviceModelNotNil

func DeviceModelNotNil() predicate.UserDevice

DeviceModelNotNil applies the NotNil predicate on the "device_model" field.

func DeviceName

func DeviceName(v string) predicate.UserDevice

DeviceName applies equality check predicate on the "device_name" field. It's identical to DeviceNameEQ.

func DeviceNameContains

func DeviceNameContains(v string) predicate.UserDevice

DeviceNameContains applies the Contains predicate on the "device_name" field.

func DeviceNameContainsFold

func DeviceNameContainsFold(v string) predicate.UserDevice

DeviceNameContainsFold applies the ContainsFold predicate on the "device_name" field.

func DeviceNameEQ

func DeviceNameEQ(v string) predicate.UserDevice

DeviceNameEQ applies the EQ predicate on the "device_name" field.

func DeviceNameEqualFold

func DeviceNameEqualFold(v string) predicate.UserDevice

DeviceNameEqualFold applies the EqualFold predicate on the "device_name" field.

func DeviceNameGT

func DeviceNameGT(v string) predicate.UserDevice

DeviceNameGT applies the GT predicate on the "device_name" field.

func DeviceNameGTE

func DeviceNameGTE(v string) predicate.UserDevice

DeviceNameGTE applies the GTE predicate on the "device_name" field.

func DeviceNameHasPrefix

func DeviceNameHasPrefix(v string) predicate.UserDevice

DeviceNameHasPrefix applies the HasPrefix predicate on the "device_name" field.

func DeviceNameHasSuffix

func DeviceNameHasSuffix(v string) predicate.UserDevice

DeviceNameHasSuffix applies the HasSuffix predicate on the "device_name" field.

func DeviceNameIn

func DeviceNameIn(vs ...string) predicate.UserDevice

DeviceNameIn applies the In predicate on the "device_name" field.

func DeviceNameIsNil

func DeviceNameIsNil() predicate.UserDevice

DeviceNameIsNil applies the IsNil predicate on the "device_name" field.

func DeviceNameLT

func DeviceNameLT(v string) predicate.UserDevice

DeviceNameLT applies the LT predicate on the "device_name" field.

func DeviceNameLTE

func DeviceNameLTE(v string) predicate.UserDevice

DeviceNameLTE applies the LTE predicate on the "device_name" field.

func DeviceNameNEQ

func DeviceNameNEQ(v string) predicate.UserDevice

DeviceNameNEQ applies the NEQ predicate on the "device_name" field.

func DeviceNameNotIn

func DeviceNameNotIn(vs ...string) predicate.UserDevice

DeviceNameNotIn applies the NotIn predicate on the "device_name" field.

func DeviceNameNotNil

func DeviceNameNotNil() predicate.UserDevice

DeviceNameNotNil applies the NotNil predicate on the "device_name" field.

func DeviceUID

func DeviceUID(v string) predicate.UserDevice

DeviceUID applies equality check predicate on the "device_uid" field. It's identical to DeviceUIDEQ.

func DeviceUIDContains

func DeviceUIDContains(v string) predicate.UserDevice

DeviceUIDContains applies the Contains predicate on the "device_uid" field.

func DeviceUIDContainsFold

func DeviceUIDContainsFold(v string) predicate.UserDevice

DeviceUIDContainsFold applies the ContainsFold predicate on the "device_uid" field.

func DeviceUIDEQ

func DeviceUIDEQ(v string) predicate.UserDevice

DeviceUIDEQ applies the EQ predicate on the "device_uid" field.

func DeviceUIDEqualFold

func DeviceUIDEqualFold(v string) predicate.UserDevice

DeviceUIDEqualFold applies the EqualFold predicate on the "device_uid" field.

func DeviceUIDGT

func DeviceUIDGT(v string) predicate.UserDevice

DeviceUIDGT applies the GT predicate on the "device_uid" field.

func DeviceUIDGTE

func DeviceUIDGTE(v string) predicate.UserDevice

DeviceUIDGTE applies the GTE predicate on the "device_uid" field.

func DeviceUIDHasPrefix

func DeviceUIDHasPrefix(v string) predicate.UserDevice

DeviceUIDHasPrefix applies the HasPrefix predicate on the "device_uid" field.

func DeviceUIDHasSuffix

func DeviceUIDHasSuffix(v string) predicate.UserDevice

DeviceUIDHasSuffix applies the HasSuffix predicate on the "device_uid" field.

func DeviceUIDIn

func DeviceUIDIn(vs ...string) predicate.UserDevice

DeviceUIDIn applies the In predicate on the "device_uid" field.

func DeviceUIDLT

func DeviceUIDLT(v string) predicate.UserDevice

DeviceUIDLT applies the LT predicate on the "device_uid" field.

func DeviceUIDLTE

func DeviceUIDLTE(v string) predicate.UserDevice

DeviceUIDLTE applies the LTE predicate on the "device_uid" field.

func DeviceUIDNEQ

func DeviceUIDNEQ(v string) predicate.UserDevice

DeviceUIDNEQ applies the NEQ predicate on the "device_uid" field.

func DeviceUIDNotIn

func DeviceUIDNotIn(vs ...string) predicate.UserDevice

DeviceUIDNotIn applies the NotIn predicate on the "device_uid" 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 ID

func ID(id int) predicate.UserDevice

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserDevice

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserDevice

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserDevice

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserDevice

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserDevice

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserDevice

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

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 StatusEQ

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

func StatusIn

func StatusIn(vs ...typex.SimpleStatus) predicate.UserDevice

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

func StatusIsNil

func StatusIsNil() predicate.UserDevice

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

func StatusNEQ

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

func StatusNotIn

func StatusNotIn(vs ...typex.SimpleStatus) predicate.UserDevice

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

func StatusNotNil

func StatusNotNil() predicate.UserDevice

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

func StatusValidator

func StatusValidator(s typex.SimpleStatus) error

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

func SystemName

func SystemName(v string) predicate.UserDevice

SystemName applies equality check predicate on the "system_name" field. It's identical to SystemNameEQ.

func SystemNameContains

func SystemNameContains(v string) predicate.UserDevice

SystemNameContains applies the Contains predicate on the "system_name" field.

func SystemNameContainsFold

func SystemNameContainsFold(v string) predicate.UserDevice

SystemNameContainsFold applies the ContainsFold predicate on the "system_name" field.

func SystemNameEQ

func SystemNameEQ(v string) predicate.UserDevice

SystemNameEQ applies the EQ predicate on the "system_name" field.

func SystemNameEqualFold

func SystemNameEqualFold(v string) predicate.UserDevice

SystemNameEqualFold applies the EqualFold predicate on the "system_name" field.

func SystemNameGT

func SystemNameGT(v string) predicate.UserDevice

SystemNameGT applies the GT predicate on the "system_name" field.

func SystemNameGTE

func SystemNameGTE(v string) predicate.UserDevice

SystemNameGTE applies the GTE predicate on the "system_name" field.

func SystemNameHasPrefix

func SystemNameHasPrefix(v string) predicate.UserDevice

SystemNameHasPrefix applies the HasPrefix predicate on the "system_name" field.

func SystemNameHasSuffix

func SystemNameHasSuffix(v string) predicate.UserDevice

SystemNameHasSuffix applies the HasSuffix predicate on the "system_name" field.

func SystemNameIn

func SystemNameIn(vs ...string) predicate.UserDevice

SystemNameIn applies the In predicate on the "system_name" field.

func SystemNameIsNil

func SystemNameIsNil() predicate.UserDevice

SystemNameIsNil applies the IsNil predicate on the "system_name" field.

func SystemNameLT

func SystemNameLT(v string) predicate.UserDevice

SystemNameLT applies the LT predicate on the "system_name" field.

func SystemNameLTE

func SystemNameLTE(v string) predicate.UserDevice

SystemNameLTE applies the LTE predicate on the "system_name" field.

func SystemNameNEQ

func SystemNameNEQ(v string) predicate.UserDevice

SystemNameNEQ applies the NEQ predicate on the "system_name" field.

func SystemNameNotIn

func SystemNameNotIn(vs ...string) predicate.UserDevice

SystemNameNotIn applies the NotIn predicate on the "system_name" field.

func SystemNameNotNil

func SystemNameNotNil() predicate.UserDevice

SystemNameNotNil applies the NotNil predicate on the "system_name" field.

func SystemVersion

func SystemVersion(v string) predicate.UserDevice

SystemVersion applies equality check predicate on the "system_version" field. It's identical to SystemVersionEQ.

func SystemVersionContains

func SystemVersionContains(v string) predicate.UserDevice

SystemVersionContains applies the Contains predicate on the "system_version" field.

func SystemVersionContainsFold

func SystemVersionContainsFold(v string) predicate.UserDevice

SystemVersionContainsFold applies the ContainsFold predicate on the "system_version" field.

func SystemVersionEQ

func SystemVersionEQ(v string) predicate.UserDevice

SystemVersionEQ applies the EQ predicate on the "system_version" field.

func SystemVersionEqualFold

func SystemVersionEqualFold(v string) predicate.UserDevice

SystemVersionEqualFold applies the EqualFold predicate on the "system_version" field.

func SystemVersionGT

func SystemVersionGT(v string) predicate.UserDevice

SystemVersionGT applies the GT predicate on the "system_version" field.

func SystemVersionGTE

func SystemVersionGTE(v string) predicate.UserDevice

SystemVersionGTE applies the GTE predicate on the "system_version" field.

func SystemVersionHasPrefix

func SystemVersionHasPrefix(v string) predicate.UserDevice

SystemVersionHasPrefix applies the HasPrefix predicate on the "system_version" field.

func SystemVersionHasSuffix

func SystemVersionHasSuffix(v string) predicate.UserDevice

SystemVersionHasSuffix applies the HasSuffix predicate on the "system_version" field.

func SystemVersionIn

func SystemVersionIn(vs ...string) predicate.UserDevice

SystemVersionIn applies the In predicate on the "system_version" field.

func SystemVersionIsNil

func SystemVersionIsNil() predicate.UserDevice

SystemVersionIsNil applies the IsNil predicate on the "system_version" field.

func SystemVersionLT

func SystemVersionLT(v string) predicate.UserDevice

SystemVersionLT applies the LT predicate on the "system_version" field.

func SystemVersionLTE

func SystemVersionLTE(v string) predicate.UserDevice

SystemVersionLTE applies the LTE predicate on the "system_version" field.

func SystemVersionNEQ

func SystemVersionNEQ(v string) predicate.UserDevice

SystemVersionNEQ applies the NEQ predicate on the "system_version" field.

func SystemVersionNotIn

func SystemVersionNotIn(vs ...string) predicate.UserDevice

SystemVersionNotIn applies the NotIn predicate on the "system_version" field.

func SystemVersionNotNil

func SystemVersionNotNil() predicate.UserDevice

SystemVersionNotNil applies the NotNil predicate on the "system_version" field.

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 UpdatedAtIsNil

func UpdatedAtIsNil() predicate.UserDevice

UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil

func UpdatedAtNotNil() predicate.UserDevice

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.UserDevice

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.UserDevice

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.UserDevice

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.UserDevice

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.UserDevice

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.UserDevice

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.UserDevice

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.UserDevice

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.UserDevice

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.UserDevice

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.UserDevice

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func UserID

func UserID(v int) predicate.UserDevice

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.UserDevice

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.UserDevice

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.UserDevice

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.UserDevice

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.UserDevice

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.UserDevice

UserIDNotNil applies the NotNil predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the UserDevice queries.

func ByAppVersion

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

ByAppVersion orders the results by the app_version field.

func ByComments

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

ByComments orders the results by the comments field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeviceModel

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

ByDeviceModel orders the results by the device_model field.

func ByDeviceName

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

ByDeviceName orders the results by the device_name field.

func ByDeviceUID

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

ByDeviceUID orders the results by the device_uid field.

func ByID

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

ByID orders the results by the id field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySystemName

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

BySystemName orders the results by the system_name field.

func BySystemVersion

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

BySystemVersion orders the results by the system_version field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByUserField

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

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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