users

package
v0.0.0-...-dba37e9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the users type in the database.
	Label = "users"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUPid holds the string denoting the u_pid field in the database.
	FieldUPid = "u_pid"
	// FieldUOrgid holds the string denoting the u_orgid field in the database.
	FieldUOrgid = "u_orgid"
	// FieldUFirstName holds the string denoting the u_first_name field in the database.
	FieldUFirstName = "u_first_name"
	// FieldULastName holds the string denoting the u_last_name field in the database.
	FieldULastName = "u_last_name"
	// FieldUIsActive holds the string denoting the u_is_active field in the database.
	FieldUIsActive = "u_is_active"
	// FieldUCreatedAt holds the string denoting the u_created_at field in the database.
	FieldUCreatedAt = "u_created_at"
	// FieldUPasswordUpdatedAt holds the string denoting the u_password_updated_at field in the database.
	FieldUPasswordUpdatedAt = "u_password_updated_at"
	// FieldUExpiredAt holds the string denoting the u_expired_at field in the database.
	FieldUExpiredAt = "u_expired_at"
	// EdgeInGroup holds the string denoting the in_group edge name in mutations.
	EdgeInGroup = "in_group"
	// Table holds the table name of the users in the database.
	Table = "users"
	// InGroupTable is the table that holds the in_group relation/edge.
	InGroupTable = "users"
	// InGroupInverseTable is the table name for the Groups entity.
	// It exists in this package in order to avoid circular dependency with the "groups" package.
	InGroupInverseTable = "groups"
	// InGroupColumn is the table column denoting the in_group relation/edge.
	InGroupColumn = "groups_users"
)

Variables

View Source
var (
	// UPidValidator is a validator for the "u_pid" field. It is called by the builders before save.
	UPidValidator func(string) error
	// UOrgidValidator is a validator for the "u_orgid" field. It is called by the builders before save.
	UOrgidValidator func(string) error
	// UFirstNameValidator is a validator for the "u_first_name" field. It is called by the builders before save.
	UFirstNameValidator func(string) error
	// ULastNameValidator is a validator for the "u_last_name" field. It is called by the builders before save.
	ULastNameValidator func(string) error
	// DefaultUIsActive holds the default value on creation for the "u_is_active" field.
	DefaultUIsActive bool
	// DefaultUCreatedAt holds the default value on creation for the "u_created_at" field.
	DefaultUCreatedAt func() time.Time
)

Columns holds all SQL columns for users fields.

View Source
var ForeignKeys = []string{
	"groups_users",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Users) predicate.Users

And groups predicates with the AND operator between them.

func HasInGroup

func HasInGroup() predicate.Users

HasInGroup applies the HasEdge predicate on the "in_group" edge.

func HasInGroupWith

func HasInGroupWith(preds ...predicate.Groups) predicate.Users

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

func ID

func ID(id int) predicate.Users

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Users

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Users

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Users

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Users

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Users

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Users

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func UCreatedAt

func UCreatedAt(v time.Time) predicate.Users

UCreatedAt applies equality check predicate on the "u_created_at" field. It's identical to UCreatedAtEQ.

func UCreatedAtEQ

func UCreatedAtEQ(v time.Time) predicate.Users

UCreatedAtEQ applies the EQ predicate on the "u_created_at" field.

func UCreatedAtGT

func UCreatedAtGT(v time.Time) predicate.Users

UCreatedAtGT applies the GT predicate on the "u_created_at" field.

func UCreatedAtGTE

func UCreatedAtGTE(v time.Time) predicate.Users

UCreatedAtGTE applies the GTE predicate on the "u_created_at" field.

func UCreatedAtIn

func UCreatedAtIn(vs ...time.Time) predicate.Users

UCreatedAtIn applies the In predicate on the "u_created_at" field.

func UCreatedAtIsNil

func UCreatedAtIsNil() predicate.Users

UCreatedAtIsNil applies the IsNil predicate on the "u_created_at" field.

func UCreatedAtLT

func UCreatedAtLT(v time.Time) predicate.Users

UCreatedAtLT applies the LT predicate on the "u_created_at" field.

func UCreatedAtLTE

func UCreatedAtLTE(v time.Time) predicate.Users

UCreatedAtLTE applies the LTE predicate on the "u_created_at" field.

func UCreatedAtNEQ

func UCreatedAtNEQ(v time.Time) predicate.Users

UCreatedAtNEQ applies the NEQ predicate on the "u_created_at" field.

