user

package
v0.0.0-...-2de19fb Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT 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"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPasswordHash holds the string denoting the password_hash field in the database.
	FieldPasswordHash = "password_hash"
	// FieldService holds the string denoting the service field in the database.
	FieldService = "service"
	// FieldTeamsID holds the string denoting the teams_id field in the database.
	FieldTeamsID = "teams_id"
	// FieldTelegramID holds the string denoting the telegram_id field in the database.
	FieldTelegramID = "telegram_id"
	// FieldSlackID holds the string denoting the slack_id field in the database.
	FieldSlackID = "slack_id"

	// EdgeDialog holds the string denoting the dialog edge name in mutations.
	EdgeDialog = "dialog"
	// EdgeProjects holds the string denoting the projects edge name in mutations.
	EdgeProjects = "projects"

	// Table holds the table name of the user in the database.
	Table = "users"
	// DialogTable is the table the holds the dialog relation/edge.
	DialogTable = "dialogs"
	// DialogInverseTable is the table name for the Dialog entity.
	// It exists in this package in order to avoid circular dependency with the "dialog" package.
	DialogInverseTable = "dialogs"
	// DialogColumn is the table column denoting the dialog relation/edge.
	DialogColumn = "user_dialog"
	// ProjectsTable is the table the holds the projects relation/edge.
	ProjectsTable = "projects"
	// ProjectsInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectsInverseTable = "projects"
	// ProjectsColumn is the table column denoting the projects relation/edge.
	ProjectsColumn = "user_projects"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the create_time field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the update_time field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the update_time field.
	UpdateDefaultUpdateTime func() time.Time
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator func(string) error
	// DefaultService holds the default value on creation for the service field.
	DefaultService bool
)

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.User

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.User

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.User

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.User

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.User

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.User

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.User

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.User

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.User

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DisplayName

func DisplayName(v string) predicate.User

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

func DisplayNameContains

func DisplayNameContains(v string) predicate.User

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

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.User

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

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.User

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

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.User

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

func DisplayNameGT

func DisplayNameGT(v string) predicate.User

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

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.User

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

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.User

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

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.User

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

func DisplayNameIn

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

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

func DisplayNameIsNil

func DisplayNameIsNil() predicate.User

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

func DisplayNameLT

func DisplayNameLT(v string) predicate.User

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

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.User

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

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.User

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

func DisplayNameNotIn

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

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

func DisplayNameNotNil

func DisplayNameNotNil() predicate.User

DisplayNameNotNil applies the NotNil predicate on the "display_name" 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 EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil 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 EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func HasDialog

func HasDialog() predicate.User

HasDialog applies the HasEdge predicate on the "dialog" edge.

func HasDialogWith

func HasDialogWith(preds ...predicate.Dialog) predicate.User

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

func HasProjects

func HasProjects() predicate.User

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their identifier.

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 list of predicates with the OR operator between them.

func PasswordHash

func PasswordHash(v string) predicate.User

PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.

func PasswordHashContains

func PasswordHashContains(v string) predicate.User

PasswordHashContains applies the Contains predicate on the "password_hash" field.

func PasswordHashContainsFold

func PasswordHashContainsFold(v string) predicate.User

PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.

func PasswordHashEQ

func PasswordHashEQ(v string) predicate.User

PasswordHashEQ applies the EQ predicate on the "password_hash" field.

func PasswordHashEqualFold

func PasswordHashEqualFold(v string) predicate.User

PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.

func PasswordHashGT

func PasswordHashGT(v string) predicate.User

PasswordHashGT applies the GT predicate on the "password_hash" field.

func PasswordHashGTE

func PasswordHashGTE(v string) predicate.User

PasswordHashGTE applies the GTE predicate on the "password_hash" field.

func PasswordHashHasPrefix

func PasswordHashHasPrefix(v string) predicate.User

PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.

func PasswordHashHasSuffix

func PasswordHashHasSuffix(v string) predicate.User

PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.

func PasswordHashIn

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

PasswordHashIn applies the In predicate on the "password_hash" field.

