user

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 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"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldSalt holds the string denoting the salt field in the database.
	FieldSalt = "salt"
	// FieldRegIP holds the string denoting the reg_ip field in the database.
	FieldRegIP = "reg_ip"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldRegTime holds the string denoting the reg_time field in the database.
	FieldRegTime = "reg_time"
	// EdgeCreatedTexture holds the string denoting the created_texture edge name in mutations.
	EdgeCreatedTexture = "created_texture"
	// EdgeProfile holds the string denoting the profile edge name in mutations.
	EdgeProfile = "profile"
	// EdgeToken holds the string denoting the token edge name in mutations.
	EdgeToken = "token"
	// Table holds the table name of the user in the database.
	Table = "users"
	// CreatedTextureTable is the table that holds the created_texture relation/edge.
	CreatedTextureTable = "textures"
	// CreatedTextureInverseTable is the table name for the Texture entity.
	// It exists in this package in order to avoid circular dependency with the "texture" package.
	CreatedTextureInverseTable = "textures"
	// CreatedTextureColumn is the table column denoting the created_texture relation/edge.
	CreatedTextureColumn = "texture_created_user"
	// ProfileTable is the table that holds the profile relation/edge.
	ProfileTable = "user_profiles"
	// ProfileInverseTable is the table name for the UserProfile entity.
	// It exists in this package in order to avoid circular dependency with the "userprofile" package.
	ProfileInverseTable = "user_profiles"
	// ProfileColumn is the table column denoting the profile relation/edge.
	ProfileColumn = "user_profile"
	// TokenTable is the table that holds the token relation/edge.
	TokenTable = "user_tokens"
	// TokenInverseTable is the table name for the UserToken entity.
	// It exists in this package in order to avoid circular dependency with the "usertoken" package.
	TokenInverseTable = "user_tokens"
	// TokenColumn is the table column denoting the token relation/edge.
	TokenColumn = "user_token"
)

Variables

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

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

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

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

EmailNotIn applies the NotIn predicate on the "email" field.

func HasCreatedTexture

func HasCreatedTexture() predicate.User

HasCreatedTexture applies the HasEdge predicate on the "created_texture" edge.

func HasCreatedTextureWith

func HasCreatedTextureWith(preds ...predicate.Texture) predicate.User

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

func HasProfile

func HasProfile() predicate.User

HasProfile applies the HasEdge predicate on the "profile" edge.

func HasProfileWith

func HasProfileWith(preds ...predicate.UserProfile) predicate.User

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

func HasToken

func HasToken() predicate.User

HasToken applies the HasEdge predicate on the "token" edge.

func HasTokenWith

func HasTokenWith(preds ...predicate.UserToken) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.User) predicate.User

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

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

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

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

PasswordNotIn applies the NotIn predicate on the "password" field.

func RegIP

func RegIP(v string) predicate.User

RegIP applies equality check predicate on the "reg_ip" field. It's identical to RegIPEQ.

func RegIPContains

func RegIPContains(v string) predicate.User

RegIPContains applies the Contains predicate on the "reg_ip" field.

func RegIPContainsFold

func RegIPContainsFold(v string) predicate.User

RegIPContainsFold applies the ContainsFold predicate on the "reg_ip" field.

func RegIPEQ

func RegIPEQ(v string) predicate.User

RegIPEQ applies the EQ predicate on the "reg_ip" field.

func RegIPEqualFold

func RegIPEqualFold(v string) predicate.User

RegIPEqualFold applies the EqualFold predicate on the "reg_ip" field.

func RegIPGT

func RegIPGT(v string) predicate.User

RegIPGT applies the GT predicate on the "reg_ip" field.

func RegIPGTE

func RegIPGTE(v string) predicate.User

RegIPGTE applies the GTE predicate on the "reg_ip" field.

func RegIPHasPrefix

func RegIPHasPrefix(v string) predicate.User

RegIPHasPrefix applies the HasPrefix predicate on the "reg_ip" field.

func RegIPHasSuffix

func RegIPHasSuffix(v string) predicate.User

RegIPHasSuffix applies the HasSuffix predicate on the "reg_ip" field.

func RegIPIn

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

RegIPIn applies the In predicate on the "reg_ip" field.

func RegIPLT

func RegIPLT(v string) predicate.User

RegIPLT applies the LT predicate on the "reg_ip" field.

func RegIPLTE

func RegIPLTE(v string) predicate.User