func UCreatedAtNotIn

func UCreatedAtNotIn(vs ...time.Time) predicate.Users

UCreatedAtNotIn applies the NotIn predicate on the "u_created_at" field.

func UCreatedAtNotNil

func UCreatedAtNotNil() predicate.Users

UCreatedAtNotNil applies the NotNil predicate on the "u_created_at" field.

func UExpiredAt

func UExpiredAt(v time.Time) predicate.Users

UExpiredAt applies equality check predicate on the "u_expired_at" field. It's identical to UExpiredAtEQ.

func UExpiredAtEQ

func UExpiredAtEQ(v time.Time) predicate.Users

UExpiredAtEQ applies the EQ predicate on the "u_expired_at" field.

func UExpiredAtGT

func UExpiredAtGT(v time.Time) predicate.Users

UExpiredAtGT applies the GT predicate on the "u_expired_at" field.

func UExpiredAtGTE

func UExpiredAtGTE(v time.Time) predicate.Users

UExpiredAtGTE applies the GTE predicate on the "u_expired_at" field.

func UExpiredAtIn

func UExpiredAtIn(vs ...time.Time) predicate.Users

UExpiredAtIn applies the In predicate on the "u_expired_at" field.

func UExpiredAtIsNil

func UExpiredAtIsNil() predicate.Users

UExpiredAtIsNil applies the IsNil predicate on the "u_expired_at" field.

func UExpiredAtLT

func UExpiredAtLT(v time.Time) predicate.Users

UExpiredAtLT applies the LT predicate on the "u_expired_at" field.

func UExpiredAtLTE

func UExpiredAtLTE(v time.Time) predicate.Users

UExpiredAtLTE applies the LTE predicate on the "u_expired_at" field.

func UExpiredAtNEQ

func UExpiredAtNEQ(v time.Time) predicate.Users

UExpiredAtNEQ applies the NEQ predicate on the "u_expired_at" field.

func UExpiredAtNotIn

func UExpiredAtNotIn(vs ...time.Time) predicate.Users

UExpiredAtNotIn applies the NotIn predicate on the "u_expired_at" field.

func UExpiredAtNotNil

func UExpiredAtNotNil() predicate.Users

UExpiredAtNotNil applies the NotNil predicate on the "u_expired_at" field.

func UFirstName

func UFirstName(v string) predicate.Users

UFirstName applies equality check predicate on the "u_first_name" field. It's identical to UFirstNameEQ.

func UFirstNameContains

func UFirstNameContains(v string) predicate.Users

UFirstNameContains applies the Contains predicate on the "u_first_name" field.

func UFirstNameContainsFold

func UFirstNameContainsFold(v string) predicate.Users

UFirstNameContainsFold applies the ContainsFold predicate on the "u_first_name" field.

func UFirstNameEQ

func UFirstNameEQ(v string) predicate.Users

UFirstNameEQ applies the EQ predicate on the "u_first_name" field.

func UFirstNameEqualFold

func UFirstNameEqualFold(v string) predicate.Users

UFirstNameEqualFold applies the EqualFold predicate on the "u_first_name" field.

func UFirstNameGT

func UFirstNameGT(v string) predicate.Users

UFirstNameGT applies the GT predicate on the "u_first_name" field.

func UFirstNameGTE

func UFirstNameGTE(v string) predicate.Users

UFirstNameGTE applies the GTE predicate on the "u_first_name" field.

func UFirstNameHasPrefix

func UFirstNameHasPrefix(v string) predicate.Users

UFirstNameHasPrefix applies the HasPrefix predicate on the "u_first_name" field.

func UFirstNameHasSuffix

func UFirstNameHasSuffix(v string) predicate.Users

UFirstNameHasSuffix applies the HasSuffix predicate on the "u_first_name" field.

func UFirstNameIn

func UFirstNameIn(vs ...string) predicate.Users

UFirstNameIn applies the In predicate on the "u_first_name" field.

func UFirstNameLT

func UFirstNameLT(v string) predicate.Users

UFirstNameLT applies the LT predicate on the "u_first_name" field.

func UFirstNameLTE

func UFirstNameLTE(v string) predicate.Users

UFirstNameLTE applies the LTE predicate on the "u_first_name" field.

func UFirstNameNEQ

func UFirstNameNEQ(v string) predicate.Users

UFirstNameNEQ applies the NEQ predicate on the "u_first_name" field.