func PasswordHashLT

func PasswordHashLT(v string) predicate.User

PasswordHashLT applies the LT predicate on the "password_hash" field.

func PasswordHashLTE

func PasswordHashLTE(v string) predicate.User

PasswordHashLTE applies the LTE predicate on the "password_hash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v string) predicate.User

PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.

func PasswordHashNotIn

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

PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.

func Service

func Service(v bool) predicate.User

Service applies equality check predicate on the "service" field. It's identical to ServiceEQ.

func ServiceEQ

func ServiceEQ(v bool) predicate.User

ServiceEQ applies the EQ predicate on the "service" field.

func ServiceNEQ

func ServiceNEQ(v bool) predicate.User

ServiceNEQ applies the NEQ predicate on the "service" field.

func SlackID

func SlackID(v string) predicate.User

SlackID applies equality check predicate on the "slack_id" field. It's identical to SlackIDEQ.

func SlackIDContains

func SlackIDContains(v string) predicate.User

SlackIDContains applies the Contains predicate on the "slack_id" field.

func SlackIDContainsFold

func SlackIDContainsFold(v string) predicate.User

SlackIDContainsFold applies the ContainsFold predicate on the "slack_id" field.

func SlackIDEQ

func SlackIDEQ(v string) predicate.User

SlackIDEQ applies the EQ predicate on the "slack_id" field.

func SlackIDEqualFold

func SlackIDEqualFold(v string) predicate.User

SlackIDEqualFold applies the EqualFold predicate on the "slack_id" field.

func SlackIDGT

func SlackIDGT(v string) predicate.User

SlackIDGT applies the GT predicate on the "slack_id" field.

func SlackIDGTE

func SlackIDGTE(v string) predicate.User

SlackIDGTE applies the GTE predicate on the "slack_id" field.

func SlackIDHasPrefix

func SlackIDHasPrefix(v string) predicate.User

SlackIDHasPrefix applies the HasPrefix predicate on the "slack_id" field.

func SlackIDHasSuffix

func SlackIDHasSuffix(v string) predicate.User

SlackIDHasSuffix applies the HasSuffix predicate on the "slack_id" field.

func SlackIDIn

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

SlackIDIn applies the In predicate on the "slack_id" field.

func SlackIDIsNil

func SlackIDIsNil() predicate.User

SlackIDIsNil applies the IsNil predicate on the "slack_id" field.

func SlackIDLT

func SlackIDLT(v string) predicate.User

SlackIDLT applies the LT predicate on the "slack_id" field.

func SlackIDLTE

func SlackIDLTE(v string) predicate.User

SlackIDLTE applies the LTE predicate on the "slack_id" field.

func SlackIDNEQ

func SlackIDNEQ(v string) predicate.User

SlackIDNEQ applies the NEQ predicate on the "slack_id" field.

func SlackIDNotIn

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

SlackIDNotIn applies the NotIn predicate on the "slack_id" field.

func SlackIDNotNil

func SlackIDNotNil() predicate.User

SlackIDNotNil applies the NotNil predicate on the "slack_id" field.

func TeamsID

func TeamsID(v string) predicate.User

TeamsID applies equality check predicate on the "teams_id" field. It's identical to TeamsIDEQ.

func TeamsIDContains

func TeamsIDContains(v string) predicate.User

TeamsIDContains applies the Contains predicate on the "teams_id" field.

func TeamsIDContainsFold

func TeamsIDContainsFold(v string) predicate.User

TeamsIDContainsFold applies the ContainsFold predicate on the "teams_id" field.

func TeamsIDEQ

func TeamsIDEQ(v string) predicate.User

TeamsIDEQ applies the EQ predicate on the "teams_id" field.

func TeamsIDEqualFold

func TeamsIDEqualFold(v string) predicate.User

TeamsIDEqualFold applies the EqualFold predicate on the "teams_id" field.

func TeamsIDGT

func TeamsIDGT(v string) predicate.User

TeamsIDGT applies the GT predicate on the "teams_id" field.

func TeamsIDGTE

func TeamsIDGTE(v string) predicate.User

