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 CreatedAtIsNil() 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 CreatedAtNotNil() predicate.User
- func HasGroup() predicate.User
- func HasGroupWith(preds ...predicate.AttendanceGroup) predicate.User
- func ID(id xid.ID) predicate.User
- func IDEQ(id xid.ID) predicate.User
- func IDGT(id xid.ID) predicate.User
- func IDGTE(id xid.ID) predicate.User
- func IDIn(ids ...xid.ID) predicate.User
- func IDLT(id xid.ID) predicate.User
- func IDLTE(id xid.ID) predicate.User
- func IDNEQ(id xid.ID) predicate.User
- func IDNotIn(ids ...xid.ID) predicate.User
- func LoginID(v string) predicate.User
- func LoginIDContains(v string) predicate.User
- func LoginIDContainsFold(v string) predicate.User
- func LoginIDEQ(v string) predicate.User
- func LoginIDEqualFold(v string) predicate.User
- func LoginIDGT(v string) predicate.User
- func LoginIDGTE(v string) predicate.User
- func LoginIDHasPrefix(v string) predicate.User
- func LoginIDHasSuffix(v string) predicate.User
- func LoginIDIn(vs ...string) predicate.User
- func LoginIDLT(v string) predicate.User
- func LoginIDLTE(v string) predicate.User
- func LoginIDNEQ(v string) predicate.User
- func LoginIDNotIn(vs ...string) 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 NameIsNil() 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 NameNotNil() 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 PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) 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 UpdatedAtIsNil() 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 UpdatedAtNotNil() 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" // FieldLoginID holds the string denoting the loginid field in the database. FieldLoginID = "login_id" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updatedat field in the database. FieldUpdatedAt = "updated_at" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // Table holds the table name of the user in the database. Table = "users" // GroupTable is the table the holds the group relation/edge. GroupTable = "users" // GroupInverseTable is the table name for the AttendanceGroup entity. // It exists in this package in order to avoid circular dependency with the "attendancegroup" package. GroupInverseTable = "attendance_groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "attendance_group_users" )
Variables ¶
var ( // LoginIDValidator is a validator for the "LoginID" field. It is called by the builders before save. LoginIDValidator func(string) error // PasswordValidator is a validator for the "Password" field. It is called by the builders before save. PasswordValidator func(string) error // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldLoginID, FieldPassword, FieldName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"attendance_group_users",
}
ForeignKeys holds the SQL foreign-keys that are owned by the User type.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "CreatedAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "CreatedAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "CreatedAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "CreatedAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "CreatedAt" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "CreatedAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "CreatedAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "CreatedAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "CreatedAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "CreatedAt" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "CreatedAt" field.
func HasGroupWith ¶
func HasGroupWith(preds ...predicate.AttendanceGroup) predicate.User
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func LoginID ¶
LoginID applies equality check predicate on the "LoginID" field. It's identical to LoginIDEQ.
func LoginIDContains ¶
LoginIDContains applies the Contains predicate on the "LoginID" field.
func LoginIDContainsFold ¶
LoginIDContainsFold applies the ContainsFold predicate on the "LoginID" field.
func LoginIDEqualFold ¶
LoginIDEqualFold applies the EqualFold predicate on the "LoginID" field.
func LoginIDGTE ¶
LoginIDGTE applies the GTE predicate on the "LoginID" field.
func LoginIDHasPrefix ¶
LoginIDHasPrefix applies the HasPrefix predicate on the "LoginID" field.
func LoginIDHasSuffix ¶
LoginIDHasSuffix applies the HasSuffix predicate on the "LoginID" field.
func LoginIDLTE ¶
LoginIDLTE applies the LTE predicate on the "LoginID" field.
func LoginIDNEQ ¶
LoginIDNEQ applies the NEQ predicate on the "LoginID" field.
func LoginIDNotIn ¶
LoginIDNotIn applies the NotIn predicate on the "LoginID" 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 NameNotNil ¶
NameNotNil applies the NotNil 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 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "UpdatedAt" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "UpdatedAt" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "UpdatedAt" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "UpdatedAt" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "UpdatedAt" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "UpdatedAt" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "UpdatedAt" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "UpdatedAt" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "UpdatedAt" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "UpdatedAt" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "UpdatedAt" field.
Types ¶
This section is empty.