user

package
v0.0.0-...-8b8ac75 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 5 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"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldSalt holds the string denoting the salt field in the database.
	FieldSalt = "salt"
	// FieldAlgorithm holds the string denoting the algorithm field in the database.
	FieldAlgorithm = "algorithm"
	// 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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// Table holds the table name of the user in the database.
	Table = "users"
	// GroupsTable is the table that holds the groups relation/edge. The primary key declared below.
	GroupsTable = "group_users"
	// GroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupsInverseTable = "groups"
)

Variables

View Source
var (
	// DefaultAlgorithm holds the default value on creation for the "algorithm" field.
	DefaultAlgorithm int32
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// 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
)

Columns holds all SQL columns for user fields.

View Source
var (
	// GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
	// primary key for the groups relation (M2M).
	GroupsPrimaryKey = []string{"group_id", "user_id"}
)

Functions

func Algorithm

func Algorithm(v int32) predicate.User

Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.

func AlgorithmEQ

func AlgorithmEQ(v int32) predicate.User

AlgorithmEQ applies the EQ predicate on the "algorithm" field.

func AlgorithmGT

func AlgorithmGT(v int32) predicate.User

AlgorithmGT applies the GT predicate on the "algorithm" field.

func AlgorithmGTE

func AlgorithmGTE(v int32) predicate.User

AlgorithmGTE applies the GTE predicate on the "algorithm" field.

func AlgorithmIn

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

AlgorithmIn applies the In predicate on the "algorithm" field.

func AlgorithmLT

func AlgorithmLT(v int32) predicate.User

AlgorithmLT applies the LT predicate on the "algorithm" field.

func AlgorithmLTE

func AlgorithmLTE(v int32) predicate.User

AlgorithmLTE applies the LTE predicate on the "algorithm" field.

func AlgorithmNEQ

func AlgorithmNEQ(v int32) predicate.User

AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.

func AlgorithmNotIn

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

AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.

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 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 HasGroups

func HasGroups() predicate.User

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.User

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

func Hash

func Hash(v string) predicate.User

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.User

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.User

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.User

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.User

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.User

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.User

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.User

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.User

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

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

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.User

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.User

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.User

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

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

HashNotIn applies the NotIn predicate on the "hash" field.

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 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 UUID

func UUID(v uuid.UUID) predicate.User

UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.User

UUIDEQ applies the EQ predicate on the "uuid" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.User

UUIDGT applies the GT predicate on the "uuid" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.User

UUIDGTE applies the GTE predicate on the "uuid" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.User

UUIDIn applies the In predicate on the "uuid" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.User

UUIDLT applies the LT predicate on the "uuid" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.User

UUIDLTE applies the LTE predicate on the "uuid" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.User

UUIDNEQ applies the NEQ predicate on the "uuid" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.User

UUIDNotIn applies the NotIn predicate on the "uuid" 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 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 Username

func Username(v string) predicate.User

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.User

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.User

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.User

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.User

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

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

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.User

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.User

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

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

UsernameNotIn applies the NotIn predicate on the "username" 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