Documentation ¶
Index ¶
- Constants
- Variables
- func ActivatedAt(v time.Time) predicate.User
- func ActivatedAtEQ(v time.Time) predicate.User
- func ActivatedAtGT(v time.Time) predicate.User
- func ActivatedAtGTE(v time.Time) predicate.User
- func ActivatedAtIn(vs ...time.Time) predicate.User
- func ActivatedAtIsNil() predicate.User
- func ActivatedAtLT(v time.Time) predicate.User
- func ActivatedAtLTE(v time.Time) predicate.User
- func ActivatedAtNEQ(v time.Time) predicate.User
- func ActivatedAtNotIn(vs ...time.Time) predicate.User
- func ActivatedAtNotNil() predicate.User
- func ActivationComment(v string) predicate.User
- func ActivationCommentContains(v string) predicate.User
- func ActivationCommentContainsFold(v string) predicate.User
- func ActivationCommentEQ(v string) predicate.User
- func ActivationCommentEqualFold(v string) predicate.User
- func ActivationCommentGT(v string) predicate.User
- func ActivationCommentGTE(v string) predicate.User
- func ActivationCommentHasPrefix(v string) predicate.User
- func ActivationCommentHasSuffix(v string) predicate.User
- func ActivationCommentIn(vs ...string) predicate.User
- func ActivationCommentIsNil() predicate.User
- func ActivationCommentLT(v string) predicate.User
- func ActivationCommentLTE(v string) predicate.User
- func ActivationCommentNEQ(v string) predicate.User
- func ActivationCommentNotIn(vs ...string) predicate.User
- func ActivationCommentNotNil() predicate.User
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DisabledAt(v time.Time) predicate.User
- func DisabledAtEQ(v time.Time) predicate.User
- func DisabledAtGT(v time.Time) predicate.User
- func DisabledAtGTE(v time.Time) predicate.User
- func DisabledAtIn(vs ...time.Time) predicate.User
- func DisabledAtIsNil() predicate.User
- func DisabledAtLT(v time.Time) predicate.User
- func DisabledAtLTE(v time.Time) predicate.User
- func DisabledAtNEQ(v time.Time) predicate.User
- func DisabledAtNotIn(vs ...time.Time) predicate.User
- func DisabledAtNotNil() predicate.User
- func DisabledReason(v string) predicate.User
- func DisabledReasonContains(v string) predicate.User
- func DisabledReasonContainsFold(v string) predicate.User
- func DisabledReasonEQ(v string) predicate.User
- func DisabledReasonEqualFold(v string) predicate.User
- func DisabledReasonGT(v string) predicate.User
- func DisabledReasonGTE(v string) predicate.User
- func DisabledReasonHasPrefix(v string) predicate.User
- func DisabledReasonHasSuffix(v string) predicate.User
- func DisabledReasonIn(vs ...string) predicate.User
- func DisabledReasonIsNil() predicate.User
- func DisabledReasonLT(v string) predicate.User
- func DisabledReasonLTE(v string) predicate.User
- func DisabledReasonNEQ(v string) predicate.User
- func DisabledReasonNotIn(vs ...string) predicate.User
- func DisabledReasonNotNil() 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 EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasActivation() predicate.User
- func HasActivationWith(preds ...predicate.Activation) predicate.User
- func HasActivations() predicate.User
- func HasActivationsWith(preds ...predicate.Activation) predicate.User
- func HasMetadata() predicate.User
- func HasMetadataWith(preds ...predicate.Metadata) predicate.User
- func HasPlayers() predicate.User
- func HasPlayersWith(preds ...predicate.Player) predicate.User
- func HasSessions() predicate.User
- func HasSessionsWith(preds ...predicate.Session) 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 IsSystem(v bool) predicate.User
- func IsSystemEQ(v bool) predicate.User
- func IsSystemNEQ(v bool) 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 Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordIsNil() predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PasswordNotNil() predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
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" // 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" // 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" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldIsSystem holds the string denoting the is_system field in the database. FieldIsSystem = "is_system" // FieldDisabledAt holds the string denoting the disabled_at field in the database. FieldDisabledAt = "disabled_at" // FieldDisabledReason holds the string denoting the disabled_reason field in the database. FieldDisabledReason = "disabled_reason" // FieldActivatedAt holds the string denoting the activated_at field in the database. FieldActivatedAt = "activated_at" // FieldActivationComment holds the string denoting the activation_comment field in the database. FieldActivationComment = "activation_comment" // EdgeMetadata holds the string denoting the metadata edge name in mutations. EdgeMetadata = "metadata" // EdgeSessions holds the string denoting the sessions edge name in mutations. EdgeSessions = "sessions" // EdgeActivation holds the string denoting the activation edge name in mutations. EdgeActivation = "activation" // EdgeActivations holds the string denoting the activations edge name in mutations. EdgeActivations = "activations" // EdgePlayers holds the string denoting the players edge name in mutations. EdgePlayers = "players" // Table holds the table name of the user in the database. Table = "users" // MetadataTable is the table the holds the metadata relation/edge. MetadataTable = "metadata" // MetadataInverseTable is the table name for the Metadata entity. // It exists in this package in order to avoid circular dependency with the "metadata" package. MetadataInverseTable = "metadata" // MetadataColumn is the table column denoting the metadata relation/edge. MetadataColumn = "user_metadata" // SessionsTable is the table the holds the sessions relation/edge. SessionsTable = "sessions" // SessionsInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionsInverseTable = "sessions" // SessionsColumn is the table column denoting the sessions relation/edge. SessionsColumn = "user_sessions" // ActivationTable is the table the holds the activation relation/edge. ActivationTable = "users" // ActivationInverseTable is the table name for the Activation entity. // It exists in this package in order to avoid circular dependency with the "activation" package. ActivationInverseTable = "activations" // ActivationColumn is the table column denoting the activation relation/edge. ActivationColumn = "activation_user" // ActivationsTable is the table the holds the activations relation/edge. The primary key declared below. ActivationsTable = "activation_actor" // ActivationsInverseTable is the table name for the Activation entity. // It exists in this package in order to avoid circular dependency with the "activation" package. ActivationsInverseTable = "activations" // PlayersTable is the table the holds the players relation/edge. PlayersTable = "players" // PlayersInverseTable is the table name for the Player entity. // It exists in this package in order to avoid circular dependency with the "player" package. PlayersInverseTable = "players" // PlayersColumn is the table column denoting the players relation/edge. PlayersColumn = "player_user" )
Variables ¶
var ( // 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 // DefaultIsSystem holds the default value on creation for the is_system field. DefaultIsSystem bool )
var ( // ActivationsPrimaryKey and ActivationsColumn2 are the table columns denoting the // primary key for the activations relation (M2M). ActivationsPrimaryKey = []string{"activation_id", "user_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldEmail, FieldPassword, FieldIsSystem, FieldDisabledAt, FieldDisabledReason, FieldActivatedAt, FieldActivationComment, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"activation_user",
}
ForeignKeys holds the SQL foreign-keys that are owned by the User type.
Functions ¶
func ActivatedAt ¶
ActivatedAt applies equality check predicate on the "activated_at" field. It's identical to ActivatedAtEQ.
func ActivatedAtEQ ¶
ActivatedAtEQ applies the EQ predicate on the "activated_at" field.
func ActivatedAtGT ¶
ActivatedAtGT applies the GT predicate on the "activated_at" field.
func ActivatedAtGTE ¶
ActivatedAtGTE applies the GTE predicate on the "activated_at" field.
func ActivatedAtIn ¶
ActivatedAtIn applies the In predicate on the "activated_at" field.
func ActivatedAtIsNil ¶
ActivatedAtIsNil applies the IsNil predicate on the "activated_at" field.
func ActivatedAtLT ¶
ActivatedAtLT applies the LT predicate on the "activated_at" field.
func ActivatedAtLTE ¶
ActivatedAtLTE applies the LTE predicate on the "activated_at" field.
func ActivatedAtNEQ ¶
ActivatedAtNEQ applies the NEQ predicate on the "activated_at" field.
func ActivatedAtNotIn ¶
ActivatedAtNotIn applies the NotIn predicate on the "activated_at" field.
func ActivatedAtNotNil ¶
ActivatedAtNotNil applies the NotNil predicate on the "activated_at" field.
func ActivationComment ¶
ActivationComment applies equality check predicate on the "activation_comment" field. It's identical to ActivationCommentEQ.
func ActivationCommentContains ¶
ActivationCommentContains applies the Contains predicate on the "activation_comment" field.
func ActivationCommentContainsFold ¶
ActivationCommentContainsFold applies the ContainsFold predicate on the "activation_comment" field.
func ActivationCommentEQ ¶
ActivationCommentEQ applies the EQ predicate on the "activation_comment" field.
func ActivationCommentEqualFold ¶
ActivationCommentEqualFold applies the EqualFold predicate on the "activation_comment" field.
func ActivationCommentGT ¶
ActivationCommentGT applies the GT predicate on the "activation_comment" field.
func ActivationCommentGTE ¶
ActivationCommentGTE applies the GTE predicate on the "activation_comment" field.
func ActivationCommentHasPrefix ¶
ActivationCommentHasPrefix applies the HasPrefix predicate on the "activation_comment" field.
func ActivationCommentHasSuffix ¶
ActivationCommentHasSuffix applies the HasSuffix predicate on the "activation_comment" field.
func ActivationCommentIn ¶
ActivationCommentIn applies the In predicate on the "activation_comment" field.
func ActivationCommentIsNil ¶
ActivationCommentIsNil applies the IsNil predicate on the "activation_comment" field.
func ActivationCommentLT ¶
ActivationCommentLT applies the LT predicate on the "activation_comment" field.
func ActivationCommentLTE ¶
ActivationCommentLTE applies the LTE predicate on the "activation_comment" field.
func ActivationCommentNEQ ¶
ActivationCommentNEQ applies the NEQ predicate on the "activation_comment" field.
func ActivationCommentNotIn ¶
ActivationCommentNotIn applies the NotIn predicate on the "activation_comment" field.
func ActivationCommentNotNil ¶
ActivationCommentNotNil applies the NotNil predicate on the "activation_comment" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DisabledAt ¶
DisabledAt applies equality check predicate on the "disabled_at" field. It's identical to DisabledAtEQ.
func DisabledAtEQ ¶
DisabledAtEQ applies the EQ predicate on the "disabled_at" field.
func DisabledAtGT ¶
DisabledAtGT applies the GT predicate on the "disabled_at" field.
func DisabledAtGTE ¶
DisabledAtGTE applies the GTE predicate on the "disabled_at" field.
func DisabledAtIn ¶
DisabledAtIn applies the In predicate on the "disabled_at" field.
func DisabledAtIsNil ¶
DisabledAtIsNil applies the IsNil predicate on the "disabled_at" field.
func DisabledAtLT ¶
DisabledAtLT applies the LT predicate on the "disabled_at" field.
func DisabledAtLTE ¶
DisabledAtLTE applies the LTE predicate on the "disabled_at" field.
func DisabledAtNEQ ¶
DisabledAtNEQ applies the NEQ predicate on the "disabled_at" field.
func DisabledAtNotIn ¶
DisabledAtNotIn applies the NotIn predicate on the "disabled_at" field.
func DisabledAtNotNil ¶
DisabledAtNotNil applies the NotNil predicate on the "disabled_at" field.
func DisabledReason ¶
DisabledReason applies equality check predicate on the "disabled_reason" field. It's identical to DisabledReasonEQ.
func DisabledReasonContains ¶
DisabledReasonContains applies the Contains predicate on the "disabled_reason" field.
func DisabledReasonContainsFold ¶
DisabledReasonContainsFold applies the ContainsFold predicate on the "disabled_reason" field.
func DisabledReasonEQ ¶
DisabledReasonEQ applies the EQ predicate on the "disabled_reason" field.
func DisabledReasonEqualFold ¶
DisabledReasonEqualFold applies the EqualFold predicate on the "disabled_reason" field.
func DisabledReasonGT ¶
DisabledReasonGT applies the GT predicate on the "disabled_reason" field.
func DisabledReasonGTE ¶
DisabledReasonGTE applies the GTE predicate on the "disabled_reason" field.
func DisabledReasonHasPrefix ¶
DisabledReasonHasPrefix applies the HasPrefix predicate on the "disabled_reason" field.
func DisabledReasonHasSuffix ¶
DisabledReasonHasSuffix applies the HasSuffix predicate on the "disabled_reason" field.
func DisabledReasonIn ¶
DisabledReasonIn applies the In predicate on the "disabled_reason" field.
func DisabledReasonIsNil ¶
DisabledReasonIsNil applies the IsNil predicate on the "disabled_reason" field.
func DisabledReasonLT ¶
DisabledReasonLT applies the LT predicate on the "disabled_reason" field.
func DisabledReasonLTE ¶
DisabledReasonLTE applies the LTE predicate on the "disabled_reason" field.
func DisabledReasonNEQ ¶
DisabledReasonNEQ applies the NEQ predicate on the "disabled_reason" field.
func DisabledReasonNotIn ¶
DisabledReasonNotIn applies the NotIn predicate on the "disabled_reason" field.
func DisabledReasonNotNil ¶
DisabledReasonNotNil applies the NotNil predicate on the "disabled_reason" 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 EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasActivation ¶
HasActivation applies the HasEdge predicate on the "activation" edge.
func HasActivationWith ¶
func HasActivationWith(preds ...predicate.Activation) predicate.User
HasActivationWith applies the HasEdge predicate on the "activation" edge with a given conditions (other predicates).
func HasActivations ¶
HasActivations applies the HasEdge predicate on the "activations" edge.
func HasActivationsWith ¶
func HasActivationsWith(preds ...predicate.Activation) predicate.User
HasActivationsWith applies the HasEdge predicate on the "activations" edge with a given conditions (other predicates).
func HasMetadata ¶
HasMetadata applies the HasEdge predicate on the "metadata" edge.
func HasMetadataWith ¶
HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).
func HasPlayers ¶
HasPlayers applies the HasEdge predicate on the "players" edge.
func HasPlayersWith ¶
HasPlayersWith applies the HasEdge predicate on the "players" edge with a given conditions (other predicates).
func HasSessions ¶
HasSessions applies the HasEdge predicate on the "sessions" edge.
func HasSessionsWith ¶
HasSessionsWith applies the HasEdge predicate on the "sessions" edge with a given conditions (other predicates).
func IsSystem ¶
IsSystem applies equality check predicate on the "is_system" field. It's identical to IsSystemEQ.
func IsSystemEQ ¶
IsSystemEQ applies the EQ predicate on the "is_system" field.
func IsSystemNEQ ¶
IsSystemNEQ applies the NEQ predicate on the "is_system" 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 Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.