Documentation ¶
Index ¶
- Constants
- Variables
- 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 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 HasCredentials() predicate.User
- func HasCredentialsWith(preds ...predicate.Credential) predicate.User
- func ID(id uint) predicate.User
- func IDEQ(id uint) predicate.User
- func IDGT(id uint) predicate.User
- func IDGTE(id uint) predicate.User
- func IDIn(ids ...uint) predicate.User
- func IDLT(id uint) predicate.User
- func IDLTE(id uint) predicate.User
- func IDNEQ(id uint) predicate.User
- func IDNotIn(ids ...uint) 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 Surname(v string) predicate.User
- func SurnameContains(v string) predicate.User
- func SurnameContainsFold(v string) predicate.User
- func SurnameEQ(v string) predicate.User
- func SurnameEqualFold(v string) predicate.User
- func SurnameGT(v string) predicate.User
- func SurnameGTE(v string) predicate.User
- func SurnameHasPrefix(v string) predicate.User
- func SurnameHasSuffix(v string) predicate.User
- func SurnameIn(vs ...string) predicate.User
- func SurnameLT(v string) predicate.User
- func SurnameLTE(v string) predicate.User
- func SurnameNEQ(v string) predicate.User
- func SurnameNotIn(vs ...string) predicate.User
- func TypeEQ(v Type) predicate.User
- func TypeIn(vs ...Type) predicate.User
- func TypeNEQ(v Type) predicate.User
- func TypeNotIn(vs ...Type) predicate.User
- func TypeValidator(_type Type) error
- 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
- type Type
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" // FieldType holds the string denoting the type vertex property in the database. FieldType = "type" // FieldEmail holds the string denoting the email vertex property in the database. FieldEmail = "email" // FieldName holds the string denoting the name vertex property in the database. FieldName = "name" // FieldSurname holds the string denoting the surname vertex property in the database. FieldSurname = "surname" // FieldCreatedAt holds the string denoting the created_at vertex property in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database. FieldUpdatedAt = "updated_at" // EdgeCredentials holds the string denoting the credentials edge name in mutations. EdgeCredentials = "credentials" // Table holds the table name of the user in the database. Table = "users" // CredentialsTable is the table the holds the credentials relation/edge. CredentialsTable = "credentials" // CredentialsInverseTable is the table name for the Credential entity. // It exists in this package in order to avoid circular dependency with the "credential" package. CredentialsInverseTable = "credentials" // CredentialsColumn is the table column denoting the credentials relation/edge. CredentialsColumn = "user_credentials" )
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // SurnameValidator is a validator for the "surname" field. It is called by the builders before save. SurnameValidator func(string) error // 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 )
var Columns = []string{ FieldID, FieldType, FieldEmail, FieldName, FieldSurname, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"classroom_students",
}
ForeignKeys holds the SQL foreign-keys that are owned by the User type.
Functions ¶
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 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 HasCredentials ¶
HasCredentials applies the HasEdge predicate on the "credentials" edge.
func HasCredentialsWith ¶
func HasCredentialsWith(preds ...predicate.Credential) predicate.User
HasCredentialsWith applies the HasEdge predicate on the "credentials" edge with a given conditions (other predicates).
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 Surname ¶
Surname applies equality check predicate on the "surname" field. It's identical to SurnameEQ.
func SurnameContains ¶
SurnameContains applies the Contains predicate on the "surname" field.
func SurnameContainsFold ¶
SurnameContainsFold applies the ContainsFold predicate on the "surname" field.
func SurnameEqualFold ¶
SurnameEqualFold applies the EqualFold predicate on the "surname" field.
func SurnameGTE ¶
SurnameGTE applies the GTE predicate on the "surname" field.
func SurnameHasPrefix ¶
SurnameHasPrefix applies the HasPrefix predicate on the "surname" field.
func SurnameHasSuffix ¶
SurnameHasSuffix applies the HasSuffix predicate on the "surname" field.
func SurnameLTE ¶
SurnameLTE applies the LTE predicate on the "surname" field.
func SurnameNEQ ¶
SurnameNEQ applies the NEQ predicate on the "surname" field.
func SurnameNotIn ¶
SurnameNotIn applies the NotIn predicate on the "surname" field.
func TypeValidator ¶
TypeValidator is a validator for the "_type" field enum values. It is called by the builders before save.
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.