Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func HasUserToActions() predicate.User
- func HasUserToActionsWith(preds ...predicate.Action) predicate.User
- func HasUserToTeam() predicate.User
- func HasUserToTeamWith(preds ...predicate.Team) predicate.User
- func HasUserToToken() predicate.User
- func HasUserToTokenWith(preds ...predicate.Token) 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 LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(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 PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func ProviderEQ(v Provider) predicate.User
- func ProviderIn(vs ...Provider) predicate.User
- func ProviderNEQ(v Provider) predicate.User
- func ProviderNotIn(vs ...Provider) predicate.User
- func ProviderValidator(pr Provider) error
- func RoleEQ(v Role) predicate.User
- func RoleIn(vs ...Role) predicate.User
- func RoleNEQ(v Role) predicate.User
- func RoleNotIn(vs ...Role) predicate.User
- func RoleValidator(r Role) error
- 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
- type Provider
- type Role
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 = "oid" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // EdgeUserToTeam holds the string denoting the usertoteam edge name in mutations. EdgeUserToTeam = "UserToTeam" // EdgeUserToToken holds the string denoting the usertotoken edge name in mutations. EdgeUserToToken = "UserToToken" // EdgeUserToActions holds the string denoting the usertoactions edge name in mutations. EdgeUserToActions = "UserToActions" // TokenFieldID holds the string denoting the ID field of the Token. TokenFieldID = "id" // Table holds the table name of the user in the database. Table = "users" // UserToTeamTable is the table that holds the UserToTeam relation/edge. UserToTeamTable = "users" // UserToTeamInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. UserToTeamInverseTable = "teams" // UserToTeamColumn is the table column denoting the UserToTeam relation/edge. UserToTeamColumn = "team_team_to_users" // UserToTokenTable is the table that holds the UserToToken relation/edge. UserToTokenTable = "tokens" // UserToTokenInverseTable is the table name for the Token entity. // It exists in this package in order to avoid circular dependency with the "token" package. UserToTokenInverseTable = "tokens" // UserToTokenColumn is the table column denoting the UserToToken relation/edge. UserToTokenColumn = "user_user_to_token" // UserToActionsTable is the table that holds the UserToActions relation/edge. UserToActionsTable = "actions" // UserToActionsInverseTable is the table name for the Action entity. // It exists in this package in order to avoid circular dependency with the "action" package. UserToActionsInverseTable = "actions" // UserToActionsColumn is the table column denoting the UserToActions relation/edge. UserToActionsColumn = "user_user_to_actions" )
Variables ¶
var ( // DefaultFirstName holds the default value on creation for the "first_name" field. DefaultFirstName string // DefaultLastName holds the default value on creation for the "last_name" field. DefaultLastName string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldUsername, FieldPassword, FieldFirstName, FieldLastName, FieldRole, FieldProvider, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"team_team_to_users",
}
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 FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func HasUserToActions ¶
HasUserToActions applies the HasEdge predicate on the "UserToActions" edge.
func HasUserToActionsWith ¶
HasUserToActionsWith applies the HasEdge predicate on the "UserToActions" edge with a given conditions (other predicates).
func HasUserToTeam ¶
HasUserToTeam applies the HasEdge predicate on the "UserToTeam" edge.
func HasUserToTeamWith ¶
HasUserToTeamWith applies the HasEdge predicate on the "UserToTeam" edge with a given conditions (other predicates).
func HasUserToToken ¶
HasUserToToken applies the HasEdge predicate on the "UserToToken" edge.
func HasUserToTokenWith ¶
HasUserToTokenWith applies the HasEdge predicate on the "UserToToken" edge with a given conditions (other predicates).
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_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 ProviderEQ ¶
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderIn ¶
ProviderIn applies the In predicate on the "provider" field.
func ProviderNEQ ¶
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
ProviderNotIn applies the NotIn predicate on the "provider" field.
func ProviderValidator ¶
ProviderValidator is a validator for the "provider" field enum values. It is called by the builders before save.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
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 ¶
type Provider ¶
type Provider string
Provider defines the type for the "provider" enum field.
func (Provider) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Provider) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type Role ¶
type Role string
Role defines the type for the "role" enum field.
func (Role) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Role) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.