user

package
v0.0.0-...-dfe096b Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIdentity holds the string denoting the identity field in the database.
	FieldIdentity = "identity"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldIsDisable holds the string denoting the is_disable field in the database.
	FieldIsDisable = "is_disable"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"

	// Table holds the table name of the user in the database.
	Table = "user"
)

Variables

View Source
var (
	// DefaultType holds the default value on creation for the type field.
	DefaultType int32
	// DefaultIsDisable holds the default value on creation for the is_disable field.
	DefaultIsDisable int32
)

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.User

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.User

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.User

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.User

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.User

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.User

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

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

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.User

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.User

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.User

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.User

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

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

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.User

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ID

func ID(id int64) predicate.User

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int64) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Identity

func Identity(v string) predicate.User

Identity applies equality check predicate on the "identity" field. It's identical to IdentityEQ.

func IdentityContains

func IdentityContains(v string) predicate.User

IdentityContains applies the Contains predicate on the "identity" field.

func IdentityContainsFold

func IdentityContainsFold(v string) predicate.User

IdentityContainsFold applies the ContainsFold predicate on the "identity" field.

func IdentityEQ

func IdentityEQ(v string) predicate.User

IdentityEQ applies the EQ predicate on the "identity" field.

func IdentityEqualFold

func IdentityEqualFold(v string) predicate.User

IdentityEqualFold applies the EqualFold predicate on the "identity" field.

func IdentityGT

func IdentityGT(v string) predicate.User

IdentityGT applies the GT predicate on the "identity" field.

func IdentityGTE

func IdentityGTE(v string) predicate.User

IdentityGTE applies the GTE predicate on the "identity" field.

func IdentityHasPrefix

func IdentityHasPrefix(v string) predicate.User

IdentityHasPrefix applies the HasPrefix predicate on the "identity" field.

func IdentityHasSuffix

func IdentityHasSuffix(v string) predicate.User

IdentityHasSuffix applies the HasSuffix predicate on the "identity" field.

func IdentityIn

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

IdentityIn applies the In predicate on the "identity" field.

func IdentityIsNil

func IdentityIsNil() predicate.User

IdentityIsNil applies the IsNil predicate on the "identity" field.

func IdentityLT

func IdentityLT(v string) predicate.User

IdentityLT applies the LT predicate on the "identity" field.

func IdentityLTE

func IdentityLTE(v string) predicate.User

IdentityLTE applies the LTE predicate on the "identity" field.

func IdentityNEQ

func IdentityNEQ(v string) predicate.User

IdentityNEQ applies the NEQ predicate on the "identity" field.

func IdentityNotIn

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

IdentityNotIn applies the NotIn predicate on the "identity" field.

func IdentityNotNil

func IdentityNotNil() predicate.User

IdentityNotNil applies the NotNil predicate on the "identity" field.

func IsDisable

func IsDisable(v int32) predicate.User

IsDisable applies equality check predicate on the "is_disable" field. It's identical to IsDisableEQ.

func IsDisableEQ

func IsDisableEQ(v int32) predicate.User

IsDisableEQ applies the EQ predicate on the "is_disable" field.

func IsDisableGT

func IsDisableGT(v int32) predicate.User

IsDisableGT applies the GT predicate on the "is_disable" field.

func IsDisableGTE

func IsDisableGTE(v int32) predicate.User

IsDisableGTE applies the GTE predicate on the "is_disable" field.

func IsDisableIn

func IsDisableIn(vs ...int32) predicate.User

IsDisableIn applies the In predicate on the "is_disable" field.

func IsDisableLT

func IsDisableLT(v int32) predicate.User

IsDisableLT applies the LT predicate on the "is_disable" field.

func IsDisableLTE

func IsDisableLTE(v int32) predicate.User

IsDisableLTE applies the LTE predicate on the "is_disable" field.

func IsDisableNEQ

func IsDisableNEQ(v int32) predicate.User

IsDisableNEQ applies the NEQ predicate on the "is_disable" field.

func IsDisableNotIn

func IsDisableNotIn(vs ...int32) predicate.User

IsDisableNotIn applies the NotIn predicate on the "is_disable" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups list of predicates with the OR operator between them.

func Type

func Type(v int32) predicate.User

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

func TypeEQ

func TypeEQ(v int32) predicate.User

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

func TypeGT

func TypeGT(v int32) predicate.User

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

func TypeGTE

func TypeGTE(v int32) predicate.User

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

func TypeIn

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

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

func TypeLT

func TypeLT(v int32) predicate.User

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

func TypeLTE

func TypeLTE(v int32) predicate.User

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

func TypeNEQ

func TypeNEQ(v int32) predicate.User

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

func TypeNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.User

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.User

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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