Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) predicate.User
- func DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameIsNil() predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func DisplayNameNotNil() predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailIsNil() predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func EmailNotNil() predicate.User
- func HasDialog() predicate.User
- func HasDialogWith(preds ...predicate.Dialog) predicate.User
- func HasProjects() predicate.User
- func HasProjectsWith(preds ...predicate.Project) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PasswordHash(v string) predicate.User
- func PasswordHashContains(v string) predicate.User
- func PasswordHashContainsFold(v string) predicate.User
- func PasswordHashEQ(v string) predicate.User
- func PasswordHashEqualFold(v string) predicate.User
- func PasswordHashGT(v string) predicate.User
- func PasswordHashGTE(v string) predicate.User
- func PasswordHashHasPrefix(v string) predicate.User
- func PasswordHashHasSuffix(v string) predicate.User
- func PasswordHashIn(vs ...string) predicate.User
- func PasswordHashLT(v string) predicate.User
- func PasswordHashLTE(v string) predicate.User
- func PasswordHashNEQ(v string) predicate.User
- func PasswordHashNotIn(vs ...string) predicate.User
- func Service(v bool) predicate.User
- func ServiceEQ(v bool) predicate.User
- func ServiceNEQ(v bool) predicate.User
- func SlackID(v string) predicate.User
- func SlackIDContains(v string) predicate.User
- func SlackIDContainsFold(v string) predicate.User
- func SlackIDEQ(v string) predicate.User
- func SlackIDEqualFold(v string) predicate.User
- func SlackIDGT(v string) predicate.User
- func SlackIDGTE(v string) predicate.User
- func SlackIDHasPrefix(v string) predicate.User
- func SlackIDHasSuffix(v string) predicate.User
- func SlackIDIn(vs ...string) predicate.User
- func SlackIDIsNil() predicate.User
- func SlackIDLT(v string) predicate.User
- func SlackIDLTE(v string) predicate.User
- func SlackIDNEQ(v string) predicate.User
- func SlackIDNotIn(vs ...string) predicate.User
- func SlackIDNotNil() predicate.User
- func TeamsID(v string) predicate.User
- func TeamsIDContains(v string) predicate.User
- func TeamsIDContainsFold(v string) predicate.User
- func TeamsIDEQ(v string) predicate.User
- func TeamsIDEqualFold(v string) predicate.User
- func TeamsIDGT(v string) predicate.User
- func TeamsIDGTE(v string) predicate.User
- func TeamsIDHasPrefix(v string) predicate.User
- func TeamsIDHasSuffix(v string) predicate.User
- func TeamsIDIn(vs ...string) predicate.User
- func TeamsIDIsNil() predicate.User
- func TeamsIDLT(v string) predicate.User
- func TeamsIDLTE(v string) predicate.User
- func TeamsIDNEQ(v string) predicate.User
- func TeamsIDNotIn(vs ...string) predicate.User
- func TeamsIDNotNil() predicate.User
- func TelegramID(v string) predicate.User
- func TelegramIDContains(v string) predicate.User
- func TelegramIDContainsFold(v string) predicate.User
- func TelegramIDEQ(v string) predicate.User
- func TelegramIDEqualFold(v string) predicate.User
- func TelegramIDGT(v string) predicate.User
- func TelegramIDGTE(v string) predicate.User
- func TelegramIDHasPrefix(v string) predicate.User
- func TelegramIDHasSuffix(v string) predicate.User
- func TelegramIDIn(vs ...string) predicate.User
- func TelegramIDIsNil() predicate.User
- func TelegramIDLT(v string) predicate.User
- func TelegramIDLTE(v string) predicate.User
- func TelegramIDNEQ(v string) predicate.User
- func TelegramIDNotIn(vs ...string) predicate.User
- func TelegramIDNotNil() predicate.User
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(vs ...time.Time) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldUsername, FieldDisplayName, FieldEmail, FieldPasswordHash, FieldService, FieldTeamsID, FieldTelegramID, FieldSlackID, }
Columns holds all SQL columns for user fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func HasDialogWith ¶
HasDialogWith applies the HasEdge predicate on the "dialog" edge with a given conditions (other predicates).
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func Service ¶
Service applies equality check predicate on the "service" field. It's identical to ServiceEQ.
func ServiceNEQ ¶
ServiceNEQ applies the NEQ predicate on the "service" field.
func SlackID ¶
SlackID applies equality check predicate on the "slack_id" field. It's identical to SlackIDEQ.
func SlackIDContains ¶
SlackIDContains applies the Contains predicate on the "slack_id" field.
func SlackIDContainsFold ¶
SlackIDContainsFold applies the ContainsFold predicate on the "slack_id" field.
func SlackIDEqualFold ¶
SlackIDEqualFold applies the EqualFold predicate on the "slack_id" field.
func SlackIDGTE ¶
SlackIDGTE applies the GTE predicate on the "slack_id" field.
func SlackIDHasPrefix ¶
SlackIDHasPrefix applies the HasPrefix predicate on the "slack_id" field.
func SlackIDHasSuffix ¶
SlackIDHasSuffix applies the HasSuffix predicate on the "slack_id" field.
func SlackIDIsNil ¶
SlackIDIsNil applies the IsNil predicate on the "slack_id" field.
func SlackIDLTE ¶
SlackIDLTE applies the LTE predicate on the "slack_id" field.
func SlackIDNEQ ¶
SlackIDNEQ applies the NEQ predicate on the "slack_id" field.
func SlackIDNotIn ¶
SlackIDNotIn applies the NotIn predicate on the "slack_id" field.
func SlackIDNotNil ¶
SlackIDNotNil applies the NotNil predicate on the "slack_id" field.
func TeamsID ¶
TeamsID applies equality check predicate on the "teams_id" field. It's identical to TeamsIDEQ.
func TeamsIDContains ¶
TeamsIDContains applies the Contains predicate on the "teams_id" field.
func TeamsIDContainsFold ¶
TeamsIDContainsFold applies the ContainsFold predicate on the "teams_id" field.
func TeamsIDEqualFold ¶
TeamsIDEqualFold applies the EqualFold predicate on the "teams_id" field.
func TeamsIDGTE ¶
TeamsIDGTE applies the GTE predicate on the "teams_id" field.
func TeamsIDHasPrefix ¶
TeamsIDHasPrefix applies the HasPrefix predicate on the "teams_id" field.
func TeamsIDHasSuffix ¶
TeamsIDHasSuffix applies the HasSuffix predicate on the "teams_id" field.
func TeamsIDIsNil ¶
TeamsIDIsNil applies the IsNil predicate on the "teams_id" field.
func TeamsIDLTE ¶
TeamsIDLTE applies the LTE predicate on the "teams_id" field.
func TeamsIDNEQ ¶
TeamsIDNEQ applies the NEQ predicate on the "teams_id" field.
func TeamsIDNotIn ¶
TeamsIDNotIn applies the NotIn predicate on the "teams_id" field.
func TeamsIDNotNil ¶
TeamsIDNotNil applies the NotNil predicate on the "teams_id" field.
func TelegramID ¶
TelegramID applies equality check predicate on the "telegram_id" field. It's identical to TelegramIDEQ.
func TelegramIDContains ¶
TelegramIDContains applies the Contains predicate on the "telegram_id" field.
func TelegramIDContainsFold ¶
TelegramIDContainsFold applies the ContainsFold predicate on the "telegram_id" field.
func TelegramIDEQ ¶
TelegramIDEQ applies the EQ predicate on the "telegram_id" field.
func TelegramIDEqualFold ¶
TelegramIDEqualFold applies the EqualFold predicate on the "telegram_id" field.
func TelegramIDGT ¶
TelegramIDGT applies the GT predicate on the "telegram_id" field.
func TelegramIDGTE ¶
TelegramIDGTE applies the GTE predicate on the "telegram_id" field.
func TelegramIDHasPrefix ¶
TelegramIDHasPrefix applies the HasPrefix predicate on the "telegram_id" field.
func TelegramIDHasSuffix ¶
TelegramIDHasSuffix applies the HasSuffix predicate on the "telegram_id" field.
func TelegramIDIn ¶
TelegramIDIn applies the In predicate on the "telegram_id" field.
func TelegramIDIsNil ¶
TelegramIDIsNil applies the IsNil predicate on the "telegram_id" field.
func TelegramIDLT ¶
TelegramIDLT applies the LT predicate on the "telegram_id" field.
func TelegramIDLTE ¶
TelegramIDLTE applies the LTE predicate on the "telegram_id" field.
func TelegramIDNEQ ¶
TelegramIDNEQ applies the NEQ predicate on the "telegram_id" field.
func TelegramIDNotIn ¶
TelegramIDNotIn applies the NotIn predicate on the "telegram_id" field.
func TelegramIDNotNil ¶
TelegramIDNotNil applies the NotNil predicate on the "telegram_id" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
Types ¶
This section is empty.