Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) 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 HasAccessTokens() predicate.User
- func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.User
- func HasCreatedAPIKeys() predicate.User
- func HasCreatedAPIKeysWith(preds ...predicate.TeamAPIKey) predicate.User
- func HasCreatedEnvs() predicate.User
- func HasCreatedEnvsWith(preds ...predicate.Env) predicate.User
- func HasTeams() predicate.User
- func HasTeamsWith(preds ...predicate.Team) predicate.User
- func HasUsersTeams() predicate.User
- func HasUsersTeamsWith(preds ...predicate.UsersTeams) 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 Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreatedAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedEnvs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreatedEnvsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUsersTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersTeamsCount(opts ...sql.OrderTermOption) OrderOption
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" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // EdgeTeams holds the string denoting the teams edge name in mutations. EdgeTeams = "teams" // EdgeCreatedEnvs holds the string denoting the created_envs edge name in mutations. EdgeCreatedEnvs = "created_envs" // EdgeAccessTokens holds the string denoting the access_tokens edge name in mutations. EdgeAccessTokens = "access_tokens" // EdgeCreatedAPIKeys holds the string denoting the created_api_keys edge name in mutations. EdgeCreatedAPIKeys = "created_api_keys" // EdgeUsersTeams holds the string denoting the users_teams edge name in mutations. EdgeUsersTeams = "users_teams" // AccessTokenFieldID holds the string denoting the ID field of the AccessToken. AccessTokenFieldID = "access_token" // Table holds the table name of the user in the database. Table = "users" // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "users_teams" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" // CreatedEnvsTable is the table that holds the created_envs relation/edge. CreatedEnvsTable = "envs" // CreatedEnvsInverseTable is the table name for the Env entity. // It exists in this package in order to avoid circular dependency with the "env" package. CreatedEnvsInverseTable = "envs" // CreatedEnvsColumn is the table column denoting the created_envs relation/edge. CreatedEnvsColumn = "created_by" // AccessTokensTable is the table that holds the access_tokens relation/edge. AccessTokensTable = "access_tokens" // AccessTokensInverseTable is the table name for the AccessToken entity. // It exists in this package in order to avoid circular dependency with the "accesstoken" package. AccessTokensInverseTable = "access_tokens" // AccessTokensColumn is the table column denoting the access_tokens relation/edge. AccessTokensColumn = "user_id" // CreatedAPIKeysTable is the table that holds the created_api_keys relation/edge. CreatedAPIKeysTable = "team_api_keys" // CreatedAPIKeysInverseTable is the table name for the TeamAPIKey entity. // It exists in this package in order to avoid circular dependency with the "teamapikey" package. CreatedAPIKeysInverseTable = "team_api_keys" // CreatedAPIKeysColumn is the table column denoting the created_api_keys relation/edge. CreatedAPIKeysColumn = "created_by" // UsersTeamsTable is the table that holds the users_teams relation/edge. UsersTeamsTable = "users_teams" // UsersTeamsInverseTable is the table name for the UsersTeams entity. // It exists in this package in order to avoid circular dependency with the "usersteams" package. UsersTeamsInverseTable = "users_teams" // UsersTeamsColumn is the table column denoting the users_teams relation/edge. UsersTeamsColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldEmail, }
Columns holds all SQL columns for user fields.
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error )
var ( // TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the // primary key for the teams relation (M2M). TeamsPrimaryKey = []string{"team_id", "user_id"} )
Functions ¶
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 HasAccessTokens ¶
HasAccessTokens applies the HasEdge predicate on the "access_tokens" edge.
func HasAccessTokensWith ¶
func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.User
HasAccessTokensWith applies the HasEdge predicate on the "access_tokens" edge with a given conditions (other predicates).
func HasCreatedAPIKeys ¶
HasCreatedAPIKeys applies the HasEdge predicate on the "created_api_keys" edge.
func HasCreatedAPIKeysWith ¶
func HasCreatedAPIKeysWith(preds ...predicate.TeamAPIKey) predicate.User
HasCreatedAPIKeysWith applies the HasEdge predicate on the "created_api_keys" edge with a given conditions (other predicates).
func HasCreatedEnvs ¶
HasCreatedEnvs applies the HasEdge predicate on the "created_envs" edge.
func HasCreatedEnvsWith ¶
HasCreatedEnvsWith applies the HasEdge predicate on the "created_envs" edge with a given conditions (other predicates).
func HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func HasUsersTeams ¶
HasUsersTeams applies the HasEdge predicate on the "users_teams" edge.
func HasUsersTeamsWith ¶
func HasUsersTeamsWith(preds ...predicate.UsersTeams) predicate.User
HasUsersTeamsWith applies the HasEdge predicate on the "users_teams" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAccessTokens ¶
func ByAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAccessTokens orders the results by access_tokens terms.
func ByAccessTokensCount ¶
func ByAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
ByAccessTokensCount orders the results by access_tokens count.
func ByCreatedAPIKeys ¶
func ByCreatedAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCreatedAPIKeys orders the results by created_api_keys terms.
func ByCreatedAPIKeysCount ¶
func ByCreatedAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
ByCreatedAPIKeysCount orders the results by created_api_keys count.
func ByCreatedEnvs ¶
func ByCreatedEnvs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCreatedEnvs orders the results by created_envs terms.
func ByCreatedEnvsCount ¶
func ByCreatedEnvsCount(opts ...sql.OrderTermOption) OrderOption
ByCreatedEnvsCount orders the results by created_envs count.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTeams ¶
func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeams orders the results by teams terms.
func ByTeamsCount ¶
func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamsCount orders the results by teams count.
func ByUsersTeams ¶
func ByUsersTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsersTeams orders the results by users_teams terms.
func ByUsersTeamsCount ¶
func ByUsersTeamsCount(opts ...sql.OrderTermOption) OrderOption
ByUsersTeamsCount orders the results by users_teams count.