func UFirstNameNotIn

func UFirstNameNotIn(vs ...string) predicate.Users

UFirstNameNotIn applies the NotIn predicate on the "u_first_name" field.

func UIsActive

func UIsActive(v bool) predicate.Users

UIsActive applies equality check predicate on the "u_is_active" field. It's identical to UIsActiveEQ.

func UIsActiveEQ

func UIsActiveEQ(v bool) predicate.Users

UIsActiveEQ applies the EQ predicate on the "u_is_active" field.

func UIsActiveNEQ

func UIsActiveNEQ(v bool) predicate.Users

UIsActiveNEQ applies the NEQ predicate on the "u_is_active" field.

func ULastName

func ULastName(v string) predicate.Users

ULastName applies equality check predicate on the "u_last_name" field. It's identical to ULastNameEQ.

func ULastNameContains

func ULastNameContains(v string) predicate.Users

ULastNameContains applies the Contains predicate on the "u_last_name" field.

func ULastNameContainsFold

func ULastNameContainsFold(v string) predicate.Users

ULastNameContainsFold applies the ContainsFold predicate on the "u_last_name" field.

func ULastNameEQ

func ULastNameEQ(v string) predicate.Users

ULastNameEQ applies the EQ predicate on the "u_last_name" field.

func ULastNameEqualFold

func ULastNameEqualFold(v string) predicate.Users

ULastNameEqualFold applies the EqualFold predicate on the "u_last_name" field.

func ULastNameGT

func ULastNameGT(v string) predicate.Users

ULastNameGT applies the GT predicate on the "u_last_name" field.

func ULastNameGTE

func ULastNameGTE(v string) predicate.Users

ULastNameGTE applies the GTE predicate on the "u_last_name" field.

func ULastNameHasPrefix

func ULastNameHasPrefix(v string) predicate.Users

ULastNameHasPrefix applies the HasPrefix predicate on the "u_last_name" field.

func ULastNameHasSuffix

func ULastNameHasSuffix(v string) predicate.Users

ULastNameHasSuffix applies the HasSuffix predicate on the "u_last_name" field.

func ULastNameIn

func ULastNameIn(vs ...string) predicate.Users

ULastNameIn applies the In predicate on the "u_last_name" field.

func ULastNameLT

func ULastNameLT(v string) predicate.Users

ULastNameLT applies the LT predicate on the "u_last_name" field.

func ULastNameLTE

func ULastNameLTE(v string) predicate.Users

ULastNameLTE applies the LTE predicate on the "u_last_name" field.

func ULastNameNEQ

func ULastNameNEQ(v string) predicate.Users

ULastNameNEQ applies the NEQ predicate on the "u_last_name" field.

func ULastNameNotIn

func ULastNameNotIn(vs ...string) predicate.Users

ULastNameNotIn applies the NotIn predicate on the "u_last_name" field.

func UOrgid

func UOrgid(v string) predicate.Users

UOrgid applies equality check predicate on the "u_orgid" field. It's identical to UOrgidEQ.

func UOrgidContains

func UOrgidContains(v string) predicate.Users

UOrgidContains applies the Contains predicate on the "u_orgid" field.

func UOrgidContainsFold

func UOrgidContainsFold(v string) predicate.Users

UOrgidContainsFold applies the ContainsFold predicate on the "u_orgid" field.

func UOrgidEQ

func UOrgidEQ(v string) predicate.Users

UOrgidEQ applies the EQ predicate on the "u_orgid" field.

func UOrgidEqualFold

func UOrgidEqualFold(v string) predicate.Users

UOrgidEqualFold applies the EqualFold predicate on the "u_orgid" field.

func UOrgidGT

func UOrgidGT(v string) predicate.Users

UOrgidGT applies the GT predicate on the "u_orgid" field.

func UOrgidGTE

func UOrgidGTE(v string) predicate.Users

UOrgidGTE applies the GTE predicate on the "u_orgid" field.

func UOrgidHasPrefix

func UOrgidHasPrefix(v string) predicate.Users

UOrgidHasPrefix applies the HasPrefix predicate on the "u_orgid" field.

func UOrgidHasSuffix

func UOrgidHasSuffix(v string) predicate.Users

UOrgidHasSuffix applies the HasSuffix predicate on the "u_orgid" field.

func UOrgidIn

func UOrgidIn(vs ...string) predicate.Users

UOrgidIn applies the In predicate on the "u_orgid" field.