TeamsIDGTE applies the GTE predicate on the "teams_id" field.

func TeamsIDHasPrefix

func TeamsIDHasPrefix(v string) predicate.User

TeamsIDHasPrefix applies the HasPrefix predicate on the "teams_id" field.

func TeamsIDHasSuffix

func TeamsIDHasSuffix(v string) predicate.User

TeamsIDHasSuffix applies the HasSuffix predicate on the "teams_id" field.

func TeamsIDIn

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

TeamsIDIn applies the In predicate on the "teams_id" field.

func TeamsIDIsNil

func TeamsIDIsNil() predicate.User

TeamsIDIsNil applies the IsNil predicate on the "teams_id" field.

func TeamsIDLT

func TeamsIDLT(v string) predicate.User

TeamsIDLT applies the LT predicate on the "teams_id" field.

func TeamsIDLTE

func TeamsIDLTE(v string) predicate.User

TeamsIDLTE applies the LTE predicate on the "teams_id" field.

func TeamsIDNEQ

func TeamsIDNEQ(v string) predicate.User

TeamsIDNEQ applies the NEQ predicate on the "teams_id" field.

func TeamsIDNotIn

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

TeamsIDNotIn applies the NotIn predicate on the "teams_id" field.

func TeamsIDNotNil

func TeamsIDNotNil() predicate.User

TeamsIDNotNil applies the NotNil predicate on the "teams_id" field.

func TelegramID

func TelegramID(v string) predicate.User

TelegramID applies equality check predicate on the "telegram_id" field. It's identical to TelegramIDEQ.

func TelegramIDContains

func TelegramIDContains(v string) predicate.User

TelegramIDContains applies the Contains predicate on the "telegram_id" field.

func TelegramIDContainsFold

func TelegramIDContainsFold(v string) predicate.User

TelegramIDContainsFold applies the ContainsFold predicate on the "telegram_id" field.

func TelegramIDEQ

func TelegramIDEQ(v string) predicate.User

TelegramIDEQ applies the EQ predicate on the "telegram_id" field.

func TelegramIDEqualFold

func TelegramIDEqualFold(v string) predicate.User

TelegramIDEqualFold applies the EqualFold predicate on the "telegram_id" field.

func TelegramIDGT

func TelegramIDGT(v string) predicate.User

TelegramIDGT applies the GT predicate on the "telegram_id" field.

func TelegramIDGTE

func TelegramIDGTE(v string) predicate.User

TelegramIDGTE applies the GTE predicate on the "telegram_id" field.

func TelegramIDHasPrefix

func TelegramIDHasPrefix(v string) predicate.User

TelegramIDHasPrefix applies the HasPrefix predicate on the "telegram_id" field.

func TelegramIDHasSuffix

func TelegramIDHasSuffix(v string) predicate.User

TelegramIDHasSuffix applies the HasSuffix predicate on the "telegram_id" field.

func TelegramIDIn

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

TelegramIDIn applies the In predicate on the "telegram_id" field.

func TelegramIDIsNil

func TelegramIDIsNil() predicate.User

TelegramIDIsNil applies the IsNil predicate on the "telegram_id" field.

func TelegramIDLT

func TelegramIDLT(v string) predicate.User

TelegramIDLT applies the LT predicate on the "telegram_id" field.

func TelegramIDLTE

func TelegramIDLTE(v string) predicate.User

TelegramIDLTE applies the LTE predicate on the "telegram_id" field.

func TelegramIDNEQ

func TelegramIDNEQ(v string) predicate.User

TelegramIDNEQ applies the NEQ predicate on the "telegram_id" field.

func TelegramIDNotIn

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

TelegramIDNotIn applies the NotIn predicate on the "telegram_id" field.

func TelegramIDNotNil

func TelegramIDNotNil() predicate.User

TelegramIDNotNil applies the NotNil predicate on the "telegram_id" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.User

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.User

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.User

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.User

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.User

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.User

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.User

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.User

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.User

UpdateTimeNotIn applies the NotIn predicate on the "update_time" 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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