user

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 6 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"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldUsePublicapi holds the string denoting the use_publicapi field in the database.
	FieldUsePublicapi = "use_publicapi"
	// FieldLogin holds the string denoting the login field in the database.
	FieldLogin = "login"
	// FieldSurname holds the string denoting the surname field in the database.
	FieldSurname = "surname"
	// FieldFirstname holds the string denoting the firstname field in the database.
	FieldFirstname = "firstname"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPasswordhash holds the string denoting the passwordhash field in the database.
	FieldPasswordhash = "passwordhash"
	// FieldComment holds the string denoting the comment field in the database.
	FieldComment = "comment"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// EdgeBusinesses holds the string denoting the businesses edge name in mutations.
	EdgeBusinesses = "businesses"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// Table holds the table name of the user in the database.
	Table = "users"
	// BusinessesTable is the table that holds the businesses relation/edge. The primary key declared below.
	BusinessesTable = "business_users"
	// BusinessesInverseTable is the table name for the Business entity.
	// It exists in this package in order to avoid circular dependency with the "business" package.
	BusinessesInverseTable = "businesses"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "user_tags"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tags"
)

Variables

View Source
var (
	// BusinessesPrimaryKey and BusinessesColumn2 are the table columns denoting the
	// primary key for the businesses relation (M2M).
	BusinessesPrimaryKey = []string{"business_id", "user_id"}
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"user_id", "tag_id"}
)
View Source
var (
	Hooks  [4]ent.Hook
	Policy ent.Policy
	// 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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultUsePublicapi holds the default value on creation for the "use_publicapi" field.
	DefaultUsePublicapi string
	// LoginValidator is a validator for the "login" field. It is called by the builders before save.
	LoginValidator func(string) error
	// SurnameValidator is a validator for the "surname" field. It is called by the builders before save.
	SurnameValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultRole holds the default value on creation for the "role" field.
	DefaultRole string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/hkonitzer/ohmab/ent/runtime"

Columns holds all SQL columns for user fields.

Functions

func Active

func Active(v bool) predicate.User

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.User

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.User

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

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

And groups predicates with the AND operator between them.

func Comment

func Comment(v string) predicate.User

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.User

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.User

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.User

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.User

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.User

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.User

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.User

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.User

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

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

CommentIn applies the In predicate on the "comment" field.

func CommentIsNil

func CommentIsNil() predicate.User

CommentIsNil applies the IsNil predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.User

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.User

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.User

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

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

CommentNotIn applies the NotIn predicate on the "comment" field.

func CommentNotNil

func CommentNotNil() predicate.User

CommentNotNil applies the NotNil predicate on the "comment" field.

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

func HasBusinesses() predicate.User

HasBusinesses applies the HasEdge predicate on the "businesses" edge.

func HasBusinessesWith

func HasBusinessesWith(preds ...predicate.Business) predicate.User

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

func HasTags

func HasTags() predicate.User

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.User

HasTagsWith applies the HasEdge predicate on the "tags" 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 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 Passwordhash

func Passwordhash(v string) predicate.User

Passwordhash applies equality check predicate on the "passwordhash" field. It's identical to PasswordhashEQ.

func PasswordhashContains

func PasswordhashContains(v string) predicate.User

PasswordhashContains applies the Contains predicate on the "passwordhash" field.

func PasswordhashContainsFold

func PasswordhashContainsFold(v string) predicate.User

PasswordhashContainsFold applies the ContainsFold predicate on the "passwordhash" field.

func PasswordhashEQ

func PasswordhashEQ(v string) predicate.User

PasswordhashEQ applies the EQ predicate on the "passwordhash" field.

func PasswordhashEqualFold

func PasswordhashEqualFold(v string) predicate.User

PasswordhashEqualFold applies the EqualFold predicate on the "passwordhash" field.

func PasswordhashGT

func PasswordhashGT(v string) predicate.User

PasswordhashGT applies the GT predicate on the "passwordhash" field.

func PasswordhashGTE

func PasswordhashGTE(v string) predicate.User

PasswordhashGTE applies the GTE predicate on the "passwordhash" field.

func PasswordhashHasPrefix

func PasswordhashHasPrefix(v string) predicate.User

PasswordhashHasPrefix applies the HasPrefix predicate on the "passwordhash" field.

func PasswordhashHasSuffix

func PasswordhashHasSuffix(v string) predicate.User

PasswordhashHasSuffix applies the HasSuffix predicate on the "passwordhash" field.

func PasswordhashIn

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

PasswordhashIn applies the In predicate on the "passwordhash" field.

func PasswordhashIsNil

func PasswordhashIsNil() predicate.User

PasswordhashIsNil applies the IsNil predicate on the "passwordhash" field.

func PasswordhashLT

func PasswordhashLT(v string) predicate.User

PasswordhashLT applies the LT predicate on the "passwordhash" field.

func PasswordhashLTE

func PasswordhashLTE(v string) predicate.User

PasswordhashLTE applies the LTE predicate on the "passwordhash" field.

func PasswordhashNEQ

func PasswordhashNEQ(v string) predicate.User

PasswordhashNEQ applies the NEQ predicate on the "passwordhash" field.

func PasswordhashNotIn

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

PasswordhashNotIn applies the NotIn predicate on the "passwordhash" field.

func PasswordhashNotNil

func PasswordhashNotNil() predicate.User

PasswordhashNotNil applies the NotNil predicate on the "passwordhash" field.

func Role

func Role(v string) predicate.User

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.User

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.User

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v string) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v string) predicate.User

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v string) predicate.User

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v string) predicate.User

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.User

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.User

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

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