RegIPLTE applies the LTE predicate on the "reg_ip" field.

func RegIPNEQ

func RegIPNEQ(v string) predicate.User

RegIPNEQ applies the NEQ predicate on the "reg_ip" field.

func RegIPNotIn

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

RegIPNotIn applies the NotIn predicate on the "reg_ip" field.

func RegTime

func RegTime(v int64) predicate.User

RegTime applies equality check predicate on the "reg_time" field. It's identical to RegTimeEQ.

func RegTimeEQ

func RegTimeEQ(v int64) predicate.User

RegTimeEQ applies the EQ predicate on the "reg_time" field.

func RegTimeGT

func RegTimeGT(v int64) predicate.User

RegTimeGT applies the GT predicate on the "reg_time" field.

func RegTimeGTE

func RegTimeGTE(v int64) predicate.User

RegTimeGTE applies the GTE predicate on the "reg_time" field.

func RegTimeIn

func RegTimeIn(vs ...int64) predicate.User

RegTimeIn applies the In predicate on the "reg_time" field.

func RegTimeLT

func RegTimeLT(v int64) predicate.User

RegTimeLT applies the LT predicate on the "reg_time" field.

func RegTimeLTE

func RegTimeLTE(v int64) predicate.User

RegTimeLTE applies the LTE predicate on the "reg_time" field.

func RegTimeNEQ

func RegTimeNEQ(v int64) predicate.User

RegTimeNEQ applies the NEQ predicate on the "reg_time" field.

func RegTimeNotIn

func RegTimeNotIn(vs ...int64) predicate.User

RegTimeNotIn applies the NotIn predicate on the "reg_time" field.

func Salt

func Salt(v string) predicate.User

Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.

func SaltContains

func SaltContains(v string) predicate.User

SaltContains applies the Contains predicate on the "salt" field.

func SaltContainsFold

func SaltContainsFold(v string) predicate.User

SaltContainsFold applies the ContainsFold predicate on the "salt" field.

func SaltEQ

func SaltEQ(v string) predicate.User

SaltEQ applies the EQ predicate on the "salt" field.

func SaltEqualFold

func SaltEqualFold(v string) predicate.User

SaltEqualFold applies the EqualFold predicate on the "salt" field.

func SaltGT

func SaltGT(v string) predicate.User

SaltGT applies the GT predicate on the "salt" field.

func SaltGTE

func SaltGTE(v string) predicate.User

SaltGTE applies the GTE predicate on the "salt" field.

func SaltHasPrefix

func SaltHasPrefix(v string) predicate.User

SaltHasPrefix applies the HasPrefix predicate on the "salt" field.

func SaltHasSuffix

func SaltHasSuffix(v string) predicate.User

SaltHasSuffix applies the HasSuffix predicate on the "salt" field.

func SaltIn

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

SaltIn applies the In predicate on the "salt" field.

func SaltLT

func SaltLT(v string) predicate.User

SaltLT applies the LT predicate on the "salt" field.

func SaltLTE

func SaltLTE(v string) predicate.User

SaltLTE applies the LTE predicate on the "salt" field.

func SaltNEQ

func SaltNEQ(v string) predicate.User

SaltNEQ applies the NEQ predicate on the "salt" field.

func SaltNotIn

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

SaltNotIn applies the NotIn predicate on the "salt" field.

func State

func State(v int) predicate.User

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v int) predicate.User

StateEQ applies the EQ predicate on the "state" field.

func StateGT

func StateGT(v int) predicate.User

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v int) predicate.User

StateGTE applies the GTE predicate on the "state" field.

func StateIn

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

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v int) predicate.User

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v int) predicate.User

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v int) predicate.User

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

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

StateNotIn applies the NotIn predicate on the "state" 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 User queries.

func ByCreatedTexture

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

ByCreatedTexture orders the results by created_texture terms.

func ByCreatedTextureCount

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

ByCreatedTextureCount orders the results by created_texture count.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByPassword

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

ByPassword orders the results by the password field.

func ByProfileField

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

ByProfileField orders the results by profile field.

func ByRegIP

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

ByRegIP orders the results by the reg_ip field.

func ByRegTime

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

ByRegTime orders the results by the reg_time field.

func BySalt

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

BySalt orders the results by the salt field.

func ByState

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

ByState orders the results by the state field.

func ByTokenField

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

ByTokenField orders the results by token field.

Jump to

Keyboard shortcuts

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