Documentation ¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.User
- func AccountContains(v string) predicate.User
- func AccountContainsFold(v string) predicate.User
- func AccountEQ(v string) predicate.User
- func AccountEqualFold(v string) predicate.User
- func AccountGT(v string) predicate.User
- func AccountGTE(v string) predicate.User
- func AccountHasPrefix(v string) predicate.User
- func AccountHasSuffix(v string) predicate.User
- func AccountIn(vs ...string) predicate.User
- func AccountLT(v string) predicate.User
- func AccountLTE(v string) predicate.User
- func AccountNEQ(v string) predicate.User
- func AccountNotIn(vs ...string) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Avatar(v []byte) predicate.User
- func AvatarEQ(v []byte) predicate.User
- func AvatarGT(v []byte) predicate.User
- func AvatarGTE(v []byte) predicate.User
- func AvatarIn(vs ...[]byte) predicate.User
- func AvatarLT(v []byte) predicate.User
- func AvatarLTE(v []byte) predicate.User
- func AvatarNEQ(v []byte) predicate.User
- func AvatarNotIn(vs ...[]byte) 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 HasResource() predicate.User
- func HasResourceWith(preds ...predicate.Resource) predicate.User
- func HasRole() predicate.User
- func HasRoleWith(preds ...predicate.Role) predicate.User
- func HasStudent() predicate.User
- func HasStudentWith(preds ...predicate.Student) 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 Passwd(v string) predicate.User
- func PasswdContains(v string) predicate.User
- func PasswdContainsFold(v string) predicate.User
- func PasswdEQ(v string) predicate.User
- func PasswdEqualFold(v string) predicate.User
- func PasswdGT(v string) predicate.User
- func PasswdGTE(v string) predicate.User
- func PasswdHasPrefix(v string) predicate.User
- func PasswdHasSuffix(v string) predicate.User
- func PasswdIn(vs ...string) predicate.User
- func PasswdLT(v string) predicate.User
- func PasswdLTE(v string) predicate.User
- func PasswdNEQ(v string) predicate.User
- func PasswdNotIn(vs ...string) 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
- 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" // FieldAccount holds the string denoting the account field in the database. FieldAccount = "account" // FieldPasswd holds the string denoting the passwd field in the database. FieldPasswd = "passwd" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // EdgeRole holds the string denoting the role edge name in mutations. EdgeRole = "role" // EdgeResource holds the string denoting the resource edge name in mutations. EdgeResource = "resource" // EdgeStudent holds the string denoting the student edge name in mutations. EdgeStudent = "student" // Table holds the table name of the user in the database. Table = "users" // RoleTable is the table that holds the role relation/edge. The primary key declared below. RoleTable = "user_role" // RoleInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RoleInverseTable = "roles" // ResourceTable is the table that holds the resource relation/edge. The primary key declared below. ResourceTable = "user_resource" // ResourceInverseTable is the table name for the Resource entity. // It exists in this package in order to avoid circular dependency with the "resource" package. ResourceInverseTable = "resources" // StudentTable is the table that holds the student relation/edge. StudentTable = "users" // StudentInverseTable is the table name for the Student entity. // It exists in this package in order to avoid circular dependency with the "student" package. StudentInverseTable = "students" // StudentColumn is the table column denoting the student relation/edge. StudentColumn = "student_user" )
Variables ¶
var ( // RolePrimaryKey and RoleColumn2 are the table columns denoting the // primary key for the role relation (M2M). RolePrimaryKey = []string{"user_id", "role_id"} // ResourcePrimaryKey and ResourceColumn2 are the table columns denoting the // primary key for the resource relation (M2M). ResourcePrimaryKey = []string{"user_id", "resource_id"} )
var ( // AccountValidator is a validator for the "account" field. It is called by the builders before save. AccountValidator func(string) error // PasswdValidator is a validator for the "passwd" field. It is called by the builders before save. PasswdValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error )
var Columns = []string{ FieldID, FieldAccount, FieldPasswd, FieldUsername, FieldAvatar, FieldEmail, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"student_user",
}
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 Account ¶
Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
func AccountContains ¶
AccountContains applies the Contains predicate on the "account" field.
func AccountContainsFold ¶
AccountContainsFold applies the ContainsFold predicate on the "account" field.
func AccountEqualFold ¶
AccountEqualFold applies the EqualFold predicate on the "account" field.
func AccountGTE ¶
AccountGTE applies the GTE predicate on the "account" field.
func AccountHasPrefix ¶
AccountHasPrefix applies the HasPrefix predicate on the "account" field.
func AccountHasSuffix ¶
AccountHasSuffix applies the HasSuffix predicate on the "account" field.
func AccountLTE ¶
AccountLTE applies the LTE predicate on the "account" field.
func AccountNEQ ¶
AccountNEQ applies the NEQ predicate on the "account" field.
func AccountNotIn ¶
AccountNotIn applies the NotIn predicate on the "account" field.
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" 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 HasResource ¶
HasResource applies the HasEdge predicate on the "resource" edge.
func HasResourceWith ¶
HasResourceWith applies the HasEdge predicate on the "resource" edge with a given conditions (other predicates).
func HasRoleWith ¶
HasRoleWith applies the HasEdge predicate on the "role" edge with a given conditions (other predicates).
func HasStudent ¶
HasStudent applies the HasEdge predicate on the "student" edge.
func HasStudentWith ¶
HasStudentWith applies the HasEdge predicate on the "student" edge with a given conditions (other predicates).
func Passwd ¶
Passwd applies equality check predicate on the "passwd" field. It's identical to PasswdEQ.
func PasswdContains ¶
PasswdContains applies the Contains predicate on the "passwd" field.
func PasswdContainsFold ¶
PasswdContainsFold applies the ContainsFold predicate on the "passwd" field.
func PasswdEqualFold ¶
PasswdEqualFold applies the EqualFold predicate on the "passwd" field.
func PasswdHasPrefix ¶
PasswdHasPrefix applies the HasPrefix predicate on the "passwd" field.
func PasswdHasSuffix ¶
PasswdHasSuffix applies the HasSuffix predicate on the "passwd" field.
func PasswdNotIn ¶
PasswdNotIn applies the NotIn predicate on the "passwd" 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.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.