func UOrgidLT

func UOrgidLT(v string) predicate.Users

UOrgidLT applies the LT predicate on the "u_orgid" field.

func UOrgidLTE

func UOrgidLTE(v string) predicate.Users

UOrgidLTE applies the LTE predicate on the "u_orgid" field.

func UOrgidNEQ

func UOrgidNEQ(v string) predicate.Users

UOrgidNEQ applies the NEQ predicate on the "u_orgid" field.

func UOrgidNotIn

func UOrgidNotIn(vs ...string) predicate.Users

UOrgidNotIn applies the NotIn predicate on the "u_orgid" field.

func UPasswordUpdatedAt

func UPasswordUpdatedAt(v time.Time) predicate.Users

UPasswordUpdatedAt applies equality check predicate on the "u_password_updated_at" field. It's identical to UPasswordUpdatedAtEQ.

func UPasswordUpdatedAtEQ

func UPasswordUpdatedAtEQ(v time.Time) predicate.Users

UPasswordUpdatedAtEQ applies the EQ predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtGT

func UPasswordUpdatedAtGT(v time.Time) predicate.Users

UPasswordUpdatedAtGT applies the GT predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtGTE

func UPasswordUpdatedAtGTE(v time.Time) predicate.Users

UPasswordUpdatedAtGTE applies the GTE predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtIn

func UPasswordUpdatedAtIn(vs ...time.Time) predicate.Users

UPasswordUpdatedAtIn applies the In predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtIsNil

func UPasswordUpdatedAtIsNil() predicate.Users

UPasswordUpdatedAtIsNil applies the IsNil predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtLT

func UPasswordUpdatedAtLT(v time.Time) predicate.Users

UPasswordUpdatedAtLT applies the LT predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtLTE

func UPasswordUpdatedAtLTE(v time.Time) predicate.Users

UPasswordUpdatedAtLTE applies the LTE predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtNEQ

func UPasswordUpdatedAtNEQ(v time.Time) predicate.Users

UPasswordUpdatedAtNEQ applies the NEQ predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtNotIn

func UPasswordUpdatedAtNotIn(vs ...time.Time) predicate.Users

UPasswordUpdatedAtNotIn applies the NotIn predicate on the "u_password_updated_at" field.

func UPasswordUpdatedAtNotNil

func UPasswordUpdatedAtNotNil() predicate.Users

UPasswordUpdatedAtNotNil applies the NotNil predicate on the "u_password_updated_at" field.

func UPid

func UPid(v string) predicate.Users

UPid applies equality check predicate on the "u_pid" field. It's identical to UPidEQ.

func UPidContains

func UPidContains(v string) predicate.Users

UPidContains applies the Contains predicate on the "u_pid" field.

func UPidContainsFold

func UPidContainsFold(v string) predicate.Users

UPidContainsFold applies the ContainsFold predicate on the "u_pid" field.

func UPidEQ

func UPidEQ(v string) predicate.Users

UPidEQ applies the EQ predicate on the "u_pid" field.

func UPidEqualFold

func UPidEqualFold(v string) predicate.Users

UPidEqualFold applies the EqualFold predicate on the "u_pid" field.

func UPidGT

func UPidGT(v string) predicate.Users

UPidGT applies the GT predicate on the "u_pid" field.

func UPidGTE

func UPidGTE(v string) predicate.Users

UPidGTE applies the GTE predicate on the "u_pid" field.

func UPidHasPrefix

func UPidHasPrefix(v string) predicate.Users

UPidHasPrefix applies the HasPrefix predicate on the "u_pid" field.

func UPidHasSuffix

func UPidHasSuffix(v string) predicate.Users

UPidHasSuffix applies the HasSuffix predicate on the "u_pid" field.

func UPidIn

func UPidIn(vs ...string) predicate.Users

UPidIn applies the In predicate on the "u_pid" field.

func UPidLT

func UPidLT(v string) predicate.Users

UPidLT applies the LT predicate on the "u_pid" field.

func UPidLTE

func UPidLTE(v string) predicate.Users

UPidLTE applies the LTE predicate on the "u_pid" field.

func UPidNEQ

func UPidNEQ(v string) predicate.Users

UPidNEQ applies the NEQ predicate on the "u_pid" field.

func UPidNotIn

func UPidNotIn(vs ...string) predicate.Users

UPidNotIn applies the NotIn predicate on the "u_pid" 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