user

package
v0.0.0-...-7f4b9de Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 4 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldUserPw holds the string denoting the user_pw field in the database.
	FieldUserPw = "user_pw"
	// FieldUserName holds the string denoting the user_name field in the database.
	FieldUserName = "user_name"
	// FieldUserNumber holds the string denoting the user_number field in the database.
	FieldUserNumber = "user_number"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"

	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// EdgeOwns holds the string denoting the owns edge name in mutations.
	EdgeOwns = "owns"

	// Table holds the table name of the user in the database.
	Table = "users"
	// EventsTable is the table the holds the events relation/edge.
	EventsTable = "events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "event_user"
	// OwnsTable is the table the holds the owns relation/edge. The primary key declared below.
	OwnsTable = "client_server_owner"
	// OwnsInverseTable is the table name for the ClientServer entity.
	// It exists in this package in order to avoid circular dependency with the "clientserver" package.
	OwnsInverseTable = "client_servers"
)

Variables

Columns holds all SQL columns for user fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)
View Source
var (
	// OwnsPrimaryKey and OwnsColumn2 are the table columns denoting the
	// primary key for the owns relation (M2M).
	OwnsPrimaryKey = []string{"client_server_id", "user_id"}
)

Functions

func And

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

And groups 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 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 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 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 HasEvents

func HasEvents() predicate.User

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.User

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

func HasOwns

func HasOwns() predicate.User

HasOwns applies the HasEdge predicate on the "owns" edge.

func HasOwnsWith

func HasOwnsWith(preds ...predicate.ClientServer) predicate.User

HasOwnsWith applies the HasEdge predicate on the "owns" 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 UserID

func UserID(v string) predicate.User

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

func UserIDContains

func UserIDContains(v string) predicate.User

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.User

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.User

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.User

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.User

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.User

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.User

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.User

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v string) predicate.User

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.User

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.User

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

func UserIDNotIn

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

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

func UserName

func UserName(v string) predicate.User

UserName applies equality check predicate on the "user_name" field. It's identical to UserNameEQ.

func UserNameContains

func UserNameContains(v string) predicate.User

UserNameContains applies the Contains predicate on the "user_name" field.

func UserNameContainsFold

func UserNameContainsFold(v string) predicate.User

UserNameContainsFold applies the ContainsFold predicate on the "user_name" field.

func UserNameEQ

func UserNameEQ(v string) predicate.User

UserNameEQ applies the EQ predicate on the "user_name" field.

func UserNameEqualFold

func UserNameEqualFold(v string) predicate.User

UserNameEqualFold applies the EqualFold predicate on the "user_name" field.

func UserNameGT

func UserNameGT(v string) predicate.User

UserNameGT applies the GT predicate on the "user_name" field.

func UserNameGTE

func UserNameGTE(v string) predicate.User

UserNameGTE applies the GTE predicate on the "user_name" field.

func UserNameHasPrefix

func UserNameHasPrefix(v string) predicate.User

UserNameHasPrefix applies the HasPrefix predicate on the "user_name" field.

func UserNameHasSuffix

func UserNameHasSuffix(v string) predicate.User

UserNameHasSuffix applies the HasSuffix predicate on the "user_name" field.

func UserNameIn

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

UserNameIn applies the In predicate on the "user_name" field.

func UserNameLT

func UserNameLT(v string) predicate.User

UserNameLT applies the LT predicate on the "user_name" field.

func UserNameLTE

func UserNameLTE(v string) predicate.User

UserNameLTE applies the LTE predicate on the "user_name" field.

func UserNameNEQ

func UserNameNEQ(v string) predicate.User

UserNameNEQ applies the NEQ predicate on the "user_name" field.

func UserNameNotIn

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

UserNameNotIn applies the NotIn predicate on the "user_name" field.

func UserNumber

func UserNumber(v int) predicate.User

UserNumber applies equality check predicate on the "user_number" field. It's identical to UserNumberEQ.

func UserNumberEQ

func UserNumberEQ(v int) predicate.User

UserNumberEQ applies the EQ predicate on the "user_number" field.

func UserNumberGT

func UserNumberGT(v int) predicate.User

UserNumberGT applies the GT predicate on the "user_number" field.

func UserNumberGTE

func UserNumberGTE(v int) predicate.User

UserNumberGTE applies the GTE predicate on the "user_number" field.

func UserNumberIn

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

UserNumberIn applies the In predicate on the "user_number" field.

func UserNumberLT

func UserNumberLT(v int) predicate.User

UserNumberLT applies the LT predicate on the "user_number" field.

func UserNumberLTE

func UserNumberLTE(v int) predicate.User

UserNumberLTE applies the LTE predicate on the "user_number" field.

func UserNumberNEQ

func UserNumberNEQ(v int) predicate.User

UserNumberNEQ applies the NEQ predicate on the "user_number" field.

func UserNumberNotIn

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

UserNumberNotIn applies the NotIn predicate on the "user_number" field.

func UserPw

func UserPw(v string) predicate.User

UserPw applies equality check predicate on the "user_pw" field. It's identical to UserPwEQ.

func UserPwContains

func UserPwContains(v string) predicate.User

UserPwContains applies the Contains predicate on the "user_pw" field.

func UserPwContainsFold

func UserPwContainsFold(v string) predicate.User

UserPwContainsFold applies the ContainsFold predicate on the "user_pw" field.

func UserPwEQ

func UserPwEQ(v string) predicate.User

UserPwEQ applies the EQ predicate on the "user_pw" field.

func UserPwEqualFold

func UserPwEqualFold(v string) predicate.User

UserPwEqualFold applies the EqualFold predicate on the "user_pw" field.

func UserPwGT

func UserPwGT(v string) predicate.User

UserPwGT applies the GT predicate on the "user_pw" field.

func UserPwGTE

func UserPwGTE(v string) predicate.User

UserPwGTE applies the GTE predicate on the "user_pw" field.

func UserPwHasPrefix

func UserPwHasPrefix(v string) predicate.User

UserPwHasPrefix applies the HasPrefix predicate on the "user_pw" field.

func UserPwHasSuffix

func UserPwHasSuffix(v string) predicate.User

UserPwHasSuffix applies the HasSuffix predicate on the "user_pw" field.

func UserPwIn

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

UserPwIn applies the In predicate on the "user_pw" field.

func UserPwLT

func UserPwLT(v string) predicate.User

UserPwLT applies the LT predicate on the "user_pw" field.

func UserPwLTE

func UserPwLTE(v string) predicate.User

UserPwLTE applies the LTE predicate on the "user_pw" field.

func UserPwNEQ

func UserPwNEQ(v string) predicate.User

UserPwNEQ applies the NEQ predicate on the "user_pw" field.

func UserPwNotIn

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

UserPwNotIn applies the NotIn predicate on the "user_pw" 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