user

package
v0.0.0-...-c68951b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 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"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldEmailAddress holds the string denoting the email_address field in the database.
	FieldEmailAddress = "email_address"
	// FieldIsSuperUser holds the string denoting the is_super_user field in the database.
	FieldIsSuperUser = "is_super_user"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeCreatedTasks holds the string denoting the created_tasks edge name in mutations.
	EdgeCreatedTasks = "created_tasks"
	// Table holds the table name of the user in the database.
	Table = "users"
	// CreatedTasksTable is the table that holds the created_tasks relation/edge.
	CreatedTasksTable = "tasks"
	// CreatedTasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	CreatedTasksInverseTable = "tasks"
	// CreatedTasksColumn is the table column denoting the created_tasks relation/edge.
	CreatedTasksColumn = "task_created_by"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

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

func EmailAddress(v string) predicate.User

EmailAddress applies equality check predicate on the "email_address" field. It's identical to EmailAddressEQ.

func EmailAddressContains

func EmailAddressContains(v string) predicate.User

EmailAddressContains applies the Contains predicate on the "email_address" field.

func EmailAddressContainsFold

func EmailAddressContainsFold(v string) predicate.User

EmailAddressContainsFold applies the ContainsFold predicate on the "email_address" field.

func EmailAddressEQ

func EmailAddressEQ(v string) predicate.User

EmailAddressEQ applies the EQ predicate on the "email_address" field.

func EmailAddressEqualFold

func EmailAddressEqualFold(v string) predicate.User

EmailAddressEqualFold applies the EqualFold predicate on the "email_address" field.

func EmailAddressGT

func EmailAddressGT(v string) predicate.User

EmailAddressGT applies the GT predicate on the "email_address" field.

func EmailAddressGTE

func EmailAddressGTE(v string) predicate.User

EmailAddressGTE applies the GTE predicate on the "email_address" field.

func EmailAddressHasPrefix

func EmailAddressHasPrefix(v string) predicate.User

EmailAddressHasPrefix applies the HasPrefix predicate on the "email_address" field.

func EmailAddressHasSuffix

func EmailAddressHasSuffix(v string) predicate.User

EmailAddressHasSuffix applies the HasSuffix predicate on the "email_address" field.

func EmailAddressIn

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

EmailAddressIn applies the In predicate on the "email_address" field.

func EmailAddressLT

func EmailAddressLT(v string) predicate.User

EmailAddressLT applies the LT predicate on the "email_address" field.

func EmailAddressLTE

func EmailAddressLTE(v string) predicate.User

EmailAddressLTE applies the LTE predicate on the "email_address" field.

func EmailAddressNEQ

func EmailAddressNEQ(v string) predicate.User

EmailAddressNEQ applies the NEQ predicate on the "email_address" field.

func EmailAddressNotIn

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

EmailAddressNotIn applies the NotIn predicate on the "email_address" field.

func Enabled

func Enabled(v bool) predicate.User

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.User

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.User

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasCreatedTasks

func HasCreatedTasks() predicate.User

HasCreatedTasks applies the HasEdge predicate on the "created_tasks" edge.

func HasCreatedTasksWith

func HasCreatedTasksWith(preds ...predicate.Task) predicate.User

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

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func IsSuperUser

func IsSuperUser(v bool) predicate.User

IsSuperUser applies equality check predicate on the "is_super_user" field. It's identical to IsSuperUserEQ.

func IsSuperUserEQ

func IsSuperUserEQ(v bool) predicate.User

IsSuperUserEQ applies the EQ predicate on the "is_super_user" field.

func IsSuperUserNEQ

func IsSuperUserNEQ(v bool) predicate.User

IsSuperUserNEQ applies the NEQ predicate on the "is_super_user" 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 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