user

package
v0.0.0-...-b394ddd Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 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"
	// FieldLogin holds the string denoting the login field in the database.
	FieldLogin = "login"
	// FieldFirstName holds the string denoting the firstname field in the database.
	FieldFirstName = "first_name"
	// FieldLastName holds the string denoting the lastname field in the database.
	FieldLastName = "last_name"
	// FieldDisplayName holds the string denoting the displayname field in the database.
	FieldDisplayName = "display_name"
	// FieldImagePath holds the string denoting the imagepath field in the database.
	FieldImagePath = "image_path"
	// EdgeRoles holds the string denoting the roles edge name in mutations.
	EdgeRoles = "roles"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// Table holds the table name of the user in the database.
	Table = "users"
	// RolesTable is the table that holds the roles relation/edge. The primary key declared below.
	RolesTable = "role_users"
	// RolesInverseTable is the table name for the Role entity.
	// It exists in this package in order to avoid circular dependency with the "role" package.
	RolesInverseTable = "roles"
	// EventsTable is the table that holds the events relation/edge. The primary key declared below.
	EventsTable = "event_users"
	// 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"
)

Variables

View Source
var (
	// RolesPrimaryKey and RolesColumn2 are the table columns denoting the
	// primary key for the roles relation (M2M).
	RolesPrimaryKey = []string{"role_id", "user_id"}
	// EventsPrimaryKey and EventsColumn2 are the table columns denoting the
	// primary key for the events relation (M2M).
	EventsPrimaryKey = []string{"event_id", "user_id"}
)
View Source
var (
	// LoginValidator is a validator for the "login" field. It is called by the builders before save.
	LoginValidator func(string) error
	// 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 DisplayName

func DisplayName(v string) predicate.User

DisplayName applies equality check predicate on the "displayName" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.User

DisplayNameContains applies the Contains predicate on the "displayName" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.User

DisplayNameContainsFold applies the ContainsFold predicate on the "displayName" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.User

DisplayNameEQ applies the EQ predicate on the "displayName" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.User

DisplayNameEqualFold applies the EqualFold predicate on the "displayName" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.User

DisplayNameGT applies the GT predicate on the "displayName" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.User

DisplayNameGTE applies the GTE predicate on the "displayName" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.User

DisplayNameHasPrefix applies the HasPrefix predicate on the "displayName" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.User

DisplayNameHasSuffix applies the HasSuffix predicate on the "displayName" field.

func DisplayNameIn

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

DisplayNameIn applies the In predicate on the "displayName" field.

func DisplayNameIsNil

func DisplayNameIsNil() predicate.User

DisplayNameIsNil applies the IsNil predicate on the "displayName" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.User

DisplayNameLT applies the LT predicate on the "displayName" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.User

DisplayNameLTE applies the LTE predicate on the "displayName" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.User

DisplayNameNEQ applies the NEQ predicate on the "displayName" field.

func DisplayNameNotIn

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

DisplayNameNotIn applies the NotIn predicate on the "displayName" field.

func DisplayNameNotNil

func DisplayNameNotNil() predicate.User

DisplayNameNotNil applies the NotNil predicate on the "displayName" field.

func FirstName

func FirstName(v string) predicate.User

FirstName applies equality check predicate on the "firstName" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.User

FirstNameContains applies the Contains predicate on the "firstName" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.User

FirstNameContainsFold applies the ContainsFold predicate on the "firstName" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.User

FirstNameEQ applies the EQ predicate on the "firstName" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.User

FirstNameEqualFold applies the EqualFold predicate on the "firstName" field.

func FirstNameGT

func FirstNameGT(v string) predicate.User

FirstNameGT applies the GT predicate on the "firstName" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.User

FirstNameGTE applies the GTE predicate on the "firstName" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.User

FirstNameHasPrefix applies the HasPrefix predicate on the "firstName" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.User

FirstNameHasSuffix applies the HasSuffix predicate on the "firstName" field.

func FirstNameIn

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

FirstNameIn applies the In predicate on the "firstName" field.

func FirstNameIsNil

func FirstNameIsNil() predicate.User

FirstNameIsNil applies the IsNil predicate on the "firstName" field.

func FirstNameLT

func FirstNameLT(v string) predicate.User

FirstNameLT applies the LT predicate on the "firstName" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.User

FirstNameLTE applies the LTE predicate on the "firstName" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.User

FirstNameNEQ applies the NEQ predicate on the "firstName" field.

func FirstNameNotIn

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

FirstNameNotIn applies the NotIn predicate on the "firstName" field.

func FirstNameNotNil

func FirstNameNotNil() predicate.User

FirstNameNotNil applies the NotNil predicate on the "firstName" 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 HasRoles

func HasRoles() predicate.User

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith

func HasRolesWith(preds ...predicate.Role) predicate.User

HasRolesWith applies the HasEdge predicate on the "roles" 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 ImagePath

func ImagePath(v string) predicate.User

ImagePath applies equality check predicate on the "imagePath" field. It's identical to ImagePathEQ.

func ImagePathContains

func ImagePathContains(v string) predicate.User

ImagePathContains applies the Contains predicate on the "imagePath" field.

func ImagePathContainsFold

func ImagePathContainsFold(v string) predicate.User

ImagePathContainsFold applies the ContainsFold predicate on the "imagePath" field.

func ImagePathEQ

func ImagePathEQ(v string) predicate.User

ImagePathEQ applies the EQ predicate on the "imagePath" field.

func ImagePathEqualFold

func ImagePathEqualFold(v string) predicate.User

ImagePathEqualFold applies the EqualFold predicate on the "imagePath" field.

func ImagePathGT

func ImagePathGT(v string) predicate.User

ImagePathGT applies the GT predicate on the "imagePath" field.

func ImagePathGTE

func ImagePathGTE(v string) predicate.User

ImagePathGTE applies the GTE predicate on the "imagePath" field.

func ImagePathHasPrefix

func ImagePathHasPrefix(v string) predicate.User

ImagePathHasPrefix applies the HasPrefix predicate on the "imagePath" field.

func ImagePathHasSuffix

func ImagePathHasSuffix(v string) predicate.User

ImagePathHasSuffix applies the HasSuffix predicate on the "imagePath" field.

func ImagePathIn

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

ImagePathIn applies the In predicate on the "imagePath" field.

func ImagePathIsNil

func ImagePathIsNil() predicate.User

ImagePathIsNil applies the IsNil predicate on the "imagePath" field.

func ImagePathLT

func ImagePathLT(v string) predicate.User

ImagePathLT applies the LT predicate on the "imagePath" field.

func ImagePathLTE

func ImagePathLTE(v string) predicate.User

ImagePathLTE applies the LTE predicate on the "imagePath" field.

func ImagePathNEQ

func ImagePathNEQ(v string) predicate.User

ImagePathNEQ applies the NEQ predicate on the "imagePath" field.

func ImagePathNotIn

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

ImagePathNotIn applies the NotIn predicate on the "imagePath" field.

func ImagePathNotNil

func ImagePathNotNil() predicate.User

ImagePathNotNil applies the NotNil predicate on the "imagePath" field.

func LastName

func LastName(v string) predicate.User

LastName applies equality check predicate on the "lastName" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.User

LastNameContains applies the Contains predicate on the "lastName" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.User

LastNameContainsFold applies the ContainsFold predicate on the "lastName" field.

func LastNameEQ

func LastNameEQ(v string) predicate.User

LastNameEQ applies the EQ predicate on the "lastName" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.User

LastNameEqualFold applies the EqualFold predicate on the "lastName" field.

func LastNameGT

func LastNameGT(v string) predicate.User

LastNameGT applies the GT predicate on the "lastName" field.

func LastNameGTE

func LastNameGTE(v string) predicate.User

LastNameGTE applies the GTE predicate on the "lastName" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.User

LastNameHasPrefix applies the HasPrefix predicate on the "lastName" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.User

LastNameHasSuffix applies the HasSuffix predicate on the "lastName" field.

func LastNameIn

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

LastNameIn applies the In predicate on the "lastName" field.

func LastNameIsNil

func LastNameIsNil() predicate.User

LastNameIsNil applies the IsNil predicate on the "lastName" field.

func LastNameLT

func LastNameLT(v string) predicate.User

LastNameLT applies the LT predicate on the "lastName" field.

func LastNameLTE

func LastNameLTE(v string) predicate.User

LastNameLTE applies the LTE predicate on the "lastName" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.User

LastNameNEQ applies the NEQ predicate on the "lastName" field.

func LastNameNotIn

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

LastNameNotIn applies the NotIn predicate on the "lastName" field.

func LastNameNotNil

func LastNameNotNil() predicate.User

LastNameNotNil applies the NotNil predicate on the "lastName" field.

func Login

func Login(v string) predicate.User

Login applies equality check predicate on the "login" field. It's identical to LoginEQ.

func LoginContains

func LoginContains(v string) predicate.User

LoginContains applies the Contains predicate on the "login" field.

func LoginContainsFold

func LoginContainsFold(v string) predicate.User

LoginContainsFold applies the ContainsFold predicate on the "login" field.

func LoginEQ

func LoginEQ(v string) predicate.User

LoginEQ applies the EQ predicate on the "login" field.

func LoginEqualFold

func LoginEqualFold(v string) predicate.User

LoginEqualFold applies the EqualFold predicate on the "login" field.

func LoginGT

func LoginGT(v string) predicate.User

LoginGT applies the GT predicate on the "login" field.

func LoginGTE

func LoginGTE(v string) predicate.User

LoginGTE applies the GTE predicate on the "login" field.

func LoginHasPrefix

func LoginHasPrefix(v string) predicate.User

LoginHasPrefix applies the HasPrefix predicate on the "login" field.

func LoginHasSuffix

func LoginHasSuffix(v string) predicate.User

LoginHasSuffix applies the HasSuffix predicate on the "login" field.

func LoginIn

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

LoginIn applies the In predicate on the "login" field.

func LoginLT

func LoginLT(v string) predicate.User

LoginLT applies the LT predicate on the "login" field.

func LoginLTE

func LoginLTE(v string) predicate.User

LoginLTE applies the LTE predicate on the "login" field.

func LoginNEQ

func LoginNEQ(v string) predicate.User

LoginNEQ applies the NEQ predicate on the "login" field.

func LoginNotIn

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

LoginNotIn applies the NotIn predicate on the "login" 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 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