Documentation ¶
Index ¶
- Constants
- Variables
- func Admin(v bool) predicate.User
- func AdminEQ(v bool) predicate.User
- func AdminNEQ(v bool) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Anonymous(v bool) predicate.User
- func AnonymousEQ(v bool) predicate.User
- func AnonymousNEQ(v bool) 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 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 HasAliases() predicate.User
- func HasAliasesWith(preds ...predicate.User) predicate.User
- func HasParent() predicate.User
- func HasParentWith(preds ...predicate.User) predicate.User
- func HasSessions() predicate.User
- func HasSessionsWith(preds ...predicate.UserSession) predicate.User
- func HasTakes() predicate.User
- func HasTakesWith(preds ...predicate.Take) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func LocaleEQ(v Locale) predicate.User
- func LocaleIn(vs ...Locale) predicate.User
- func LocaleNEQ(v Locale) predicate.User
- func LocaleNotIn(vs ...Locale) predicate.User
- func LocaleValidator(l Locale) error
- func MetaIsNil() predicate.User
- func MetaNotNil() predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) 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 Picture(v string) predicate.User
- func PictureContains(v string) predicate.User
- func PictureContainsFold(v string) predicate.User
- func PictureEQ(v string) predicate.User
- func PictureEqualFold(v string) predicate.User
- func PictureGT(v string) predicate.User
- func PictureGTE(v string) predicate.User
- func PictureHasPrefix(v string) predicate.User
- func PictureHasSuffix(v string) predicate.User
- func PictureIn(vs ...string) predicate.User
- func PictureIsNil() predicate.User
- func PictureLT(v string) predicate.User
- func PictureLTE(v string) predicate.User
- func PictureNEQ(v string) predicate.User
- func PictureNotIn(vs ...string) predicate.User
- func PictureNotNil() 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 UseDarkTheme(v bool) predicate.User
- func UseDarkThemeEQ(v bool) predicate.User
- func UseDarkThemeNEQ(v bool) predicate.User
- func ValidColumn(column string) bool
- type Locale
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" // FieldLocale holds the string denoting the locale field in the database. FieldLocale = "locale" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPicture holds the string denoting the picture field in the database. FieldPicture = "picture" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // FieldAdmin holds the string denoting the admin field in the database. FieldAdmin = "admin" // FieldAnonymous holds the string denoting the anonymous field in the database. FieldAnonymous = "anonymous" // FieldUseDarkTheme holds the string denoting the use_dark_theme field in the database. FieldUseDarkTheme = "use_dark_theme" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeSessions holds the string denoting the sessions edge name in mutations. EdgeSessions = "sessions" // EdgeTakes holds the string denoting the takes edge name in mutations. EdgeTakes = "takes" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeAliases holds the string denoting the aliases edge name in mutations. EdgeAliases = "aliases" // Table holds the table name of the user in the database. Table = "users" // SessionsTable is the table that holds the sessions relation/edge. SessionsTable = "user_sessions" // SessionsInverseTable is the table name for the UserSession entity. // It exists in this package in order to avoid circular dependency with the "usersession" package. SessionsInverseTable = "user_sessions" // SessionsColumn is the table column denoting the sessions relation/edge. SessionsColumn = "user_sessions" // TakesTable is the table that holds the takes relation/edge. TakesTable = "takes" // TakesInverseTable is the table name for the Take entity. // It exists in this package in order to avoid circular dependency with the "take" package. TakesInverseTable = "takes" // TakesColumn is the table column denoting the takes relation/edge. TakesColumn = "user_takes" // ParentTable is the table that holds the parent relation/edge. ParentTable = "users" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "user_aliases" // AliasesTable is the table that holds the aliases relation/edge. AliasesTable = "users" // AliasesColumn is the table column denoting the aliases relation/edge. AliasesColumn = "user_aliases" )
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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultPicture holds the default value on creation for the "picture" field. DefaultPicture string // DefaultAdmin holds the default value on creation for the "admin" field. DefaultAdmin bool // DefaultAnonymous holds the default value on creation for the "anonymous" field. DefaultAnonymous bool // DefaultUseDarkTheme holds the default value on creation for the "use_dark_theme" field. DefaultUseDarkTheme bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldLocale, FieldName, FieldEmail, FieldPicture, FieldPasswordHash, FieldAdmin, FieldAnonymous, FieldUseDarkTheme, FieldMeta, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"user_aliases",
}
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 Admin ¶
Admin applies equality check predicate on the "admin" field. It's identical to AdminEQ.
func Anonymous ¶
Anonymous applies equality check predicate on the "anonymous" field. It's identical to AnonymousEQ.
func AnonymousEQ ¶
AnonymousEQ applies the EQ predicate on the "anonymous" field.
func AnonymousNEQ ¶
AnonymousNEQ applies the NEQ predicate on the "anonymous" field.
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 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 HasAliases ¶
HasAliases applies the HasEdge predicate on the "aliases" edge.
func HasAliasesWith ¶
HasAliasesWith applies the HasEdge predicate on the "aliases" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasSessions ¶
HasSessions applies the HasEdge predicate on the "sessions" edge.
func HasSessionsWith ¶
func HasSessionsWith(preds ...predicate.UserSession) predicate.User
HasSessionsWith applies the HasEdge predicate on the "sessions" edge with a given conditions (other predicates).
func HasTakesWith ¶
HasTakesWith applies the HasEdge predicate on the "takes" edge with a given conditions (other predicates).
func LocaleNotIn ¶
LocaleNotIn applies the NotIn predicate on the "locale" field.
func LocaleValidator ¶
LocaleValidator is a validator for the "locale" field enum values. It is called by the builders before save.
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
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 Picture ¶
Picture applies equality check predicate on the "picture" field. It's identical to PictureEQ.
func PictureContains ¶
PictureContains applies the Contains predicate on the "picture" field.
func PictureContainsFold ¶
PictureContainsFold applies the ContainsFold predicate on the "picture" field.
func PictureEqualFold ¶
PictureEqualFold applies the EqualFold predicate on the "picture" field.
func PictureGTE ¶
PictureGTE applies the GTE predicate on the "picture" field.
func PictureHasPrefix ¶
PictureHasPrefix applies the HasPrefix predicate on the "picture" field.
func PictureHasSuffix ¶
PictureHasSuffix applies the HasSuffix predicate on the "picture" field.
func PictureIsNil ¶
PictureIsNil applies the IsNil predicate on the "picture" field.
func PictureLTE ¶
PictureLTE applies the LTE predicate on the "picture" field.
func PictureNEQ ¶
PictureNEQ applies the NEQ predicate on the "picture" field.
func PictureNotIn ¶
PictureNotIn applies the NotIn predicate on the "picture" field.
func PictureNotNil ¶
PictureNotNil applies the NotNil predicate on the "picture" 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 UseDarkTheme ¶
UseDarkTheme applies equality check predicate on the "use_dark_theme" field. It's identical to UseDarkThemeEQ.
func UseDarkThemeEQ ¶
UseDarkThemeEQ applies the EQ predicate on the "use_dark_theme" field.
func UseDarkThemeNEQ ¶
UseDarkThemeNEQ applies the NEQ predicate on the "use_dark_theme" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).