RoleIn applies the In predicate on the "role" field.

func RoleLT

func RoleLT(v string) predicate.User

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v string) predicate.User

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v string) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

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

RoleNotIn applies the NotIn predicate on the "role" field.

func Surname

func Surname(v string) predicate.User

Surname applies equality check predicate on the "surname" field. It's identical to SurnameEQ.

func SurnameContains

func SurnameContains(v string) predicate.User

SurnameContains applies the Contains predicate on the "surname" field.

func SurnameContainsFold

func SurnameContainsFold(v string) predicate.User

SurnameContainsFold applies the ContainsFold predicate on the "surname" field.

func SurnameEQ

func SurnameEQ(v string) predicate.User

SurnameEQ applies the EQ predicate on the "surname" field.

func SurnameEqualFold

func SurnameEqualFold(v string) predicate.User

SurnameEqualFold applies the EqualFold predicate on the "surname" field.

func SurnameGT

func SurnameGT(v string) predicate.User

SurnameGT applies the GT predicate on the "surname" field.

func SurnameGTE

func SurnameGTE(v string) predicate.User

SurnameGTE applies the GTE predicate on the "surname" field.

func SurnameHasPrefix

func SurnameHasPrefix(v string) predicate.User

SurnameHasPrefix applies the HasPrefix predicate on the "surname" field.

func SurnameHasSuffix

func SurnameHasSuffix(v string) predicate.User

SurnameHasSuffix applies the HasSuffix predicate on the "surname" field.

func SurnameIn

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

SurnameIn applies the In predicate on the "surname" field.

func SurnameLT

func SurnameLT(v string) predicate.User

SurnameLT applies the LT predicate on the "surname" field.

func SurnameLTE

func SurnameLTE(v string) predicate.User

SurnameLTE applies the LTE predicate on the "surname" field.

func SurnameNEQ

func SurnameNEQ(v string) predicate.User

SurnameNEQ applies the NEQ predicate on the "surname" field.

func SurnameNotIn

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

SurnameNotIn applies the NotIn predicate on the "surname" field.

func Title

func Title(v string) predicate.User

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.User

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.User

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.User

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.User

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.User

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.User

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.User

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.User

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

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

TitleIn applies the In predicate on the "title" field.

func TitleIsNil

func TitleIsNil() predicate.User

TitleIsNil applies the IsNil predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.User

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.User

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.User

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

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

TitleNotIn applies the NotIn predicate on the "title" field.

func TitleNotNil

func TitleNotNil() predicate.User

TitleNotNil applies the NotNil predicate on the "title" 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 UsePublicapi

func UsePublicapi(v string) predicate.User

UsePublicapi applies equality check predicate on the "use_publicapi" field. It's identical to UsePublicapiEQ.

func UsePublicapiContains

func UsePublicapiContains(v string) predicate.User

UsePublicapiContains applies the Contains predicate on the "use_publicapi" field.

func UsePublicapiContainsFold

func UsePublicapiContainsFold(v string) predicate.User

UsePublicapiContainsFold applies the ContainsFold predicate on the "use_publicapi" field.

func UsePublicapiEQ

func UsePublicapiEQ(v string) predicate.User

UsePublicapiEQ applies the EQ predicate on the "use_publicapi" field.

func UsePublicapiEqualFold

func UsePublicapiEqualFold(v string) predicate.User

UsePublicapiEqualFold applies the EqualFold predicate on the "use_publicapi" field.

func UsePublicapiGT

func UsePublicapiGT(v string) predicate.User

UsePublicapiGT applies the GT predicate on the "use_publicapi" field.

func UsePublicapiGTE

func UsePublicapiGTE(v string) predicate.User

UsePublicapiGTE applies the GTE predicate on the "use_publicapi" field.

func UsePublicapiHasPrefix

func UsePublicapiHasPrefix(v string) predicate.User

UsePublicapiHasPrefix applies the HasPrefix predicate on the "use_publicapi" field.

func UsePublicapiHasSuffix

func UsePublicapiHasSuffix(v string) predicate.User

UsePublicapiHasSuffix applies the HasSuffix predicate on the "use_publicapi" field.

func UsePublicapiIn

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

UsePublicapiIn applies the In predicate on the "use_publicapi" field.

func UsePublicapiLT

func UsePublicapiLT(v string) predicate.User

UsePublicapiLT applies the LT predicate on the "use_publicapi" field.

func UsePublicapiLTE

func UsePublicapiLTE(v string) predicate.User

UsePublicapiLTE applies the LTE predicate on the "use_publicapi" field.

func UsePublicapiNEQ

func UsePublicapiNEQ(v string) predicate.User

UsePublicapiNEQ applies the NEQ predicate on the "use_publicapi" field.

func UsePublicapiNotIn

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

UsePublicapiNotIn applies the NotIn predicate on the "use_publicapi" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByActive

func ByActive(opts ...sql.OrderTermOption) OrderOption

ByActive orders the results by the active field.

func ByBusinesses

func ByBusinesses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBusinesses orders the results by businesses terms.

func ByBusinessesCount

func ByBusinessesCount(opts ...sql.OrderTermOption) OrderOption

ByBusinessesCount orders the results by businesses count.

func ByComment

func ByComment(opts ...sql.OrderTermOption) OrderOption

ByComment orders the results by the comment field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByEmail

func ByEmail(opts ...sql.OrderTermOption) OrderOption

ByEmail orders the results by the email field.

func ByFirstname

func ByFirstname(opts ...sql.OrderTermOption) OrderOption

ByFirstname orders the results by the firstname field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLogin

func ByLogin(opts ...sql.OrderTermOption) OrderOption

ByLogin orders the results by the login field.

func ByPasswordhash

func ByPasswordhash(opts ...sql.OrderTermOption) OrderOption

ByPasswordhash orders the results by the passwordhash field.

func ByRole

func ByRole(opts ...sql.OrderTermOption) OrderOption

ByRole orders the results by the role field.

func BySurname

func BySurname(opts ...sql.OrderTermOption) OrderOption

BySurname orders the results by the surname field.

func ByTags

func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTags orders the results by tags terms.

func ByTagsCount

func ByTagsCount(opts ...sql.OrderTermOption) OrderOption

ByTagsCount orders the results by tags count.

func ByTitle

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUsePublicapi

func ByUsePublicapi(opts ...sql.OrderTermOption) OrderOption

ByUsePublicapi orders the results by the use_publicapi field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL